/* ============================================================
   ISA — Styles
   Confident Authority system · B2B nearshore staffing
   Palette: deep teal navy + lime green accent
   Fonts: Archivo (display) + Raleway (body) — loaded by proxy
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  /* Surface tokens (from approved vision surfaces) */
  --surface-canvas-bg: #F4F7F9;
  --surface-canvas-text: #0E1E28;
  --surface-canvas-display-weight: 700;
  --surface-canvas-display-letter-spacing: -0.02em;

  --surface-depth-bg: #005374;
  --surface-depth-text: #F0F6F9;
  --surface-depth-display-weight: 800;
  --surface-depth-display-letter-spacing: -0.025em;

  --surface-signal-bg: #9CB925;
  --surface-signal-text: #0E1E28;
  --surface-signal-display-weight: 700;
  --surface-signal-display-letter-spacing: -0.01em;

  --surface-mist-bg: #E8F0F4;
  --surface-mist-text: #0E1E28;
  --surface-mist-display-weight: 600;
  --surface-mist-display-letter-spacing: -0.015em;

  /* Role-based tokens */
  --color-primary: #005374;
  --color-primary-hover: #003E57;
  --color-accent: #9CB925;
  --color-accent-hover: #8AA520;
  --color-bg: #F4F7F9;
  --color-text: #0E1E28;
  --color-text-secondary: #4A5E6A;
  --color-text-muted: #6E8290;
  --color-text-on-depth: #F0F6F9;
  --color-text-on-depth-muted: #B0CCD8;
  --color-border-light: #D4DEE4;
  --color-border-dark: rgba(240, 246, 249, 0.15);
  --color-overlay: rgba(0, 83, 116, 0.12);
  --color-overlay-depth: rgba(0, 40, 58, 0.55);

  /* Typography */
  --font-display: 'Archivo', 'Bahnschrift', system-ui, sans-serif;
  --font-body: 'Raleway', system-ui, sans-serif;

  /* Type scale */
  --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:  2rem;
  --text-4xl:  2.5rem;
  --text-5xl:  3.25rem;
  --text-6xl:  4.25rem;

  /* 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-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Geometry */
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --container: 1280px;
  --container-narrow: 780px;
  --container-wide: 1400px;
}

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Container -------------------------------------------- */
.container       { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-6); }
.container-wide  { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--space-6); }

/* --- Surface Utility Classes ------------------------------ */
.surface-canvas {
  background: var(--surface-canvas-bg);
  color: var(--surface-canvas-text);
}
.surface-canvas h1, .surface-canvas h2, .surface-canvas h3 {
  font-weight: var(--surface-canvas-display-weight);
  letter-spacing: var(--surface-canvas-display-letter-spacing);
}

.surface-depth {
  background: var(--surface-depth-bg);
  color: var(--surface-depth-text);
}
.surface-depth h1, .surface-depth h2, .surface-depth h3 {
  font-weight: var(--surface-depth-display-weight);
  letter-spacing: var(--surface-depth-display-letter-spacing);
}
.surface-depth a:not(.btn) { color: var(--color-accent); }
.surface-depth .eyebrow { color: var(--color-accent); }
.surface-depth .text-secondary { color: var(--color-text-on-depth-muted); }

.surface-signal {
  background: var(--surface-signal-bg);
  color: var(--surface-signal-text);
}
.surface-signal h1, .surface-signal h2, .surface-signal h3 {
  font-weight: var(--surface-signal-display-weight);
  letter-spacing: var(--surface-signal-display-letter-spacing);
}

.surface-mist {
  background: var(--surface-mist-bg);
  color: var(--surface-mist-text);
}
.surface-mist h1, .surface-mist h2, .surface-mist h3 {
  font-weight: var(--surface-mist-display-weight);
  letter-spacing: var(--surface-mist-display-letter-spacing);
}
.surface-mist p, .surface-mist li {
  line-height: 1.75;
}

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  color: inherit;
}

