/* ===================================================================
   CCS — Corrections Consulting Services
   Central stylesheet — shared across all pages
   =================================================================== */

:root {
  --slate-950: #0a0f1a;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --amber-500: #c8913a;
  --amber-400: #d4a04a;
  --amber-300: #e0b968;
  --amber-200: #f0d698;
  --cream: #faf7f2;
  --cream-dark: #f0ebe3;
  --white: #ffffff;
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Lato', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--slate-800);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── UTILITY ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 145, 58, 0.12);
  padding: 0.75rem 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled .nav-logo {
  color: var(--slate-900);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--slate-300);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a.active {
  color: var(--amber-300);
}

/* Dark text once the nav turns solid on scroll */
nav.scrolled .nav-links a {
  color: var(--slate-600);
}

nav.scrolled .nav-links a:hover {
  color: var(--slate-900);
}

nav.scrolled .nav-links a.active {
  color: var(--amber-500);
}

.nav-cta {
  background: var(--amber-500) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-display) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--amber-400) !important;
  transform: translateY(-1px);
}

/* Solid nav on scroll: CTA returns to the dark treatment on cream */
nav.scrolled .nav-cta {
  background: var(--slate-900) !important;
  color: var(--cream) !important;
}

nav.scrolled .nav-cta:hover {
  background: var(--slate-700) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

nav.scrolled .mobile-toggle span {
  background: var(--slate-800);
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-toggle span:nth-child(3) { bottom: 0; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--slate-950) 0%, var(--slate-900) 40%, var(--slate-800) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 75% 20%, rgba(200, 145, 58, 0.08), transparent),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(100, 116, 139, 0.1), transparent);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 145, 58, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 145, 58, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
  padding-bottom: 6rem;
}

/* Compact hero variant for interior pages */
.hero.hero-compact {
  min-height: 72vh;
}

.hero-compact .container {
  padding-top: 9rem;
  padding-bottom: 5rem;
}

.hero-compact .hero-stats {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(200, 145, 58, 0.1);
  border: 1px solid rgba(200, 145, 58, 0.2);
  border-radius: 100px;
  color: var(--amber-300);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s 0.2s forwards;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--amber-400);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.08;
  color: var(--white);
  max-width: 800px;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeInUp 0.8s 0.4s forwards;
}

.hero h1 em {
  color: var(--amber-300);
  font-style: normal;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--slate-400);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeInUp 0.8s 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s 0.8s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--amber-500);
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--amber-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 145, 58, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--slate-300);
  text-decoration: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--slate-600);
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--slate-400);
  color: var(--white);
  background: rgba(255,255,255,0.04);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  opacity: 0;
  animation: fadeInUp 0.8s 1s forwards;
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--amber-300);
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--slate-400);
  font-weight: 400;
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--white);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--slate-200);
}

.trust-bar .container {
  text-align: center;
}

.trust-bar p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-400);
  font-weight: 500;
  margin-bottom: 2rem;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--slate-500);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.trust-icon {
  width: 36px; height: 36px;
  background: var(--slate-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 18px; height: 18px;
  stroke: var(--slate-500);
}

.trust-standards {
  margin-top: 2.25rem;
  font-size: 0.8rem;
  color: var(--slate-400);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.trust-standards span {
  color: var(--slate-600);
  white-space: nowrap;
}

/* ─── MISSION ─── */
.mission {
  padding: 8rem 0;
  background: var(--cream);
}

.mission .container {
  max-width: 900px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber-500);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--amber-500);
  border-radius: 2px;
}

.section-label.centered {
  justify-content: center;
}

.mission h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.mission-text {
  font-size: 1.12rem;
  color: var(--slate-600);
  line-height: 1.85;
  font-weight: 300;
}

.mission-text strong {
  color: var(--slate-800);
  font-weight: 500;
}

.mission-text + .mission-text {
  margin-top: 1.25rem;
}

.mission-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-500), var(--amber-300));
  border-radius: 3px;
  margin: 2.5rem 0;
}

.mission-quote {
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--slate-700);
  line-height: 1.6;
  font-style: italic;
  font-weight: 300;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--amber-400);
}

/* ─── SERVICES ─── */
.services {
  padding: 8rem 0;
  background: var(--white);
}

.services-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4.5rem;
}

