/* ================================================================
   COHEN MORTGAGE — site.css
   Brand-driven stylesheet used across every page
   Edit once here; changes apply everywhere
   ================================================================ */

/* ---------- Self-hosted ATC Timberline ---------- */
@font-face {
  font-family: 'ATC Timberline';
  src: url('/assets/fonts/ATCTimberline-Regular.woff2') format('woff2'),
       url('/assets/fonts/ATCTimberline-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ATC Timberline';
  src: url('/assets/fonts/ATCTimberline-Bold.woff2') format('woff2'),
       url('/assets/fonts/ATCTimberline-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens (Cohen Mortgage brand) ---------- */
:root {
  --cohen-blue: #001A70;
  --cohen-blue-deep: #000E45;
  --cohen-blue-soft: #1A3388;
  --charcoal: #2E2E2E;
  --charcoal-soft: #4A4A4A;
  --white: #FFFFFF;
  --warm-gray: #E7E5E2;
  --warm-sand: #D8CFC4;
  --sand-light: #EDE8E1;
  --muted-sage: #9FAF9B;
  --soft-olive: #7D8C75;
  --steel-blue: #6E8CA3;
  --rule: rgba(46, 46, 46, 0.12);
  --rule-soft: rgba(46, 46, 46, 0.06);
  --rule-dark: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 1px 3px rgba(0, 26, 112, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(0, 26, 112, 0.15);
  --shadow-lg: 0 32px 64px -24px rgba(0, 26, 112, 0.2);

  --font-display: 'ATC Timberline', 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--cohen-blue);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule-soft);
}
.top-strip {
  background: var(--cohen-blue);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.top-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}
.top-strip a { color: rgba(255,255,255,0.88); transition: color 0.2s; }
.top-strip a:hover { color: var(--warm-sand); }
.top-strip-right { display: flex; gap: 24px; align-items: center; }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}
.brand {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.brand-logo {
  height: 144px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.2s;
  letter-spacing: -0.005em;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cohen-blue);
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--cohen-blue); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--cohen-blue);
  color: var(--white) !important;
  padding: 12px 24px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--cohen-blue-deep); color: var(--white) !important; }
.nav-cta::after { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--cohen-blue);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  background: none;
  border-radius: 2px;
}
.btn-primary { background: var(--cohen-blue); color: var(--white); border-color: var(--cohen-blue); }
.btn-primary:hover { background: var(--cohen-blue-deep); border-color: var(--cohen-blue-deep); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark { border-color: var(--cohen-blue); color: var(--cohen-blue); background: transparent; }
.btn-outline-dark:hover { background: var(--cohen-blue); color: var(--white); }
.btn-arrow { font-size: 14px; transition: transform 0.25s; display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
  padding: 100px 0 120px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: var(--sand-light);
  border-radius: 50%;
  opacity: 0.5;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -150px; left: -100px;
  width: 400px; height: 400px;
  background: var(--warm-gray);
  border-radius: 50%;
  opacity: 0.6;
  z-index: 0;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cohen-blue);
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--muted-sage);
}
.hero h1 {
  font-size: clamp(44px, 5.8vw, 72px);
  line-height: 1.08;
  color: var(--cohen-blue);
  font-weight: 400;
  margin-bottom: 28px;
  letter-spacing: -0.025em;
}
.hero h1 .accent { color: var(--soft-olive); }
.hero-lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--charcoal-soft);
  max-width: 540px;
  margin-bottom: 40px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Reviews slideshow ---------- */
.reviews-card {
  background: var(--white);
  padding: 44px 40px 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.reviews-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}
