/* ==========================================================================
   Font
   ========================================================================== */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-700.woff2') format('woff2');
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  /* Palette */
  --c-base:    #0B1D30;
  --c-surface: #FFFFFF;
  --c-bg:      #F7F7F5;
  --c-bg-alt:  #EEECEA;
  --c-accent:  #D98A2B;
  --c-accent-h:#C17A20;
  --c-text:    #1A1A1A;
  --c-muted:   #6B7280;
  --c-border:  rgba(0,0,0,0.07);

  /* Layout */
  --max-w:  1280px;
  --nav-h:  72px;
  --gutter: clamp(1.5rem, 5vw, 2.5rem);

  /* Radius */
  --r-sm:  8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(0,0,0,0.04);
  --sh-sm: 0 2px 8px rgba(0,0,0,0.06);
  --sh-md: 0 8px 24px rgba(0,0,0,0.08);
  --sh-lg: 0 16px 48px rgba(0,0,0,0.10);

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.22,1,.36,1);

  /* Type */
  --f-sans: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--f-sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Brand selection color */
::selection {
  background: rgba(217, 138, 43, 0.2);
  color: var(--c-base);
}

/* Keyboard focus rings */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Performance: skip rendering off-screen sections */
.section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--alt  { background: var(--c-bg-alt); }
.section--dark { background: var(--c-base); color: #fff; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2 {
  margin-left: -0.04em; /* optical alignment for large type */
}

h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--c-base);
}

.heading--light, .section--dark h2 { color: #fff; }

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-accent);
  margin-bottom: 0.75rem;
}
.eyebrow--light { color: rgba(217,138,43,0.85); }

.lead {
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--c-muted);
  max-width: 520px;
}

.accent { color: var(--c-accent); }

/* Section Intro — centered */
.section-intro { text-align: center; margin-bottom: 3.5rem; }
.section-intro .lead { margin-inline: auto; }

/* Split Header — for "Why Us" */
.split-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}
.split-header__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  max-width: 380px;
  line-height: 1.6;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  border-radius: 100px;
  padding: 0.85rem 2rem;
  transition: all .25s var(--ease-out);
}
.btn-primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(217,138,43,0.35);
}
.btn-primary:hover {
  background: var(--c-accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217,138,43,0.45);
}
.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: .1s;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px #fff;
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(11,29,48,0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: background .3s var(--ease);
}
.site-nav.scrolled { background: rgba(11,29,48,0.97); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.nav-logo__region {
  font-size: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--c-accent);
  opacity: .85;
}
.nav-logo__name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.nav-logo__amp {
  color: var(--c-accent);
  font-weight: 400;
}

.nav-links {
  display: none; flex-direction: column;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: rgba(11,29,48,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: .5rem 0 1rem;
}
.nav-links.open { display: flex; }

.nav-links li a {
  display: block; padding: .7rem var(--gutter);
  color: rgba(255,255,255,0.65); font-size: .95rem; font-weight: 500;
  transition: color .2s;
}
.nav-links li a:hover { color: #fff; }

.nav-phone {
  color: rgba(255,255,255,0.45) !important;
  font-size: .85rem !important;
  font-variant-numeric: tabular-nums;
}
.nav-cta {
  display: inline-block;
  margin: .5rem var(--gutter) 0;
  padding: .55rem 1.4rem !important;
  background: var(--c-accent);
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 100px;
  font-size: .88rem !important;
  text-align: center;
  transition: background .2s;
}
.nav-cta:hover { background: var(--c-accent-h); }

/* Hamburger */
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer;
}
.hamburger {
  position: relative; width: 20px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: background .2s;
}
.hamburger::before, .hamburger::after {
  content: ''; position: absolute; left: 0;
  width: 20px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease-out);
}
.hamburger::before { top: -6px; }
.hamburger::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}

.hero-media {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0B1D30, #173454 50%, #0D1926);
}
.hero-media .hero-img,
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11,29,48,0.55) 0%,
    rgba(11,29,48,0.35) 50%,
    rgba(11,29,48,0.75) 100%
  );
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative; z-index: 1;
  padding: 5rem 0 6rem;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

