/* ============================================================
   INSTITUTO GRAAL — Design System
   Terra & Cura · Curador + Sábio
   ============================================================ */

:root {
  /* --- Cores --- */
  --verde-floresta: #10382C;
  --verde-escuro: #0A2A20;
  --verde-suave: #2F5847;
  --azul-oceano: #0B1F3A;
  --azul-suave: #1B3354;
  --dourado: #C1A265;
  --dourado-claro: #E0CDA3;
  --dourado-escuro: #9C7F47;
  --pergaminho: #F6F1E6;
  --pergaminho-escuro: #EDE5D4;
  --salvia: #E2E8E0;
  --carvao: #1A2620;
  --branco: #FFFFFF;

  /* --- Tipografia --- */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --fs-h1: clamp(2.6rem, 5.4vw, 4.6rem);
  --fs-h2: clamp(2.1rem, 4vw, 3.1rem);
  --fs-h3: clamp(1.4rem, 2.4vw, 1.9rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.8rem;

  /* --- Espaçamento --- */
  --container: 1200px;
  --section-pad: clamp(4.5rem, 9vw, 8rem);
  --radius: 6px;
  --radius-lg: 14px;

  /* --- Sombras --- */
  --shadow-soft: 0 10px 40px -15px rgba(16, 56, 44, 0.25);
  --shadow-card: 0 4px 24px rgba(26, 38, 32, 0.08);
  --shadow-hover: 0 16px 48px -10px rgba(16, 56, 44, 0.28);

  /* --- Transições --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.25s var(--ease);
  --t-med: 0.5s var(--ease);
  --t-slow: 0.9s var(--ease);
}

/* ============================================================
   RESET
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--carvao);
  background: var(--pergaminho);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--verde-floresta);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { color: var(--carvao); }

:focus-visible {
  outline: 2px solid var(--dourado);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.section--dark {
  background: var(--verde-floresta);
  color: var(--pergaminho);
}
.section--dark h1, .section--dark h2, .section--dark h3 {
  color: var(--pergaminho);
}
.section--dark p { color: rgba(246, 241, 230, 0.82); }

.section--ocean {
  background: var(--azul-oceano);
  color: var(--pergaminho);
}
.section--ocean h1, .section--ocean h2, .section--ocean h3 {
  color: var(--pergaminho);
}
.section--ocean p { color: rgba(246, 241, 230, 0.82); }

.section--sage { background: var(--salvia); }

.section--parchment-dark { background: var(--pergaminho-escuro); }

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dourado-escuro);
  margin-bottom: 1rem;
  text-align: left;
}

.section--dark .eyebrow,
.section--ocean .eyebrow {
  color: var(--dourado);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: 0.5em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.75;
  max-width: 62ch;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head--center .eyebrow {
  justify-content: center;
  text-align: left;
}
.section-head--center .eyebrow::before,
.section-head--center .eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: 0.5em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }

@media (max-width: 640px) {
  .btn {
    padding: 0.75rem 1.4rem;
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  .btn svg { width: 1em; height: 1em; }
}

.btn--gold {
  background: var(--dourado);
  color: var(--verde-floresta);
  box-shadow: 0 8px 24px -8px rgba(193, 162, 101, 0.55);
}
.btn--gold:hover {
  background: var(--dourado-claro);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(193, 162, 101, 0.65);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid currentColor;
  color: inherit;
}
.btn--outline:hover {
  background: rgba(246, 241, 230, 0.1);
  transform: translateY(-2px);
}

.section:not(.section--dark):not(.section--ocean) .btn--outline {
  border-color: var(--verde-floresta);
  color: var(--verde-floresta);
}
.section:not(.section--dark):not(.section--ocean) .btn--outline:hover {
  background: var(--verde-floresta);
  color: var(--pergaminho);
}

.btn--whatsapp {
  background: var(--verde-floresta);
  color: var(--pergaminho);
  box-shadow: var(--shadow-soft);
}
.btn--whatsapp:hover {
  background: var(--verde-escuro);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--block { width: 100%; justify-content: center; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: background var(--t-med), padding var(--t-med), box-shadow var(--t-med);
}

.navbar.is-scrolled {
  background: rgba(16, 56, 44, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.85rem 0;
  box-shadow: 0 8px 30px -10px rgba(0,0,0,0.35);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar__logo img {
  height: 38px;
  width: auto;
  transition: height var(--t-med);
}
.navbar.is-scrolled .navbar__logo img { height: 32px; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.navbar__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--pergaminho);
  position: relative;
  padding: 0.3rem 0;
  letter-spacing: 0.01em;
  transition: color var(--t-fast);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--dourado);
  transition: width var(--t-fast);
}

.navbar__links a:hover { color: var(--dourado-claro); }
.navbar__links a:hover::after,
.navbar__links a[aria-current="page"]::after { width: 100%; }
.navbar__links a[aria-current="page"] { color: var(--dourado); }

.navbar__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.navbar__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  z-index: 1100;
}
.navbar__menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--pergaminho);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast), background var(--t-fast);
}

.navbar__menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 880px) {
  .navbar__menu-toggle { display: flex; }

  .navbar__links {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    background: var(--verde-floresta);
    transform: translateX(100%);
    transition: transform var(--t-med);
    z-index: 1050;
    overflow-y: auto;
    padding: 5.5rem 1.5rem 2.5rem;
  }
  .navbar__links.is-open { transform: translateX(0); }
  .navbar__links a { font-size: 1.25rem; }

  .navbar__cta .btn span.btn-label-long { display: none; }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--branco);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq {
  border-top: 1px solid rgba(16, 56, 44, 0.12);
}
.faq__item {
  border-bottom: 1px solid rgba(16, 56, 44, 0.12);
}
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--verde-floresta);
}
.faq__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--dourado);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--t-fast), background var(--t-fast);
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  background: var(--dourado-escuro);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.faq__icon::before { width: 12px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 12px; }

.faq__item.is-open .faq__icon { background: var(--dourado); }
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after { background: var(--verde-floresta); }
.faq__item.is-open .faq__icon::after { transform: rotate(90deg); opacity: 0; }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med);
}
.faq__answer-inner {
  padding-bottom: 1.6rem;
  max-width: 70ch;
  color: var(--carvao);
}
.faq__answer-inner p + p { margin-top: 0.9rem; }
.faq__answer-inner ul { margin-top: 0.6rem; }
.faq__answer-inner li {
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.4rem;
}
.faq__answer-inner li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  background: var(--dourado);
  border-radius: 50%;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   TRILHA DOURADA — elemento de assinatura
   Uma trilha que acompanha a leitura, com a folha do
   Instituto Graal caminhando pela jornada da página.
   ============================================================ */
.trilha {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 64px;
  z-index: 500;
  pointer-events: none;
  display: none;
}

@media (min-width: 1180px) {
  .trilha { display: block; }
}

.trilha__svg {
  width: 100%;
  height: 100%;
}

.trilha__path {
  fill: none;
  stroke: var(--dourado);
  stroke-width: 1.4;
  opacity: 0.32;
}

.trilha__marker {
  offset-path: path('M32,0 C54,90 10,180 32,270 S54,450 32,540 S10,720 32,810 S54,990 32,1000');
  offset-distance: 0%;
  offset-rotate: 0deg;
  width: 22px;
  height: 22px;
  position: absolute;
  transform: translate(-11px, -11px);
  transition: offset-distance 0.1s linear;
}

.trilha__leaf {
  width: 100%;
  height: 100%;
  fill: var(--dourado);
  filter: drop-shadow(0 0 6px rgba(193, 162, 101, 0.6));
}

/* Barra de progresso mobile (substitui a trilha em telas estreitas) */
.progresso-mobile {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--dourado);
  z-index: 1100;
  transition: width 0.1s linear;
}
@media (min-width: 1180px) {
  .progresso-mobile { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--verde-floresta);
  color: var(--pergaminho);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(246, 241, 230, 0.12);
}

@media (max-width: 880px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__logo img { height: 40px; margin-bottom: 1.2rem; }
.footer__about p {
  color: rgba(246, 241, 230, 0.7);
  font-size: 0.92rem;
  max-width: 32ch;
}

.footer h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 1.2rem;
}

.footer__links li { margin-bottom: 0.7rem; }
.footer__links a {
  color: rgba(246, 241, 230, 0.78);
  font-size: 0.95rem;
  transition: color var(--t-fast), padding-left var(--t-fast);
  display: inline-block;
}
.footer__links a:hover {
  color: var(--dourado-claro);
  padding-left: 4px;
}

.footer__contact li {
  color: rgba(246, 241, 230, 0.78);
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  line-height: 1.5;
}
.footer__contact svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--dourado);
}