h1 { font-size: clamp(2.5rem, 5vw, var(--text-6xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(1.25rem, 2vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }

p { max-width: 68ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: block;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.surface-depth .lead { color: var(--color-text-on-depth-muted); }

/* --- Navigation ------------------------------------------- */
[data-nav-role="header"] {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface-depth-bg);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

[data-nav-role="header"].is-scrolled {
  background: rgba(0, 83, 116, 0.97);
  box-shadow: 0 1px 0 var(--color-border-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  min-height: 72px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--surface-depth-text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo img {
  height: 40px;
  width: auto;
}

[data-nav-role="desktop-nav"] {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

[data-nav-role="desktop-nav"] a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-on-depth-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: var(--space-2) 0;
  position: relative;
  transition: color 0.2s ease;
}
[data-nav-role="desktop-nav"] a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}
[data-nav-role="desktop-nav"] a:hover,
[data-nav-role="desktop-nav"] a[aria-current="page"] {
  color: var(--surface-depth-text);
}
[data-nav-role="desktop-nav"] a:hover::after,
[data-nav-role="desktop-nav"] a[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  margin-left: var(--space-4);
}

/* Mobile toggle (hamburger) */
[data-nav-role="mobile-toggle"] {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--surface-depth-text);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 210;
}
[data-nav-role="mobile-toggle"] svg {
  width: 24px;
  height: 24px;
}

/* Mobile drawer */
[data-nav-role="mobile-drawer"] {
  display: none;
}
[data-nav-role="mobile-drawer"][aria-expanded="true"] {
  display: flex;
}

@media (max-width: 1023px) {
  [data-nav-role="desktop-nav"] { display: none; }
  [data-nav-role="mobile-toggle"] { display: inline-flex; }

  [data-nav-role="mobile-drawer"] {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 205;
    background: var(--surface-depth-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-16);
  }
  [data-nav-role="mobile-drawer"][aria-expanded="true"] {
    display: flex;
  }
  [data-nav-role="mobile-drawer"] a {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--surface-depth-text);
    text-decoration: none;
    padding: var(--space-3) 0;
    transition: color 0.2s ease;
  }
  [data-nav-role="mobile-drawer"] a:hover {
    color: var(--color-accent);
  }
}

/* --- Section Spacing -------------------------------------- */
.section {
  padding: 120px 0;
}
.section--dense {
  padding: 56px 0;
}
.section--sparse {
  padding: 140px 0;
}
@media (max-width: 768px) {
  .section       { padding: 64px 0; }
  .section--dense  { padding: 36px 0; }
  .section--sparse { padding: 80px 0; }
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  min-height: 48px;
  min-width: 160px;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(156, 185, 37, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-text);
}

/* On depth surface — light outlines */
.surface-depth .btn-secondary {
  color: var(--surface-depth-text);
  border-color: rgba(240, 246, 249, 0.4);
}
.surface-depth .btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-text);
  border-color: var(--color-accent);
}

/* On signal surface — dark button */
.surface-signal .btn-primary {
  background: var(--color-primary);
  color: var(--surface-depth-text);
  border-color: var(--color-primary);
}
.surface-signal .btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn-text {
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.btn-text::after {
  content: '→';
  transition: transform 0.2s ease;
}
.btn-text:hover::after {
  transform: translateX(4px);
}

/* --- Hero ------------------------------------------------- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero-content { max-width: 560px; }
.hero-content h1 {
  margin-bottom: var(--space-6);
}
.hero-content .lead {
  margin-bottom: var(--space-10);
}

.hero-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.hero-image-wrap > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: var(--space-16) 0 var(--space-12); }
  .hero-split { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-image-wrap { order: -1; aspect-ratio: 16 / 9; }
}

/* --- Page Hero (inner pages) ------------------------------ */
.page-hero {
  padding: 100px 0 72px;
  text-align: center;
}
.page-hero h1 { margin-bottom: var(--space-4); }
.page-hero .lead { margin: 0 auto; max-width: 580px; }

@media (max-width: 768px) {
  .page-hero { padding: 72px 0 48px; }
}

/* --- Stat Strip ------------------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  border-right: 1px solid rgba(14, 30, 40, 0.12);
}
.stat-item:last-child { border-right: none; }

.surface-signal .stat-item {
  border-right-color: rgba(14, 30, 40, 0.1);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.03em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item {
    padding: var(--space-8) var(--space-4);
    border-bottom: 1px solid rgba(14, 30, 40, 0.1);
  }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(14, 30, 40, 0.1); }
  .stat-item:nth-child(even) { border-right: none; }
}

/* --- Split Layout ----------------------------------------- */
.split-50 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.split-60-40 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-16);
  align-items: center;
}
.split-40-60 {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-16);
  align-items: center;
}

