/* A&I Master Trades — mockup-aligned layout overrides */

.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(0,45,114,.08);
  box-shadow: 0 4px 24px rgba(0,45,114,.06);
}
.site-header .nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.site-header .nav-links a:hover,
.site-header .nav-links a.active { color: var(--orange); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,45,114,.12);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-quote-btn {
  display: none;
  padding: 10px 16px !important;
  font-size: 11px !important;
  letter-spacing: 0.1em;
  min-height: 44px;
  border-radius: 8px;
}
@media (max-width: 960px) {
  .nav {
    padding: 12px 16px;
    gap: 12px;
  }
  .nav-links {
    display: flex;
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 0;
    border-bottom: 1px solid rgba(0,45,114,.08);
    box-shadow: 0 16px 40px rgba(0,45,114,.12);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    z-index: 99;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,45,114,.06);
    width: 100%;
  }
  .nav-toggle,
  .nav-quote-btn { display: inline-flex; }
  .nav-cta .desktop-only { display: none !important; }
  .nav-cta {
    gap: 8px;
    flex-shrink: 0;
  }
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.section-title .accent { color: var(--orange); }

#process .eyebrow,
#testimonials .eyebrow,
.cta-banner .eyebrow { color: var(--orange); }

.hero-ai {
  --trust-bar-h: 72px;
  min-height: auto;
  padding: 0;
}

.hero-ai-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--trust-bar-h);
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.94) 0%,
      rgba(255,255,255,.62) 18%,
      rgba(255,255,255,.12) 38%,
      rgba(255,255,255,0) 52%,
      rgba(0,26,69,.06) 78%,
      rgba(0,26,69,.22) 100%
    ),
    url('/assets/hero.webp') center 30% / cover;
}

.hero-ai-inner {
  min-height: clamp(520px, 72vh, 760px);
  padding-bottom: 56px;
}

.hero-eyebrow {
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.hero-ai-copy {
  position: relative;
}

.hero-ai h1,
.hero-ai .lead {
  text-shadow: none;
}

@media (min-width: 961px) {
  .hero-ai .btn-outline-light {
    color: var(--navy-deep);
    border-color: rgba(0,45,114,.45);
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .hero-ai .btn-outline-light:hover {
    background: var(--navy-deep);
    color: var(--white);
    border-color: var(--navy-deep);
  }
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-credential-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 16px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}

.hero-credential-chip img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .hero-credentials { gap: 8px; margin-bottom: 18px; }
  .hero-credential-chip {
    min-height: 46px;
    padding: 8px 12px;
  }
  .hero-credential-chip img { height: 26px; max-width: 120px; }
}

.trust-bar {
  width: 100%;
  flex: 0 0 var(--trust-bar-h);
  margin-top: 0;
  align-self: stretch;
  border-top: none;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  min-height: var(--trust-bar-h);
  box-sizing: border-box;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,.12);
}
.trust-bar-item:last-child { border-right: none; }
.trust-bar-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
}
.trust-bar-item span {
  line-height: 1.25;
}

/* Hero photo panel — hidden on desktop, revealed on mobile */
.hero-ai-photo { display: none; }

/* Footer credential badges */
.footer-credentials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.footer-credentials img {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.65;
  filter: brightness(0) invert(1);
}

@media (max-width: 960px) {
  /* ── Mobile hero: full-bleed photo, light top / scrim bottom ── */
  .hero-ai {
    --trust-bar-h: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-top: 0;
    background: var(--navy-deep);
    overflow: hidden;
  }
  .hero-ai-bg { display: none; }

  .hero-ai-photo {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
  }
  .hero-ai-photo img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center 28%;
    transform: scale(1.02);
  }
  .hero-ai-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0.08) 14%,
      rgba(0, 26, 69, 0) 36%,
      rgba(0, 26, 69, 0.22) 58%,
      rgba(0, 26, 69, 0.68) 74%,
      rgba(0, 26, 69, 0.94) 86%,
      var(--navy-deep) 96%
    );
  }

  .hero-ai-inner {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: min(75svh, 620px);
    padding: 80px 20px 20px;
    text-align: center;
    background: transparent;
  }

  .hero-ai-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(0, 26, 69, 0) 16%,
      rgba(0, 26, 69, 0) 40%,
      rgba(0, 26, 69, 0.32) 62%,
      rgba(0, 26, 69, 0.76) 80%,
      var(--navy-deep) 100%
    );
  }

  .hero-ai-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 20px 16px 8px;
    border-radius: 20px 20px 0 0;
  }

  .hero-eyebrow {
    display: inline-block;
    margin: 0 auto 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(249,196,0,.18);
    border: 1px solid rgba(249,196,0,.35);
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .hero-ai {
    color: var(--white);
  }
  .hero-ai h1 {
    font-size: clamp(32px, 8.8vw, 42px);
    line-height: 1.06;
    margin-bottom: 12px;
    color: var(--white);
    text-shadow: 0 2px 24px rgba(0,0,0,.45);
  }
  .hero-ai .lead {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 20px;
    color: rgba(255,255,255,.92);
    text-shadow: 0 1px 12px rgba(0,0,0,.4);
  }

  .hero-ai-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-bottom: 18px;
  }
  .hero-ai-actions .btn {
    width: 100%;
    max-width: none;
    justify-content: center;
    padding: 16px 20px;
  }
  .hero-ai-actions .btn-outline-light {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .hero-credentials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
    padding-top: 4px;
  }
  .hero-credential-chip {
    min-height: 36px;
    padding: 5px 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .hero-credential-chip img {
    height: 20px;
    max-width: 92px;
    filter: brightness(0) invert(1);
    opacity: 0.92;
  }

  .trust-bar {
    position: relative;
    z-index: 3;
    flex: none;
    background: var(--navy-deep);
    border-top: none;
    margin-top: -1px;
  }
  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 16px 14px 20px;
  }
  .trust-bar-item {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 14px 10px;
    text-align: center;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
  }
  .trust-bar-item:nth-child(odd) { border-right: none; }
  .trust-bar-icon {
    width: 44px;
    height: 44px;
  }
  .trust-bar-item span {
    font-size: 9px;
    letter-spacing: 0.06em;
    line-height: 1.3;
  }
}

