/* =========================================================
   AgeKa — Folha de estilos
   Sistema de tokens conforme Doutrina da Harmonia (secção 3)
   ========================================================= */

:root{
  /* --- Cor: família única em HSL (base teal) + acento quente --- */
  --ink-900: hsl(180, 45%, 10%);   /* #0e2b2c fundo escuro principal */
  --ink-800: hsl(180, 40%, 15%);   /* #163b3c */
  --ink-700: hsl(181, 33%, 23%);   /* #22585a bordas sobre escuro */
  --ink-600: hsl(181, 28%, 34%);   /* texto secundário sobre escuro */
  --teal-100: hsl(165, 32%, 94%);  /* #eaf2ee fundo claro frio */
  --teal-050: hsl(165, 35%, 97%);
  --sand-100: hsl(42, 38%, 93%);   /* #f7f2e7 fundo claro quente (alterna ritmo) */
  --sand-050: hsl(42, 42%, 96%);
  --paper: #fffdf8;
  --accent: hsl(35, 55%, 48%);     /* #c1893b ouro/cobre — só CTA e destaque */
  --accent-dark: hsl(35, 58%, 38%);
  --accent-light: hsl(35, 60%, 90%);
  --text-on-dark: hsl(165, 25%, 94%);
  --text-on-dark-muted: hsl(170, 15%, 72%);
  --text-on-light: var(--ink-900);
  --text-on-light-muted: hsl(181, 15%, 38%);
  --line-on-dark: hsla(165, 30%, 90%, 0.16);
  --line-on-light: hsla(181, 30%, 15%, 0.12);

  /* --- Espaçamento: múltiplos de 8 (secção 3.1) --- */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;
  --space-4: 16px;  --space-5: 24px;  --space-6: 32px;
  --space-7: 48px;  --space-8: 64px;  --space-9: 96px;
  --space-10: 128px; --space-11: 160px;

  /* --- Tipografia: escala modular 1.25 (secção 3.2) --- */
  --text-xs: 13px;  --text-sm: 15px;  --text-base: 16px;
  --text-lg: 20px;  --text-xl: 25px;  --text-2xl: 31px;
  --text-3xl: 39px; --text-4xl: 49px; --text-5xl: 61px;

  --font: 'General Sans', -apple-system, sans-serif;

  /* --- Elevação (secção 7.1) --- */
  --shadow-sm: 0 2px 8px rgba(6, 20, 21, 0.12);
  --shadow-md: 0 8px 24px rgba(6, 20, 21, 0.18);
  --shadow-lg: 0 16px 48px rgba(6, 20, 21, 0.28);

  /* --- Raio: escala fixa própria --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* --- Movimento (secção 4) --- */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container-max: 1240px;
}

/* =================== RESET =================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text-on-light);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
img, svg{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,p,figure{ margin: 0; }

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

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

/* =================== TIPOGRAFIA =================== */
h1, h2, h3{
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  display: block;
}
h2.section-title{ font-size: var(--text-4xl); }
h3.card-title{ font-size: var(--text-xl); letter-spacing: -0.01em; }
p{ font-size: var(--text-base); line-height: 1.75; }
.lede{ font-size: var(--text-lg); line-height: 1.6; }

@media (max-width: 720px){
  h2.section-title{ font-size: var(--text-3xl); }
}

/* =================== LAYOUT =================== */
.container{
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 960px){
  .container{ padding-inline: var(--space-6); }
}
section{ position: relative; }
.bg-ink{ background: var(--ink-900); color: var(--text-on-dark); }
.bg-teal{ background: var(--teal-100); color: var(--text-on-light); }
.bg-sand{ background: var(--sand-100); color: var(--text-on-light); }
.bg-paper{ background: var(--paper); color: var(--text-on-light); }

/* divisor de secção — linha fina, nunca corte brusco sem critério */
.section-divider{
  height: 1px;
  background: var(--line-on-light);
  max-width: var(--container-max);
  margin: 0 auto;
}
.bg-ink + .section-divider,
.section-divider.on-dark{ background: var(--line-on-dark); }