.reviews-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.reviews-brand:hover { opacity: 0.7; }
.reviews-brand:hover .reviews-title { color: var(--cohen-blue-soft); }
.reviews-google-mark { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.reviews-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--cohen-blue);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.reviews-aggregate {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--charcoal-soft);
  margin-top: 2px;
  font-weight: 500;
}
.reviews-aggregate .star-row { display: inline-flex; gap: 1px; color: #F9A825; }
.reviews-aggregate .star-row svg { width: 12px; height: 12px; }
.reviews-stage { position: relative; flex: 1; overflow: hidden; margin-bottom: 20px; }
.review-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.review-slide.active { opacity: 1; pointer-events: auto; }
.review-stars { display: flex; gap: 2px; color: #F9A825; margin-bottom: 16px; }
.review-stars svg { width: 16px; height: 16px; }
.review-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--charcoal);
  margin-bottom: 20px;
  font-weight: 400;
  flex: 1;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
}
.review-avatar {
  width: 36px;
  height: 36px;
  background: var(--warm-sand);
  color: var(--cohen-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  flex-shrink: 0;
}
.review-author { font-size: 13px; font-weight: 600; color: var(--cohen-blue); line-height: 1.2; }
.review-date { font-size: 11px; color: var(--charcoal-soft); margin-top: 2px; font-weight: 500; }
.reviews-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reviews-dots { display: flex; gap: 6px; }
.reviews-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rule);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.reviews-dot:hover { background: var(--muted-sage); }
.reviews-dot.active { background: var(--cohen-blue); width: 20px; border-radius: 3px; }
.reviews-arrows { display: flex; gap: 4px; }
.reviews-arrow {
  width: 32px; height: 32px;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--cohen-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 50%;
  padding: 0;
}
.reviews-arrow:hover { background: var(--cohen-blue); color: var(--white); border-color: var(--cohen-blue); }
.reviews-arrow svg { width: 12px; height: 12px; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--warm-gray); padding: 40px 0; }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 16px; }
.trust-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  color: var(--cohen-blue);
  flex-shrink: 0;
  border-radius: 50%;
}
.trust-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--cohen-blue);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.trust-text span { font-size: 12px; color: var(--charcoal-soft); font-weight: 500; }

/* ---------- Section base ---------- */
.section { padding: 120px 0; }
.section-light { background: var(--white); }
.section-sand { background: var(--sand-light); }
.section-gray { background: var(--warm-gray); }
.section-dark { background: var(--cohen-blue); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 80px; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cohen-blue);
  font-weight: 600;
  margin-bottom: 20px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--muted-sage);
}
.section-head.left .eyebrow::after { display: none; }
.section-dark .eyebrow { color: var(--warm-sand); }
.section-dark .eyebrow::before, .section-dark .eyebrow::after { background: var(--muted-sage); }
.section-head h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.12;
  margin-bottom: 20px;
  font-weight: 400;
}
.section-head h2 .accent { color: var(--soft-olive); }
.section-dark .section-head h2 .accent { color: var(--muted-sage); }
.section-head p { font-size: 18px; color: var(--charcoal-soft); line-height: 1.65; font-weight: 400; }
.section-dark .section-head p { color: rgba(255,255,255,0.78); }