@media (max-width: 380px) {
  .hero-ai-inner { padding-top: 76px; min-height: min(72svh, 580px); }
  .hero-ai h1 { font-size: 28px; }
  .nav-quote-btn { padding: 10px 12px !important; }
}

#about { background: var(--bg-soft); }

/* Yellow corner accent — sits behind the photo */
.about-split .media {
  overflow: visible;
  box-shadow: none;
}
.about-split .media img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.about-split .media::before {
  content: '';
  position: absolute;
  top: -18px;
  left: -18px;
  width: 46%;
  height: 46%;
  border-top: 5px solid var(--orange);
  border-left: 5px solid var(--orange);
  border-radius: 14px 0 0 0;
  pointer-events: none;
  z-index: 0;
}

#services {
  background: var(--bg-soft);
  padding: 88px 0;
}

.services-grid--icons {
  gap: 20px;
}
.services-grid--icons .service-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid rgba(0,45,114,.1);
  border-radius: 14px;
  padding: 32px 22px 22px;
  background: var(--white);
  cursor: pointer;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.services-grid--icons .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,45,114,.1);
  border-color: rgba(0,45,114,.22);
}
.services-grid--icons .service-card.is-active {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,196,0,.18), 0 8px 32px rgba(249,196,0,.1);
}
.services-grid--icons .service-card .icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  flex-shrink: 0;
}
.services-grid--icons .service-card .icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.services-grid--icons .service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
  text-align: center;
}
.services-grid--icons .service-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
  flex: 1;
  margin-bottom: 0;
}

/* Card footer — price + CTA */
.sc-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,45,114,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sc-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.3;
}
.sc-price strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-top: 1px;
}
.services-grid--icons .service-card .learn-more {
  font-size: 10px;
  letter-spacing: 0.1em;
  gap: 5px;
  flex-shrink: 0;
  transition: gap .18s ease;
}
.services-grid--icons .service-card .learn-more:hover { gap: 9px; }
.services-grid--icons .service-card.is-active .learn-more { color: var(--navy); }

#process {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
#process::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/bg-blueprint.svg') center/cover;
  opacity: 0.35;
  pointer-events: none;
}
#process .container { position: relative; z-index: 1; }
#process .section-title { color: var(--white); }

.process-steps::before {
  top: 36px;
  left: 8%;
  right: 8%;
  height: 0;
  border-top: 2px dashed rgba(249,196,0,.45);
  background: none;
}
.step-num { display: none; }
.step .icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(249,196,0,.25);
}
.step .icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.step h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#projects .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  text-align: left;
  margin-bottom: 40px;
}
#projects .section-head .heading { flex: 1; }

.projects-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.project-card {
  aspect-ratio: 3 / 4;
  border-radius: 6px;
}
.project-card .overlay {
  opacity: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(0,26,69,.94) 100%);
  padding: 16px;
  align-items: flex-end;
}
.project-card .overlay .price {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--orange);
  margin-bottom: 4px;
}
.project-card .overlay .meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.92);
  text-transform: uppercase;
}
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .project-card {
    aspect-ratio: 16 / 10;
    max-width: 100%;
  }
  #projects .section-head.flex-row {
    text-align: center;
    align-items: center;
  }
  #projects .section-head.flex-row .btn {
    align-self: center;
  }
}

#why {
  background: var(--bg-soft);
}
.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  min-width: 0;
}
.why-item {
  background: var(--white);
  border: 1px solid rgba(0,45,114,.08);
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
  min-width: 0;
}
.why-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.why-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
.why-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

#testimonials {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
#testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/bg-blueprint.svg') center/cover;
  opacity: 0.28;
  pointer-events: none;
}
#testimonials::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,45,114,.25) 0%, rgba(0,45,114,.92) 100%);
  pointer-events: none;
}
#testimonials > .container { position: relative; z-index: 1; }
#testimonials .section-title { color: var(--white); }
#testimonials .testimonial {
  background: var(--white);
  border: none;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
