/* All American Builders — Main stylesheet. Tokens live in variables.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 var(--space-4); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red-500); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--color-bg-alt); }
.section--navy { background: var(--navy-800); color: var(--navy-100); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: var(--space-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--red-500);
  margin-bottom: var(--space-2);
}
.section--navy .eyebrow { color: var(--red-500); }
.lead { font-size: var(--text-lg); color: var(--color-text-muted); }
.section--navy .lead { color: var(--navy-100); }
.grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.85rem 1.6rem;
  font-family: var(--font-heading); font-size: var(--text-base); font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--accent { background: var(--red-500); color: var(--white); border-color: var(--red-500); }
.btn--accent:hover { background: var(--red-600); border-color: var(--red-600); color: var(--white); }
.btn--primary { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.btn--primary:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn--outline-light:hover { background: var(--white); color: var(--navy-800); border-color: var(--white); }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--text-lg); }
.btn--block { width: 100%; }

/* Top bar */
.topbar { background: var(--navy-900); color: var(--navy-100); font-size: var(--text-sm); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: var(--space-4); }
.topbar a { color: var(--white); font-weight: 600; }
.topbar__note { display: none; }
@media (min-width: 768px) { .topbar__note { display: inline; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--space-4); }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 56px; width: auto; }
.brand__name { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: 1.25rem; color: var(--navy-800); line-height: 1; letter-spacing: 0.02em; }
.brand__tag { display: block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; color: var(--red-500); margin-top: 3px; }
.nav { display: none; }
.nav ul { display: flex; gap: var(--space-5); align-items: center; }
.nav a { font-family: var(--font-heading); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--text-sm); color: var(--navy-800); padding: var(--space-2) 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.is-active { border-bottom-color: var(--red-500); text-decoration: none; }
.header-cta { display: none; }
.nav-toggle { background: none; border: 0; padding: var(--space-2); color: var(--navy-800); display: inline-flex; }
.nav-toggle svg { width: 28px; height: 28px; }
@media (min-width: 1024px) {
  .nav, .header-cta { display: block; }
  .nav-toggle { display: none; }
}

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 60;
  background: var(--navy-800); color: var(--white);
  padding: var(--space-6) var(--gutter);
  transform: translateX(100%); transition: transform 240ms ease;
  display: flex; flex-direction: column;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-8); }
.mobile-nav__close { background: none; border: 0; color: var(--white); padding: var(--space-2); }
.mobile-nav__close svg { width: 28px; height: 28px; }
.mobile-nav ul li a { display: block; padding: var(--space-3) 0; font-family: var(--font-heading); font-size: var(--text-2xl); text-transform: uppercase; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-nav__cta { margin-top: auto; display: grid; gap: var(--space-3); }

/* Hero */
.hero {
  position: relative; color: var(--white);
  min-height: min(calc(100svh - var(--header-h) - 36px), 860px);
  display: flex; align-items: center;
  background: var(--navy-900);
  isolation: isolate;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before {
  /* Neutral (no tint) shade behind the text so white copy stays readable; photo colours unchanged */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.50) 50%, rgba(0,0,0,0.12) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--red-500) 0 120px, var(--white) 120px 240px);
}
.hero .container { padding-block: var(--space-12); }
.hero__inner { max-width: 760px; }
.hero__eyebrow { color: var(--white); text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.hero h1 { color: var(--white); font-size: var(--text-hero); font-weight: 700; margin-bottom: var(--space-4); text-shadow: 0 2px 14px rgba(0,0,0,0.55); }
.hero h1 em { font-style: normal; color: var(--red-500); }
.hero__lead { font-size: var(--text-xl); max-width: 620px; color: rgba(255,255,255,0.92); margin-bottom: var(--space-6); text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-8); }
.trust-strip { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); }
.trust-strip li { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--text-sm); color: rgba(255,255,255,0.9); }
.trust-strip svg { width: 20px; height: 20px; color: var(--red-500); flex: none; }

