@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/Inter-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/Inter-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/Inter-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/Inter-Bold.ttf") format("truetype");
}

:root {
  --carvao: #2d2d2d;
  --ambar: #d4a04c;
  --ambar-claro: #e8c47a;
  --off-white: #f8f8f6;
  --off-white-warm: #f3f1eb;
  --text-muted: #5a5a56;
  --max: 40rem;
  --font: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--carvao);
  background:
    radial-gradient(ellipse 120% 80% at 10% -10%, rgba(212, 160, 76, 0.12), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 20%, rgba(45, 45, 45, 0.06), transparent 50%),
    linear-gradient(180deg, var(--off-white) 0%, var(--off-white-warm) 45%, #ebe8e0 100%);
  min-height: 100vh;
}

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

a {
  color: var(--carvao);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--ambar);
}

/* —— Hero —— */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 3.5rem 1.5rem 4.5rem;
  overflow: hidden;
  color: var(--carvao);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.04);
  animation: hero-kenburns 18s ease-out both;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(248, 248, 246, 0.94) 0%,
      rgba(248, 248, 246, 0.88) 38%,
      rgba(248, 248, 246, 0.45) 62%,
      rgba(45, 45, 45, 0.18) 100%
    ),
    linear-gradient(180deg, rgba(248, 248, 246, 0.2) 0%, rgba(248, 248, 246, 0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 34rem);
  text-align: left;
  animation: fade-up 0.9s ease both;
}

.hero-logo {
  margin: 0 0 1.75rem;
  width: min(100%, 18rem);
  height: auto;
  animation: logo-in 1s ease 0.1s both;
  filter: drop-shadow(0 1px 0 rgba(248, 248, 246, 0.8));
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.55rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-support {
  margin: 0 0 1.5rem;
  max-width: 30rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-nudge {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.35rem;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ambar);
  color: var(--carvao);
  border-color: var(--ambar);
  box-shadow: 0 0 0 0 rgba(212, 160, 76, 0);
  animation: cta-glow 2.8s ease-in-out 1.2s 2;
}

.btn-primary:hover {
  background: var(--ambar-claro);
  border-color: var(--ambar-claro);
  color: var(--carvao);
  box-shadow: 0 6px 20px rgba(212, 160, 76, 0.35);
}

.btn-secondary {
  background: rgba(248, 248, 246, 0.72);
  color: var(--carvao);
  border-color: var(--carvao);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  border-color: var(--ambar);
  color: var(--ambar);
  background: rgba(248, 248, 246, 0.92);
}

/* —— Sections —— */

.section {
  padding: 4rem 1.5rem;
}

.section-alt {
  background: rgba(45, 45, 45, 0.03);
}

.section-gift {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.section-gift h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-gift > .section-inner > p {
  font-size: 1rem;
  color: var(--text-muted);
}

.folheto-preview-link {
  display: block;
  margin-top: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}

.folheto-preview-link:hover {
  color: inherit;
  transform: translateY(-2px);
}

.folheto-preview {
  width: 100%;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 0.25rem;
  box-shadow: 0 10px 28px rgba(45, 45, 45, 0.08);
}

.folheto-preview-caption {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--carvao);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.folheto-preview-link:hover .folheto-preview-caption {
  color: var(--ambar);
}

.section-close {
  padding: 4.5rem 1.5rem 5rem;
  background: rgba(45, 45, 45, 0.05);
  border-top: 1px solid rgba(45, 45, 45, 0.08);
}

.section-close .cta-group {
  justify-content: center;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  animation: fade-up 0.7s ease both;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

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

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section-close h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section p {
  margin: 0;
  color: var(--carvao);
}

.section p + p {
  margin-top: 1rem;
}

.section-close .close-support {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  color: var(--text-muted);
}

.section-close .close-secondary {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.section-close .close-secondary a {
  font-weight: 500;
}

.section em {
  font-style: normal;
  font-weight: 600;
}

/* —— Footer —— */

.footer {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  border-top: 1px solid rgba(45, 45, 45, 0.1);
  background: rgba(45, 45, 45, 0.04);
}

.footer p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--carvao);
  font-weight: 500;
  text-decoration: none;
}

.footer a:hover {
  color: var(--ambar);
}

.sep {
  margin: 0 0.4rem;
  opacity: 0.45;
}

/* —— Motion —— */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-kenburns {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.02);
  }
}

@keyframes cta-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 160, 76, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 160, 76, 0.18);
  }
}

@media (max-width: 720px) {
  .hero {
    align-items: flex-end;
    padding-bottom: 3rem;
  }

  .hero-media img {
    object-position: 62% center;
  }

  .hero-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(248, 248, 246, 0.35) 0%,
        rgba(248, 248, 246, 0.78) 42%,
        rgba(248, 248, 246, 0.96) 68%,
        rgba(248, 248, 246, 0.98) 100%
      );
  }

  .hero-inner {
    width: min(100%, var(--max));
  }

  .cta-group {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-inner,
  .hero-logo,
  .hero-media img,
  .btn-primary,
  .section-inner {
    animation: none;
  }

  .hero-media img {
    transform: none;
  }

  .btn:hover,
  .folheto-preview-link:hover {
    transform: none;
  }
}

@supports not (animation-timeline: view()) {
  .section-inner {
    animation: fade-up 0.7s ease both;
  }
}