#testimonials .testimonial .stars { color: var(--orange); }
#testimonials .testimonial p { color: var(--graphite); }
#testimonials .testimonial .name { color: var(--navy); }

.cta-banner {
  background: var(--navy);
  padding: 88px 0 96px;
  text-align: center;
}
.cta-banner::before {
  background: url('/assets/bg-blueprint.svg') center/cover;
  opacity: 0.22;
}
.cta-banner::after {
  background: linear-gradient(180deg, rgba(0,45,114,.55) 0%, rgba(0,45,114,.92) 100%);
}

/* Lift content above pseudo-element overlays */
.cta-banner .container {
  position: relative;
  z-index: 1;
}

/* Heading block */
.cta-banner .cta-head {
  max-width: 620px;
  margin: 0 auto 36px;
  text-align: center;
}
.cta-banner .cta-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--white);
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 14px;
}
.cta-banner .cta-head p {
  color: rgba(255,255,255,.82);
  font-size: 17px;
  margin: 0;
}

/* Bare form — no container box */
.cta-banner .cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 660px;
  margin: 0 auto;
}
.cta-banner .cta-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cta-banner .cta-form label {
  display: block;
}
.cta-banner .cta-form input,
.cta-banner .cta-form select {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.97);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  padding: 0 14px;
}
.cta-banner .cta-form textarea {
  width: 100%;
  min-height: 110px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.97);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}
.cta-banner .cta-form input:focus,
.cta-banner .cta-form select:focus,
.cta-banner .cta-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,196,0,.28);
}
.cta-form-divider {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.14);
  text-align: left;
  margin-top: 4px;
}
.cta-banner .cta-form .btn {
  width: 100%;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .cta-banner .cta-form-row {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  background: var(--navy-deep);
  padding: 72px 0 28px;
}
.site-footer::before {
  background: url('/assets/bg-blueprint.svg') center/cover;
  opacity: 0.2;
}
.site-footer::after {
  background: linear-gradient(180deg, rgba(0,26,69,.72) 0%, rgba(0,26,69,.96) 100%);
}
.logo-footer img {
  width: clamp(150px, 22vw, 220px);
  height: auto;
  filter: none;
  opacity: 1;
}
.site-footer .logo.logo-footer {
  display: block;
  width: min(220px, 62vw);
}
.site-footer .logo.logo-footer img {
  width: 100%;
  max-width: none;
  height: auto;
}
.logo img { height: 68px; }

.about-split .section-title {
  font-size: clamp(30px, 3.2vw, 40px);
}


.section-head.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  text-align: left;
}
.section-head.flex-row .heading { flex: 1; }
.section-head.flex-row p.lead { margin-left: 0; margin-right: 0; }

@media (max-width: 860px) {
  #projects .section-head,
  .section-head.flex-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ── Mobile refinements ──────────────────────────────── */
@media (max-width: 768px) {
  #services    { padding: 56px 0; }
  .cta-banner  { padding: 56px 0 64px; }
  .site-footer { padding: 52px 0 24px; }
  /* Logo col full-width; 3 link cols share the 2-col grid below */
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .site-footer .logo.logo-footer {
    margin: 0 auto;
  }
  .footer-grid > div:first-child p {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-grid > div:first-child .socials {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    text-align: center;
    padding-top: 20px;
  }
  #projects .section-head,
  .section-head.flex-row {
    align-items: center;
    text-align: center;
  }
  .section-head.flex-row .heading { flex: none; width: 100%; }
}

@media (max-width: 600px) {
  /* Prevent ai-mockup.css height from overriding brand.css's mobile 56px */
  .logo img { height: 48px; }
}

@media (max-width: 480px) {
  /* Keep 2-col for link sections, logo still spans full */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  /* Contact is the 4th child — let it span full width so it doesn't sit orphaned */
  .footer-grid > div:nth-child(4) {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding-top: 16px;
  }
  .footer-bottom > div:nth-child(2) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* ── Mobile: centred layout + no horizontal overflow ── */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

@media (max-width: 768px) {
  .section-head,
  .section-head.flex-row {
    text-align: center;
    align-items: center;
  }
  .section-head.flex-row .heading {
    width: 100%;
  }
  .section-head p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .section-head .btn,
  .section-head.flex-row .btn {
    align-self: center;
  }

  #about .about-split {
    text-align: center;
    gap: 32px;
  }
  #about .about-split .checks {
    text-align: left;
    max-width: 340px;
    margin: 20px auto;
  }
  #about .about-split .btn {
    margin: 0 auto;
  }

  #services .section-head,
  #process .section-head,
  #why .section-head,
  #before-after .section-head,
  #testimonials .section-head {
    text-align: center;
  }

  .process-steps {
    text-align: center;
    max-width: 360px;
    margin: 0 auto;
  }
  .step .icon-wrap {
    margin-left: auto;
    margin-right: auto;
  }

  #why .why-grid {
    max-width: 400px;
    margin: 0 auto;
  }

  #before-after .ba-stage {
    max-width: 100%;
    margin: 0 auto;
  }
  #before-after .ba-frame {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
}