/* Stats band */
.stats { background: var(--white); border-bottom: 1px solid var(--color-border); }
.stats .grid { gap: 0; }
.stat { padding: var(--space-6) var(--space-4); text-align: center; border-bottom: 1px solid var(--color-border); }
@media (min-width: 640px) {
  .stat { border-bottom: 0; border-right: 1px solid var(--color-border); }
  .stat:last-child { border-right: 0; }
}
.stat__value { font-family: var(--font-heading); font-size: var(--text-4xl); font-weight: 700; color: var(--red-500); line-height: 1; }
.stat__label { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--color-text-muted); margin-top: var(--space-2); }

/* Service cards */
.card {
  background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red-500); transform: scaleY(0); transform-origin: top; transition: transform var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card__icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--navy-50); color: var(--navy-800); display: grid; place-items: center; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--color-text-muted); }
.card__link { margin-top: auto; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--text-sm); color: var(--red-500); }

/* Why us */
.why { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 1024px) { .why { grid-template-columns: 1.1fr 1fr; } }
.why__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.why__media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.why__badge {
  position: absolute; left: var(--space-4); bottom: var(--space-4);
  background: var(--red-500); color: var(--white); padding: var(--space-3) var(--space-4);
  font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.1;
  border-radius: var(--radius-sm);
}
.why__badge strong { display: block; font-size: var(--text-2xl); font-weight: 700; }
.feature-list { display: grid; gap: var(--space-5); }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); }
.feature__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-800); color: var(--white); display: grid; place-items: center; }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: var(--space-1); }
.feature p { margin: 0; color: var(--color-text-muted); }
.quote { border-left: 4px solid var(--red-500); padding-left: var(--space-4); margin: var(--space-6) 0 0; }
.quote p { margin: 0; font-family: var(--font-heading); font-size: var(--text-xl); color: var(--navy-800); text-transform: uppercase; }

/* Projects */
.projects { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--navy-900); display: block; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.project:hover img { transform: scale(1.05); }
.project__body { position: absolute; inset: auto 0 0; padding: var(--space-4); color: var(--white); background: linear-gradient(0deg, rgba(15,21,51,0.92), rgba(15,21,51,0)); }
.project__type { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--red-500); margin-bottom: 2px; }
.project__title { font-family: var(--font-heading); font-size: var(--text-xl); text-transform: uppercase; color: var(--white); margin: 0; }

/* Process */
.steps { display: grid; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: var(--space-6); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); }
.step__num { font-family: var(--font-heading); font-size: var(--text-4xl); font-weight: 700; color: var(--red-500); line-height: 1; margin-bottom: var(--space-3); }
.step h3 { color: var(--white); margin-bottom: var(--space-2); }
.step p { margin: 0; color: var(--navy-100); }

/* Service areas */
.areas { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.areas li { padding: var(--space-2) var(--space-4); border: 1px solid var(--color-border); border-radius: 999px; background: var(--white); font-size: var(--text-sm); font-weight: 500; }

/* CTA band */
.cta-band { background: var(--red-500); color: var(--white); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); padding-block: var(--space-8); }
.cta-band h2 { color: var(--white); margin: 0 0 var(--space-1); }
.cta-band p { margin: 0; color: rgba(255,255,255,0.9); }
.cta-band .btn--outline-light:hover { color: var(--red-600); }
.cta-band__phone { font-family: var(--font-heading); font-size: var(--text-3xl); color: var(--white); font-weight: 700; }
.cta-band__phone:hover { text-decoration: none; color: var(--white); }

/* Contact */
.contact { display: grid; gap: var(--space-8); }
@media (min-width: 1024px) { .contact { grid-template-columns: 1fr 1.2fr; } }
.contact-info dl { display: grid; gap: var(--space-4); margin: 0; }
.contact-info dt { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--text-sm); color: var(--red-500); }
.contact-info dd { margin: 0; font-size: var(--text-lg); }
.form { background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.form__row { display: grid; gap: 0 var(--space-4); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--space-1); margin-bottom: var(--space-4); }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--navy-800); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.9rem; font: inherit; color: var(--color-text);
  border: 1px solid var(--gray-400); border-radius: var(--radius-sm); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-800); outline: 2px solid var(--navy-100); }