.services-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.services-header p {
  font-size: 1.1rem;
  color: var(--slate-500);
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--slate-200);
  background: var(--cream);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-500), var(--amber-300));
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  border-color: var(--amber-200);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.service-icon svg {
  width: 24px; height: 24px;
  stroke: var(--amber-400);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--slate-900);
  margin-bottom: 0.85rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--slate-500);
  line-height: 1.7;
  font-weight: 300;
}

.service-card-cta {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber-500);
  text-decoration: none;
}

.service-card-cta:hover {
  color: var(--amber-400);
}

/* Stretched-link: whole card is clickable */
.service-card .service-card-cta::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* ─── APPROACH ─── */
.approach {
  padding: 8rem 0;
  background: var(--slate-900);
  position: relative;
  overflow: hidden;
}

.approach::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 30%, rgba(200, 145, 58, 0.06), transparent),
    radial-gradient(ellipse 500px 300px at 10% 70%, rgba(100, 116, 139, 0.08), transparent);
}

.approach .container {
  position: relative;
}

.approach-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 5rem;
}

.approach-header .section-label {
  color: var(--amber-300);
}

.approach-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.approach-header p {
  font-size: 1.1rem;
  color: var(--slate-400);
  font-weight: 300;
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.approach-step {
  text-align: center;
  position: relative;
}

.approach-step::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -1rem;
  width: calc(100%);
  height: 1px;
  background: linear-gradient(90deg, rgba(200,145,58,0.3), transparent);
}

.approach-step:last-child::after {
  display: none;
}

.step-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(200, 145, 58, 0.1);
  border: 1px solid rgba(200, 145, 58, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--amber-300);
}

.approach-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.approach-step p {
  font-size: 0.9rem;
  color: var(--slate-400);
  font-weight: 300;
  line-height: 1.65;
}

/* ─── SECTORS ─── */
.sectors {
  padding: 8rem 0;
  background: var(--cream);
}

.sectors-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.sectors-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.sectors-content > p {
  font-size: 1.05rem;
  color: var(--slate-500);
  font-weight: 300;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.sector-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sector-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  transition: all 0.3s;
}

.sector-item:hover {
  border-color: var(--amber-300);
  box-shadow: 0 4px 20px rgba(200, 145, 58, 0.08);
}

.sector-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--amber-400);
  flex-shrink: 0;
}

.sector-item span {
  font-weight: 500;
  color: var(--slate-700);
  font-size: 0.95rem;
}

.sectors-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.sector-stat-card {
  padding: 2.25rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  text-align: center;
  transition: all 0.3s;
}

.sector-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.sector-stat-card:nth-child(2) {
  transform: translateY(2rem);
}

.sector-stat-card:nth-child(3) {
  transform: translateY(-2rem);
}

.sector-stat-card:nth-child(2):hover {
  transform: translateY(calc(2rem - 2px));
}

.sector-stat-card:nth-child(3):hover {
  transform: translateY(calc(-2rem - 2px));
}

.sector-stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sector-stat-icon svg {
  width: 24px; height: 24px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.sector-stat-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--slate-900);
  margin-bottom: 0.4rem;
}

.sector-stat-card p {
  font-size: 0.82rem;
  color: var(--slate-500);
  font-weight: 300;
}

.ssc-1 .sector-stat-icon { background: rgba(200, 145, 58, 0.1); }
.ssc-1 .sector-stat-icon svg { stroke: var(--amber-500); }
.ssc-2 .sector-stat-icon { background: rgba(15, 23, 42, 0.06); }
.ssc-2 .sector-stat-icon svg { stroke: var(--slate-700); }
.ssc-3 .sector-stat-icon { background: rgba(34, 197, 94, 0.08); }
.ssc-3 .sector-stat-icon svg { stroke: #16a34a; }
.ssc-4 .sector-stat-icon { background: rgba(99, 102, 241, 0.08); }
.ssc-4 .sector-stat-icon svg { stroke: #6366f1; }

/* ─── CTA ─── */
.cta {
  padding: 8rem 0;
  background: var(--white);
  text-align: center;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.cta p {
  font-size: 1.1rem;
  color: var(--slate-500);
  font-weight: 300;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  background: var(--slate-900);
  color: var(--amber-300);
  text-decoration: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}

.cta-email:hover {
  background: var(--slate-800);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
}

.cta-email svg {
  width: 20px; height: 20px;
  stroke: var(--amber-300);
  fill: none;
  stroke-width: 1.8;
}

/* ─── FOOTER ─── */
footer {
  background: var(--slate-950);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.08em;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--slate-500);
  line-height: 1.7;
  font-weight: 300;
}

.footer-contact {
  text-align: right;
}

.footer-contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-500);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.footer-email {
  color: var(--amber-300);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-email:hover {
  color: var(--amber-200);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--slate-600);
  font-weight: 300;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--slate-500);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--slate-300);
}

