/* ============================================
   NICHE SEO AGENCY TEMPLATE — Design System
   ============================================
   CUSTOMIZATION: Edit the :root CSS variables
   below to re-skin the entire site.
   
   Run setup.ps1 to apply config.json values,
   or edit these values directly.
   ============================================ */

/* --- Google Fonts ---
   Loaded via <link> in HTML head to avoid render-blocking @import.
   Fallback fonts defined in :root below. */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors — Matched to Logo Palette */
  --trust-navy: #1B3A5C;
  --brand-blue: #3D6FB0;
  --workwear-blue: #3A6BA8;
  --pin-red: #BF4528;
  --pin-red-hover: #A33B20;
  --map-green: #458535;
  --road-yellow: #E8B83A;
  --off-white: #FAFAF7;
  --steel-gray: #5A6470;
  --white: #FFFFFF;
  --light-gray: #E8EAED;
  --border-gray: #D1D5DB;

  /* Typography */
  /* Font families are defined once in design-theme.css. */

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(27,58,92,0.08);
  --shadow-md: 0 4px 12px rgba(27,58,92,0.1);
  --shadow-lg: 0 8px 30px rgba(27,58,92,0.12);
  --shadow-xl: 0 16px 48px rgba(27,58,92,0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-height: 72px;
  --logo-size: 80px;
  --logo-size-scrolled: 60px;
}

/* --- Modern Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--trust-navy);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--pin-red); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--trust-navy);
}
h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl)); font-weight: 800; }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 3vw, var(--text-2xl)); }
h4 { font-size: var(--text-lg); }
p { margin-bottom: var(--space-4); }

/* Subsection h3 used inside cards & feature blocks — smaller than standalone h3 */
.toolbox__card h3,
.route-map__feature h3,
.process__step h3,
.why-different__point h3,
.reporting__metric h3 {
  font-size: var(--text-base);
}
p:last-child { margin-bottom: 0; }

/* --- Layout Utilities --- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: var(--space-20) 0; }
.section--navy { background: var(--trust-navy); color: var(--off-white); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--off-white); }
.section--navy p { color: rgba(250,250,247,0.85); }
.section--light { background: var(--white); }
.section--blue { background: linear-gradient(135deg, var(--trust-navy) 0%, var(--workwear-blue) 100%); color: var(--off-white); }
.section--blue h2, .section--blue h3 { color: var(--off-white); }
.section--blue p { color: rgba(250,250,247,0.85); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-gray);
  transition: box-shadow var(--transition-base);
  /* Allow logo to visually overflow below the bar */
  overflow: visible;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  /* Allow logo overflow */
  overflow: visible;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  /* Pin to top so only the PNG image overflows below the bar */
  align-self: flex-start;
  padding-top: 4px;
}
.header__logo img {
  height: var(--logo-size);
  width: auto;
  /* White card badge — makes overflow look intentional and premium */
  background: var(--white);
  border-radius: 14px;
  padding: 5px;
  /* Lifted card shadow */
  box-shadow:
    0 8px 24px rgba(15,42,68,0.13),
    0 2px 6px rgba(15,42,68,0.08),
    0 0 0 1px rgba(15,42,68,0.04);
  /* Smooth collapse on scroll */
  transition:
    height var(--transition-base),
    box-shadow var(--transition-base),
    border-radius var(--transition-base),
    padding var(--transition-base);
  position: relative;
  z-index: 5;
}
/* On scroll: badge snaps back into the bar — no more overflow */
.header.scrolled .header__logo img {
  height: var(--logo-size-scrolled);
  border-radius: 10px;
  padding: 4px;
  box-shadow:
    0 3px 12px rgba(15,42,68,0.09),
    0 1px 4px rgba(15,42,68,0.06);
}
.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--trust-navy);
  line-height: 1.2;
  transition: font-size var(--transition-base);
}
.header.scrolled .header__logo-text {
  font-size: var(--text-base);
}
.header__logo-text span { color: var(--pin-red); }

.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav__links { display: flex; align-items: center; gap: var(--space-6); }
.nav__link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--trust-navy);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-2) 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pin-red);
  transition: width var(--transition-base);
}
.nav__link:hover, .nav__link.active { color: var(--pin-red); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: var(--space-2); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--trust-navy);
  transition: var(--transition-base);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile navigation: hidden means absent from both layout and focus order. */