/* =================== BOTÕES =================== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), background 220ms var(--ease-in-out), border-color 220ms var(--ease-in-out);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-accent{
  background: var(--accent);
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover{ background: var(--accent-dark); color: var(--paper); box-shadow: var(--shadow-md); }
.btn-ghost-dark{
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--line-on-dark);
}
.btn-ghost-dark:hover{ border-color: var(--accent); color: var(--accent); }
.btn-ghost-light{
  background: transparent;
  color: var(--text-on-light);
  border-color: var(--line-on-light);
}
.btn-ghost-light:hover{ border-color: var(--accent-dark); color: var(--accent-dark); }
.btn-block{ width: 100%; }

/* =================== HEADER =================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-5) 0;
  transition: background 320ms var(--ease-in-out), padding 320ms var(--ease-in-out), box-shadow 320ms var(--ease-in-out), border-color 320ms var(--ease-in-out);
  border-bottom: 1px solid transparent;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header.is-scrolled{
  background: hsla(180, 45%, 10%, 0.86);
  backdrop-filter: blur(14px);
  padding: var(--space-3) 0;
  border-color: var(--line-on-dark);
  box-shadow: var(--shadow-sm);
}
.logo{
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo .dot{ color: var(--accent); }
.main-nav{ display: none; }
.main-nav ul{ display: flex; align-items: center; gap: var(--space-6); }
.main-nav a{
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-on-dark-muted);
  transition: color 200ms var(--ease-in-out);
}
.main-nav a:hover{ color: var(--text-on-dark); }
.header-cta{ display: none; }
.nav-toggle{
  background: transparent;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-on-dark);
}
@media (min-width: 960px){
  .main-nav{ display: block; }
  .header-cta{ display: inline-flex; }
  .nav-toggle{ display: none; }
}

.mobile-drawer{
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink-900);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) var(--space-5);
  transform: translateY(-100%);
  transition: transform 420ms var(--ease-in-out);
}
.mobile-drawer.is-open{ transform: translateY(0); }
.mobile-drawer ul{ display: flex; flex-direction: column; gap: var(--space-6); }
.mobile-drawer a{ font-size: var(--text-2xl); font-weight: 600; color: var(--text-on-dark); }
.mobile-drawer .btn{ margin-top: var(--space-7); align-self: flex-start; }

/* =================== HERO =================== */
.hero{
  padding-top: calc(var(--space-11) + var(--space-6));
  padding-bottom: var(--space-10);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg{
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}
.hero-bg-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, hsla(180, 45%, 8%, 0.62) 0%, hsla(180, 45%, 8%, 0.88) 65%, var(--ink-900) 100%);
}
.hero-route{
  position: absolute;
  inset: 0;
  opacity: 0.9;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
.hero-copy h1{
  font-size: clamp(var(--text-4xl), 6.4vw, var(--text-5xl));
  color: var(--text-on-dark);
  max-width: 18ch;
  margin-block: 0 var(--space-6);
}
.hero-copy .lede{
  color: var(--text-on-dark-muted);
  max-width: 46ch;
  margin-bottom: var(--space-7);
}
.hero-actions{ display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero-stats{
  display: flex;
  gap: var(--space-7);
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-on-dark);
}
.hero-stats .stat-num{
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
}
.hero-stats .stat-label{
  font-size: var(--text-xs);
  color: var(--text-on-dark-muted);
  margin-top: var(--space-1);
}

/* --- cartão-bilhete: elemento de assinatura --- */
.ticket{
  position: relative;
  background: var(--paper);
  color: var(--text-on-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ticket-notch{
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink-900);
  top: 50%;
  transform: translateY(-50%);
}
.ticket-notch.left{ left: -14px; }
.ticket-notch.right{ right: -14px; }
.ticket-route{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  gap: var(--space-3);
}
.route-code{
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.route-arrow{
  flex: 1;
  height: 1px;
  margin-inline: var(--space-3);
  background-image: linear-gradient(to right, var(--line-on-light) 50%, transparent 0%);
  background-size: 10px 1px;
  background-repeat: repeat-x;
  position: relative;
}
.route-arrow::after{
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid var(--text-on-light-muted);
  border-right: 2px solid var(--text-on-light-muted);
  transform: translateY(-50%) rotate(45deg);
}
.ticket-divider{
  border-top: 2px dashed var(--line-on-light);
  margin-inline: var(--space-6);
}
.ticket-body{ padding: var(--space-6); }
.ticket-body .duration{
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  margin-bottom: var(--space-2);
}

.hero-ticket{ max-width: 420px; }

@media (min-width: 900px){
  .hero-grid{ grid-template-columns: 1.15fr 0.85fr; gap: var(--space-9); }
  .hero-ticket{ justify-self: end; }
}

/* =================== TRUST STRIP =================== */
.trust-strip{ padding-block: var(--space-6); }
.trust-strip .container{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-9);
  align-items: baseline;
  justify-content: space-between;
}
.trust-item{ display: flex; align-items: baseline; gap: var(--space-2); }
.trust-item .num{ font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em; }
.trust-item .lbl{ font-size: var(--text-sm); color: var(--text-on-light-muted); }

/* =================== PROCESSO =================== */
.process{ padding-block: var(--space-10); }
.section-head{
  max-width: 640px;
  margin-bottom: var(--space-8);
}
.section-head .lede{ margin-top: var(--space-4); color: var(--text-on-light-muted); }
.process-grid{
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
.process-step{
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line-on-light);
  box-shadow: var(--shadow-sm);
}
.process-step .step-num{
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
  display: block;
}
.process-step h3{ margin-bottom: var(--space-3); font-size: var(--text-lg); }
.process-step p{ color: var(--text-on-light-muted); font-size: var(--text-sm); }

@media (min-width: 780px){
  .process-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* =================== PACOTES =================== */
.packages{ padding-block: var(--space-10); }
.packages .section-head{ color: var(--text-on-dark); }
.packages .section-head .lede{ color: var(--text-on-dark-muted); }
.packages .eyebrow{ color: var(--accent); }
.package-grid{
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px){
  .package-grid{ grid-template-columns: repeat(2, 1fr); }
}
.package-card .ticket-body h3{ margin-bottom: var(--space-2); }
.package-card .ticket-body .desc{
  color: var(--text-on-light-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}
.includes{ display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }
.includes li{
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-on-light);
}
.includes li svg{ flex-shrink: 0; margin-top: 3px; color: var(--accent-dark); }
.package-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-on-light);
}
.package-price .from{
  font-size: var(--text-xs);
  color: var(--text-on-light-muted);
  display: block;
  margin-bottom: 2px;
}
.package-price .amount{ font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; }

/* =================== DESTINOS =================== */
.destinations{ padding-block: var(--space-10); }
.dest-row{
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: center;
  padding-block: var(--space-7);
}
.dest-row:not(:last-child){ border-bottom: 1px solid var(--line-on-light); }
.dest-visual{
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-900);
  box-shadow: var(--shadow-md);
}
.dest-visual svg,
.dest-visual img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.dest-copy .dest-index{
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-3);
}
.dest-copy h3{ font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.dest-copy p{ color: var(--text-on-light-muted); margin-bottom: var(--space-4); }
.dest-tip{
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--sand-050);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.dest-tip strong{ color: var(--ink-900); }

@media (min-width: 860px){
  .dest-row{ grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8); }
  .dest-row.reverse .dest-visual{ order: 2; }
}

