/* =========================================================
   Benefícios — main.css
   ========================================================= */

/* --- Fonts --- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../../_shared/fonts/pxiEyp8kv8JHgFVrJJfecg.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('../../_shared/fonts/pxiDyp8kv8JHgFVrJJLmv1pVGdeOcEg.woff2') format('woff2');
}

/* --- Variables --- */
:root {
  --primary:       #2d2e32;
  --primary-dark:  #1a1b1f;
  --primary-light: #eaf6ff;
  --header-bg:     #ffffff;
  --accent:        #aca3a1;
  --text:          #2d2e32;
  --text-muted:    #555;
  --border:        #e9e9e9;
}

/* --- Reset / Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  height: 64px;
  z-index: 1000;
}

.page-home .header   { position: sticky; top: 0; }
.page-subpage .header { position: sticky; top: 0; }

.header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
}

.logo { height: 40px; }

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}

.nav-link {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link-active {
  background: var(--primary-light);
  color: var(--primary);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary);
}

.menu-btn svg { width: 24px; height: 24px; }

/* --- Search bar --- */
.search-bar {
  padding: 40px 0 0;
}

.search-bar input {
  width: 100%;
  max-width: 560px;
  border-radius: 8px;
  border: 2px solid var(--border);
  padding: 12px 20px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: var(--primary);
}

/* --- Cards section --- */
.cards-section {
  padding: 40px 0 80px;
}

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

.benefit-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  border-color: var(--primary-dark);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 20px 20px 16px;
  flex: 1;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-link {
  display: block;
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}

.card-link:hover {
  background: var(--primary-light);
}

/* --- Disclaimer --- */
.disclaimer {
  background: #f5f5f5;
  border-top: 2px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.disclaimer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: auto;
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 20px 0;
  text-align: center;
}

.footer p { font-size: 0.8rem; }

/* =========================================================
   SUBPAGE STYLES
   ========================================================= */

/* Hero */
.subpage-hero {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.subpage-hero-content {
  position: relative;
  z-index: 1;
  padding: 32px 0 48px;
  color: #fff;
}

.subpage-hero-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
}

/* Content section */
.content-section {
  padding: 60px 0;
}

.content-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Accordion */
.accordion {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-btn {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--primary);
  text-align: left;
  transition: background 0.15s;
}

.accordion-btn:hover {
  background: var(--primary-light);
}

.accordion-btn.open {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.accordion-btn.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-body.open {
  max-height: 3000px;
  padding: 0 24px 24px;
}

.accordion-body ul {
  padding-left: 20px;
  margin: 10px 0;
  list-style: disc;
}

.accordion-body li {
  margin: 6px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.accordion-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 8px 0;
}

.accordion-body h4 {
  font-weight: 700;
  color: var(--primary);
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.accordion-body h4:first-child { margin-top: 8px; }

.accordion-body strong {
  font-weight: 700;
  color: var(--primary);
}

/* FAQ */
.faq-item {
  border-bottom: 1px dashed var(--border);
  padding: 16px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.faq-a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Comunicado */
.comunicado-section {
  padding: 80px 0;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.comunicado-section p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 404 */
.page-404 {
  padding: 80px 0;
  text-align: center;
}

.page-404 h1 {
  font-size: 6rem;
  font-weight: 800;
  color: var(--border);
}

.page-404 p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 960px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }

  .nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 12px 16px 20px;
    gap: 4px;
    z-index: 999;
  }

  .nav.open { display: flex; }

  .nav-link {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .menu-btn { display: flex; }

  .subpage-hero { min-height: 240px; }
}