[hidden] { display: none !important; }
.mobile-overlay {
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(15,42,68,0.5);
}
.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 1002;
  width: min(360px, calc(100vw - 24px)); height: 100vh; height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background: var(--theme-shell, var(--white)); box-shadow: var(--shadow-xl);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-drawer__close {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 44px; min-height: 44px; margin-left: auto; margin-bottom: 20px;
  padding: 8px 16px; border: 1px solid var(--border-gray); border-radius: 24px;
}
.mobile-drawer__close span { font-size: 24px; line-height: 1; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav__link {
  display: block; min-height: 44px; padding: 12px 0;
  font-family: var(--font-heading); font-size: 18px; font-weight: 600;
  color: var(--trust-navy); border-bottom: 1px solid var(--light-gray);
}
.mobile-nav__link:hover, .mobile-nav__link.active { color: var(--pin-red-hover); }
.skip-link { position: fixed; top: -120px; left: 16px; z-index: 1003; padding: 12px 20px; background: var(--white); }
.skip-link:focus { top: 8px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn--primary {
  background: var(--pin-red);
  color: var(--white);
  border-color: var(--pin-red);
  box-shadow: 0 4px 14px rgba(191,69,40,0.3);
}
.btn--primary:hover {
  background: var(--pin-red-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(191,69,40,0.4);
}
.btn--secondary {
  background: transparent;
  color: var(--trust-navy);
  border-color: var(--trust-navy);
}
.btn--secondary:hover {
  background: var(--trust-navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--white {
  background: var(--white);
  color: var(--trust-navy);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--off-white);
  color: var(--pin-red);
  transform: translateY(-2px);
}
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--trust-navy);
  transform: translateY(-2px);
}
.btn--sm { font-size: var(--text-sm); padding: var(--space-3) var(--space-6); }
.btn--lg { font-size: var(--text-lg); padding: var(--space-5) var(--space-10); }
.btn svg { width: 18px; height: 18px; }

/* Pulse animation for CTA — composited properties only to avoid jank.
   Uses a pseudo-element with opacity for the glow ring instead of
   animating box-shadow directly (non-compositable). */
.btn--pulse {
  position: relative;
  animation: pulse-scale 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.btn--pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: transparent;
  box-shadow: 0 0 0 6px rgba(191,69,40,0.12), 0 6px 28px rgba(191,69,40,0.35);
  opacity: 0;
  animation: pulse-ring 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes pulse-scale {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-1px) scale(1.012); }
}
@keyframes pulse-ring {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, rgba(23,107,154,0.1), rgba(23,107,154,0.05));
}
.card__icon svg { width: 28px; height: 28px; color: var(--brand-blue); }
.card__icon--red { background: linear-gradient(135deg, rgba(191,69,40,0.1), rgba(191,69,40,0.05)); }
.card__icon--red svg { color: var(--pin-red); }
.card__icon--green { background: linear-gradient(135deg, rgba(116,201,167,0.1), rgba(116,201,167,0.05)); }
.card__icon--green svg { color: var(--map-green); }
.card__title { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.card__text { color: var(--steel-gray); font-size: var(--text-sm); line-height: 1.6; }

/* --- Section Headers --- */
.section-header { margin-bottom: var(--space-12); }
.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.section-header__label svg { width: 16px; height: 16px; }
.section-header h2 { margin-bottom: var(--space-4); }
.section-header p { font-size: var(--text-lg); color: var(--steel-gray); max-width: 640px; }
.section-header.text-center p { margin-left: auto; margin-right: auto; }

/* --- Forms --- */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  color: var(--trust-navy);
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--white);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(23,107,154,0.15);
}
.form-input.error, .form-textarea.error { border-color: var(--pin-red); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { font-size: var(--text-xs); color: var(--pin-red); margin-top: var(--space-1); display: none; }
.form-error.visible { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-success {
  background: linear-gradient(135deg, rgba(116,201,167,0.15), rgba(116,201,167,0.05));
  border: 1px solid var(--map-green);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  text-align: center;
  display: none;
}
.form-success.visible { display: block; }
.form-success h3 { color: var(--trust-navy); margin-bottom: var(--space-3); }
.form-success p { color: var(--steel-gray); }

/* Success check icon */
.form-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--map-green);
  color: var(--white);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-weight: 700;
}

