/* ─────────────────────────────────────────
   Core Executive Recruiting — Design System
   ───────────────────────────────────────── */

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

/* ── Tokens ── */
:root {
  --navy:       #0B1728;
  --navy-mid:   #162035;
  --navy-light: #1E2D45;
  --gold:       #1E9E8C;
  --gold-light: #4DBFB0;
  --gold-pale:  #DFF5F2;
  --cream:      #F8F4EC;
  --white:      #FFFFFF;
  --slate:      #4A5568;
  --light:      #8A94A6;
  --border:     #DDD5C0;
  --success:    #22C55E;
  --error:      #EF4444;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Outfit', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-sm:  0 1px 4px rgba(11,23,40,.08);
  --shadow-md:  0 4px 20px rgba(11,23,40,.12);
  --shadow-lg:  0 12px 40px rgba(11,23,40,.18);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font-family: var(--font-sans); cursor: pointer; }

/* ── Typography helpers ── */
.serif { font-family: var(--font-serif); }
.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 18px;
}
.section-heading em { font-style: italic; color: var(--gold); }
.section-sub {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.8;
  font-weight: 300;
  max-width: 580px;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

/* ─────────────────────────────────────────
   NAV
   ───────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(11,23,40,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200,169,81,0.18);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  list-style: none;
  gap: 0;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--navy);
  border-bottom: 1px solid rgba(200,169,81,0.2);
  padding: 24px 32px 32px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover, .nav-drawer a.active { color: var(--gold); }

/* ─────────────────────────────────────────
   PAGE HEADER (dark hero for inner pages)
   ───────────────────────────────────────── */
.page-header {
  background: var(--navy);
  padding: 152px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg, transparent, transparent 80px,
    rgba(200,169,81,0.035) 80px, rgba(200,169,81,0.035) 81px
  );
  pointer-events: none;
}
.page-header-inner { position: relative; z-index: 2; }
.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 18px;
}
.page-header h1 em { font-style: italic; color: var(--gold); }
.page-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.75;
}

/* ─────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold); }

/* ─────────────────────────────────────────
   FORMS
   ───────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,169,81,0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A94A6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* Honeypot */
.hp-field { display: none !important; visibility: hidden; }

/* Form row (2 cols) */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Submit button loading state */
.btn-submit { position: relative; min-width: 160px; }
.btn-submit .btn-text { transition: opacity 0.2s; }
.btn-submit .btn-spinner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .btn-spinner { display: flex; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner-ring {
  width: 20px; height: 20px;
  border: 2px solid rgba(11,23,40,0.2);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Form response messages */
.form-success, .form-error {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
}
.form-success { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; }
.form-error   { background: #fef2f2; border: 1.5px solid #fca5a5; color: #991b1b; }
.form-success.visible, .form-error.visible { display: block; }

/* ─────────────────────────────────────────
   CARDS
   ───────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.card-navy {
  background: var(--navy);
  border-color: transparent;
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(200,169,81,0.12);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 32px;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-brand h3 span { color: var(--gold); }
.footer-logo-img { height: 32px; width: auto; display: block; margin-bottom: 12px; }
.footer-brand .tagline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.75;
  font-weight: 300;
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.22);
}

/* ─────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up   { animation: fadeUp 0.65s ease both; }
.fade-up-2 { animation: fadeUp 0.65s 0.12s ease both; }
.fade-up-3 { animation: fadeUp 0.65s 0.24s ease both; }
.fade-up-4 { animation: fadeUp 0.65s 0.36s ease both; }

/* Intersection observer revealed elements */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────
   UTILITIES
   ───────────────────────────────────────── */
.text-gold  { color: var(--gold); }
.text-light { color: var(--light); }
.text-white { color: var(--white); }
.bg-navy    { background: var(--navy); }
.bg-cream   { background: var(--cream); }
.bg-white   { background: var(--white); }

.check { color: var(--success); font-weight: 700; }
.cross { color: var(--error); }

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav-inner { padding: 0 32px; }
  .nav-links { gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section-pad { padding: 64px 0; }
  .section-pad-sm { padding: 48px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-header { padding: 120px 0 60px; }
}
