/* ============================================================
   Galvão Consolin — Teaser
   Tema escuro (padrão) e claro · acento amarelo #F5D600
   ============================================================ */

:root {
  --bg:          #141110;
  --bg-soft:     #1F1A17;
  --fg:          #F4EEE7;
  --muted:       #B4ABA1;
  --line:        #2b2622;
  --accent:      #F5D600;
  --accent-soft: #F5DE5A;
  --on-accent:   #141110;
  --plan-dark-op: 0.20;
  --plan-light-op: 0;
  --ring-color:  rgba(245, 214, 0, 0.10);
  --field-border: #6f665f;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Rubik", system-ui, -apple-system, sans-serif;

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

[data-theme="light"] {
  --bg:          #F6F1EA;
  --bg-soft:     #FCF9F4;
  --fg:          #1E1A17;
  --muted:       #574F48;
  --line:        #e3dad0;
  --accent:      #F5D600;
  --accent-soft: #BFA300;
  --on-accent:   #141110;
  --plan-dark-op: 0;
  --plan-light-op: 0.22;
  --ring-color:  rgba(180, 150, 0, 0.12);
  --field-border: #c4b9ad;
}

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

html, body { height: 100%; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.6rem, 3vw, 3.5rem) clamp(1.6rem, 5vw, 5rem);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--bg-soft) 0%, var(--bg) 60%);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

/* ---------- Fundo decorativo ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.bg__plan {
  position: absolute;
  top: -8%;
  right: -6%;
  width: min(60vw, 880px);
  height: 116%;
  background-image: var(--plan-dark, url("assets/bg-plan-dark.png"));
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top right;
  opacity: var(--plan-dark-op);
  transition: opacity .5s var(--ease);
}
.bg__plan::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("assets/bg-plan-light.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top right;
  opacity: var(--plan-light-op);
  transition: opacity .5s var(--ease);
}

.bg__rings {
  position: absolute;
  right: -17%;
  bottom: -36%;
  width: min(54vw, 660px);
  height: min(54vw, 660px);
  opacity: .65;
}
.ring { fill: none; stroke: var(--ring-color); stroke-width: 1.1; transform-origin: 300px 300px; }
.ring--big   { animation: spin 90s linear infinite; }
.ring--small { stroke: color-mix(in srgb, var(--accent-soft) 10%, transparent); animation: spin 70s linear infinite reverse; }

.bg__plus {
  position: absolute;
  right: clamp(2rem, 9vw, 9rem);
  bottom: clamp(2.5rem, 12vh, 9rem);
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 28%, transparent);
  animation: pulse 6s ease-in-out infinite;
}

.bg__grain {
  position: absolute; inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cabeçalho ---------- */
.header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: clamp(34px, 3.4vw, 56px); width: auto; display: block; }
.brand__logo--light { display: none; }
[data-theme="light"] .brand__logo--dark { display: none; }
[data-theme="light"] .brand__logo--light { display: block; }

.header__right { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.header__location {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}

.theme-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--fg); cursor: pointer;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(15deg); }
.theme-toggle .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--moon { display: none; }
[data-theme="light"] .icon--sun  { display: none; }
[data-theme="light"] .icon--moon { display: block; }

/* ---------- Herói ---------- */
.hero {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  gap: clamp(1.4rem, 2.6vw, 2rem);
  padding: clamp(2rem, 5vh, 4rem) 0;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.8rem, 9.5vw, 9.5rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
}
.hero__title span { display: block; }
.hero__title em {
  font-style: italic;
  color: var(--accent-soft);
  position: relative;
}

.hero__sub {
  font-size: clamp(.78rem, 3.5vw, 1.12rem);
  line-height: 1.7;
  color: color-mix(in srgb, var(--fg) 62%, var(--muted));
}
.hero__sub span { display: block; white-space: nowrap; }

/* ---------- CTA (WhatsApp) ---------- */
.wa-cta {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 0 1.9rem; height: 58px;
  background: var(--accent); color: var(--on-accent);
  text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  letter-spacing: .04em;
  transition: filter .25s var(--ease), box-shadow .3s var(--ease), transform .2s var(--ease);
}
.wa-cta:hover { filter: brightness(1.06); box-shadow: 0 10px 36px -8px color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-2px); }
.wa-cta:active { transform: translateY(0); }
.wa-cta__icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
.wa-cta__label { white-space: nowrap; }
.wa-cta__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.wa-cta:hover .wa-cta__arrow { transform: translateX(4px); }

.hero__portfolio {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Rodapé ---------- */
.footer {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.footer__label, .footer__badge-sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.footer__contact { display: flex; flex-direction: column; gap: .55rem; }
.footer__phone { display: inline-flex; align-items: center; gap: .5rem; font-size: 1rem; color: var(--fg); text-decoration: none; transition: color .25s var(--ease); }
.footer__phone:hover { color: var(--accent-soft); }
.footer__wpp { width: 16px; height: 16px; fill: currentColor; flex: none; }

.footer__badge { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; }
.footer__badge-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.footer__badge-text { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-soft); font-weight: 500; }
.footer__dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
  animation: blip 2.4s ease-out infinite;
}

/* ---------- Animações ---------- */
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: .9; transform: scale(1); } 50% { opacity: .5; transform: scale(.94); } }
@keyframes blip  { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 70%,100% { box-shadow: 0 0 0 9px transparent; } }

/* Entrada (revelar) */
.reveal { opacity: 0; transform: translateY(22px); }
.is-ready .reveal { animation: rise .9s var(--ease) forwards; }
.is-ready .reveal[data-reveal="1"] { animation-delay: .05s; }
.is-ready .reveal[data-reveal="2"] { animation-delay: .18s; }
.is-ready .reveal[data-reveal="3"] { animation-delay: .30s; }
.is-ready .reveal[data-reveal="4"] { animation-delay: .46s; }
.is-ready .reveal[data-reveal="5"] { animation-delay: .58s; }
.is-ready .reveal[data-reveal="6"] { animation-delay: .70s; }
.is-ready .reveal[data-reveal="7"] { animation-delay: .80s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsivo ---------- */
@media (max-width: 600px) {
  .header__location { display: none; }
  .wa-cta { width: 100%; justify-content: center; }
  .footer { flex-direction: column; align-items: center; text-align: center; gap: 1.4rem; }
  .footer__contact { align-items: center; }
  .footer__badge { align-items: center; }
  .footer__dot { align-self: center; }
}

/* Ultrawide: limita a largura do conteúdo pra não esticar demais */
@media (min-width: 1800px) {
  .hero__title { font-size: 9rem; }
}

/* Acessibilidade: respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
