/* ============================================================
   NYX DESIGN SYSTEM v2 — production homepage
   Type scale 1.25 / 17px base · 4px spacing unit · token-driven
   ============================================================ */
:root {
  --ink-900: #221C12; --ink-700: #4A4133; --ink-500: #6E6354;
  --bronze-600: #8C7A66; --bronze-400: #B8A78F;
  --gold-500: #B98F4E; --gold-300: #C9A96E;
  --cream-100: #FAF8F4; --cream-200: #F5F2ED; --cream-300: #ECE7DE;
  --night-900: #1C160D; --night-800: #2C2416;
  --on-night: #F5F2ED; --on-night-dim: rgba(245,242,237,0.64);
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem;
  --text-md: 1.25rem; --text-lg: 1.563rem; --text-xl: 1.953rem;
  --text-2xl: 2.441rem; --text-3xl: 3.052rem; --text-4xl: 3.815rem;
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-12: 3rem; --s-16: 4rem; --s-24: 6rem;
  --measure: 64ch; --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --shadow-1: 0 1px 2px rgba(34,28,18,0.06), 0 4px 12px rgba(34,28,18,0.05);
  --shadow-2: 0 2px 4px rgba(34,28,18,0.07), 0 16px 40px rgba(34,28,18,0.10);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--serif); font-size: var(--text-base); line-height: 1.65; color: var(--ink-900); background: var(--cream-100); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.label { font-family: var(--sans); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze-600); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink-900); color: var(--cream-100); padding: var(--s-3) var(--s-6); z-index: 200; font-family: var(--sans); }
.skip-link:focus { left: 0; }

/* ---- Header ---- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(250,248,244,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--cream-300); transition: box-shadow 0.3s var(--ease-out); }
.header.scrolled { box-shadow: var(--shadow-1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: var(--s-4); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: var(--s-8); align-items: center; }
.nav a { font-family: var(--sans); font-size: var(--text-sm); font-weight: 400; letter-spacing: 0.08em; text-decoration: none; color: var(--ink-700); padding: var(--s-2) 0; position: relative; transition: color 0.25s var(--ease-out); }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold-500); transition: width 0.3s var(--ease-out); }
.nav a:hover { color: var(--ink-900); }
.nav a:hover::after, .nav a[aria-current]::after { width: 100%; }
.nav a[aria-current] { color: var(--ink-900); }
.nav-cta { font-family: var(--sans); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--cream-100); background: var(--ink-900); padding: var(--s-3) var(--s-6); transition: background 0.3s var(--ease-out); white-space: nowrap; }
.nav-cta:hover { background: var(--gold-500); }
#google_translate_element { min-height: 26px; }

/* Mobile toggle + nav */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: var(--s-3); background: none; border: none; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--ink-900); transition: all 0.3s; }
.mobile-nav { display: none; position: fixed; top: 76px; left: 0; right: 0; background: var(--cream-100); padding: var(--s-4) var(--gutter) var(--s-8); box-shadow: var(--shadow-2); z-index: 99; }
.mobile-nav.active { display: block; }
.mobile-nav a { display: block; padding: var(--s-4) 0; font-family: var(--sans); font-size: var(--text-base); letter-spacing: 0.06em; text-decoration: none; color: var(--ink-900); border-bottom: 1px solid var(--cream-300); }
.mobile-nav a:last-child { color: var(--gold-500); border-bottom: none; }
.mobile-nav-backdrop { display: none; position: fixed; inset: 76px 0 0 0; background: rgba(28,22,13,0.35); z-index: 98; }
.mobile-nav-backdrop.active { display: block; }