.field textarea { min-height: 140px; resize: vertical; }
.form__status { margin-top: var(--space-3); font-size: var(--text-sm); min-height: 1.4em; }
.form__status.is-success { color: var(--color-success); }
.form__status.is-error { color: var(--color-error); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--navy-900); color: var(--navy-100); padding-block: var(--space-10) var(--space-6); font-size: var(--text-sm); }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: var(--space-8); margin-bottom: var(--space-8); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand img { height: 84px; width: auto; margin-bottom: var(--space-4); }
.footer-brand p { color: var(--gray-400); max-width: 34ch; }
.footer-title { font-family: var(--font-heading); text-transform: uppercase; font-weight: 600; color: var(--white); font-size: var(--text-base); letter-spacing: 0.08em; margin: 0 0 var(--space-3); }
.site-footer li { margin-bottom: var(--space-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); color: var(--gray-400); }
.footer-credit { text-align: center; color: var(--gray-400); font-size: var(--text-xs); margin: var(--space-5) 0 0; }
.footer-credit a { color: var(--gray-400); text-decoration: underline; }
.footer-credit a:hover { color: var(--white); }

/* Sticky mobile call bar */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; background: var(--navy-900); border-top: 2px solid var(--red-500); }
.mobile-cta a { padding: var(--space-3); text-align: center; color: var(--white); font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.06em; }
.mobile-cta a + a { background: var(--red-500); }
@media (min-width: 1024px) { .mobile-cta { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 52px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* About / answer block */
.about { border-bottom: 1px solid var(--color-border); }
.about__definition { font-size: var(--text-lg); line-height: var(--leading-relaxed); }
.facts { display: grid; gap: var(--space-3) var(--space-6); margin: var(--space-6) 0 0; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px dashed var(--color-border); }
.facts dt { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--text-sm); color: var(--red-500); }
.facts dd { margin: 0; }

/* FAQ */
.faq { display: grid; gap: var(--space-3); }
.faq__item { background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: var(--space-4) var(--space-5); padding-right: 3rem;
  font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 500; color: var(--navy-800);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: var(--space-5); top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--red-500); border-bottom: 2px solid var(--red-500);
  transform: translateY(-70%) rotate(45deg); transition: transform var(--transition);
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item[open] summary { border-bottom: 1px solid var(--color-border); }
.faq__answer { padding: var(--space-4) var(--space-5); color: var(--color-text); }
.faq__answer p { margin: 0; }

/* Subpage hero */
.page-hero { background: var(--navy-800); color: var(--white); padding-block: var(--space-8) var(--space-10); position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--red-500) 0 120px, var(--white) 120px 240px); }
.page-hero__eyebrow { color: var(--white); }
.page-hero__title { color: var(--white); font-size: var(--text-4xl); font-weight: 700; max-width: 22ch; }
.page-hero__desc { font-size: var(--text-xl); max-width: 62ch; color: rgba(255,255,255,0.9); margin-bottom: var(--space-6); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0 0 var(--space-5); padding: 0; font-size: var(--text-sm); color: rgba(255,255,255,0.7); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: rgba(255,255,255,0.4); }
.breadcrumb a { color: var(--white); }