/* ---------- Pillars grid ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.pillar {
  padding: 44px 36px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  transition: background 0.3s ease;
}
.pillar:hover { background: var(--sand-light); }
.pillar-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted-sage);
  margin-bottom: 24px;
  display: block;
  font-weight: 400;
  letter-spacing: 0.1em;
}
.pillar h3 { font-size: 22px; margin-bottom: 14px; line-height: 1.25; color: var(--cohen-blue); }
.pillar p { font-size: 15px; color: var(--charcoal-soft); line-height: 1.7; }

/* ---------- Programs grid ---------- */
.programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.program {
  padding: 48px 40px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  transition: background 0.3s ease;
}
.program:hover { background: var(--sand-light); }
.program-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted-sage);
  margin-bottom: 24px;
  display: block;
  letter-spacing: 0.1em;
}
.program h3 { font-size: 26px; margin-bottom: 16px; line-height: 1.25; }
.program p { font-size: 15px; color: var(--charcoal-soft); margin-bottom: 28px; line-height: 1.7; }
.program-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--cohen-blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--cohen-blue);
  padding-bottom: 3px;
  cursor: pointer;
  transition: gap 0.2s;
}
.program-link:hover { gap: 14px; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.split-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cohen-blue);
  overflow: hidden;
}
.split-image::after {
  content: "";
  position: absolute;
  bottom: -30px; right: -30px;
  width: 180px; height: 180px;
  background: var(--muted-sage);
  z-index: -1;
}
.split-image-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 32px, rgba(255,255,255,0.03) 32px, rgba(255,255,255,0.03) 33px);
}
.split-image-inner img { width: 50%; max-width: 240px; filter: brightness(0) invert(1); opacity: 0.75; }
.split-text .eyebrow { margin-bottom: 22px; }
.split-text h2 {
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.15;
  margin-bottom: 28px;
  font-weight: 400;
}
.split-text h2 .accent { color: var(--soft-olive); }
.split-text p { font-size: 17px; line-height: 1.75; color: var(--charcoal); margin-bottom: 20px; font-weight: 400; }
.split-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  color: var(--cohen-blue);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 12px; letter-spacing: 0.05em; color: var(--charcoal-soft); font-weight: 500; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; position: relative; }
.process-grid::before {
  content: "";
  position: absolute;
  top: 32px; left: 8%; right: 8%;
  height: 1px;
  background: var(--muted-sage);
  opacity: 0.4;
}
.process-step { text-align: center; position: relative; }
.process-num {
  width: 64px; height: 64px;
  margin: 0 auto 28px;
  background: var(--white);
  border: 1px solid var(--muted-sage);
  color: var(--cohen-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  position: relative;
  z-index: 2;
  font-weight: 400;
}
.process-step h4 { font-size: 20px; margin-bottom: 12px; color: var(--cohen-blue); }
.process-step p { font-size: 14px; color: var(--charcoal-soft); line-height: 1.65; }

/* ---------- Calculator ---------- */
.calc-wrap {
  background: var(--white);
  padding: 56px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
}
.calc-form h3 { font-size: 26px; margin-bottom: 8px; }
.calc-form > p { font-size: 14px; color: var(--charcoal-soft); margin-bottom: 32px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cohen-blue);
  margin-bottom: 10px;
}
.field-input { position: relative; }
.field-input input, .field-input select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--sand-light);
  border: 1px solid transparent;
  color: var(--cohen-blue);
  transition: all 0.2s;
  border-radius: 2px;
  font-weight: 500;
}
.field-input input:focus, .field-input select:focus {
  outline: none;
  border-color: var(--cohen-blue);
  background: var(--white);
}
.field-input .prefix, .field-input .suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--charcoal-soft);
  font-size: 14px;
  pointer-events: none;
  font-weight: 500;
}
.field-input .prefix { left: 18px; }
.field-input .prefix + input { padding-left: 34px; }
.field-input .suffix { right: 18px; }
.calc-results {
  background: var(--cohen-blue);
  color: var(--white);
  padding: 44px 40px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.calc-results::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 200px; height: 200px;
  background: var(--cohen-blue-soft);
  border-radius: 50%;
  opacity: 0.4;
}
.calc-results-content { position: relative; z-index: 2; }
.calc-results-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-sand);
  font-weight: 600;
  margin-bottom: 14px;
}
.calc-payment {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.calc-payment small { font-size: 24px; color: var(--warm-sand); }
.calc-payment-sub { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 32px; font-weight: 500; }
.calc-breakdown { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; }
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.calc-row:last-child { border-bottom: none; }
.calc-row span:first-child { color: rgba(255,255,255,0.72); font-weight: 500; }
.calc-row span:last-child { font-weight: 400; font-family: var(--font-display); font-size: 17px; }

/* ---------- Team cards ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.team-card {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  transition: all 0.3s ease;
  border-radius: 2px;
  overflow: hidden;
}
.team-card:hover { border-color: var(--muted-sage); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.team-avatar {
  aspect-ratio: 1 / 1;
  background: var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-initials {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--cohen-blue);
  font-weight: 400;
  letter-spacing: -0.04em;
}
.team-body { padding: 28px 28px 32px; }
.team-name {
  font-size: 22px;
  color: var(--cohen-blue);
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.team-role {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--soft-olive);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.team-bio { font-size: 14px; color: var(--charcoal-soft); line-height: 1.7; margin-bottom: 24px; }
.team-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  font-size: 13px;
}
.team-contact a { color: var(--cohen-blue); display: flex; align-items: center; gap: 10px; transition: color 0.2s; font-weight: 500; }
.team-contact a:hover { color: var(--soft-olive); }
.team-nmls { font-size: 11px; color: var(--charcoal-soft); font-weight: 600; margin-top: 4px; letter-spacing: 0.04em; }
.team-apply {
  display: block;
  margin-top: 20px;
  padding: 12px 20px;
  background: var(--cohen-blue);
  color: var(--white) !important;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.team-apply:hover { background: var(--cohen-blue-deep); }
.team-apply::after {
  content: " →";
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.team-apply:hover::after { transform: translateX(3px); }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote {
  background: var(--white);
  padding: 40px 32px;
  border: 1px solid var(--rule-soft);
  position: relative;
  border-radius: 2px;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--muted-sage);
  line-height: 1;
  position: absolute;
  top: 20px; left: 24px;
  opacity: 0.4;
  font-weight: 400;
}
.quote p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  padding-top: 16px;
  font-weight: 400;
}
.quote-author { display: flex; align-items: center; gap: 14px; }
.quote-avatar {
  width: 44px; height: 44px;
  background: var(--cohen-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
}
.quote-name { font-size: 14px; font-weight: 600; color: var(--cohen-blue); }
.quote-detail { font-size: 12px; color: var(--charcoal-soft); font-weight: 500; }

/* ---------- Resources ---------- */
.resources-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 80px; }
.resource-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding 0.3s;
  text-decoration: none;
  color: inherit;
}
.resource-item:first-of-type { padding-top: 0; }
.resource-item:hover { padding-left: 12px; }
.resource-date { font-family: var(--font-display); font-size: 13px; color: var(--soft-olive); letter-spacing: 0.04em; font-weight: 400; }
.resource-item h3 { font-size: 24px; line-height: 1.3; margin-bottom: 10px; transition: color 0.2s; }
.resource-item:hover h3 { color: var(--soft-olive); }
.resource-item p { font-size: 15px; color: var(--charcoal-soft); line-height: 1.65; }
.resource-arrow { font-size: 20px; color: var(--muted-sage); align-self: center; }
.sidebar-box {
  background: var(--white);
  padding: 32px;
  border: 1px solid var(--rule-soft);
  margin-bottom: 24px;
  border-radius: 2px;
}
.sidebar-box h4 { font-size: 19px; margin-bottom: 16px; }
.sidebar-box p { font-size: 14px; color: var(--charcoal-soft); margin-bottom: 20px; line-height: 1.65; }
.sidebar-list { list-style: none; }
.sidebar-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
  color: var(--charcoal);
  font-weight: 500;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li:hover { color: var(--soft-olive); }

