/* ============================================================
   WHIFC — Haute Horlogerie / Swiss Luxury Medical Sanctuary
   Unified Multi-Page Design System
   ============================================================ */
:root {
  --obsidian: #06111B;
  --obsidian-2: #0B1B2B;
  --obsidian-3: #10253A;
  --ivory: #F6F2EA;
  --ivory-2: #EDE7DC;
  --white: #FFFFFF;
  --gold: #C6A368;
  --gold-bright: #DFC08A;
  --gold-dim: rgba(198, 163, 104, 0.28);
  --teal: #16667D;
  --ink: #0E1B26;
  --muted: #5C6B78;
  --light-muted: rgba(246, 242, 234, 0.72);
  --hairline-dark: rgba(255, 255, 255, 0.11);
  --hairline-light: rgba(14, 27, 38, 0.11);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  max-width: 100%;
  overflow-x: clip;
  background: var(--obsidian);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.06;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1320px, calc(100% - 3rem)); margin: 0 auto; }
.grid-safe > * { min-width: 0; }

/* Scroll Progress Line */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 0%; z-index: 10001;
  background: linear-gradient(90deg, #16667D 0%, #C6A368 55%, #F2D8A7 100%);
  box-shadow: 0 0 12px rgba(223, 192, 138, 0.65);
  pointer-events: none; transition: width 0.08s linear;
}

/* Header */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 17, 27, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-dim);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand-crest { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 5px; border: 1px solid var(--gold); flex-shrink: 0; }
.brand-crest img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: #fff; white-space: nowrap; }
.brand-sub { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); display: block; }
.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-links a {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(246, 242, 234, 0.78); white-space: nowrap; position: relative; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.mobile-btn { display: none; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 0.45rem 0.75rem; font-size: 1.1rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.8rem 1.55rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: all 0.28s ease; white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, #C6A368 0%, #A98347 100%); color: #06111B; box-shadow: 0 10px 26px rgba(198,163,104,0.25); }
.btn-gold:hover { background: linear-gradient(135deg, #DFC08A 0%, #C6A368 100%); transform: translateY(-2px); }
.btn-glass { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.24); color: #fff; }
.btn-glass:hover { border-color: var(--gold); background: rgba(255,255,255,0.14); }
.btn-obsidian { background: var(--obsidian); color: #fff; }
.btn-obsidian:hover { background: var(--teal); }

/* Subpage Cinematic Hero */
.page-hero {
  background: linear-gradient(135deg, #06111B 0%, #0E263B 60%, #071624 100%);
  color: #FFFFFF;
  padding: 9.5rem 0 4.5rem;
  border-bottom: 1px solid var(--gold-dim);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -8%; top: -20%; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle, rgba(198,163,104,0.12), transparent 70%);
  pointer-events: none;
}
.kicker {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); color: #fff; margin-bottom: 1rem; max-width: 820px; }
.page-hero h1 em { font-style: italic; color: var(--gold-bright); }
.page-hero p { font-size: 1.02rem; color: var(--light-muted); max-width: 680px; }

/* Sections & Cards */
section.ivory-sec { background: var(--ivory); color: var(--ink); padding: 5.5rem 0; }
section.warm-sec { background: var(--ivory-2); color: var(--ink); padding: 5.5rem 0; }
section.obsidian-sec { background: var(--obsidian); color: #fff; padding: 5.5rem 0; }
.sec-title { font-size: clamp(2.1rem, 3.6vw, 3.2rem); color: var(--obsidian); margin-bottom: 0.75rem; }
.obsidian-sec .sec-title { color: #fff; }
.lux-card {
  background: #fff; border: 1px solid var(--hairline-light); padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.lux-card:hover { border-color: var(--gold); box-shadow: 0 22px 50px rgba(6,17,27,0.09); transform: translateY(-4px); }
.dark-card {
  background: var(--obsidian-2); border: 1px solid var(--gold-dim); padding: 2.25rem; color: #fff;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Footer */
footer.footer { background: #040B12; color: rgba(246,242,234,0.72); padding: 4.5rem 0 2.5rem; border-top: 1px solid var(--gold-dim); }
.f-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--hairline-dark); }
.f-cols h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 1rem; }
.f-cols ul { list-style: none; display: grid; gap: 0.55rem; font-size: 0.85rem; }
.f-cols a:hover { color: #fff; }
.f-legal { padding-top: 1.75rem; font-size: 0.75rem; color: rgba(255,255,255,0.48); display: flex; flex-direction: column; gap: 0.75rem; }
.wa-concierge {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
  background: linear-gradient(135deg, #C6A368 0%, #9E793D 100%); color: #06111B;
  padding: 0.82rem 1.3rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; border-radius: 2px; box-shadow: 0 16px 38px rgba(0,0,0,0.35);
}

@media (max-width: 1024px) { .grid-3, .grid-4, .f-cols { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .nav-links { display: none; position: absolute; top: 80px; left: 0; right: 0; background: rgba(6,17,27,0.98); flex-direction: column; padding: 1.5rem; border-bottom: 1px solid var(--gold-dim); }
  .nav-links.open { display: flex; }
  .nav-right .btn { display: none; }
  .mobile-btn { display: inline-flex; }
  .grid-2, .grid-3, .grid-4, .f-cols { grid-template-columns: 1fr; }
  .page-hero { padding: 7.5rem 0 3.5rem; }
}