/* --- Two-Step Audit Form Progress Bar --- */
.audit-progress {
  margin-bottom: var(--space-6);
}
.audit-progress__steps {
  display: flex;
  align-items: center;
  gap: 0;
}
.audit-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.audit-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--steel-gray);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base), color var(--transition-base);
  flex-shrink: 0;
}
.audit-step__label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--steel-gray);
  transition: color var(--transition-base);
}
.audit-step.active .audit-step__num {
  background: var(--pin-red);
  color: var(--white);
}
.audit-step.active .audit-step__label {
  color: var(--trust-navy);
  font-weight: 600;
}
.audit-progress__line {
  flex: 1;
  height: 3px;
  background: var(--light-gray);
  margin: 0 var(--space-3);
  border-radius: 2px;
  transition: background var(--transition-base);
}
.audit-progress__line.active {
  background: var(--pin-red);
}

/* Required asterisk */
.req {
  color: var(--pin-red);
  margin-left: 2px;
}

/* Optional tag pill */
.optional-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: var(--font-heading);
  color: var(--steel-gray);
  background: var(--light-gray);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: var(--space-2);
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- CTA Callout Box --- */
.cta-box {
  background: linear-gradient(135deg, var(--trust-navy) 0%, var(--workwear-blue) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(191,69,40,0.08);
}
.cta-box h2, .cta-box h3 { color: var(--off-white); margin-bottom: var(--space-4); }
.cta-box p { color: rgba(250,250,247,0.8); font-size: var(--text-lg); margin-bottom: var(--space-8); max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-box .btn { position: relative; z-index: 1; }

/* --- Inline Blog CTA --- */
.inline-cta {
  background: linear-gradient(135deg, rgba(23,107,154,0.08), rgba(23,107,154,0.03));
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-6);
  margin: var(--space-8) 0;
}
.inline-cta p { color: var(--trust-navy); font-weight: 500; margin-bottom: var(--space-4); }

/* --- FAQ Accordion --- */
.faq-section h2 {
  text-align: center;
  margin-bottom: var(--space-6);
}
.faq-item {
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  background: var(--white);
}
.faq-question,
.faq-item summary {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--trust-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: background var(--transition-fast);
  box-sizing: border-box;
}
.faq-question:hover,
.faq-item summary:hover {
  background: rgba(23,107,154,0.03);
}

/* Hide default details marker */
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary {
  list-style: none;
}

/* Pseudo-element plus/minus for native details/summary items that lack a hardcoded span */
.faq-item summary::after {
  content: '+';
  color: var(--brand-blue);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '-';
}

/* Reverse row direction for blog accordion buttons (icon first in HTML) */
.faq-section button.faq-question {
  flex-direction: row-reverse;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--brand-blue);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}
.faq-item > p {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--steel-gray);
  line-height: 1.7;
  margin: 0;
}
.faq-answer__inner {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--steel-gray);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--trust-navy);
  color: rgba(250,250,247,0.8);
  padding: var(--space-16) 0 var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer__brand p { font-size: var(--text-sm); line-height: 1.7; margin-top: var(--space-4); }
.footer__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--off-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-5);
}
.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__link {
  color: rgba(250,250,247,0.75);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer__link:hover { color: var(--road-yellow); }
.footer__bottom {
  border-top: 1px solid rgba(250,250,247,0.1);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__bottom a { color: rgba(250,250,247,0.7); }
.footer__bottom a:hover { color: var(--road-yellow); }

/* Footer logo — matches header__logo styling but scoped to footer context */
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

/* Utility: push footer to bottom on short pages (404, thank-you) */
.footer-push { margin-top: auto; }

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--steel-gray);
}
.breadcrumbs a { color: var(--brand-blue); }
.breadcrumbs span { margin: 0 var(--space-2); color: var(--border-gray); }

/* --- Grid Helpers --- */
.grid { display: grid; gap: var(--space-8); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* --- Focus & Accessibility --- */
:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible {
  outline: 3px solid var(--pin-red);
  outline-offset: 3px;
}
.nav__link:focus-visible,
.footer__link:focus-visible,
.mobile-nav__link:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
  border-radius: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .section { padding: var(--space-12) 0; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer__bottom { flex-direction: column; text-align: center; }
  .cta-box { padding: var(--space-8) var(--space-6); }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .btn { width: 100%; text-align: center; }
  .btn--sm { width: auto; }
}

/* ── Footer Social Links ── */
.footer__socials{display:flex;gap:var(--space-3);margin-top:var(--space-4);flex-wrap:wrap;}
.footer__social-link{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:rgba(250,250,247,0.08);color:rgba(250,250,247,0.7);transition:background 0.2s,color 0.2s,transform 0.2s;}
.footer__social-link:hover{background:rgba(250,250,247,0.15);color:var(--off-white);transform:translateY(-2px);}
.footer__social-link svg{flex-shrink:0;}