.split-content { max-width: 520px; }
.split-content h2 { margin-bottom: var(--space-6); }
.split-content p  { margin-bottom: var(--space-6); }

.split-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.split-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Alternate layout — image left on even sections */
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .split-50,
  .split-60-40,
  .split-40-60 {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .split-reverse { direction: ltr; }
  .split-image { order: -1; }
}

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* --- Cards ------------------------------------------------ */
.card {
  background: #FFFFFF;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--color-overlay);
}

.card-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.card-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-image > img {
  transform: scale(1.04);
}

.card-body {
  padding: var(--space-8) var(--space-6);
}
.card-body h3 { margin-bottom: var(--space-3); }
.card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* Service vertical cards with accent top border */
.card--accent-top {
  border-top: 3px solid var(--color-accent);
}

/* --- Guarantee / Risk-Reversal Cards ---------------------- */
.guarantee-card {
  padding: var(--space-10) var(--space-8);
  text-align: center;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
}
.guarantee-card .guarantee-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-6);
  color: var(--color-accent);
}
.guarantee-card h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}
.guarantee-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  max-width: 32ch;
  margin: 0 auto;
}

/* --- Timeline --------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 80px;
  max-width: 720px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border-light);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-16);
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-number {
  position: absolute;
  left: -80px;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--surface-depth-text);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--color-bg);
  z-index: 1;
}

.timeline-item h3 { margin-bottom: var(--space-3); }
.timeline-item p { color: var(--color-text-secondary); }

@media (max-width: 640px) {
  .timeline { padding-left: 52px; }
  .timeline::before { left: 18px; }
  .timeline-number {
    left: -52px;
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
  }
}

/* --- Testimonial ------------------------------------------ */
.testimonial-block {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}
.testimonial-block::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--color-accent);
  opacity: 0.25;
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  pointer-events: none;
}
.testimonial-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, var(--text-3xl));
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: var(--space-8);
}
.testimonial-block cite {
  display: block;
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.testimonial-block .cite-detail {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-text-on-depth-muted);
  margin-top: var(--space-1);
}
.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-6);
  border: 2px solid var(--color-accent);
}

/* --- Team Grid -------------------------------------------- */
.team-card {
  text-align: center;
}
.team-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}
.team-card-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.4s ease;
}
.team-card:hover .team-card-image > img {
  filter: grayscale(0%);
}
.team-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}
.team-card .team-title {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* --- Client Logos ----------------------------------------- */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}
.logo-row img {
  max-height: 56px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: grayscale(30%);
}
.logo-row img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* --- Trust Badges ----------------------------------------- */
.badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.badge-row img {
  max-height: 72px;
  width: auto;
}

/* --- Global Impact / Overlay Section ---------------------- */
.overlay-section {
  position: relative;
  overflow: hidden;
}
.overlay-section .overlay-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  pointer-events: none;
}
.overlay-section .overlay-content {
  position: relative;
  z-index: 1;
}

/* --- Contact Form ----------------------------------------- */
.form-group {
  margin-bottom: var(--space-5);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 83, 116, 0.12);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Contact Info ----------------------------------------- */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.contact-info-item .icon-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 83, 116, 0.08);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  flex-shrink: 0;
}
.contact-info-item a {
  color: var(--color-primary);
  font-weight: 500;
  transition: color 0.2s ease;
}
.contact-info-item a:hover {
  color: var(--color-accent-hover);
}

.social-links {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.social-links a:hover {
  color: var(--surface-depth-text);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* --- Footer ----------------------------------------------- */
.site-footer {
  background: var(--surface-depth-bg);
  color: var(--surface-depth-text);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-on-depth-muted);
  line-height: 1.7;
  max-width: 32ch;
  margin-top: var(--space-4);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}
.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-on-depth-muted);
  padding: var(--space-2) 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--surface-depth-text); }

.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-on-depth-muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- CTA Band --------------------------------------------- */
.cta-band {
  text-align: center;
}
.cta-band h2 { margin-bottom: var(--space-4); }
.cta-band .lead { margin: 0 auto var(--space-8); }
.cta-band .btn { margin: 0 var(--space-3); }