/* Word-by-word reveal */
.hero-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: wordReveal .5s var(--ease-out) forwards;
}
.hero-headline .word:nth-child(1) { animation-delay: .1s; }
.hero-headline .word:nth-child(2) { animation-delay: .18s; }
.hero-headline .word:nth-child(3) { animation-delay: .26s; }
.hero-headline .word:nth-child(4) { animation-delay: .34s; }
.hero-headline .word:nth-child(5) { animation-delay: .50s; }
.hero-headline .word:nth-child(6) { animation-delay: .58s; }

@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em;
  animation: float 2.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ==========================================================================
   Marquee Band
   ========================================================================== */
.marquee-band {
  background: var(--c-base);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
}
.marquee-band p {
  text-align: center;
  font-size: clamp(.85rem, 2vw, 1rem);
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Services – Icon Tile Grid
   ========================================================================== */

/* Warm section background for tile contrast */
#services { background: var(--c-bg-alt); }

.media-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(145deg, #E4E0DA, #D5D1CB);
  color: var(--c-muted);
}
.media-placeholder span {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: .45;
}

/* Category heading — monospace + left accent */
.services-category { margin-bottom: 3rem; }

.services-category__heading {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-base);
  border-left: 3px solid var(--c-accent);
  padding-left: 1rem;
  margin-bottom: 1.75rem;
}
.services-category__heading svg {
  color: var(--c-accent);
  flex-shrink: 0;
}

/* Tile grid */
.services-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Individual tile — richer surface */
.service-tile {
  background: var(--c-surface);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--sh-xs);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11,29,48,0.10), 0 2px 6px rgba(11,29,48,0.06);
  border-color: rgba(217,138,43,0.15);
}

/* Icon container — warm (default / home) */
.service-tile__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(217,138,43,0.12), rgba(217,138,43,0.04));
  border: 1px solid rgba(217,138,43,0.08);
  color: var(--c-accent);
  margin-bottom: 1rem;
  transition: transform .3s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.service-tile__icon svg { width: 24px; height: 24px; }

.service-tile:hover .service-tile__icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(217,138,43,0.18), rgba(217,138,43,0.08));
  box-shadow: 0 4px 16px rgba(217,138,43,0.2);
}

/* Cool (tech) category */
.services-category--tech .services-category__heading svg { color: var(--c-base); }
.services-category--tech .service-tile__icon {
  background: linear-gradient(135deg, rgba(11,29,48,0.10), rgba(11,29,48,0.03));
  border-color: rgba(11,29,48,0.06);
  color: var(--c-base);
}
.services-category--tech .service-tile:hover .service-tile__icon {
  background: linear-gradient(135deg, rgba(11,29,48,0.16), rgba(11,29,48,0.06));
  box-shadow: 0 4px 16px rgba(11,29,48,0.15);
}

/* Tile typography */
.service-tile__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-base);
  letter-spacing: -0.01em;
  margin-bottom: .3rem;
}

.service-tile__desc {
  font-size: .85rem;
  color: rgba(107,114,128,0.85);
  line-height: 1.55;
}

/* Ampersand divider */
.services-divider {
  position: relative;
  text-align: center;
  margin: 2.5rem 0 3rem;
}
.services-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--c-border);
}
.services-divider span {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  background: var(--c-bg-alt);
  color: var(--c-accent);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

/* Dark CTA card */
.services-cta-card {
  background: var(--c-base);
  border-radius: var(--r-lg);
  padding: 2rem 2.5rem;
  text-align: center;
  margin-top: 2.5rem;
}
.services-cta-card__question {
  font-size: .95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: .75rem;
}
.services-cta-card__link {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-accent);
  transition: color .2s;
}
.services-cta-card__link span {
  display: inline-block;
  transition: transform .25s var(--ease-out);
}
.services-cta-card__link:hover { color: var(--c-accent-h); }
.services-cta-card__link:hover span { transform: translateX(4px); }
.services-cta-card__tagline {
  font-size: .88rem;
  font-style: italic;
  color: rgba(255,255,255,0.4);
  margin-top: .5rem;
}

/* ==========================================================================
   Why Us — Value Cards
   ========================================================================== */
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.value-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  transition: background .3s, transform .3s var(--ease-out);
}
.value-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.value-card__num {
  display: block;
  font-family: var(--f-mono);
  font-size: 2.5rem; font-weight: 700;
  background: linear-gradient(180deg, rgba(217,138,43,0.3), rgba(217,138,43,0.05));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: .75rem;
}

.value-card h3 {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: .4rem;
}
.value-card p {
  font-size: .9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-media__frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  position: relative;
}
.about-media__frame img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 3/4;
}

