/* ===== Fonts (self-hosted) ===== */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plusjakartasans-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plusjakartasans-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plusjakartasans-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plusjakartasans-var.woff2') format('woff2');
}

/* ===== Tokens ===== */
:root {
  --navy: #074C7A;
  --navy-dark: #053955;
  --orange: #F68942;
  --orange-dark: #DD701F;
  --ink: #1F2A33;
  --muted: #667180;
  --bg: #FFFFFF;
  --bg-soft: #F5F9FC;
  --bg-navy: #074C7A;
  --line: #E4EAF0;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 50px;
  --shadow-card: 0 10px 30px -12px rgba(7, 76, 122, 0.18);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1180px;
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); margin: 0 0 16px; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 2.7vw, 2.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 500; }
p { margin: 0 0 16px; color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-nav { margin-left: auto; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  flex-shrink: 0;
}
.brand img { width: 48px; height: 48px; }
.site-nav ul { display: flex; gap: 32px; }
.site-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--orange); border-color: var(--orange); }
.nav-cta { flex-shrink: 0; padding: 12px 24px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--line); }
.mobile-nav.open { display: block; }
.mobile-nav ul { padding: 12px 24px 20px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 12px 0; font-family: var(--font-heading); font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a.active { color: var(--orange); }
.mobile-nav li:last-child { padding-top: 12px; border-bottom: none; }
.mobile-nav li:last-child a { border-bottom: none; text-align: center; }

@media (max-width: 900px) {
  .site-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 100px 0 112px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  overflow: hidden;
}
/* Full-height treatment only for heroes with the two-column image layout
   (home/about/services) — simple text-only intro heroes (contact, pricing,
   work, case studies) would otherwise be mostly empty space at 100vh. */
.hero:has(.hero-inner) {
  /* Full height minus the sticky header, so header + hero together fill
     exactly one viewport (and anything anchored to the hero's bottom edge,
     like the scroll cue, actually stays on-screen). */
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}
.hero > .wrap { width: 100%; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

/* Compact variant: keeps the illustrated image+text look but skips the
   full-viewport height, for pages where the content below the hero (a form,
   etc.) is the actual point of the page and shouldn't sit below the fold. */
.hero.hero-illustrated.hero-compact {
  min-height: auto;
  padding: 48px 0 32px;
}

/* Homepage hero: illustration free-standing on the left, text sitting
   directly on the page background close beside it (no card/shadow). */
.hero-illustrated .hero-inner { grid-template-columns: 0.8fr 1.2fr; gap: 24px; }
.hero-illustrated .hero-media img { box-shadow: none; border-radius: 0; }
@media (max-width: 900px) {
  .hero-illustrated .hero-inner { grid-template-columns: 1fr; }
}

/* Case-study heroes show a real screenshot/mockup rather than line art,
   so it gets the same card treatment (shadow + rounded corners) and the
   same even 50/50 column split as the other image+text sections in the
   case study, instead of the narrower image column used for line art. */
.hero.hero-illustrated.hero-card-image .hero-media img {
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
}
.hero.hero-illustrated.hero-card-image .hero-inner {
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

/* Scroll-down cue for full-height heroes */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
  animation: scrollCueBounce 2.2s ease-in-out infinite;
  z-index: 2;
}
.scroll-cue:hover { border-color: var(--orange); color: var(--orange); }
@keyframes scrollCueBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.hero p.lead { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.hero-stats {
  display: flex;
  gap: 28px;
  margin: 8px 0 32px;
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--navy); }
.hero-stat span { font-size: 0.85rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

/* ===== Section scaffolding ===== */
section { padding: 116px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,0.78); }
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow { justify-content: center; }

/* ===== Services / feature grid ===== */
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px; align-items: center; }

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-icon {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  background: rgba(246, 137, 66, 0.12);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.feature-icon svg { width: 36px; height: 36px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { margin-bottom: 0; font-size: 0.95rem; }

@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

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

@media (max-width: 600px) {
  .grid-5 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ===== Process steps ===== */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding-top: 8px; }
.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 16px;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }

/* ===== Testimonials ===== */
.testimonial-strip-wrap { position: relative; }
.testimonial-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px;
  margin: 0 -4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testimonial-strip::-webkit-scrollbar { display: none; }
.testimonial-strip .testimonial-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}
@media (max-width: 700px) {
  .testimonial-strip .testimonial-card { flex-basis: 84vw; }
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-stars { color: var(--orange); font-size: 0.9rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p.quote { color: var(--ink); font-size: 0.98rem; flex-grow: 1; }
.testimonial-author { font-family: var(--font-heading); font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.testimonial-author span { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }

/* ===== Project carousel (e.g. Featured Projects on /work/) ===== */
.project-strip-wrap { position: relative; }
.project-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px;
  margin: 0 -4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.project-strip::-webkit-scrollbar { display: none; }
.project-strip .project-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
}
.project-strip .project-card .thumb { aspect-ratio: 16/9; }
.project-strip .project-card .body { padding: 16px 18px; }
.project-strip .project-card .tag { font-size: 0.68rem; }
.project-strip .project-card h3 { font-size: 1.02rem; margin: 6px 0 4px; }
.project-strip .project-card p { font-size: 0.86rem; margin-bottom: 8px; }
@media (max-width: 1000px) {
  .project-strip .project-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .project-strip .project-card { flex-basis: 86vw; }
}

/* ===== Trusted-by logo strip ===== */
.logo-strip-wrap { position: relative; }
.logo-strip {
  display: flex;
  align-items: center;
  gap: 64px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px;
  margin: 0 -4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.logo-strip::-webkit-scrollbar { display: none; }
.logo-strip img { max-height: 110px; width: auto; flex: 0 0 auto; scroll-snap-align: start; opacity: 0.75; filter: grayscale(100%); transition: opacity 0.2s, filter 0.2s; }
.logo-strip img:hover { opacity: 1; filter: none; }

/* ===== Carousel dots (used with data-dots-track) ===== */
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dots button:hover { background: var(--muted); }
.carousel-dots button.active { background: var(--navy); transform: scale(1.35); }

/* ===== Project / case-study cards ===== */
.project-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.project-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .body { padding: 22px 24px; }
.project-card .tag { font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); }
.project-card h3 { margin: 8px 0 6px; }
.project-card p { margin-bottom: 10px; font-size: 0.93rem; }
.project-card .view-link { font-family: var(--font-heading); font-weight: 600; font-size: 0.88rem; color: var(--navy); }

.grid-5 .project-card .body { padding: 16px 16px; }
.grid-5 .project-card .tag { font-size: 0.66rem; }
.grid-5 .project-card h3 { font-size: 1rem; margin: 6px 0 4px; }
.grid-5 .project-card p { font-size: 0.85rem; margin-bottom: 8px; }
.grid-5 .project-card .view-link { font-size: 0.82rem; }

/* Thumb variant for case studies without a photo asset (systems/support work) */
.thumb-mock {
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mock-browser {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.mock-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-dots span { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.mock-dots span:nth-child(1) { background: #e4635a; }
.mock-dots span:nth-child(2) { background: #eab04a; }
.mock-dots span:nth-child(3) { background: #5cb87a; }
.mock-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.mock-pills span { background: var(--navy); color: #fff; border-radius: 5px; padding: 4px 10px; font-size: 0.68rem; font-weight: 600; font-family: var(--font-heading); }

/* ===== CTA band ===== */
.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.78); margin-bottom: 0; }

/* ===== Quote form ===== */
.quote-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
  border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color 0.2s, background 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: 14px; font-size: 0.9rem; font-weight: 600; }
.form-status.success { color: #1a7f3c; }
.form-status.error { color: #c0392b; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .quote-form-wrap { padding: 26px; }
}

/* ===== Info cards (Contact / Quote side panels) ===== */
.info-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.info-card + .info-card { margin-top: 24px; }
.info-card h3 { margin-bottom: 22px; }

.info-list { display: flex; flex-direction: column; gap: 20px; }
.info-item { display: flex; align-items: flex-start; gap: 14px; }
.info-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(246, 137, 66, 0.12);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-icon svg { width: 17px; height: 17px; }
.info-item .eyebrow { font-size: 0.72rem; margin-bottom: 3px; }
.info-value { margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem; color: var(--navy); }
.info-value a { color: var(--navy); transition: color 0.2s; }
.info-value a:hover { color: var(--orange); }

.info-steps { display: flex; flex-direction: column; gap: 20px; counter-reset: infostep; }
.info-step { display: flex; align-items: flex-start; gap: 14px; }
.info-step::before {
  counter-increment: infostep;
  content: counter(infostep);
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-step p { margin: 3px 0 0; font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem; color: var(--navy); }

@media (max-width: 640px) {
  .info-card { padding: 26px; }
}

/* ===== Google rating badge ===== */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 20px 9px 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 6px;
}
.google-badge:hover { transform: translateY(-2px); }
.google-badge-stars { display: flex; gap: 1px; color: var(--orange); line-height: 1; }
.google-badge-stars svg { width: 15px; height: 15px; }
.google-badge-text { font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; color: var(--navy); white-space: nowrap; }
.google-badge-text span { font-weight: 500; color: var(--muted); }

.google-badge--footer {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
}
.google-badge--footer .google-badge-text { color: #fff; }
.google-badge--footer .google-badge-text span { color: rgba(255,255,255,0.65); }

/* ===== FAQ accordion ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 24px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-item p { margin: 0 0 20px; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.82); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; max-width: 32ch; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.75); font-size: 0.92rem; transition: color 0.2s; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 24px; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Portfolio filter + gallery ===== */
.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-bar button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-bar button:hover { border-color: var(--navy); color: var(--navy); }
.filter-bar button.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.portfolio-grid { column-count: 3; column-gap: 18px; }
.portfolio-item {
  display: block;
  position: relative;
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
}
.portfolio-item img { width: 100%; display: block; transition: transform 0.3s; }
.portfolio-item:hover img { transform: scale(1.04); }
.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,76,122,0.88) 0%, rgba(7,76,122,0) 55%);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.portfolio-item:hover .overlay { opacity: 1; }
.portfolio-item .overlay span { color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem; }

@media (max-width: 900px) { .portfolio-grid { column-count: 2; } }
@media (max-width: 560px) { .portfolio-grid { column-count: 1; } }

/* Case-study galleries: a small, fixed set of images, so an even grid
   (rather than the masonry columns used for the big /work/ portfolio)
   keeps every row balanced left-to-right instead of running lopsided. */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.case-gallery .portfolio-item { margin-bottom: 0; aspect-ratio: 4 / 3; }
.case-gallery .portfolio-item img { height: 100%; object-fit: cover; }
@media (max-width: 900px) { .case-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .case-gallery { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 30, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox .caption { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; color: #fff; font-family: var(--font-heading); }
.lightbox .caption a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lightbox .caption a:hover { color: var(--orange); }
.lightbox .close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ===== Content modal (e.g. Quick-Start terms) ===== */
.content-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 30, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.content-modal.open { display: flex; }
.content-modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.content-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.content-modal-head h3 { margin: 0; }
.content-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.content-modal-close:hover { color: var(--orange); }
.content-modal-body { padding: 28px; overflow-y: auto; }
.content-modal-body h3:first-child { margin-top: 0; }

@media (max-width: 640px) {
  .content-modal-card { max-height: 90vh; }
  .content-modal-head, .content-modal-body { padding: 20px; }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SVG icon draw-on (paired with .reveal via JS) ===== */
.icon-draw path,
.icon-draw circle,
.icon-draw rect,
.icon-draw line,
.icon-draw polyline {
  transition: stroke-dashoffset 2.2s ease 0.15s;
}

/* ===== Decorative background blob (CTA bands only) ===== */
.section-navy { position: relative; overflow: hidden; }
.section-navy > .wrap { position: relative; z-index: 1; }
.section-navy::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  top: -120px;
  right: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(246,137,66,0.18) 0%, rgba(246,137,66,0) 70%);
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
