/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
  /* Colors */
  --primary-color: #1D262F;    /* Dark Slate */
  --secondary-color: #F4F4F4;  /* Light Gray */
  --accent-color: #3b82f6;     /* Blue details */
  
  --bg-white: #ffffff;
  --text-dark: #1D262F;
  --text-light: #ffffff;
  --text-muted: #55595c;
  
  /* Fonts */
  --font-family: 'Poppins', sans-serif;
  
  /* Layout */
  --max-width: 1000px;
  --border-radius: 12px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Reusable Utilities
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 70px 0;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Header Area
   ========================================================================== */
.header-area {
  background-image: url('../img/background-idi.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-light);
  padding: 60px 0;
  border-bottom: 4px solid var(--accent-color);
}

.header-top {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.header-logo {
  max-width: 200px;
  width: 100%;
}

.header-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
}

.header-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
}

/* ==========================================================================
   Section: Apresentação
   ========================================================================== */
.apresentacao-section {
  background-color: var(--bg-white);
}

.intro-text-block {
  text-align: justify;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.intro-text-block p {
  margin-bottom: 20px;
}

.intro-text-block a {
  font-weight: 600;
  word-break: break-all;
}

/* ==========================================================================
   Section: Manuais Grid
   ========================================================================== */
.manuais-section {
  background-color: var(--secondary-color);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.manuais-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.manual-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.manual-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-hover);
}

.card-img-link {
  display: block;
  overflow: hidden;
  position: relative;
}

.card-img-link img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.manual-card:hover .card-img-link img {
  transform: scale(1.05);
}

/* Overlay style inside card */
.card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(29, 38, 47, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.manual-card:hover .card-overlay {
  opacity: 1;
}

.btn-download {
  background-color: var(--accent-color);
  color: var(--text-light);
  padding: 10px 20px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.btn-download:hover {
  text-decoration: none;
  background-color: #2563eb;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer-area {
  background-color: var(--primary-color);
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  max-width: 200px;
  width: 100%;
  transition: var(--transition);
}

.footer-logo:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   Media Queries (Responsive)
   ========================================================================== */
@media (max-width: 900px) {
  .manuais-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .header-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
  }
  
  .header-title {
    text-align: center;
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .manuais-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}
