/* ==========================================================================
   GPIS — site styles
   Layout language borrowed from contractor templates (alternating story
   blocks, stat counters, numbered process, project grid) on the existing
   GPIS identity: blue #2563eb, square corners, Montserrat + Open Sans.
   ========================================================================== */

:root {
  color-scheme: light;
  font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-title: 'Montserrat', sans-serif;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f4f5f7;
  --text: #111111;
  --muted: #555555;
  --muted-soft: #777777;
  --border: #e2e5ea;
  --border-strong: #cccccc;

  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;

  --dark: #14181f;
  --dark-soft: #1c222b;
  --dark-line: rgba(255, 255, 255, 0.10);
  --on-dark-muted: #a9b2c0;

  --radius: 0px;
  --max-width: 1200px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(100% - 40px, var(--max-width)); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  font-family: var(--font-title);
  font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* --- Shared type ---------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--brand);
}
.eyebrow.on-dark { color: #ffffff; }
.eyebrow.on-dark::before { background: var(--brand); }

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text);
  margin: 0;
}

.section { padding: 100px 0; }
.section-soft { background: var(--surface-soft); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-header { max-width: 760px; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); }
.section-header p { margin: 20px 0 0; color: var(--muted); font-size: 1.02rem; }
.section-dark .section-header p { color: var(--on-dark-muted); }

.header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.header-split .section-header { margin-bottom: 0; }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 15px 30px;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--text); border-color: var(--text); }

.btn-dark { color: #fff; background: var(--text); border-color: var(--text); }
.btn-dark:hover, .btn-dark:focus-visible { background: var(--brand); border-color: var(--brand); }

.btn-outline { color: var(--text); background: transparent; border-color: var(--text); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--text); color: #fff; }

.btn-outline-light { color: #fff; background: transparent; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover, .btn-outline-light:focus-visible { background: #fff; color: var(--text); border-color: #fff; }
/* Kept: used for buttons placed on any .section-dark background. */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--brand);
}
.link-arrow .arrow { transition: transform 0.2s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* --- Top bar + nav -------------------------------------------------------- */

.topbar {
  background: var(--dark);
  color: var(--on-dark-muted);
  font-size: 0.82rem;
  padding: 9px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--brand); }
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }

nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  background: var(--text);
  color: var(--brand);
  display: grid; place-items: center;
  font-family: var(--font-title); font-weight: 800; font-size: 1.4rem;
}
.brand-text { display: grid; line-height: 1.15; }
.brand-name {
  font-family: var(--font-title); font-weight: 800; font-size: 1.25rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.brand-sub {
  font-family: var(--font-title); color: var(--muted);
  font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-family: var(--font-title);
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  position: relative; padding: 6px 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--brand); transition: width 0.2s ease;
}
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link.is-active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: flex; align-items: center; gap: 10px; }
.nav-phone .icon {
  width: 40px; height: 40px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 1rem;
}
.nav-phone small {
  display: block; font-size: 0.66rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-title); font-weight: 600;
}
.nav-phone strong { font-family: var(--font-title); font-size: 0.95rem; }

.mobile-menu-btn {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  font-size: 1.2rem; cursor: pointer;
}
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--border); }
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-title); font-weight: 700;
  text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.06em;
}
.mobile-nav a:hover { background: var(--surface-soft); color: var(--brand); }

/* --- Hero ----------------------------------------------------------------- */

.hero { border-bottom: 1px solid var(--border); }
.hero-shell { display: grid; grid-template-columns: 1.05fr 0.95fr; }

