/* ============================================================
   THE YORK GROUP — Design System
   Aesthetic: Refined executive consulting. Navy + Gold.
   ============================================================ */

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

:root {
  --navy:       #0A1628;
  --navy-mid:   #162240;
  --navy-light: #1E3050;
  --gold:       #C4983A;
  --gold-light: #DDB96A;
  --gold-pale:  #F5EDD8;
  --white:      #FFFFFF;
  --off-white:  #F8F6F2;
  --gray-light: #ECEAE6;
  --gray-mid:   #8B8680;
  --text:       #1A1A1A;
  --text-light: #5A5550;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --max-width: 1160px;
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { font-size: 1rem; line-height: 1.75; color: var(--text-light); }

.overline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,152,58,0.3);
}

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

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

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,152,58,0.15);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo-text span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-links .nav-cta a {
  background: var(--gold);
  color: var(--navy);
  padding: 8px 20px;
  font-weight: 600;
}
.nav-links .nav-cta a:hover { background: var(--gold-light); color: var(--navy); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── Hero (dark) ── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,152,58,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,48,80,0.6) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero h1 {
  color: var(--white);
  margin: 16px 0 28px;
  line-height: 1.1;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Page Hero (interior pages) ── */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 80px) 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(196,152,58,0.05) 100%);
  pointer-events: none;
}

.page-hero .overline { margin-bottom: 16px; }
.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  max-width: 600px;
}

/* ── Section Headers ── */
.section-header { margin-bottom: 64px; }
.section-header h2 { margin: 12px 0 20px; }
.section-header p { max-width: 580px; font-size: 1.05rem; }

.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 40px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

/* ── Dark Section ── */
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.65); }
.section-dark .overline { color: var(--gold-light); }

/* ── Off-white Section ── */
.section-light { background: var(--off-white); }

/* ── Divider ── */
.gold-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 24px 0;
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--navy-mid);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(196,152,58,0.2);
}

.stat-item {
  padding: 32px 40px;
  border-right: 1px solid rgba(196,152,58,0.15);
  text-align: center;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── Two Column ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.two-col.reversed > *:first-child { order: 2; }
.two-col.reversed > *:last-child { order: 1; }

/* ── Three Column Grid ── */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ── Client Logo Bar ── */
.client-bar {
  padding: 48px 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.client-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.client-logo-item {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-mid);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.client-logo-item:hover { color: var(--navy); }

/* ── Footer ── */
.footer {
  background: #060E1A;
  color: rgba(255,255,255,0.6);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  max-width: 280px;
  margin-top: 16px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: 10px; }
.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Forms ── */
.form-group {
  margin-bottom: 24px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── Accordion ── */
.accordion-item {
  border-bottom: 1px solid var(--gray-light);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.accordion-trigger .icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.accordion-trigger.open .icon { transform: rotate(45deg); }

.accordion-body {
  display: none;
  padding: 0 0 24px;
}
.accordion-body.open { display: block; }

/* ── Tag ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-pale);
  color: var(--gold);
  margin-bottom: 16px;
}

/* ── Process Steps ── */
.process-steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-light);
}
.process-step:last-child { border-bottom: none; }

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  opacity: 0.4;
}

.step-content h3 { margin-bottom: 10px; }

/* ── Calculator ── */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--gray-light);
}

.calc-inputs {
  padding: 56px;
  background: var(--white);
  border-right: 1px solid var(--gray-light);
}

.calc-results {
  padding: 56px;
  background: var(--navy);
  color: var(--white);
}

.result-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(196,152,58,0.2);
}
.result-item:last-child { border-bottom: none; }

.result-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.result-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.result-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
}

.calc-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 32px;
  line-height: 1.6;
}

/* ── Range Slider Styling ── */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--gray-light);
  border: none;
  border-radius: 2px;
  outline: none;
  padding: 0;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  margin-top: -7px;
}
.range-row { display: flex; align-items: center; gap: 16px; }
.range-val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  min-width: 70px;
  text-align: right;
}

/* ── Team Grid ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.team-card {
  background: var(--off-white);
  padding: 36px;
  transition: all 0.3s;
}
.team-card:hover {
  background: var(--navy);
  transform: translateY(-4px);
}
.team-card:hover h3,
.team-card:hover p,
.team-card:hover a { color: var(--white); }
.team-card .region {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.team-card p { font-size: 0.88rem; margin-bottom: 12px; }
.team-card a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.2s;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .two-col.reversed > * { order: unset; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .calc-wrapper { grid-template-columns: 1fr; }
  .calc-inputs { border-right: none; border-bottom: 1px solid var(--gray-light); }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--navy); padding: 24px; gap: 20px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .three-col { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .calc-inputs { padding: 32px 24px; }
  .calc-results { padding: 32px 24px; }
}

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

.animate {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.animate.delay-1 { animation-delay: 0.15s; }
.animate.delay-2 { animation-delay: 0.3s; }
.animate.delay-3 { animation-delay: 0.45s; }
.animate.delay-4 { animation-delay: 0.6s; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
