/* ============================================================
   SYNTAXIS — Shared Design System
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --cream:      #faf8f5;
  --dark:       #1c1c27;
  --accent:     #e8633a;
  --stone:      #c4b8a8;
  --text:       #2d2d2d;
  --muted:      #6b6b6b;
  --border:     #e8e3dc;
  --bg-alt:     #f2ede6;
  --header-h:   62px;
  --nav-h:      50px;
  --offset:     112px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--offset);
}
h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; font-weight: 400; }
a { color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; }

/* ── SITE HEADER ─────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; width: 100%; z-index: 300;
  height: var(--header-h);
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.header-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 3rem; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem; color: white;
  text-decoration: none; letter-spacing: -0.02em; flex-shrink: 0;
}
.site-logo span { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 1.5rem; }

/* Language switch */
.lang-switch { display: flex; align-items: center; gap: 0.4rem; }
.lang-sep { color: rgba(255,255,255,0.2); font-size: 0.7rem; }
.lang-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.73rem; font-weight: 600; letter-spacing: 0.09em;
  color: rgba(255,255,255,0.38); text-decoration: none;
  cursor: pointer; transition: color 0.2s; padding: 0.2rem 0;
  background: none; border: none;
}
.lang-btn.active, .lang-btn:hover { color: white; }

/* Book a Call */
.book-call-btn {
  background: var(--accent); color: white;
  padding: 0.5rem 1.2rem; border-radius: 2px;
  text-decoration: none; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.04em; white-space: nowrap;
  transition: opacity 0.2s;
}
.book-call-btn:hover { opacity: 0.86; }

