/* =========================================================
   Terrazon — Landing "em construção"
   Paleta da marca: verde profundo + dourado + tons terrosos
   Tipografia: Cormorant Garamond (display) + DM Sans (corpo)
   ========================================================= */

:root {
  /* Cores da marca */
  --green-900: #0e1f0d;
  --green-800: #163015;
  --green-700: #1d3f1c;
  --green-600: #214c1f;
  --green-500: #2a5d27;
  --green-50:  #eff3ee;

  --gold-700: #8a6418;
  --gold-600: #b48b1f;
  --gold-500: #c79d2d;
  --gold-400: #dcb754;
  --gold-200: #f1dfa6;

  --sand-50:  #faf7f1;
  --sand-100: #f3ede1;
  --sand-200: #e7dec9;
  --cream:    #fdfbf6;

  --ink-900:  #0b0f0a;
  --ink-700:  #2a3a28;
  --ink-500:  #4d5e4a;
  --ink-300:  #8a9b87;

  /* Sistema */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm:  0 2px 8px rgba(14, 31, 13, 0.08);
  --shadow-md:  0 12px 28px rgba(14, 31, 13, 0.16);
  --shadow-lg:  0 28px 60px rgba(14, 31, 13, 0.28);
  --shadow-gold: 0 14px 40px rgba(199, 157, 45, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --max: 1240px;

  /* Fontes */
  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
ul { padding: 0; margin: 0; list-style: none; }
figure { margin: 0; }

/* Acessibilidade */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 99;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--green-800);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4rem clamp(1rem, 4vw, 2.5rem) 4rem;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
}

/* Camadas de fundo da hero
   - .hero__bg-slides    : slideshow das imagens dos revestimentos (Ken Burns + crossfade)
   - .hero__bg-overlay   : overlay verde escuro semitransparente (mantém identidade da marca + legibilidade)
   - .hero__bg-grain     : ruído sutil (textura natural)
   - .hero__bg-glow      : brilho dourado animado (acento de marca)
*/
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  /* fallback caso as imagens demorem a carregar */
  background: linear-gradient(180deg, var(--green-900) 0%, var(--green-800) 100%);
}
.hero__bg-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  /* 8 slides × 7s cada = ciclo de 56s, com crossfade de ~1s entre eles */
  animation: heroSlideKenBurns 56s infinite;
  will-change: opacity, transform;
}
.hero__bg-slide:nth-child(1) { animation-delay:  0s; }
.hero__bg-slide:nth-child(2) { animation-delay:  7s; }
.hero__bg-slide:nth-child(3) { animation-delay: 14s; }
.hero__bg-slide:nth-child(4) { animation-delay: 21s; }
.hero__bg-slide:nth-child(5) { animation-delay: 28s; }
.hero__bg-slide:nth-child(6) { animation-delay: 35s; }
.hero__bg-slide:nth-child(7) { animation-delay: 42s; }
.hero__bg-slide:nth-child(8) { animation-delay: 49s; }

@keyframes heroSlideKenBurns {
  0%    { opacity: 0; transform: scale(1.0); }
  2%    { opacity: 1; }                           /* fade-in rápido */
  12.5% { opacity: 1; transform: scale(1.08); }   /* zoom Ken Burns durante visibilidade */
  14.5% { opacity: 0; }                           /* fade-out — total visível ~6s */
  100%  { opacity: 0; transform: scale(1.08); }
}

/* Overlay verde escuro semitransparente — preserva identidade da marca
   e garante legibilidade do conteúdo sobre as imagens */
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(199, 157, 45, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(14, 31, 13, 0.78) 0%, rgba(22, 48, 21, 0.86) 60%, rgba(14, 31, 13, 0.92) 100%);
  pointer-events: none;
}