/* ─── LEGAL MODALS ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 26, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px; height: 36px;
  border: 1px solid var(--slate-200);
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-close:hover {
  background: var(--slate-100);
}

.modal-close svg {
  width: 16px; height: 16px;
  stroke: var(--slate-600);
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.modal .modal-updated {
  font-size: 0.82rem;
  color: var(--slate-400);
  margin-bottom: 2rem;
  display: block;
}

.modal h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-800);
  margin: 1.75rem 0 0.75rem;
}

.modal p, .modal li {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.75;
}

.modal ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.modal li {
  margin-bottom: 0.35rem;
}

.modal-link {
  color: var(--amber-500);
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .approach-steps {
    grid-template-columns: 1fr 1fr;
  }
  .approach-step::after { display: none; }
  .sectors-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .sectors-visual { order: -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--slate-200);
  }

  .nav-links.open li {
    width: 100%;
  }

  .nav-links.open a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-700);
  }

  .nav-links.open a:hover {
    color: var(--slate-900);
  }

  .nav-links.open a.active {
    color: var(--amber-500);
  }

  .nav-links.open .nav-cta {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    border-bottom: none;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .approach-steps {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .sectors-visual {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-contact {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    text-align: center;
    justify-content: center;
  }
}

/* =========================================================
   MULTI-PAGE ADDITIONS
   nav dropdown · footer · interior headers · breadcrumbs ·
   prose · FAQ · forms · articles · credentials · a11y
   ========================================================= */

/* ─── ACCESSIBILITY ─── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--slate-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 2000;
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--amber-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── NAV DROPDOWN ─── */
.nav-links li.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
}

.dropdown-toggle::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.7;
  transition: transform 0.3s;
}

.has-dropdown:hover .dropdown-toggle::after,
.has-dropdown:focus-within .dropdown-toggle::after {
  transform: rotate(225deg) translateY(2px);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 250px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  padding: 0.6rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, transform 0.28s, visibility 0.28s;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(8px);
}

.dropdown a {
  display: block !important;
  color: var(--slate-700) !important;
  padding: 0.6rem 0.85rem !important;
  border-radius: 8px;
  font-size: 0.88rem !important;
  white-space: nowrap;
}

.dropdown a:hover {
  background: var(--cream) !important;
  color: var(--slate-900) !important;
}

.dropdown-divider {
  height: 1px;
  background: var(--slate-200);
  margin: 0.35rem 0.5rem;
}

/* ─── ENHANCED FOOTER ─── */
.footer-cols {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-300);
  margin-bottom: 1.1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--slate-500);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--amber-300);
}

.footer-col p {
  color: var(--slate-500);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-registrations {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.footer-registrations span {
  color: var(--slate-400);
}

/* ─── INTERIOR PAGE HEADER ─── */
.page-header {
  background: linear-gradient(165deg, var(--slate-950) 0%, var(--slate-900) 60%, var(--slate-800) 100%);
  position: relative;
  overflow: hidden;
  padding: 11rem 0 4.5rem;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 75% 10%, rgba(200, 145, 58, 0.08), transparent),
    radial-gradient(ellipse 500px 300px at 15% 90%, rgba(100, 116, 139, 0.1), transparent);
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header .section-label {
  color: var(--amber-300);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--white);
  line-height: 1.12;
  max-width: 840px;
  margin-bottom: 1.1rem;
}

.page-header h1 em {
  color: var(--amber-300);
  font-style: normal;
}

.page-header p {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--slate-400);
  max-width: 640px;
  font-weight: 300;
  line-height: 1.7;
}

/* ─── BREADCRUMBS ─── */
/* position:static + padding:0 override the global `nav` element rules,
   since a breadcrumb is semantically a <nav> too. */
.breadcrumbs {
  position: static;
  padding: 0;
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--amber-300);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .sep {
  color: var(--slate-600);
  margin: 0 0.5rem;
}

/* ─── CONTENT / PROSE PAGES ─── */
.content-section {
  padding: 5rem 0 6rem;
  background: var(--cream);
}

