/* ============================================================
   Makita & Lucato — Design Tokens (Premium Light Theme)
   Cream paper · navy text · brushed gold accents.
   ============================================================ */

:root {
  /* Palette — LIGHT THEME (default) */
  --bg-deep: #f6efe1;    /* warm cream */
  --bg: #f1eadb;         /* paper */
  --bg-soft: #e8dfca;    /* slightly tinted */
  --bg-lift: #ddd0b3;    /* tan */
  --paper: #fbf6ea;      /* lightest */

  --navy-deep: #050b15;
  --navy: #0a1525;
  --navy-soft: #1a263e;

  --gold: #9c7a36;
  --gold-bright: #c79a52;
  --gold-deep: #6e562a;
  --gold-warm: #b8924c;
  --gold-glow: rgba(156,122,54,0.18);

  --text: #0a1525;
  --text-soft: #4a505e;
  --text-mute: #8a8579;
  --line: rgba(10,21,37,0.14);
  --line-soft: rgba(10,21,37,0.06);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Scale */
  --step--2: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem);
  --step-1:  clamp(1.1rem, 1.05rem + 0.3vw, 1.25rem);
  --step-2:  clamp(1.35rem, 1.25rem + 0.5vw, 1.6rem);
  --step-3:  clamp(1.7rem, 1.5rem + 1vw, 2.2rem);
  --step-4:  clamp(2.2rem, 1.8rem + 2vw, 3.2rem);
  --step-5:  clamp(2.6rem, 2rem + 2.6vw, 4rem);
  --step-6:  clamp(3rem, 2.2rem + 3.6vw, 5rem);
  --step-7:  clamp(3.6rem, 2.4rem + 5vw, 6.4rem);

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;
  --radius-lg: 6px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 220ms;
  --t-med: 480ms;
  --t-slow: 900ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-weight: 400;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--navy); color: var(--bg); }