/* Grão sutil para textura natural */
.hero__bg-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: overlay;
  opacity: .45;
  pointer-events: none;
}
/* Brilho dourado animado */
.hero__bg-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(40% 30% at 20% 30%, rgba(220, 183, 84, 0.14), transparent 60%),
    radial-gradient(35% 30% at 85% 70%, rgba(199, 157, 45, 0.12), transparent 60%);
  filter: blur(40px);
  animation: glowDrift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glowDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.05); }
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 880px;
  width: 100%;
  animation: heroFadeUp 1.1s var(--ease) both;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem 1rem;
  border: 1px solid rgba(241, 223, 166, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold-200);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 0 rgba(199,157,45, 0.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(199,157,45, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(199,157,45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(199,157,45, 0); }
}

/* Logo central — apresentada sobre uma "placa" editorial
   que evoca um revestimento artesanal e dá contraste à marca */
.hero__logo-wrap {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 1.6rem;
  position: relative;
  padding: 2.2rem 3rem 1.8rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(253, 251, 246, 0.97) 0%, rgba(243, 237, 225, 0.95) 100%);
  border: 1px solid rgba(199, 157, 45, 0.35);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
/* Linha dourada decorativa nos cantos do cartão */
.hero__logo-wrap::before,
.hero__logo-wrap::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold-600);
  pointer-events: none;
}
.hero__logo-wrap::before {
  top: 10px; left: 10px;
  border-right: 0; border-bottom: 0;
}
.hero__logo-wrap::after {
  bottom: 10px; right: 10px;
  border-left: 0; border-top: 0;
}
.hero__logo {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  height: auto;
  display: block;
}

/* Título editorial */
.hero__title {
  margin: 0 0 1rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--cream);
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--gold-400), var(--gold-200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 560px;
  margin: 0 auto 2.4rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(253, 251, 246, 0.88);
}

/* CTAs */
.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: .95rem 1.6rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: var(--f-body);
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease),
              background .25s var(--ease),
              border-color .25s var(--ease),
              box-shadow .25s var(--ease);
  min-width: 220px;
  text-align: left;
}
.btn__icon {
  flex: 0 0 auto;
  width: 22px; height: 22px;
}
.btn__label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.btn__title { font-size: .98rem; font-weight: 700; }
.btn__sub   { font-size: .78rem; opacity: .8; letter-spacing: .04em; }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--green-900);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(199, 157, 45, 0.45);
  outline: none;
}

.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--cream);
  border-color: rgba(241, 223, 166, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(241, 223, 166, 0.55);
  outline: none;
}

.btn--lg {
  padding: 1.15rem 2rem;
  font-size: 1.05rem;
}

/* Linha de assinatura */
.hero__signature {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: .04em;
  color: var(--gold-200);
  margin: 0;
}
.hero__signature-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

/* ---------- CTA FINAL ---------- */
.cta-final {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(199,157,45,0.12), transparent 60%),
    linear-gradient(180deg, var(--green-800), var(--green-900));
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
  opacity: .5;
  pointer-events: none;
}
.cta-final__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.cta-final__title {
  margin: 0 0 1rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2;
}
.cta-final__text {
  margin: 0 0 2rem;
  color: rgba(253, 251, 246, 0.78);
  font-size: 1.02rem;
}
.cta-final__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(253, 251, 246, 0.7);
  padding: 1.8rem clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(241, 223, 166, 0.12);
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer__copy {
  margin: 0;
  font-size: .85rem;
  letter-spacing: .02em;
}
.site-footer__links {
  display: flex;
  gap: 1.4rem;
}
.site-footer__links a {
  color: rgba(253, 251, 246, 0.85);
  text-decoration: none;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s var(--ease);
}
.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--gold-400);
}

/* ---------- Responsivo ---------- */
@media (max-width: 600px) {
  .hero { padding-top: 3rem; padding-bottom: 3rem; }
  .hero__badge { font-size: .72rem; padding: .45rem .8rem; }
  .btn { min-width: 100%; justify-content: center; text-align: center; }
  .hero__signature { font-size: .85rem; }
  .hero__signature-line { width: 30px; }
}

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