.content-narrow {
  max-width: 820px;
  margin: 0 auto;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--slate-900);
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
}

.prose h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-800);
  margin: 1.75rem 0 0.6rem;
}

.prose p,
.prose li {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.8;
}

.prose p {
  margin-bottom: 1.1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  color: var(--slate-800);
  font-weight: 600;
}

.prose a {
  color: var(--amber-500);
}

.prose-lead {
  font-size: 1.18rem;
  color: var(--slate-700);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 2rem;
}

.prose-updated {
  font-size: 0.82rem;
  color: var(--slate-400);
  margin-bottom: 2.5rem;
  display: block;
}

/* ─── FAQ (AEO) ─── */
.faq {
  padding: 6rem 0;
  background: var(--white);
}

.faq.faq-cream {
  background: var(--cream);
}

.faq-list {
  max-width: 840px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--slate-200);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.4rem 3rem 1.4rem 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--slate-900);
  position: relative;
  transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--amber-500);
  font-weight: 300;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary:hover {
  color: var(--amber-500);
}

.faq-answer {
  padding: 0 0 1.5rem;
}

.faq-answer p {
  font-size: 0.98rem;
  color: var(--slate-600);
  line-height: 1.8;
}

/* ─── FORMS ─── */
.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.5rem;
}

.form-group label .req {
  color: var(--amber-500);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate-800);
  background: var(--cream);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.form-control:focus {
  outline: none;
  border-color: var(--amber-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200, 145, 58, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-top: 0.75rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}

/* ─── CONTACT LAYOUT ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-method {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-method-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 20px; height: 20px;
  stroke: var(--amber-400);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-method h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--slate-900);
  margin-bottom: 0.2rem;
}

.contact-method a,
.contact-method p {
  color: var(--slate-600);
  font-size: 0.92rem;
  text-decoration: none;
  line-height: 1.5;
}

.contact-method a:hover {
  color: var(--amber-500);
}

/* ─── ARTICLES / INSIGHTS ─── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s, box-shadow 0.4s;
  text-decoration: none;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber-200);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}

.article-card-body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-500);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--slate-900);
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.article-card p {
  font-size: 0.92rem;
  color: var(--slate-500);
  line-height: 1.65;
  flex: 1;
}

.article-readmore {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--amber-500);
  font-weight: 600;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-hero-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--slate-400);
  font-size: 0.85rem;
  margin-top: 1.25rem;
}

.article-hero-meta .sep {
  color: var(--slate-600);
}

/* ─── CREDENTIALS STRIP ─── */
.credentials {
  background: var(--white);
  padding: 4.5rem 0;
  border-top: 1px solid var(--slate-200);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.credential-badge h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber-500);
  line-height: 1;
}

.credential-badge p {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-top: 0.5rem;
  font-weight: 300;
}

/* ─── SERVICE DETAIL ─── */
.service-detail {
  padding: 5rem 0 6rem;
  background: var(--cream);
}

.service-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3.5rem;
  align-items: start;
}

.service-aside {
  position: sticky;
  top: 6rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 2rem;
}

.service-aside h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.service-aside ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.service-aside li {
  font-size: 0.9rem;
  color: var(--slate-600);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.5;
}

.service-aside li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber-400);
}

.service-aside .btn-primary {
  width: 100%;
  justify-content: center;
}

.service-related {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.service-related a {
  font-size: 0.88rem;
  color: var(--amber-500);
  text-decoration: none;
}

.service-related a:hover {
  text-decoration: underline;
}

/* ─── RESPONSIVE (new components) ─── */
@media (max-width: 900px) {
  .contact-layout,
  .service-detail-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .service-aside {
    position: static;
  }
}

@media (max-width: 768px) {
  /* Mobile: dropdown expands inline within the open menu */
  .nav-links.open .has-dropdown .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: flex;
    box-shadow: none;
    border: none;
    background: transparent;
    backdrop-filter: none;
    padding: 0.25rem 0 0.5rem 1rem;
    min-width: 0;
  }
  .nav-links.open .dropdown a {
    color: var(--slate-600) !important;
    padding: 0.55rem 0 !important;
    border-bottom: 1px solid var(--slate-100);
    font-size: 0.85rem !important;
  }
  .nav-links.open .dropdown-toggle::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-cols {
    gap: 2rem;
  }
}