/* ---------- Blog post (article) ---------- */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 100px 32px 80px; }
.article-meta { display: flex; gap: 16px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft-olive); font-weight: 600; margin-bottom: 24px; }
.article-wrap h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.1; margin-bottom: 24px; }
.article-lede { font-size: 22px; line-height: 1.5; color: var(--charcoal-soft); margin-bottom: 48px; font-weight: 300; }
.article-body { font-size: 17px; line-height: 1.8; color: var(--charcoal); }
.article-body p { margin-bottom: 22px; }
.article-body h2 { font-size: 32px; margin: 48px 0 20px; line-height: 1.2; }
.article-body h3 { font-size: 24px; margin: 36px 0 16px; line-height: 1.3; }
.article-body ul, .article-body ol { margin: 0 0 22px 28px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--cohen-blue); border-bottom: 1px solid var(--muted-sage); padding-bottom: 1px; }
.article-body a:hover { color: var(--soft-olive); border-color: var(--soft-olive); }
.article-body blockquote {
  border-left: 3px solid var(--muted-sage);
  padding: 8px 0 8px 28px;
  margin: 36px 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--cohen-blue);
  font-weight: 400;
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--rule); padding: 26px 0; cursor: pointer; }
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--cohen-blue);
  transition: color 0.2s;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.faq-item:hover .faq-q { color: var(--soft-olive); }