.hero-content {
  background: var(--surface-soft);
  padding: 90px 7% 90px max(20px, calc((100vw - var(--max-width)) / 2));
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.hero-title { font-size: clamp(2.1rem, 3.7vw, 3.6rem); margin-bottom: 24px; }
.hero-desc { font-size: 1.05rem; color: #444; margin: 0 0 36px; max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; border-top: 1px solid rgba(0,0,0,.1); padding-top: 30px; }
.trust-pill strong {
  display: block; font-family: var(--font-title); font-weight: 700;
  font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.trust-pill span { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

.hero-media { position: relative; min-height: 620px; background: var(--dark); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute; left: 0; bottom: 60px;
  background: var(--brand); color: #fff;
  padding: 26px 34px; max-width: 260px;
}
.hero-badge .num {
  display: block; font-family: var(--font-title); font-weight: 800;
  font-size: 3rem; line-height: 1;
}
.hero-badge .cap {
  display: block; margin-top: 6px;
  font-family: var(--font-title); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.76rem;
}

/* --- Stats ---------------------------------------------------------------- */

.stats-strip { background: var(--dark); color: #fff; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; position: relative; padding: 0 12px; }
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 10%;
  height: 80%; width: 1px; background: var(--dark-line);
}
.stat .num {
  font-family: var(--font-title); font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: var(--brand);
}
.stat .label {
  margin-top: 10px; font-family: var(--font-title); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.76rem; color: var(--on-dark-muted);
}

/* --- Alternating story blocks --------------------------------------------- */

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story.reverse .story-media { order: 2; }
.story-media { position: relative; }
.story-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-media .accent {
  position: absolute; right: -18px; bottom: -18px;
  width: 140px; height: 140px; border: 6px solid var(--brand); z-index: -1;
}
.story h2 { font-size: clamp(1.8rem, 2.9vw, 2.6rem); }
.story p { color: var(--muted); }

.checklist { display: grid; gap: 14px; margin: 28px 0 34px; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.checklist li::before {
  content: '✓'; flex: none;
  width: 24px; height: 24px; margin-top: 3px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
}
.checklist strong { color: var(--text); display: block; font-family: var(--font-title); text-transform: uppercase; font-size: 0.9rem; }

/* --- Services ------------------------------------------------------------- */

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--border);
  padding: 38px 32px; display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card::after {
  content: ''; position: absolute; left: 0; top: 0;
  width: 100%; height: 3px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.service-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px; background: var(--text); color: var(--brand);
  display: grid; place-items: center; font-size: 1.5rem;
}
.service-card h3 { font-size: 1.1rem; }
.service-card p { margin: 0; color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.service-tag {
  font-family: var(--font-title); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-soft);
}

/* --- Projects ------------------------------------------------------------- */

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-btn {
  border: 1px solid var(--border-strong); background: #fff; color: var(--text);
  padding: 10px 20px; cursor: pointer;
  font-family: var(--font-title); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { border-color: var(--text); }
.filter-btn.is-active { background: var(--text); color: #fff; border-color: var(--text); }
.filter-count {
  display: inline-block; margin-left: 4px;
  font-size: 0.66rem; opacity: 0.55; vertical-align: 1px;
}

.projects-footer {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-top: 34px;
}
.projects-count {
  margin: 0; color: var(--muted); font-size: 0.85rem;
  font-family: var(--font-title); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card {
  position: relative; overflow: hidden; cursor: pointer;
  border: none; padding: 0; background: var(--surface-soft);
  aspect-ratio: 4 / 3; display: block; width: 100%;
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover img { transform: scale(1.06); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,14,20,.88) 0%, rgba(10,14,20,.15) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; text-align: left;
  opacity: 0; transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay,
.project-card:focus-visible .project-overlay { opacity: 1; }
.project-tag {
  align-self: flex-start;
  background: var(--brand); color: #fff;
  font-family: var(--font-title); font-weight: 700;
  font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; margin-bottom: 10px;
}
.project-title {
  color: #fff; font-family: var(--font-title); font-weight: 700;
  text-transform: uppercase; font-size: 0.98rem; line-height: 1.3;
}
.project-card.is-hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 11, 16, 0.94);
  display: none; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; object-fit: contain; }
.lightbox-caption {
  position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  color: #fff; font-family: var(--font-title); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.1); color: #fff;
  border: none; cursor: pointer; width: 52px; height: 52px;
  font-size: 1.6rem; display: grid; place-items: center;
  transition: background-color 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--brand); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* --- Process -------------------------------------------------------------- */

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding-top: 26px; border-top: 3px solid var(--dark-line); }
.step .step-num {
  font-family: var(--font-title); font-weight: 800;
  font-size: 3.2rem; line-height: 1; color: rgba(255,255,255,.14);
}
.step h3 { font-size: 1.05rem; margin: 8px 0 12px; }
.step p { margin: 0; color: var(--on-dark-muted); font-size: 0.93rem; }

/* --- Testimonials --------------------------------------------------------- */

.testimonial-track { display: grid; grid-template-columns: 1fr; }
.testimonial {
  grid-column: 1; grid-row: 1;
  background: #fff; border: 1px solid var(--border);
  padding: 48px; opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease;
}
.testimonial.active { opacity: 1; visibility: visible; }
.testimonial .stars { color: #f5a623; letter-spacing: 3px; margin-bottom: 18px; }
.testimonial blockquote {
  margin: 0 0 28px; font-size: 1.12rem; line-height: 1.8; color: var(--text);
}
.testimonial-person { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar {
  width: 54px; height: 54px; flex: none;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-title); font-weight: 800; font-size: 1.1rem;
}
.testimonial-person strong { display: block; font-family: var(--font-title); text-transform: uppercase; font-size: 0.9rem; }
.testimonial-person span { color: var(--muted); font-size: 0.85rem; }

.carousel-nav { display: flex; gap: 12px; margin-top: 26px; }
.carousel-btn {
  width: 52px; height: 52px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--text); cursor: pointer;
  font-size: 1.4rem; display: grid; place-items: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.carousel-btn:hover { background: var(--text); color: #fff; border-color: var(--text); }

/* --- Contact -------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; }
.contact-panel { background: #fff; border: 1px solid var(--border); padding: 44px; }
.section-dark .contact-panel { background: var(--dark-soft); border-color: var(--dark-line); }
.contact-panel h3 { font-size: 1.6rem; }

.contact-info { display: grid; gap: 14px; margin-top: 30px; }
.contact-info-item { padding: 20px; background: var(--surface-soft); }
.section-dark .contact-info-item { background: rgba(255,255,255,.04); }
.contact-info-item strong {
  display: block; font-family: var(--font-title); font-weight: 700;
  text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--muted);
}
.section-dark .contact-info-item strong { color: var(--on-dark-muted); }
.contact-info-item a, .contact-info-item span { font-size: 1.02rem; }

.form-grid { display: grid; gap: 16px; }
.form-grid .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid label {
  font-family: var(--font-title); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border-strong); background: #fff; color: var(--text);
  border-radius: var(--radius);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--brand);
}
.form-grid textarea { min-height: 150px; resize: vertical; }
.form-field { display: grid; gap: 7px; }
.legal-note { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* Contact actions — one tappable row per channel. Replaces the old trio of
   CTA cards, which repeated the phone and email already shown below them. */
.contact-actions { display: grid; gap: 12px; margin-top: 26px; }
.contact-action {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-line);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.contact-action:hover, .contact-action:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand);
}
.contact-action .icon {
  width: 46px; height: 46px; flex: none;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 1.15rem;
}
.contact-action .text { display: grid; gap: 2px; min-width: 0; }
.contact-action small {
  color: var(--on-dark-muted); font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-family: var(--font-title); font-weight: 600;
}
.contact-action strong {
  color: #fff; font-family: var(--font-title);
  font-size: 1.05rem; font-weight: 700;
}
.contact-action .arrow { margin-left: auto; color: var(--brand); font-size: 1.2rem; transition: transform 0.2s ease; }
.contact-action:hover .arrow { transform: translateX(4px); }

/* --- FAQ ------------------------------------------------------------------ */

.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-content: start; }
details { background: #fff; border: 1px solid var(--border); padding: 22px 26px; height: fit-content; }
summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-title); font-weight: 700; text-transform: uppercase;
  font-size: 0.92rem; position: relative; padding-right: 34px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); color: var(--brand); font-size: 1.5rem; line-height: 1;
}
details[open] summary::after { content: '−'; }
details p { margin: 16px 0 0; color: var(--muted); font-size: 0.96rem; }

/* --- Footer --------------------------------------------------------------- */

footer.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 80px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 56px;
}
.footer-col h4 {
  font-family: var(--font-title); font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem;
  margin: 0 0 20px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a:hover { color: var(--brand); }
.footer-col p { margin: 0 0 18px; font-size: 0.92rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--on-dark-muted); }
.footer-bottom {
  border-top: 1px solid var(--dark-line);
  padding: 24px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem;
}

/* --- Reveal on scroll ----------------------------------------------------- */

/* Scoped to .js so the page is fully readable when scripts fail or are blocked.
   Without this, a single JS error would leave every .reveal block invisible. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1080px) {
  .services-grid, .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .section { padding: 70px 0; }
  .hero-shell { grid-template-columns: 1fr; }
  .hero-content { padding: 60px 20px; order: 2; }
  .hero-media { min-height: 380px; order: 1; }
  .hero-badge { bottom: 0; padding: 20px 24px; }
  .hero-badge .num { font-size: 2.2rem; }
  .story, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .story.reverse .story-media { order: 0; }
  .story-media .accent { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .stat:nth-child(3)::before { display: none; }

  /* Header on small screens: brand + one-tap call + menu. The full "Get a
     quote" button is dropped here — it overflowed the bar and pushed the
     hamburger off-screen; the CTA still lives in the menu and the hero. */
  .nav-links { display: none; }
  .nav-actions .btn-primary { display: none; }
  .nav-actions { gap: 10px; }
  .nav-phone { display: flex; }
  .nav-phone small, .nav-phone strong { display: none; }
  .nav-phone .icon { width: 46px; height: 46px; background: var(--brand); color: #fff; font-size: 1.1rem; }
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 620px) {
  .services-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  /* Photos stay two-up: one column turned the portfolio into ~6 screens of
     scrolling on a phone. */
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .project-overlay { padding: 14px; }
  .project-title { font-size: 0.82rem; }
  /* The strapline wrapped onto three lines and doubled the header height. */
  .site-nav .brand-sub { display: none; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.2rem; }
  .topbar { font-size: 0.76rem; }
  .hero-trust { grid-template-columns: 1fr; gap: 16px; }
  .form-grid .row { grid-template-columns: 1fr; }
  .contact-panel { padding: 30px 22px; }
  /* Uppercase tracking pushed these captions onto a second line at 375px. */
  .contact-action { padding: 14px 16px; gap: 12px; }
  .contact-action small { font-size: 0.68rem; letter-spacing: 0.03em; }
  .contact-action strong { font-size: 0.98rem; }
  .testimonial { padding: 30px 24px; }
  .stat + .stat::before { display: none; }
  .topbar-inner { justify-content: center; text-align: center; }
}
