/* =========================================================
   DR CHARMAINE ELLIOTT
   Prestigious private clinical practice
   Dark navy / warm gold / precise typography
   ========================================================= */

/* ---------- Tokens ---------- */

:root {
  --navy:        #031429;
  --navy-soft:   #0a2342;
  --gold:        #b08d55;
  --gold-light:  rgba(176, 141, 85, 0.12);
  --white:       #ffffff;

  --text-primary:   rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.68);
  --text-muted:     rgba(255, 255, 255, 0.38);

  --rule:        rgba(255, 255, 255, 0.07);
  --rule-gold:   rgba(176, 141, 85, 0.3);

  --page-max:    1100px;
  --prose-max:   720px;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ---------- Base ---------- */

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, var(--navy-soft) 0%, var(--navy) 70%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--white);
}

h1 { font-size: clamp(3rem, 6.5vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

p {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.9;
  margin: 0 0 1.8rem;
}

p:last-child { margin-bottom: 0; }

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Utility ---------- */

.label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

.rule {
  width: 1px;
  height: 60px;
  background: var(--rule-gold);
  margin: 0 auto;
}

.rule-h {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2000;
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-nav {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 2.2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--white);
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
}

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

.nav-links a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.25s;
  white-space: nowrap; /* PREVENTS LINK TEXT WRAPPING */
}

.nav-links a:hover { color: var(--white); }

.nav-links .nav-access {
  color: var(--gold);
  border: 1px solid var(--rule-gold);
  padding: 0.65rem 1.4rem;
  transition: background 0.25s, color 0.25s;
}

.nav-links .nav-access:hover {
  background: var(--gold);
  color: var(--navy);
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 2;
}

.site-footer a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--gold); }

/* ---------- CTA Button ---------- */

.btn {
  display: inline-block;
  padding: 1.6rem 5rem;
  border: 1px solid var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  transition: background 0.35s, color 0.35s, transform 0.35s;
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(176,141,85,0.2);
}

/* ---------- Page wrapper ---------- */

.page-content {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 4rem;
}

/* ---------- Responsive ---------- */

/* Intermediate breakpoint: tighten nav before mobile collapse */
@media (max-width: 1060px) {
  .nav-links { gap: 1.6rem; }
  .nav-links a { font-size: 0.68rem; }
}

@media (max-width: 900px) {
  .site-nav { padding: 2rem 2rem; }
  .nav-links { gap: 1.4rem; }
  .page-content { padding: 0 2rem; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .site-nav { padding: 1.8rem 2rem; }
}

/* ---------- Mandate pages (light) ---------- */

body.mandate-page {
  background: #fff;
  color: #334155;
}

body.mandate-page .site-header {
  background: rgba(3, 20, 41, 0.97);
}

body.mandate-page h2, body.mandate-page h3 {
  color: #031429;
}

body.mandate-page p {
  color: #4a5568;
}

body.mandate-page .site-footer {
  background: #031429;
  border-top: 1px solid rgba(255,255,255,0.06);
}

body.mandate-page .site-footer p,
body.mandate-page .site-footer a {
  color: rgba(255,255,255,0.4);
}