.media-placeholder--portrait {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #1A3755, #0F2439);
}
.media-placeholder--portrait svg { color: rgba(255,255,255,0.15); }
.media-placeholder--portrait span { color: rgba(255,255,255,0.3); }

.about-body h2 { margin-bottom: 1.5rem; }

.about-body__text {
  font-size: 1.05rem;
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: 1.15rem;
}
.about-body__text:last-of-type { margin-bottom: 2rem; }

.about-body__closer {
  font-weight: 600;
  color: var(--c-base);
  font-style: italic;
}

.trust-list { display: flex; flex-direction: column; gap: .6rem; }
.trust-list li {
  display: flex; align-items: center; gap: .65rem;
  font-size: .92rem; font-weight: 600; color: var(--c-base);
}
.trust-list li::before {
  content: '\2713';
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-accent);
  flex-shrink: 0;
}

/* ==========================================================================
   Service Area
   ========================================================================== */
.area-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.area-body h2 { margin-bottom: 1.25rem; }
.area-body__text {
  font-size: 1.05rem; color: var(--c-muted); line-height: 1.8;
}

.area-map__embed {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  overflow: hidden;
  z-index: 0; /* keep Leaflet controls below nav */
}
/* Hide Leaflet attribution clutter */
.area-map__embed .leaflet-control-attribution { font-size: .6rem; opacity: .4; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-sub {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.contact-cards { display: grid; grid-template-columns: 1fr; gap: .75rem; }

.contact-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-md);
  color: #fff;
  transition: background .25s, border-color .25s, transform .25s var(--ease-out);
}
.contact-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--c-accent);
  transform: translateY(-2px);
}
.contact-card svg { color: var(--c-accent); margin-bottom: .25rem; }
.contact-card strong {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,0.35); font-weight: 600;
}
.contact-card span { font-family: var(--f-mono); font-size: 1rem; font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #07111D;
  color: rgba(255,255,255,0.4);
}

.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
  margin-bottom: .75rem;
}
.footer-brand p { font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,0.3); }

.footer-col { display: flex; flex-direction: column; gap: .4rem; }
.footer-col h4 {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: rgba(255,255,255,0.2); margin-bottom: .4rem;
}
.footer-col a, .footer-col span { font-size: .88rem; color: rgba(255,255,255,0.45); transition: color .2s; }
.footer-col a:hover { color: var(--c-accent); }

.footer-bottom { padding: 1.25rem 0; text-align: center; }
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,0.18); }

/* ==========================================================================
   Reveal Animation
   ========================================================================== */
.section,
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.section.visible,
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger service tiles */
.service-tile {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out),
              box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
.section.visible .service-tile { opacity: 1; transform: translateY(0) scale(1); }
.section.visible .service-tile:nth-child(1) { transition-delay: .0s; }
.section.visible .service-tile:nth-child(2) { transition-delay: .08s; }
.section.visible .service-tile:nth-child(3) { transition-delay: .16s; }
.section.visible .service-tile:nth-child(4) { transition-delay: .24s; }
.section.visible .service-tile:nth-child(5) { transition-delay: .32s; }
.section.visible .service-tile:nth-child(6) { transition-delay: .40s; }

/* Stagger value cards */
.value-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out),
              background .3s;
}
.section.visible .value-card { opacity: 1; transform: translateY(0); }
.section.visible .value-card:nth-child(1) { transition-delay: .0s; }
.section.visible .value-card:nth-child(2) { transition-delay: .08s; }
.section.visible .value-card:nth-child(3) { transition-delay: .15s; }
.section.visible .value-card:nth-child(4) { transition-delay: .22s; }

/* ==========================================================================
   Tablet (640 px)
   ========================================================================== */
@media (min-width: 640px) {
  .services-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-cards { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }

  .area-layout { grid-template-columns: 1fr 1.3fr; }
}

/* ==========================================================================
   Desktop (1024 px)
   ========================================================================== */