/* ---------- Typography ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.014em;
  line-height: 1.06;
  color: var(--text);
  text-wrap: balance;
}
.display { font-size: var(--step-6); line-height: 1; letter-spacing: -0.026em; font-weight: 300; }
.h1 { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.022em; font-weight: 300; }
.h2 { font-size: var(--step-4); letter-spacing: -0.012em; font-weight: 400; }
.h3 { font-size: var(--step-3); line-height: 1.14; font-weight: 400; }
.h4 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; line-height: 1.25; letter-spacing: -0.005em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-2);
  line-height: 1.42;
  color: var(--text);
  text-wrap: pretty;
  font-style: italic;
}

.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.numeric { font-variant-numeric: tabular-nums lining-nums; }
.kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: 0.95rem;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-wide { max-width: 1480px; }
.wrap-narrow { max-width: 820px; }

section { position: relative; }
.section-pad { padding-block: clamp(100px, 11vw, 180px); }
.section-pad-sm { padding-block: clamp(70px, 7vw, 110px); }

.rule { height: 1px; width: 100%; background: var(--line); }
.rule-gold { height: 1px; width: 64px; background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--t-fast) var(--ease);
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: translateY(101%);
  transition: transform var(--t-med) var(--ease-out);
  z-index: -1;
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform var(--t-med) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-solid {
  background: var(--navy);
  color: var(--bg);
  border-color: var(--navy);
}
.btn-solid::before { background: var(--gold); }
.btn-solid:hover { color: var(--navy); border-color: var(--gold); }

.btn-gold {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}
.btn-gold::before { background: var(--gold-bright); }
.btn-gold:hover { color: var(--navy); }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost::before { background: var(--bg-soft); }
.btn-ghost:hover { color: var(--text); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
}
.btn-link .arrow { transition: transform var(--t-med) var(--ease-out); }
.btn-link:hover .arrow { transform: translateX(6px); }
.btn-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transition: right var(--t-med) var(--ease-out);
}
.btn-link:hover::after { right: 30px; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 32px;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(245, 239, 226, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(13, 26, 46, 0.06);
  transition: padding var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.site-header.scrolled {
  background: rgba(245, 239, 226, 0.96);
  padding: 10px 0;
  border-bottom-color: rgba(13, 26, 46, 0.1);
  box-shadow: 0 1px 0 rgba(13, 26, 46, 0.04), 0 12px 30px -20px rgba(13, 26, 46, 0.12);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  color: var(--text);
}
.brand .brasao {
  width: 38px;
  height: auto;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.brand .name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 4px;
}
.brand .name .top {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.005em;
  font-weight: 500;
}
.brand .name .sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-soft);
  transition: color var(--t-fast) var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.nav-phone .dot { width: 5px; height: 5px; border-radius: 50%; background: #25a564; box-shadow: 0 0 8px rgba(37, 211, 102, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--navy);
  color: var(--bg);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all var(--t-fast) var(--ease);
}
.nav-whatsapp:hover { background: var(--gold); color: var(--navy); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { stroke: var(--text); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav { grid-template-columns: auto auto; }
}

/* ---------- Footer (dark navy, anchor) ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(236, 230, 216, 0.65);
  padding-block: 80px 32px;
  border-top: 1px solid rgba(236, 230, 216, 0.06);
}
.site-footer .brand { color: #ece6d8; }
.site-footer .brand .name .sub { color: rgba(236, 230, 216, 0.5); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h6 {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #d4b574;
  margin: 0 0 22px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; transition: color var(--t-fast) var(--ease); color: rgba(236, 230, 216, 0.65); }
.footer-col a:hover { color: #ece6d8; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(236, 230, 216, 0.1);
  font-size: 0.76rem;
  color: rgba(236, 230, 216, 0.45);
  flex-wrap: wrap;
}
.socials { display: flex; gap: 14px; }
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(236, 230, 216, 0.18);
  color: rgba(236, 230, 216, 0.7);
  transition: all var(--t-fast) var(--ease);
}
.socials a:hover { border-color: #c9a96b; color: #d4b574; }

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }
.reveal[data-delay="7"] { transition-delay: 560ms; }
.reveal[data-delay="8"] { transition-delay: 640ms; }

/* ---------- Utility ---------- */
.gold { color: var(--gold); }
.muted { color: var(--text-soft); }
.italic { font-style: italic; }
.center { text-align: center; }
.flow > * + * { margin-top: 1em; }

/* ---------- WhatsApp Floating ---------- */
.fab-whatsapp {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vw, 36px);
  z-index: 40;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: fab-pulse 2.4s infinite;
  transition: transform var(--t-fast) var(--ease);
}
.fab-whatsapp:hover { transform: scale(1.08); }
@keyframes fab-pulse {
  0% { box-shadow: 0 10px 30px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.6); }
  70% { box-shadow: 0 10px 30px rgba(37,211,102,0.4), 0 0 0 20px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 30px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--t-fast) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--navy);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }

/* ---------- Section variants ---------- */
/* Dark section — for hero, CTA bands, callouts */
.dark-bg {
  --bg-deep: #07101e;
  --bg: #0d1a2e;
  --bg-soft: #14253e;
  --bg-lift: #1a2e4b;
  --paper: #0d1a2e;
  --text: #ece6d8;
  --text-soft: #b8b0a1;
  --text-mute: #7e7868;
  --gold: #c9a96b;
  --gold-bright: #e3c485;
  --line: rgba(201, 169, 107, 0.2);
  --line-soft: rgba(236, 230, 216, 0.08);
  background: var(--bg);
  color: var(--text);
}
.dark-bg .btn { border-color: var(--gold); color: var(--gold); }
.dark-bg .btn::before { background: var(--gold); }
.dark-bg .btn:hover { color: var(--bg); }
.dark-bg .btn-solid { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.dark-bg .btn-solid::before { background: var(--gold-bright); }
.dark-bg .btn-solid:hover { color: var(--navy-deep); }
.dark-bg .btn-ghost { border-color: var(--line); color: var(--text); }
.dark-bg .btn-ghost::before { background: var(--bg-soft); }
.dark-bg .btn-link { color: var(--gold); }
.dark-bg ::selection { background: var(--gold); color: var(--navy-deep); }