/* ---- Hero ---- */
.hero:has(> .hero-media) { display: grid; grid-template-columns: 7fr 5fr; min-height: min(86vh, 820px); }
.hero-media { position: relative; overflow: hidden; background: var(--night-800); }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero-slide.active { opacity: 1; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,22,13,0.42), transparent 45%); pointer-events: none; }
.hero-media-caption { position: absolute; left: var(--s-6); bottom: var(--s-6); z-index: 2; font-family: var(--sans); font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,242,237,0.92); }
.hero-media-caption b { color: var(--gold-300); font-weight: 500; margin-right: var(--s-2); }
.hero-frames { position: absolute; right: var(--s-6); bottom: var(--s-6); z-index: 3; display: flex; gap: var(--s-2); }
.hero-frame { width: 28px; height: 28px; padding: 13px 0; background: none; border: none; cursor: pointer; position: relative; }
.hero-frame::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(245,242,237,0.35); transition: all 0.3s; }
.hero-frame:hover::after { background: rgba(245,242,237,0.75); }
.hero-frame.active::after { background: var(--gold-300); height: 2px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(28,22,13,0.3); border: none; border-radius: 50%; color: var(--on-night); cursor: pointer; opacity: 0.75; transition: all 0.3s var(--ease-out); }
.hero-arrow:hover { opacity: 1; background: rgba(28,22,13,0.55); }
.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow-prev { left: var(--s-4); }
.hero-arrow-next { right: var(--s-4); }
.hero-panel { background: var(--cream-200); padding: clamp(var(--s-8), 5vw, var(--s-16)); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-12); }
.hero-eyebrow { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-6); }
.hero-eyebrow::before { content: ''; width: var(--s-8); height: 1px; background: var(--gold-500); flex-shrink: 0; }
.hero-title { font-family: var(--serif); font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl)); font-weight: 300; line-height: 1.02; letter-spacing: -0.01em; margin-bottom: var(--s-6); }
.hero-lede { font-size: var(--text-md); font-style: italic; line-height: 1.55; color: var(--ink-700); max-width: 34ch; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--cream-300); margin-bottom: var(--s-8); }
.stat-value { font-family: var(--serif); font-size: var(--text-xl); font-weight: 300; line-height: 1.1; }
.stat-label { margin-top: var(--s-1); }
.btn-row { display: flex; gap: var(--s-6); flex-wrap: wrap; align-items: center; }
.btn-primary { font-family: var(--sans); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; background: var(--ink-900); color: var(--cream-100); padding: var(--s-4) var(--s-8); transition: background 0.3s var(--ease-out); display: inline-block; }
.btn-primary:hover { background: var(--gold-500); }
.btn-ghost { font-family: var(--sans); font-size: var(--text-sm); font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--ink-900); padding: var(--s-4) 0; border-bottom: 1px solid var(--ink-900); transition: all 0.3s var(--ease-out); }
.btn-ghost:hover { color: var(--gold-500); border-color: var(--gold-500); }

/* ---- Proof bar ---- */
.proof { background: var(--cream-100); border-bottom: 1px solid var(--cream-300); padding: var(--s-6) 0; }
.proof-inner { display: flex; justify-content: center; gap: clamp(var(--s-6), 6vw, var(--s-16)); flex-wrap: wrap; align-items: center; }
.proof-item { display: flex; align-items: center; gap: var(--s-3); font-family: var(--sans); font-size: var(--text-sm); color: var(--ink-700); }
.proof-item svg { width: 18px; height: 18px; color: var(--gold-500); flex-shrink: 0; }

/* ---- Sections ---- */
.section { padding-block: var(--s-24); }
.section-head { max-width: var(--measure); margin-bottom: var(--s-12); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .label { display: block; margin-bottom: var(--s-4); }
.section-title { font-size: clamp(var(--text-xl), 3.6vw, var(--text-3xl)); font-weight: 300; line-height: 1.12; }
.section-intro { margin-top: var(--s-6); font-size: var(--text-md); color: var(--ink-700); line-height: 1.7; }

/* ---- Projects ---- */
.projects { background: var(--cream-200); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.project-card { background: var(--cream-100); text-decoration: none; color: inherit; border: 1px solid var(--cream-300); display: flex; flex-direction: column; transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.project-figure { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.project-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.project-card:hover .project-figure img { transform: scale(1.04); }
.badge { position: absolute; top: var(--s-4); left: var(--s-4); font-family: var(--sans); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; background: rgba(250,248,244,0.95); color: var(--ink-900); padding: var(--s-2) var(--s-4); z-index: 2; }
.badge.dark { background: rgba(28,22,13,0.85); color: var(--on-night); }
.project-body { padding: var(--s-8); display: flex; flex-direction: column; gap: var(--s-4); flex: 1; }
.project-name { font-size: var(--text-lg); font-weight: 400; }
.project-desc { color: var(--ink-700); line-height: 1.7; flex: 1; }
.project-facts { display: grid; grid-template-columns: repeat(3, auto); gap: var(--s-8); padding-top: var(--s-4); border-top: 1px solid var(--cream-300); }
.fact-v { font-size: var(--text-md); }
.project-link { font-family: var(--sans); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-900); }
.project-link::after { content: ' →'; }
.project-card:hover .project-link { color: var(--gold-500); }

/* ---- Invest band ---- */
.invest-band { background: var(--night-800); color: var(--on-night); }
.invest-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); flex-wrap: wrap; padding-block: var(--s-16); }
.invest-copy h2 { font-size: var(--text-2xl); font-weight: 300; line-height: 1.15; max-width: 24ch; }
.invest-copy .label { color: var(--gold-300); margin-bottom: var(--s-3); display: block; }
.invest-points { display: flex; gap: var(--s-8); margin-top: var(--s-6); flex-wrap: wrap; }
.invest-point { font-family: var(--sans); font-size: var(--text-sm); color: var(--on-night-dim); }
.invest-point b { display: block; font-family: var(--serif); font-size: var(--text-xl); font-weight: 300; color: var(--on-night); }
.btn-gold { font-family: var(--sans); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; background: var(--gold-300); color: var(--night-900); padding: var(--s-4) var(--s-8); transition: background 0.3s var(--ease-out); flex-shrink: 0; }
.btn-gold:hover { background: var(--cream-100); }

/* ---- Philosophy ---- */
.philosophy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); align-items: start; }
.philosophy-col h3 { font-size: var(--text-lg); font-weight: 400; margin-bottom: var(--s-4); }
.philosophy-col p { color: var(--ink-700); line-height: 1.8; margin-bottom: var(--s-4); max-width: var(--measure); }