@media (min-width: 1024px) {
  .section { padding: clamp(5rem, 9vw, 8rem) 0; }

  /* Nav */
  .nav-toggle { display: none; }
  .nav-links {
    display: flex; flex-direction: row;
    position: static; padding: 0;
    align-items: center; gap: .1rem;
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav-links li a {
    padding: .5rem .7rem; font-size: .88rem;
    position: relative;
  }
  .nav-links li a:not(.nav-cta):not(.nav-phone)::after {
    content: '';
    position: absolute; bottom: .2rem; left: .7rem; right: .7rem;
    height: 2px; background: var(--c-accent); border-radius: 1px;
    transform: scaleX(0);
    transition: transform .25s var(--ease-out);
    transform-origin: left;
  }
  .nav-links li a:not(.nav-cta):not(.nav-phone):hover::after { transform: scaleX(1); }

  .nav-cta {
    margin: 0 0 0 .5rem;
    padding: .5rem 1.2rem !important;
  }

  /* Hero left-align */
  .hero-content { text-align: left; }
  .hero h1 { max-width: 640px; }
  .hero-sub { max-width: 440px; }

  /* Split header side-by-side */
  .split-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3.5rem;
  }

  /* Services — 4 columns on desktop, wider gap */
  .services-tiles { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

  .value-grid { grid-template-columns: repeat(4, 1fr); }

  .about-layout { grid-template-columns: .85fr 1fr; gap: 5rem; }

  .contact-layout { grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: center; }
}

/* ==========================================================================
   Wide (1280 px)
   ========================================================================== */
@media (min-width: 1280px) {
  /* Services — all 4 tiles in one row */
  .services-tiles { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Sticky Mobile CTA
   ========================================================================== */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: .75rem var(--gutter);
  background: transparent;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
  pointer-events: none;
}
.sticky-cta.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.btn-sticky {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

/* Hide sticky CTA on desktop — nav CTA suffices */
@media (min-width: 1024px) {
  .sticky-cta { display: none; }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
/* ==========================================================================
   Map Fallback
   ========================================================================== */
.map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 2rem;
  font-size: 1rem;
  color: var(--c-muted);
  background: var(--c-bg-alt);
  line-height: 1.6;
}
.map-fallback a {
  color: var(--c-accent);
  text-decoration: underline;
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  /* Hide interactive / decorative elements */
  .site-nav,
  .nav-toggle,
  .sticky-cta,
  .scroll-hint,
  .marquee-band,
  .area-map,
  .hero-media,
  .hero-overlay,
  .media-placeholder { display: none !important; }

  /* Reset colors and backgrounds */
  body { background: #fff; color: #000; }
  .section--dark { background: #fff; color: #000; }
  .section--dark h2,
  .heading--light { color: #000; }
  .hero { min-height: auto; color: #000; background: #fff; }
  .hero-content { padding: 2rem 0; }
  .hero-eyebrow,
  .hero-sub { color: #444; }
  .hero h1 { color: #000; }
  .hero-headline .word { color: #000; }
  .hero-headline .word.accent { color: var(--c-accent); }

  /* Services CTA card readable in print */
  .services-cta-card { background: #f0f0f0; color: #000; }
  .services-cta-card__question, .services-cta-card__tagline { color: #444; }
  .services-cta-card__link { color: var(--c-accent); }

  /* Single-column everything */
  .services-tiles,
  .value-grid,
  .about-layout,
  .area-layout,
  .contact-layout,
  .footer-grid { grid-template-columns: 1fr !important; }

  /* Fix reveal animations — make everything visible */
  .section,
  [data-reveal],
  .service-tile,
  .value-card { opacity: 1 !important; transform: none !important; }

  /* Value cards readable in print */
  .value-card { border-color: #ccc; background: #fff; }
  .value-card p,
  .split-header__sub { color: #444; }
  .value-card__num { -webkit-text-fill-color: var(--c-accent); }

  /* Contact cards */
  .contact-card { background: #fff; color: #000; border-color: #ccc; }
  .contact-card strong { color: #666; }
  .contact-sub { color: #444; }

  /* Show URLs after links in body content */
  .about-body a[href]::after,
  .area-body a[href]::after,
  .contact-card[href]::after {
    content: " (" attr(href) ")";
    font-size: .8em;
    color: #666;
    word-break: break-all;
  }

  /* Footer cleanup */
  .site-footer { background: #fff; color: #000; border-top: 1px solid #ccc; }
  .footer-col a, .footer-col h4, .footer-brand p, .footer-bottom p { color: #444; }
}

@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;
  }
  .section, [data-reveal] { opacity: 1; transform: none; }
  .service-tile, .value-card { opacity: 1; transform: none !important; }
  .hero-headline .word { opacity: 1; transform: none; }
}