/* Mobile hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.3rem; color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.hamburger:hover { color: white; }

/* ── SITE NAV ────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: var(--header-h); width: 100%;
  z-index: 290; height: var(--nav-h);
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 3rem; height: 100%;
  display: flex; align-items: center;
}
.nav-group { display: flex; align-items: center; gap: 0.1rem; }
.nav-item { position: relative; }

.nav-trigger {
  background: none; border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem; font-weight: 500; color: var(--text);
  padding: 0.5rem 0.85rem; border-radius: 3px;
  display: flex; align-items: center; gap: 0.28rem;
  text-decoration: none; white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}
.nav-trigger:hover { color: var(--accent); }
.nav-trigger.active { color: var(--accent); }
.nav-item.is-open > .nav-trigger { color: var(--accent); }

.dd-chevron {
  width: 10px; height: 6px; flex-shrink: 0;
  transition: transform 0.2s;
}
.nav-item.is-open .dd-chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 5px); left: -0.6rem;
  min-width: 278px; padding: 0.5rem;
  background: white; border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.05);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 0.17s, transform 0.17s, visibility 0.17s;
}
.nav-item.is-open .dropdown {
  opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0);
}
.dd-item {
  display: flex; flex-direction: column; gap: 0.12rem;
  padding: 0.65rem 0.85rem; border-radius: 4px;
  text-decoration: none; transition: background 0.12s;
}
.dd-item:hover { background: var(--bg-alt); }
.dd-item strong {
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem; font-weight: 600; color: var(--dark);
}
.dd-item span { font-size: 0.73rem; color: var(--muted); font-weight: 300; line-height: 1.4; }
.dd-divider { height: 1px; background: var(--border); margin: 0.4rem 0.5rem; }

/* ── MOBILE MENU ─────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed; top: var(--header-h); left: 0; width: 100%;
  z-index: 280; background: white;
  border-bottom: 2px solid var(--border);
  padding: 1.2rem 1.5rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mm-section-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 0.9rem 0 0.4rem;
}
.mm-section-label:first-child { padding-top: 0; }
.mm-links { display: flex; flex-direction: column; gap: 0.1rem; padding-bottom: 0.5rem; }
.mm-link {
  display: block; padding: 0.52rem 0.3rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  border-radius: 3px; transition: color 0.15s;
}
.mm-link:hover { color: var(--accent); }
.mm-divider { height: 1px; background: var(--border); margin: 0.6rem 0; }
.mm-cta {
  display: block; text-align: center;
  background: var(--accent); color: white;
  padding: 0.85rem; border-radius: 3px;
  text-decoration: none; font-weight: 600;
  font-size: 0.88rem; margin-top: 0.8rem;
  letter-spacing: 0.02em;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer { background: var(--dark); padding: 5rem 3rem 0; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  max-width: 1240px; margin: 0 auto;
}
.footer-brand .footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem; color: white; margin-bottom: 0.8rem;
}
.footer-brand .footer-logo span { color: var(--accent); }
.footer-tagline { font-size: 0.83rem; color: var(--stone); font-weight: 300; line-height: 1.75; }
.footer-col h5 {
  font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(196,184,168,0.55); margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.46); text-decoration: none;
  font-size: 0.83rem; font-weight: 300; transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.8rem 0 2rem;
  max-width: 1240px; margin: 0 auto;
}
.footer-copy { font-size: 0.74rem; color: rgba(196,184,168,0.38); }
.footer-legal { display: flex; gap: 1.6rem; }
.footer-legal a {
  font-size: 0.74rem; color: rgba(196,184,168,0.38);
  text-decoration: none; transition: color 0.2s;
}
.footer-legal a:hover { color: var(--accent); }

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: 5rem 3rem 4.5rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-inner { max-width: 1240px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.3rem;
}
.page-hero .eyebrow::before { content: ''; width: 1.4rem; height: 1.5px; background: var(--accent); }
.page-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  color: white; letter-spacing: -0.04em; line-height: 1.1;
  margin-bottom: 1.2rem; max-width: 620px;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p {
  font-size: 1rem; line-height: 1.8; color: var(--stone);
  max-width: 500px; font-weight: 300;
}
.page-hero-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: rgba(196,184,168,0.5);
  margin-bottom: 2rem;
}
.page-hero-breadcrumb a {
  color: rgba(196,184,168,0.5); text-decoration: none; transition: color 0.2s;
}
.page-hero-breadcrumb a:hover { color: var(--accent); }
.page-hero-breadcrumb .sep { color: rgba(196,184,168,0.3); }

/* ── LAYOUT HELPERS ──────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 3rem; }
.section { padding: 6rem 3rem; max-width: 1240px; margin: 0 auto; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); }
.section-border-top { border-top: 1px solid var(--border); }

/* ── TYPOGRAPHY HELPERS ──────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 1.4rem; height: 1.5px; background: var(--accent); }
.eyebrow.no-bar::before { display: none; }
.eyebrow.light { color: var(--accent); }

.h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--dark); letter-spacing: -0.025em;
  line-height: 1.18; margin-top: 0.9rem;
}
.h2.light { color: white; }
.lead {
  font-size: 1rem; line-height: 1.8;
  color: var(--muted); font-weight: 300; max-width: 560px;
  margin-top: 1rem;
}
.lead.light { color: var(--stone); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.9rem 1.8rem; border-radius: 2px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.02em; text-decoration: none;
  cursor: pointer; border: none;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.btn-dark { background: var(--dark); color: white; }
.btn-dark:hover { background: var(--accent); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { opacity: 0.88; }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  background: transparent; padding-left: 0; padding-right: 0;
  color: var(--text);
}
.btn-ghost::after { content: ' →'; }
.btn-ghost:hover { color: var(--accent); }
.btn-ghost.light { color: var(--stone); }
.btn-ghost.light:hover { color: white; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: white; border: 1px solid var(--border);
  border-radius: 3px; padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-dark {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px; padding: 2.5rem;
  transition: border-color 0.25s;
}
.card-dark:hover { border-color: var(--accent); }

/* ── FORMS ───────────────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-row.full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border); background: white;
  font-family: 'Outfit', sans-serif; font-size: 0.9rem; color: var(--text);
  outline: none; border-radius: 2px; transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%; padding: 1.05rem; margin-top: 0.4rem;
  background: var(--dark); color: white; border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em;
  cursor: pointer; border-radius: 2px; transition: background 0.2s;
}
.form-submit:hover { background: var(--accent); }

/* ── FADE IN ─────────────────────────────────────────────── */
.fi {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fi.in { opacity: 1; transform: translateY(0); }
.fi-d1 { transition-delay: 0.08s; }
.fi-d2 { transition-delay: 0.16s; }
.fi-d3 { transition-delay: 0.24s; }
.fi-d4 { transition-delay: 0.32s; }

/* ── TICKER ──────────────────────────────────────────────── */
.ticker { overflow: hidden; background: var(--dark); padding: 0.85rem 0; }
.ticker-track { display: flex; animation: ticker 28s linear infinite; white-space: nowrap; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 0 2.5rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone);
}
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --offset: var(--header-h); }
  .site-nav { display: none; }
  .hamburger { display: block; }
  .header-inner { padding: 0 1.5rem; }
  .lang-switch { display: none; }
  .wrap, .section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .page-hero { padding: 3.5rem 1.5rem; }
  .page-hero-inner { padding: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 0 1.5rem 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem 1.5rem 2rem; }
  .site-footer { padding: 4rem 0 0; }
  .form-row { grid-template-columns: 1fr; }
}
