/* Clifford Capital — shared styles */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F2F5F9;
  --navy: #070D20;
  --slate: #374D67;
  --slate-soft: #6B7A92;
  --muted: #8A8578;
  --line: #DDE3EC;
  --line-soft: #E8EDF3;
  --nav-bg: rgba(255,255,255,0.95);
  --card: #FFFFFF;
  --accent: #070D20;
  --accent-text: #FFFFFF;
  --accent-muted: #C9D1E0;
  --accent-line: rgba(255,255,255,0.15);
}

[data-theme="dark"] {
  --bg: #0A0F1F;
  --bg-alt: #121828;
  --navy: #F0EDE5;
  --slate: #93A2BC;
  --slate-soft: #6B7A92;
  --muted: #6B6F7D;
  --line: #1F2842;
  --line-soft: #161D34;
  --nav-bg: rgba(10,15,31,0.95);
  --card: #121828;
  --accent: #060A18;
  --accent-text: #F0EDE5;
  --accent-muted: #93A2BC;
  --accent-line: rgba(147,162,188,0.15);
}

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; cursor: pointer;
  color: var(--slate); transition: all 0.2s;
  font-family: inherit; padding: 0;
}
.theme-toggle:hover { color: var(--navy); border-color: var(--slate-soft); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger menu button */
.nav-menu-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; cursor: pointer;
  color: var(--slate); transition: all 0.2s;
  font-family: inherit; padding: 0;
}
.nav-menu-btn:hover { color: var(--navy); border-color: var(--slate-soft); }
.nav-menu-btn svg { width: 16px; height: 16px; }

/* Full-screen overlay menu */
.nav-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }
.nav-overlay-close {
  position: absolute; top: 18px; right: 24px;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; cursor: pointer;
  color: var(--slate); transition: all 0.2s;
  padding: 0;
}
.nav-overlay-close:hover { color: var(--navy); border-color: var(--slate-soft); }
.nav-overlay-close svg { width: 16px; height: 16px; }
.nav-overlay-links {
  display: flex; flex-direction: column; gap: 24px;
  text-align: center;
}
.nav-overlay-links a {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 6vw, 48px); font-weight: 500;
  color: var(--navy); letter-spacing: -0.02em; line-height: 1;
  transition: color 0.15s;
}
.nav-overlay-links a:hover { color: var(--slate); }
.nav-overlay-foot {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--slate-soft);
}

/* Pulsing status indicator */
.pulse-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase;
  color: #16A34A; font-weight: 600;
}
[data-theme="dark"] .pulse-status { color: #4ADE80; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22C55E; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0); }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Nav */
nav.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 12px 40px;
  display: flex; align-items: center; gap: 24px;
}
.nav-logo { display: flex; align-items: center; margin-right: auto; }
.nav-logo img { height: 56px; width: auto; display: block; }
[data-theme="dark"] .nav-logo img { filter: brightness(0) invert(1); }

.nav-links { display: flex; gap: 36px; font-size: 13px; font-weight: 500; color: var(--slate); }
.nav-links a { transition: color 0.15s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -24px; left: 0; right: 0;
  height: 2px; background: var(--navy);
}

/* Page header */
.page-header {
  max-width: 1240px; margin: 0 auto;
  padding: 48px 40px 32px;
  border-bottom: 1px solid var(--line);
}
.page-header .meta {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--slate); font-weight: 600; margin-bottom: 20px;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 500; line-height: 1;
  letter-spacing: -0.025em; color: var(--navy);
  margin-bottom: 24px; max-width: 900px;
}
.page-header .lead {
  font-size: 19px; font-weight: 300;
  color: var(--slate); line-height: 1.6;
  max-width: 680px;
}

/* Section base */
.section-block {
  max-width: 1240px; margin: 0 auto;
  padding: 80px 40px;
}
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px; gap: 48px; flex-wrap: wrap;
}
.section-head .left { flex: 1; min-width: 320px; }
.section-tag {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--slate); font-weight: 600; margin-bottom: 16px;
}
.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px); font-weight: 500;
  line-height: 1.05; letter-spacing: -0.02em; color: var(--navy);
}
.section-sub {
  font-size: 16px; color: var(--slate); font-weight: 300;
  line-height: 1.6; max-width: 480px; margin-top: 8px;
}

/* Buttons */
.btn {
  padding: 14px 24px; font-size: 13px; font-weight: 500;
  letter-spacing: 0.5px; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 4px; border: 1px solid var(--navy);
}
.btn.primary { background: var(--navy); color: var(--bg); }
.btn.primary:hover { background: var(--slate); border-color: var(--slate); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--navy); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Footer */
footer.site-footer {
  background: var(--bg-alt); color: var(--slate);
  padding: 56px 40px 28px; margin-top: 48px;
  border-top: 1px solid var(--line);
}
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 48px; padding-bottom: 40px; margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 32px; margin-bottom: 16px; }
[data-theme="dark"] .footer-brand img { filter: brightness(0) invert(1); }
.footer-tag {
  font-size: 13px; color: var(--slate); line-height: 1.55;
  font-weight: 300; max-width: 320px; margin-bottom: 16px;
}
.footer-addr { font-size: 12px; color: var(--slate); opacity: 0.75; line-height: 1.7; }
.footer-col h4 {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--slate); opacity: 0.75; font-weight: 600; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 13px; color: var(--slate);
  margin-bottom: 8px; transition: color 0.15s;
}
.footer-col a:hover { color: var(--navy); }
.footer-bottom {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--slate); opacity: 0.7;
  letter-spacing: 0.5px; padding-top: 20px;
}
.disclosure {
  font-size: 11px; color: var(--slate); opacity: 0.65; line-height: 1.6;
  margin-top: 20px; max-width: 980px;
}

/* Default: hamburger hidden on desktop, shown on mobile when nav-links collapse.
   Homepage opts in via body.is-home — hamburger always, nav-links never. */
.nav-menu-btn { display: none; }
body.is-home .nav-menu-btn { display: inline-flex; }
body.is-home .nav-links { display: none; }

/* Card base */
.card-base {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 32px; transition: all 0.2s;
}
.card-base:hover { border-color: var(--slate); }

/* Responsive */
@media (max-width: 900px) {
  .nav-inner, .page-header, .section-block, .footer-inner {
    padding-left: 24px; padding-right: 24px;
  }
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .nav-logo .wordmark { font-size: 18px; }
  .page-header { padding-top: 60px; padding-bottom: 40px; }
  .section-block { padding-top: 56px; padding-bottom: 56px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