.faq-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  font-size: 18px;
  color: var(--cohen-blue);
  transition: all 0.3s;
  border-radius: 50%;
}
.faq-item.open .faq-icon {
  background: var(--cohen-blue);
  border-color: var(--cohen-blue);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
  font-size: 16px;
  color: var(--charcoal-soft);
  line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 500px; margin-top: 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--cohen-blue);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -150px; right: -150px;
  width: 400px; height: 400px;
  background: var(--cohen-blue-soft);
  border-radius: 50%;
  opacity: 0.3;
}
.cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}
.cta-inner h2 { color: var(--white); font-size: clamp(32px, 4vw, 48px); line-height: 1.15; font-weight: 400; }
.cta-inner h2 .accent { color: var(--muted-sage); }
.cta-inner p { font-size: 17px; color: rgba(255,255,255,0.8); margin-top: 20px; font-weight: 400; line-height: 1.7; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-actions .btn { justify-content: center; }
.cta-band .btn-primary { background: var(--warm-sand); color: var(--cohen-blue); border-color: var(--warm-sand); }
.cta-band .btn-primary:hover { background: var(--white); border-color: var(--white); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info h2 { margin-bottom: 24px; font-size: clamp(34px, 3.8vw, 44px); }
.contact-info h2 .accent { color: var(--soft-olive); }
.contact-info > p { font-size: 17px; color: var(--charcoal-soft); line-height: 1.75; margin-bottom: 40px; }
.contact-details { list-style: none; }
.contact-details li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.contact-details li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--cohen-blue);
  margin-bottom: 4px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.contact-details li span { font-size: 14px; color: var(--charcoal-soft); }
.contact-icon {
  width: 36px; height: 36px;
  background: var(--sand-light);
  color: var(--cohen-blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-form-wrap {
  background: var(--white);
  padding: 44px;
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h3 { font-size: 24px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--sand-light);
  border: 1px solid transparent;
  color: var(--cohen-blue);
  resize: vertical;
  min-height: 120px;
  transition: all 0.2s;
  border-radius: 2px;
}
textarea:focus { outline: none; border-color: var(--cohen-blue); background: var(--white); }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--cohen-blue);
  color: var(--white);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: var(--cohen-blue-soft);
  border-radius: 50%;
  opacity: 0.25;
}
.page-header::after {
  content: "";
  position: absolute;
  bottom: -100px; left: -50px;
  width: 250px; height: 250px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}
.page-header-content { position: relative; z-index: 2; max-width: 780px; }
.page-header h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  color: var(--white);
  line-height: 1.1;
  font-weight: 400;
  margin-top: 20px;
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}
.page-header h1 .accent { color: var(--muted-sage); }
.page-header p { font-size: 19px; color: rgba(255,255,255,0.82); line-height: 1.65; max-width: 640px; }
.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}
.breadcrumb a { cursor: pointer; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--warm-sand); }
.breadcrumb .sep { color: var(--muted-sage); }

/* ---------- Programs detail page ---------- */
.program-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 48px;
  padding: 52px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.program-row:first-child { border-top: 1px solid var(--rule); }
.program-row-num {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--muted-sage);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.program-row-title h3 { font-size: 28px; margin-bottom: 12px; line-height: 1.2; }
.program-row-title .program-num {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft-olive);
  font-weight: 600;
  margin-bottom: 0;
}
.program-row-body p { font-size: 16px; color: var(--charcoal-soft); line-height: 1.75; margin-bottom: 20px; }
.program-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-top: 20px;
}
.program-features li {
  font-size: 14px;
  color: var(--charcoal);
  padding-left: 22px;
  position: relative;
  font-weight: 500;
}
.program-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 1px;
  background: var(--muted-sage);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--cohen-blue); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule-dark);
}
.site-footer h5 {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--warm-sand);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.footer-about p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-logo { height: 48px; width: auto; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer-nmls { font-size: 12px; color: var(--warm-sand); font-weight: 500; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.72); cursor: pointer; transition: color 0.2s; }
.footer-links a:hover { color: var(--warm-sand); }
.footer-legal {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal-links { display: flex; gap: 28px; }
.footer-legal-links a { cursor: pointer; transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--warm-sand); }
.disclosure-band {
  background: var(--cohen-blue-deep);
  padding: 24px 0;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}
.disclosure-band .container { display: flex; gap: 24px; align-items: flex-start; }
.eh-logo {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-sand);
  border-radius: 50%;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .split, .calc-wrap, .contact-grid, .cta-inner, .resources-grid { grid-template-columns: 1fr; gap: 48px; }
  .pillars, .programs, .team-grid, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .process-grid::before { display: none; }
  .trust-items { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 20px; }
  .top-strip-right { gap: 12px; }
  .top-strip-right a:first-child { display: none; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 20px;
    box-shadow: var(--shadow-md); border-top: 1px solid var(--rule); gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .menu-toggle { display: block; }
  .hero { padding: 60px 0 80px; }
  .section { padding: 80px 0; }
  .pillars, .programs, .team-grid, .testimonials, .footer-grid { grid-template-columns: 1fr; }
  .program-row { grid-template-columns: 1fr; gap: 20px; }
  .program-features, .split-stats, .form-row { grid-template-columns: 1fr; }
  .calc-wrap, .contact-form-wrap { padding: 32px 24px; }
  .calc-payment { font-size: 44px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .disclosure-band .container { flex-direction: column; }
  .brand-logo { height: 112px; }
}
