/* ============================================
   COMPANIO — SHARED STYLES
   Aesthetic: Luxury Dark / Editorial
   ============================================ */

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

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0b0f1a;
  --navy2:   #111827;
  --gold:    #c9a84c;
  --gold2:   #e8cc7e;
  --cream:   #f5f0e8;
  --muted:   #8b8fa8;
  --border:  rgba(201,168,76,.18);
  --glass:   rgba(255,255,255,.04);
  --radius:  12px;
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .5;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(11,15,26,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--cream);
}

.nav-logo svg { flex-shrink: 0; }
.nav-logo span em { color: var(--gold); font-style: normal; }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
}

.nav-links a {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: .5rem 1.3rem;
  border-radius: 50px;
  font-weight: 500 !important;
  transition: background .25s, transform .2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold2) !important; transform: translateY(-1px); }

/* ── FOOTER ── */
.footer {
  background: #070a12;
  border-top: 1px solid var(--border);
  padding: 4rem 3rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}
.footer-brand p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.7;
  margin-top: .8rem;
  max-width: 260px;
}
.footer-col h4 {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: .6rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem;
  color: var(--muted);
}
.footer-bottom .dot { color: var(--gold); margin: 0 .5rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .25s;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,.3); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── SECTION LABEL ── */
.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
}

/* ── GLASS CARD ── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  padding: 2rem;
}

/* ── PAGE WRAPPER ── */
.page-content {
  padding-top: 90px;
}

/* ── HERO INNER (sub-pages) ── */
.page-hero {
  padding: 6rem 3rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(201,168,76,.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── DIVIDER ── */
.divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}

/* ── MOBILE NAV TOGGLE ── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--cream); margin: 5px 0;
  transition: all .3s;
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 0 30%;
    flex-direction: column; justify-content: center;
    background: var(--navy2);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform .35s;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .page-hero { padding: 4rem 1.5rem 3rem; }
}