/* ═══════════════════════════════════════════════════════════
   EARENDEL MANAGEMENT: Shared Design System
   earendelmgmt.com | Version 1.0 | June 2026
   ═══════════════════════════════════════════════════════════ */

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --charcoal:   #1C1C1E;
  --charcoal-2: #111111;
  --ivory:      #F5F0E8;
  --ivory-2:    #EDE8DF;
  --white:      #FAFAF8;
  --gold:       #B5924C;
  --gold-lt:    #CFA96A;
  --muted:      #6B6560;
  --border:     #DDD7CC;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', -apple-system, sans-serif;
}

/* ─── BASE ───────────────────────────────────────────────── */
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
.label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: block;
}
.divider {
  width: 36px; height: 1px;
  background: var(--gold);
  margin: 20px 0;
}
.divider--center { margin: 20px auto; }
.body-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1300px; margin: 0 auto; padding: 0 48px; }
.section    { padding: 120px 0; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-gold {
  display: inline-block;
  background: var(--gold); color: #fff;
  padding: 16px 40px;
  font-family: var(--sans); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-lt); }

.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.45); color: #fff;
  padding: 16px 40px;
  font-family: var(--sans); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 300;
  transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: #fff; }

.btn-dark {
  display: inline-block;
  background: var(--charcoal); color: #fff;
  padding: 16px 36px;
  font-family: var(--sans); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400;
  transition: background 0.2s;
}
.btn-dark:hover { background: var(--gold); }

/* ─── NAV ────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 48px;
  transition: background 0.4s ease, padding 0.3s ease;
}
#nav.scrolled {
  background: var(--charcoal);
  padding: 18px 48px;
}
.nav-logo { color: white; display: flex; align-items: center; gap: 14px; }
.nav-logo svg { flex-shrink: 0; }
.nav-logo .vl { width: 0.5px; height: 26px; background: rgba(255,255,255,0.28); flex-shrink: 0; }
.nav-logo .wm {
  font-family: var(--serif);
  font-size: 1.05rem; letter-spacing: 0.28em;
  text-transform: uppercase; font-weight: 400;
  display: block; line-height: 1;
}
.nav-logo .sm {
  font-family: var(--sans);
  font-size: 0.48rem; letter-spacing: 0.45em;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-top: 4px;
}
@keyframes nav-spine-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes nav-bar-in   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.nav-logo .e-spine { transform-origin: 50% 0%; animation: nav-spine-in 0.32s cubic-bezier(0.16,1,0.3,1) both; }
.nav-logo .e-bar-t { transform-origin: 0% 50%; animation: nav-bar-in 0.26s cubic-bezier(0.16,1,0.3,1) 0.26s both; }
.nav-logo .e-bar-m { transform-origin: 0% 50%; animation: nav-bar-in 0.26s cubic-bezier(0.16,1,0.3,1) 0.46s both; }
.nav-logo .e-bar-b { transform-origin: 0% 50%; animation: nav-bar-in 0.26s cubic-bezier(0.16,1,0.3,1) 0.66s both; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

.nav-cta {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 26px;
  font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer { background: var(--charcoal-2); padding: 60px 0 36px; }
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 52px;
}
.footer-brand .footer-wm {
  font-family: var(--serif);
  font-size: 1.2rem; letter-spacing: 0.26em; color: #fff; display: block;
}
.footer-brand .footer-sm {
  font-family: var(--sans);
  font-size: 0.5rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-top: 5px;
}
.footer-cols { display: flex; gap: 72px; }
.footer-col h4 {
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 18px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.28);
  font-size: 0.78rem; margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.68rem; color: rgba(255,255,255,0.22);
}

/* ─── CONTACT FORM (shared) ──────────────────────────────── */
.form-group {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
}
.form-group label {
  display: block; font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: transparent; border: none;
  outline: none; color: #fff;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 300;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.22); }
.form-group select { color: rgba(255,255,255,0.7); }
.form-group select option { background: var(--charcoal); }
.form-group textarea { min-height: 80px; resize: none; }
.form-submit {
  margin-top: 40px;
  background: var(--gold); color: #fff; border: none;
  padding: 17px 48px;
  font-family: var(--sans); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  cursor: pointer; transition: background 0.2s; display: block;
}
.form-submit:hover { background: var(--gold-lt); }

/* ─── MOBILE ─────────────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: rgba(255,255,255,0.7);
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }
  #nav { padding: 22px 24px; }
  #nav.scrolled { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-mobile-open .nav-links {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--charcoal);
    align-items: center; justify-content: center;
    gap: 32px; z-index: 998;
  }
  .nav-mobile-open .nav-links a { font-size: 1.1rem; color: rgba(255,255,255,0.8); }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-cols { flex-direction: column; gap: 32px; }
}