/* =================== DEPOIMENTOS =================== */
.testimonials{ padding-block: var(--space-10); overflow: hidden; }
.testimonial-track{
  display: flex;
  gap: var(--space-5);
  cursor: grab;
  padding-bottom: var(--space-3);
  width: max-content;
}
.testimonial-track:active{ cursor: grabbing; }
.testimonial-card{
  width: min(340px, 80vw);
  flex-shrink: 0;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  user-select: none;
}
.testimonial-card .quote{
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.testimonial-card .who{ display: flex; align-items: center; gap: var(--space-3); }
.avatar-mark{
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.who .name{ font-weight: 600; font-size: var(--text-sm); }
.who .place{ font-size: var(--text-xs); color: var(--text-on-light-muted); }
.drag-hint{
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); color: var(--text-on-light-muted);
  margin-top: var(--space-5);
}

/* =================== CONTACTO / RESERVA =================== */
.book{ padding-block: var(--space-10); }
.book-grid{
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
.book-copy .lede{ color: var(--text-on-dark-muted); margin-top: var(--space-4); margin-bottom: var(--space-7); }
.book-contacts{ display: flex; flex-direction: column; gap: var(--space-5); }
.book-contacts .item{ display: flex; gap: var(--space-4); }
.book-contacts .icon{
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--ink-800);
  border: 1px solid var(--line-on-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.book-contacts .label{ font-size: var(--text-xs); color: var(--text-on-dark-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.book-contacts .value{ font-weight: 600; }

.book-form{
  background: var(--paper);
  color: var(--text-on-light);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-lg);
}
.form-row{ margin-bottom: var(--space-5); }
.form-row-split{ display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.form-row label{
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  margin-bottom: var(--space-2);
}
.form-row input,
.form-row select,
.form-row textarea{
  width: 100%;
  font-family: inherit;
  font-size: var(--text-base);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-on-light);
  background: var(--sand-050);
  color: var(--text-on-light);
  transition: border-color 200ms var(--ease-in-out), background 200ms var(--ease-in-out);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  border-color: var(--accent-dark);
  background: var(--paper);
  outline: none;
}
.form-row textarea{ resize: vertical; min-height: 96px; }
.form-note{
  font-size: var(--text-xs);
  color: var(--text-on-light-muted);
  margin-top: var(--space-4);
  text-align: center;
}
.form-success{
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-5);
}
.form-success.is-visible{ display: flex; }

@media (min-width: 960px){
  .book-grid{ grid-template-columns: 0.85fr 1.15fr; gap: var(--space-9); }
  .form-row-split{ grid-template-columns: 1fr 1fr; }
}

/* =================== FOOTER =================== */
.site-footer{ padding-block: var(--space-8) var(--space-6); }
.footer-top{
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand .logo{ margin-bottom: var(--space-4); }
.footer-brand p{ color: var(--text-on-dark-muted); max-width: 34ch; font-size: var(--text-sm); }
.footer-col h4{
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-4);
}
.footer-col ul{ display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a{ font-size: var(--text-sm); color: var(--text-on-dark); transition: color 200ms; }
.footer-col a:hover{ color: var(--accent); }
.footer-bottom{
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-on-dark-muted);
}
.footer-bottom a{ color: var(--text-on-dark); font-weight: 600; }
.footer-bottom a:hover{ color: var(--accent); }

@media (min-width: 780px){
  .footer-top{ grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

/* =================== SCROLLSMOOTHER =================== */
#smooth-wrapper{ overflow: hidden; position: relative; }

/* =================== REVEAL (JS hooks) =================== */
[data-reveal]{ opacity: 0; transform: translateY(28px); }
.gsap-ready [data-reveal]{ opacity: 0; }