/* ---- Trust strip ---- */
.trust { background: var(--cream-200); border-block: 1px solid var(--cream-300); }
.trust-inner { display: flex; align-items: center; gap: var(--s-12); padding-block: var(--s-12); flex-wrap: wrap; }
.trust-qr { flex-shrink: 0; border: 1px solid var(--cream-300); padding: var(--s-2); background: white; }
.trust-copy { flex: 1; min-width: 280px; }
.trust-copy h2 { font-size: var(--text-xl); font-weight: 300; margin-bottom: var(--s-3); }
.trust-copy p { color: var(--ink-700); max-width: var(--measure); }
.trust-ids { display: flex; gap: var(--s-8); margin-top: var(--s-4); flex-wrap: wrap; }
.trust-id { font-family: var(--sans); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-600); }
.trust-id b { display: block; font-family: var(--serif); font-size: var(--text-md); font-weight: 500; color: var(--ink-900); letter-spacing: 0; text-transform: none; }

/* ---- Contact ---- */
.contact-cta { text-align: center; }
.contact-cta .section-title { max-width: 20ch; margin-inline: auto; }
.contact-methods { display: flex; justify-content: center; gap: var(--s-4); margin-top: var(--s-12); flex-wrap: wrap; }
.method { display: flex; align-items: center; gap: var(--s-3); font-family: var(--sans); font-size: var(--text-sm); text-decoration: none; color: var(--ink-900); border: 1px solid var(--cream-300); padding: var(--s-4) var(--s-6); background: var(--cream-100); transition: all 0.3s var(--ease-out); }
.method:hover { border-color: var(--gold-500); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.method svg { width: 18px; height: 18px; color: var(--gold-500); }
.reply-note { margin-top: var(--s-6); font-style: italic; color: var(--ink-500); }

/* ---- Footer ---- */
.footer { background: var(--night-900); color: var(--on-night); padding-block: var(--s-16) var(--s-8); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-12); padding-bottom: var(--s-12); border-bottom: 1px solid rgba(245,242,237,0.12); }
.footer-brand-mark { font-family: var(--serif); font-size: var(--text-md); letter-spacing: 0.38em; text-transform: uppercase; }
.footer-tag { margin-top: var(--s-4); font-style: italic; color: var(--on-night-dim); max-width: 30ch; }
.footer h3 { font-family: var(--sans); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-300); margin-bottom: var(--s-4); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.footer a { color: var(--on-night-dim); text-decoration: none; font-family: var(--sans); font-size: var(--text-sm); transition: color 0.25s; }
.footer a:hover { color: var(--on-night); }
.footer address { font-style: normal; color: var(--on-night-dim); font-family: var(--sans); font-size: var(--text-sm); line-height: 1.7; }
.footer-legal { padding-top: var(--s-8); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; align-items: center; font-family: var(--sans); font-size: var(--text-xs); color: var(--on-night-dim); letter-spacing: 0.04em; }
.social-row { display: flex; gap: var(--s-4); margin-top: var(--s-6); }
.social-row a { width: 34px; height: 34px; border: 1px solid rgba(245,242,237,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--on-night-dim); transition: all 0.3s var(--ease-out); }
.social-row a:hover { color: var(--gold-300); border-color: var(--gold-300); }
.social-row svg { width: 15px; height: 15px; }

/* ---- WhatsApp float + mobile call bar ---- */
.whatsapp-float { position: fixed; bottom: 28px; right: 28px; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 90; box-shadow: var(--shadow-2); transition: transform 0.3s var(--ease-out); }
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 30px; height: 30px; }
.call-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--night-900); padding: var(--s-3) var(--s-4); display: none; z-index: 95; }
.call-bar-inner { display: flex; gap: var(--s-3); max-width: 500px; margin-inline: auto; }
.call-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); font-family: var(--sans); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-radius: 4px; color: white; }
.call-bar a svg { width: 18px; height: 18px; }
.call-bar .cb-call { background: var(--bronze-400); color: var(--night-900); }
.call-bar .cb-wa { background: #25D366; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero:has(> .hero-media) { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { min-height: 52vh; }
  .hero-panel { gap: var(--s-8); }
  .project-grid, .philosophy-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav, .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
  .section { padding-block: var(--s-16); }
}
@media (max-width: 768px) {
  .call-bar { display: block; }
  body { padding-bottom: 64px; }
  .whatsapp-float { display: none; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--s-4); }
  .invest-inner { padding-block: var(--s-12); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- v1 compatibility aliases (legacy inline styles still reference these) ---- */
:root {
  --nyx-taupe: #B8A78F; --nyx-cream: #F5F2ED; --nyx-dark: #2C2416;
  --nyx-gold: #C9A96E; --nyx-white: #FFFFFF;
}
/* v2 header is sticky (in-flow) — kill the fixed-header offsets v1 pages carried */
.page-hero, .contact-hero, .invest-hero, .about-hero, .content-wrapper, .hero { margin-top: 0 !important; }