/* Subpage content layout */
.split { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); } }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-6); }
.prose h2:first-of-type { margin-top: 0; }
.prose p { font-size: var(--text-lg); line-height: var(--leading-relaxed); }
.checklist { display: grid; gap: var(--space-2); margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 50%; background: var(--red-500); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/%3E%3C/svg%3E") center/contain no-repeat; }
.checklist--compact { gap: var(--space-2); margin-bottom: var(--space-4); font-size: var(--text-sm); }
.side { display: grid; gap: var(--space-5); position: sticky; top: calc(var(--header-h) + var(--space-4)); }
.side picture img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.side__card { background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.linklist { display: grid; gap: var(--space-1); }
.linklist a { color: var(--navy-800); font-weight: 500; }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { text-decoration: none; }
.closing__text { font-size: var(--text-lg); line-height: var(--leading-relaxed); }

/* Project galleries */
.project__meta { display: block; font-size: var(--text-xs); color: rgba(255,255,255,0.75); margin-top: 2px; }
.tabs { display: flex; gap: var(--space-2); border-bottom: 2px solid var(--color-border); margin-bottom: var(--space-5); }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: var(--space-3) var(--space-4); font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--text-base); color: var(--gray-600); }
.tab:hover { color: var(--navy-800); }
.tab.is-active { color: var(--navy-800); border-bottom-color: var(--red-500); }
.tab__count { display: inline-block; min-width: 1.6em; padding: 0 0.4em; margin-left: var(--space-2); border-radius: 999px; background: var(--navy-50); color: var(--navy-800); font-size: var(--text-xs); text-align: center; }
.tab.is-active .tab__count { background: var(--red-500); color: var(--white); }
.tab-panel[hidden] { display: none; }
.gallery { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); } }
.gallery__item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--navy-50); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.gallery__item:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,14,35,0.94); display: none; align-items: center; justify-content: center; padding: var(--space-4); }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 6rem); object-fit: contain; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__btn { position: absolute; background: rgba(255,255,255,0.12); color: var(--white); border: 0; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; }
.lightbox__btn:hover { background: var(--red-500); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: var(--space-4); right: var(--space-4); }
.lightbox__prev { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: var(--space-4); left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-family: var(--font-heading); letter-spacing: 0.06em; }
body.lightbox-open { overflow: hidden; }

/* "See all projects" tile */
.project--more { background: var(--navy-800); display: grid; place-items: center; text-align: center; }
.project__more { display: grid; gap: var(--space-3); padding: var(--space-6); justify-items: center; }
.project__more-title { font-family: var(--font-heading); font-size: var(--text-2xl); text-transform: uppercase; color: var(--white); font-weight: 700; }
.project__more-sub { color: var(--navy-100); font-size: var(--text-sm); }

.side__photo { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy-900); text-decoration: none; }
.side__photo:hover { text-decoration: none; }
.side__photo img { width: 100%; border-radius: 0; box-shadow: none; transition: transform 400ms ease; }
.side__photo:hover img { transform: scale(1.04); }
.side__photo-caption { display: block; padding: var(--space-3) var(--space-4); color: var(--white); font-size: var(--text-sm); }

/* In-page anchors land below the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.linkgrid { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.linkgrid a { display: inline-block; padding: var(--space-2) var(--space-4); border: 1px solid var(--color-border); border-radius: 999px; background: var(--white); font-weight: 500; color: var(--navy-800); }
.linkgrid a:hover { border-color: var(--red-500); color: var(--red-500); text-decoration: none; }

.article-meta { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-5); }

.footer-updated { color: var(--gray-400); }
.footer-updated time { color: var(--navy-100); }

.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.footer-social a { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--white); font-weight: 500; }
.footer-social a:hover { color: var(--red-500); text-decoration: none; }
.footer-social svg { width: 22px; height: 22px; }

/* Services overview */
.svc-list { display: grid; gap: var(--space-6); }
.svc { display: grid; gap: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--white); overflow: hidden; }
@media (min-width: 768px) { .svc { grid-template-columns: 2fr 3fr; } }
.svc__photo img { width: 100%; height: 100%; object-fit: cover; }
.svc__body { padding: var(--space-5) var(--space-5) var(--space-6); }
@media (min-width: 768px) { .svc__body { padding-left: 0; } }
.svc__body h3 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.svc__body h3 a { color: var(--navy-800); }
.svc__body p { color: var(--color-text-muted); }

/* FAQ page */
.faq-toc { padding-block: var(--space-6) 0; }
.faq-group { padding-block: var(--space-8); }
.faq-group + .faq-group { border-top: 1px solid var(--color-border); }

/* About page statement */
.statement { border-left: 4px solid var(--red-500); background: var(--navy-50); padding: var(--space-5) var(--space-6); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: var(--space-6); }
.statement p { font-size: var(--text-lg); }
.statement p:last-child { margin-bottom: 0; }
.statement__tagline { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy-800); font-size: var(--text-xl); }
