/* ============================================================
   EMAGRECENTRO — Design tokens & base
   Paleta: dourado (logo) + azul petróleo profundo + creme
   Tipografia: Cinzel (display, matching wordmark) +
              Cormorant Garamond (editorial italics) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Dourado — extraído do logo */
  --gold-50:  #F7EDD2;
  --gold-100: #EBD9A8;
  --gold-200: #DCC07A;
  --gold-400: #C9A24B;   /* primário */
  --gold-500: #B68C36;
  --gold-700: #8A6A1F;
  --gold-glow: rgba(201, 162, 75, 0.35);

  /* Azul petróleo */
  --teal-1000: #0F2731;
  --teal-900:  #163645;
  --teal-800:  #1E4654;   /* match BG do hero */
  --teal-700:  #2A6072;
  --teal-600:  #3A7E91;
  --teal-50:   #E9F0F2;

  /* Neutros quentes */
  --cream:     #FAF6EE;
  --bone:      #F2EBDB;
  --paper:     #FFFFFF;
  --ink:       #15171A;
  --ink-2:     #3D4651;
  --ink-3:     #6B7480;
  --line:      rgba(21, 23, 26, 0.10);
  --line-gold: rgba(201, 162, 75, 0.22);
  --line-on-dark: rgba(235, 217, 168, 0.18);

  /* Tipografia */
  --font-display: 'Cinzel', serif;
  --font-editorial: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing scale (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Layout */
  --container: 1240px;
  --container-narrow: 1080px;
  --nav-h: 80px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 320ms;
  --dur-slow: 600ms;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

/* ----------------------------------------------------------------
   Type
   ---------------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.editorial {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.eyebrow.on-dark { color: var(--gold-200); }

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 14px;
  opacity: 0.7;
}

/* ----------------------------------------------------------------
   Layout helpers
   ---------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding: var(--sp-10) 0; }
.section-sm { padding: var(--sp-9) 0; }

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-sm { padding: 56px 0; }
  .container { padding: 0 var(--sp-5); }
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-400);
  color: var(--teal-1000);
  border-color: var(--gold-400);
}
.btn-primary:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px var(--gold-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-400);
  border-color: var(--gold-400);
}
.btn-ghost:hover {
  background: var(--gold-400);
  color: var(--teal-1000);
  transform: translateY(-2px);
}

.btn-ghost.on-light {
  color: var(--teal-900);
  border-color: var(--teal-900);
}
.btn-ghost.on-light:hover {
  background: var(--teal-900);
  color: var(--gold-100);
}

.btn-lg { padding: 20px 36px; font-size: 14px; }

.btn .arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ----------------------------------------------------------------
   Nav
   ---------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(250, 246, 238, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: all var(--dur) var(--ease);
}
.nav.on-dark {
  background: rgba(15, 39, 49, 0.55);
  border-bottom-color: var(--line-on-dark);
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.nav-logo { height: 40px; display: block; }
.nav-logo img { height: 100%; width: auto; }

.nav-links {
  display: flex;
  gap: var(--sp-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--gold-500); }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--gold-500);
  transition: width var(--dur) var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold-500); }
.nav-links a.active::after { width: 100%; }

.nav.on-dark .nav-links a { color: var(--gold-100); }
.nav.on-dark .nav-links a:hover { color: var(--gold-200); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-inner .btn { display: none; }
  .nav-logo { height: 32px; }
  .nav-logo img { height: 32px; width: auto; max-width: none; object-fit: contain; }
}

/* ----------------------------------------------------------------
   Hairline ornament — golden line with diamond
   ---------------------------------------------------------------- */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold-400);
}
.ornament::before,
.ornament::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.ornament .dot {
  width: 6px; height: 6px;
  background: currentColor;
  transform: rotate(45deg);
}

/* ----------------------------------------------------------------
   Reveal-on-scroll
   ---------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */

.footer {
  background: var(--teal-1000);
  color: var(--gold-100);
  padding: 80px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  margin-bottom: 64px;
}
.footer-logo img { height: 56px; width: auto; margin-bottom: 24px; }
.footer p { color: rgba(235, 217, 168, 0.7); line-height: 1.7; margin: 0 0 16px; }
.footer h5 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a {
  color: rgba(235, 217, 168, 0.7);
  transition: color var(--dur) var(--ease);
}
.footer ul a:hover { color: var(--gold-200); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(235, 217, 168, 0.5);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* WhatsApp floating */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.5);
  transition: transform var(--dur) var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: white; }