.footer__social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 230, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.footer__social a:hover {
  background: var(--dourado);
  border-color: var(--dourado);
  color: var(--verde-floresta);
  transform: translateY(-3px);
}
.footer__social svg { width: 17px; height: 17px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.85rem;
  color: rgba(246, 241, 230, 0.5);
}

.footer__credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}
.footer__credit a:hover { border-bottom-color: rgba(246, 241, 230, 0.5); }

.footer__mark {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 320px;
  height: 320px;
  opacity: 0.04;
  pointer-events: none;
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.35);
  transition: transform var(--t-fast);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ============================================================
   RESPONSIVE GENERAL
   ============================================================ */
@media (max-width: 640px) {
  :root { --section-pad: 3.5rem; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* ============================================================
   ANIMAÇÕES PREMIUM — Base global
   ============================================================ */

/* Cursor magnético */
#ig-cursor {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 2px solid var(--dourado, #C1A265);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
  mix-blend-mode: exclusion;
  will-change: transform;
  top: 0; left: 0;
}
#ig-cursor.expanded {
  width: 60px;
  height: 60px;
  border-color: #fff;
  background: rgba(193,162,101,0.12);
}
#ig-cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--dourado, #C1A265);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  top: 0; left: 0;
  will-change: transform;
}

/* Char-by-char reveal keyframe */
@keyframes charIn {
  to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

/* Shimmer nos elementos dourados */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.btn--gold {
  background-image: linear-gradient(90deg,
    var(--dourado-escuro, #8B6914) 0%,
    var(--dourado, #C1A265) 30%,
    #f0d98a 50%,
    var(--dourado, #C1A265) 70%,
    var(--dourado-escuro, #8B6914) 100%);
  background-size: 200% auto;
  animation: shimmer 3.5s linear infinite var(--shimmer-delay, 0s);
}

/* Pirâmide da Home */
.piramide-home {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.piramide-home .pyramid-scene {
  width: clamp(220px, 28vw, 380px);
}
#pyramid-shadow-home {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(16,56,44,0.3) 0%, rgba(16,56,44,0) 80%);
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Icon scene nas técnicas */
.tecnica-icon-scene {
  position: relative;
  perspective: 700px;
}
#tecnica-icon-container {
  transform-style: preserve-3d;
  will-change: transform;
}
#tecnica-icon-container img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
  transition: filter 0.4s;
}
#tecnica-icon-container:hover img {
  filter: drop-shadow(0 12px 36px rgba(193,162,101,0.5)) drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}
#tecnica-icon-shadow {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 80%);
  border-radius: 50%;
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Page fade-in — evita flash */
body { opacity: 0; }

/* Magnetic btn — não bloquear layout */
.btn--gold, .btn--outline {
  will-change: transform;
  transition: transform 0.25s cubic-bezier(.25,.46,.45,.94), 
              box-shadow 0.25s ease,
              background-position 0s !important;
}

/* Word reveal — garantia global */
.word-anim {
  display: inline-block !important;
  white-space: nowrap;
}
@keyframes wordIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Fallback: se JS desabilitado, texto visível */
.no-js h1, .no-js h2 { opacity: 1 !important; transform: none !important; }

/* ============================================================
   MOBILE — Correções globais
   ============================================================ */

/* Container: padding lateral adequado em telas pequenas */
@media (max-width: 480px) {
  .container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

/* Section-head: centralizar em mobile */
@media (max-width: 640px) {
  .section-head h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
  .section-head p.lead {
    font-size: 1rem;
  }
}

/* Navbar: logo menor no mobile */
@media (max-width: 480px) {
  .navbar__logo img {
    height: 36px;
  }
}

/* Artigos card grid: 1 coluna em telas pequenas */
@media (max-width: 560px) {
  .artigos-grid {
    grid-template-columns: 1fr;
  }
  .artigo-card__img {
    height: 180px;
  }
  .artigo-card__img img {
    height: 100%;
    object-fit: cover;
  }
}

/* Footer: ajuste em telas muito pequenas */
@media (max-width: 400px) {
  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* WhatsApp float: posição correta em mobile */
@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 52px;
    height: 52px;
  }
}

/* Reveal: garantir que elementos visíveis no load não fiquem escondidos */
@media (max-width: 640px) {
  .reveal, .reveal-stagger {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal.is-visible, .reveal-stagger.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   TEMA CLARO — Override do verde escuro
   ============================================================ */

/* NAVBAR: transparente → frosted white ao scroll */
.navbar {
  background: transparent !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid transparent;
  box-shadow: none !important;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
/* Linha dourada animada embaixo da navbar */
.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dourado), transparent);
  transition: width 0.6s ease 0.2s;
}
.navbar.is-scrolled::after {
  width: 60%;
}
.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(193, 162, 101, 0.18);
  box-shadow: 0 2px 28px rgba(16, 56, 44, 0.08) !important;
}
/* Links sempre verde floresta (fundo claro) */
.navbar__links a { color: var(--verde-floresta); }
.navbar__links a[aria-current="page"] { color: var(--dourado-escuro); }
.navbar__logo img { filter: none; }
/* Botão CTA */
.navbar .btn--cta {
  background: var(--dourado);
  color: var(--verde-escuro);
}
/* Mobile nav overlay */
@media (max-width: 880px) {
  .navbar {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(193,162,101,0.15);
  }
  .navbar__links {
    background: var(--verde-floresta) !important;
  }
  .navbar__links a { color: var(--pergaminho); }
}

/* SECTION--DARK: vira menta claro */
.section--dark {
  background: #EAF3EE !important;
}
.section--dark .eyebrow { color: var(--dourado-escuro); }
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--verde-floresta); }
.section--dark p { color: var(--carvao); }

/* MVV items: cards brancos no novo tema */
.mvv__item {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(193, 162, 101, 0.15);
}
.mvv__item svg { color: var(--dourado-escuro); }
.mvv__item h3 { color: var(--verde-floresta); }
.mvv__item p { color: var(--carvao); }

/* Benefícios: checkmarks e texto */
.section--dark li svg { color: var(--dourado-escuro); }
.section--dark li span { color: var(--carvao); }
.section--dark li h3 { color: var(--verde-floresta); }

/* CTA final */
.cta-final { background: #EAF3EE !important; }
.cta-final h2 { color: var(--verde-floresta); }
.cta-final p { color: var(--carvao); }
.cta-final .eyebrow { color: var(--dourado-escuro); }

/* FOOTER: navy em vez de verde */
.footer {
  background: var(--azul-oceano) !important;
}

/* section--parchment-dark → menta claro */
.section--parchment-dark {
  background: #F0F7F3 !important;
}
.section--parchment-dark h2,
.section--parchment-dark h3 { color: var(--verde-floresta); }
.section--parchment-dark p { color: var(--carvao); }
.section--parchment-dark .eyebrow { color: var(--dourado-escuro); }

/* Botão outline no hero claro */
.btn--outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border: 2px solid var(--verde-floresta);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--verde-floresta);
  transition: background var(--t-fast), color var(--t-fast);
  text-decoration: none;
}
.btn--outline-dark:hover {
  background: var(--verde-floresta);
  color: var(--pergaminho);
}
