/* ---------- Fontes ---------- */
@font-face {
  font-family: "Outfit";
  src: url("/sactourday/fonts/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Config Condensed";
  src: url("/sactourday/fonts/ConfigCondensedRegular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Config Condensed";
  src: url("/sactourday/fonts/ConfigCondensedMedium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Config Condensed";
  src: url("/sactourday/fonts/ConfigCondensedBold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Config Condensed";
  src: url("/sactourday/fonts/ConfigCondensedExtraBold.otf") format("opentype");
  font-weight: 800;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --azul-escuro: #003575;
  --azul: #2A5EA8;
  --azul-claro: #79B2C9;
  --creme: #FFFEE6;
  --creme-shade: #F3EED0;
  --amarelo: #EABD2F;
  --amarelo-claro: #F6D65A;
  --wa-green: #25D366;
  --wa-green-dark: #1FB855;

  --font-display: "Config Condensed", "Arial Narrow", sans-serif;
  --font-text: "Outfit", system-ui, sans-serif;

  --container: 720px;
  --radius: 22px;
  --radius-sm: 14px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-back: cubic-bezier(0.34, 1.3, 0.64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  line-height: 1.5;
  color: var(--azul-escuro);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }

/* ---------- Header ---------- */
.header {
  background: var(--creme);
  padding: 36px 24px 64px;
  position: relative;
  overflow: hidden;
}
.header::before {
  /* grain sutil */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.055 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
  opacity: 0.8;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.header__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.header__logo-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  animation: fade-down 0.7s var(--ease) both;
}
.header__logo {
  height: 44px;
  width: auto;
}
.header__badge {
  background: var(--amarelo);
  color: var(--azul-escuro);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.12em;
  padding: 6px 14px 5px;
  border-radius: 999px;
  line-height: 1;
  transform: translateY(-1px);
}
.header__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 9vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--azul-escuro);
  animation: fade-down 0.9s var(--ease) 0.08s both;
}
.header__title .underlined {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.header__title .underlined::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  bottom: 4px;
  height: 14px;
  background: var(--amarelo);
  z-index: -1;
  border-radius: 4px;
  transform-origin: left center;
  animation: swipe 0.6s var(--ease-out-back) 0.6s both;
}
.header__subtitle {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: clamp(15px, 2.3vw, 18px);
  color: var(--azul-escuro);
  max-width: 460px;
  margin: 0 auto;
  opacity: 0.82;
  animation: fade-down 0.9s var(--ease) 0.2s both;
}

/* ---------- Ondas ---------- */
.wave {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}
.wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--azul-escuro);
  padding: 8px 20px 48px;
  color: var(--creme);
  position: relative;
}
.faq::before {
  /* ruídinho sobre o azul */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
  pointer-events: none;
}
.faq__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
}
.faq__category {
  margin-top: 40px;
}
.faq__category:first-child { margin-top: 16px; }
.faq__category-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amarelo);
  margin: 0 0 16px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq__category-title::before {
  content: "";
  width: 28px; height: 3px;
  background: var(--amarelo);
  border-radius: 2px;
  display: inline-block;
}

/* ---------- Ticket card (acordeão) ---------- */
.ticket {
  --notch: 14px;
  background: var(--creme);
  color: var(--azul-escuro);
  border-radius: var(--radius);
  margin-bottom: 14px;
  /* recorte de ingresso — dois semicírculos laterais */
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 50%, transparent 98%, #000 100%) left / 50.1% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, transparent 98%, #000 100%) right / 50.1% 100% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at 0 50%, transparent 98%, #000 100%) left / 50.1% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, transparent 98%, #000 100%) right / 50.1% 100% no-repeat;
  transition: transform 0.25s var(--ease);
}
.ticket:hover { transform: translateY(-2px); }
.ticket[open] { transform: none; }

.ticket__question {
  list-style: none;
  padding: 18px 56px 18px 24px;
  position: relative;
  cursor: pointer;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  user-select: none;
  outline: none;
}
.ticket__question::-webkit-details-marker { display: none; }
.ticket__question:focus-visible {
  outline: 3px solid var(--amarelo);
  outline-offset: -3px;
  border-radius: var(--radius);
}

/* ícone + que vira × */
.ticket__icon {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--azul-escuro);
  color: var(--creme);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease-out-back), background 0.2s var(--ease);
  flex-shrink: 0;
}
.ticket__icon::before,
.ticket__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--ease);
}
.ticket__icon::before {
  width: 12px;
  height: 2px;
}
.ticket__icon::after {
  width: 2px;
  height: 12px;
}
.ticket[open] .ticket__icon {
  background: var(--amarelo);
  color: var(--azul-escuro);
  transform: translateY(-50%) rotate(135deg);
}

.ticket__answer {
  padding: 0 24px 20px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #0b3a7a;
  position: relative;
}
.ticket__answer::before {
  /* linha pontilhada separadora — perfuração do ticket */
  content: "";
  display: block;
  margin: 0 0 16px;
  border-top: 2px dashed color-mix(in srgb, var(--azul-escuro) 25%, transparent);
}

/* animação de abertura — altura auto via details + grid trick */
.ticket > :not(summary) {
  animation: fade-in 0.35s var(--ease) both;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--creme);
  padding: 8px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
  pointer-events: none;
  mix-blend-mode: multiply;
}
.cta__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1;
  margin: 40px 0 8px;
  color: var(--azul-escuro);
}
.cta__lead {
  font-size: 16px;
  margin: 0 0 28px;
  opacity: 0.8;
}
.cta__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.005em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  box-shadow: 0 2px 0 rgba(0, 53, 117, 0.15);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 53, 117, 0.25); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(0, 53, 117, 0.2); }
.btn:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }

.btn--wa {
  background: var(--wa-green);
  color: white;
}
.btn--wa:hover { background: var(--wa-green-dark); }

.btn--primary {
  background: var(--azul-escuro);
  color: var(--creme);
}
.btn--primary:hover { background: var(--azul); }

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Rodapé ---------- */
.footer {
  background: var(--azul-escuro);
  color: var(--creme);
  padding: 40px 24px 32px;
  text-align: center;
  position: relative;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.footer__logo {
  height: 44px;
  width: auto;
  margin: 0 auto 18px;
  opacity: 0.95;
}
.footer__contact {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  margin-bottom: 14px;
  opacity: 0.85;
}
.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s var(--ease);
}
.footer__contact a:hover { opacity: 0.65; }
.footer__copy {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ---------- Animações ---------- */
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes swipe {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@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;
  }
}

/* ---------- Responsivo ---------- */
@media (min-width: 640px) {
  .header { padding: 56px 24px 80px; }
  .faq { padding: 12px 24px 64px; }
  .cta { padding: 12px 24px 80px; }
  .ticket__question { padding: 22px 64px 22px 28px; font-size: 18px; }
  .ticket__answer { padding: 0 28px 24px; font-size: 16px; }
}

@media (max-width: 420px) {
  .header__logo-row { flex-direction: column; gap: 10px; }
  .btn { padding: 14px 22px; font-size: 15px; }
}