/* --- Gold Accent Divider ---------------------------------- */
.accent-divider {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin-bottom: var(--space-8);
}
.accent-divider--centered {
  margin-left: auto;
  margin-right: auto;
}

/* --- Pillar List ------------------------------------------ */
.pillar-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.pillar-item {
  padding-left: var(--space-6);
  border-left: 3px solid var(--color-accent);
}
.pillar-item h3 { margin-bottom: var(--space-2); font-size: var(--text-xl); }
.pillar-item p { color: var(--color-text-secondary); font-size: var(--text-sm); }

/* --- Task List (services) --------------------------------- */
.task-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.task-list li {
  padding-left: var(--space-6);
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.task-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 1px;
}

/* --- Reveal Animation ------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children within a reveal group */
[data-reveal-group] > [data-reveal]:nth-child(1) { transition-delay: 0s; }
[data-reveal-group] > [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-group] > [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-group] > [data-reveal]:nth-child(4) { transition-delay: 0.24s; }

/* Fallback: if JS hasn't loaded after 3s, show everything */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- Image fade-in on load -------------------------------- */
img {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img.is-loaded {
  opacity: 1;
}
/* Immediately show images if they loaded before CSS parsed */
img[src=""],
img:not([src]) {
  visibility: hidden;
}

/* --- Utility ---------------------------------------------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.mx-auto     { margin-left: auto; margin-right: auto; }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.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;
}

/* --- Print ------------------------------------------------ */
@media print {
  [data-nav-role="header"],
  [data-nav-role="mobile-drawer"],
  .btn { display: none !important; }
  .section { padding: 32px 0; }
  body { color: #000; background: #fff; }
}


/* ─�� CSS safety-net (injected by proxy-orchestrator) ──
   Ensures image containers always have resolvable dimensions so imgs with
   height:100% don't collapse. Scoped to common container class patterns.

   :where() gives zero specificity so any explicit rule the Styles agent wrote
   (e.g. .hero-image-wrap { aspect-ratio: 4/5 }) wins. Without this, the broad
   [class*="image-wrap"] selector at equal specificity but later source order
   was overriding intended hero portrait ratios to landscape. */
:where(
  [class*="image-col"],
  [class*="image-wrap"],
  [class*="img-wrap"],
  [class*="img-container"],
  [class*="image-container"],
  [class*="photo-wrap"],
  [class*="photo-container"],
  .bento-card,
  .listing-img-wrap,
  .card-image,
  .feature-image,
  .hero-image,
  .hero-media
) {
  min-height: 320px;
  aspect-ratio: 3 / 2;
  position: relative;
}

/* Nav role contract (Phase 6a+, 2026-04-20). Elements declare semantic role
   via data-nav-role; safety-net targets roles, not structural attributes.
   Roles: header | desktop-nav | mobile-toggle | mobile-drawer.
   Styles Agent stays free to invent any HTML + layout; must annotate roles.
   This replaces the earlier [data-mobile-nav]{display:none} rule, which
   collided when Styles used one container for both desktop + mobile nav. */
[data-nav-role="mobile-drawer"] { display: none; }
[data-nav-role="mobile-toggle"] { display: none; }
@media (max-width: 1023px) {
  [data-nav-role="desktop-nav"] { display: none; }
  [data-nav-role="mobile-toggle"] { display: inline-flex; }
  [data-nav-role="mobile-drawer"][aria-expanded="true"] { display: flex; }
}
[class*="image-col"] > img,
[class*="image-wrap"] > img,
[class*="img-wrap"] > img,
[class*="img-container"] > img,
[class*="image-container"] > img,
[class*="photo-wrap"] > img,
[class*="photo-container"] > img,
.bento-card > img,
.bento-card-image > img,
.listing-img-wrap > img,
.card-image > img,
.feature-image > img,
.hero-image > img,
.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .hero-image-col,
  .hero-media,
  .hero-image {
    aspect-ratio: auto;
    min-height: 100vh;
  }
}
/* Fallback for any bare img with percentage height */
img[style*="height: 100%"],
img[style*="height:100%"] {
  min-height: 320px;
}
/* ── end safety-net ── */
