/* =========================================================
   Stemax Wac, Corp. — site styles
   ========================================================= */

:root {
  --blue: #0d5ce0;
  --blue-dark: #0a49b6;
  --blue-badge: #1553d1;
  --navy: #0c2d62;
  --navy-900: #0b2550;
  --footer: #0c2954;
  --footer-bottom: #0a2249;
  --text: #1d2939;
  --muted: #4b5567;
  --line: #e3e8f0;
  --soft: #f6f8fc;
  --soft-2: #edf1f7;
  --star: #f6b100;
  --white: #fff;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --shadow: 0 4px 16px rgba(14, 38, 84, 0.09);
  --shadow-lg: 0 14px 34px rgba(14, 38, 84, 0.16);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.12; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid #7fb0ff; outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(13, 92, 224, .28); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn--outline { border-color: rgba(255, 255, 255, .9); color: #fff; background: rgba(255, 255, 255, .04); }
.btn--outline:hover { background: #fff; color: var(--navy); }
.btn--lg { padding: 13px 22px; font-size: 16.5px; }
.btn--block { width: 100%; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
.logo__icon { width: 50px; height: 31px; fill: currentColor; }
.logo__text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo--light { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 2px 10px rgba(12, 45, 98, .05);
}
/* Paints the phone's status-bar area above the sticky header */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 101;
  background: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
}
.header-inner > .logo {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid #d7dde7;
}
.main-nav { flex: 1; display: flex; align-items: center; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a:not(.btn) {
  position: relative;
  display: block;
  padding: 24px 15px;
  font-weight: 600;
  font-size: 15px;
  color: #1a2740;
  transition: color .2s;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .25s;
}
.main-nav a:not(.btn):hover,
.main-nav a.is-active { color: var(--blue); }
.main-nav a.is-active::after { transform: scaleX(1); }
.main-nav__cta { display: none; }

.header-cta { margin-left: auto; padding: 10px 22px; }

.header-call,
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
}
.header-call { background: var(--blue); color: #fff; margin-left: auto; }
.header-call .icon { width: 20px; height: 20px; }
.nav-toggle { background: transparent; color: var(--navy); margin-left: 6px; }
.nav-toggle .icon { width: 26px; height: 26px; fill: none; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(100deg, #061f4d 0%, #0a3173 45%, #1249a6 100%);
}
.hero__photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  /* Starts just past the 600px text column, so the copy always sits on the blue */
  left: calc(max(0px, (100% - 1200px) / 2) + 24px + 600px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 90px);
          mask-image: linear-gradient(90deg, transparent 0, #000 90px);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 40%; }

.hero__inner { position: relative; z-index: 1; }
.hero__content {
  max-width: 590px;
  padding: 36px 0 34px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px 5px 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--blue-badge);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.badge .icon { width: 13px; height: 13px; }
.badge__sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .6); margin: 0 3px; }
.badge__lead { display: inline-flex; align-items: center; gap: 7px; }
/* Narrow phones: drop "Local Contractor" so the badge stays on one line */
@media (max-width: 430px) { .badge__lead { display: none; } }

.hero h1 {
  font-size: clamp(2.05rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-shadow: 0 2px 14px rgba(0, 20, 60, .35);
}
.hero__lead {
  margin-top: 16px;
  max-width: 500px;
  font-size: 16.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .94);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
  font-size: 13.5px;
  font-weight: 500;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 20px;
}
.trust li:first-child { padding-left: 8px; }
.trust li + li { border-left: 1px solid rgba(255, 255, 255, .35); }
.trust .icon { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0 60px; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head p {
  max-width: 560px;
  margin: 8px auto 0;
  font-size: 15px;
  color: #344054;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
}
.section-title::before,
.section-title::after {
  content: "";
  flex: 0 1 120px;
  min-width: 14px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #9fb0c8);
}
.section-title::after { background: linear-gradient(90deg, #9fb0c8, transparent); }

/* ---------- Services ---------- */
.services { background: linear-gradient(#fff, var(--soft)); }
.service-grid {
  --gap: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}
.service-card {
  flex: 0 1 calc((100% - var(--gap) * 6) / 7);
  min-width: 0;
  padding: 20px 8px 18px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__icon {
  width: 52px; height: 52px;
  margin: 0 auto 8px;
  color: #1258d6;
  fill: currentColor;
}
.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--navy);
}
.service-card p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
}
.services-more {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 9px 22px 9px 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 15px;
  color: var(--muted);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.services-more strong { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.services-more:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.services-more__plus {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Gallery ---------- */
.gallery { background: var(--soft-2); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #cfd8e5;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(12, 45, 98, 0);
  transition: background .3s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { background: rgba(12, 45, 98, .15); }

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}
.review-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 26px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stars { display: flex; gap: 2px; color: var(--star); }
.stars svg { width: 19px; height: 19px; fill: currentColor; }
.review-card blockquote {
  flex: 1;
  margin: 10px 0 16px;
  font-size: 14.5px;
  line-height: 1.45;
  color: #263244;
}
.review-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.3;
}
.review-card figcaption strong { display: block; color: var(--text); font-size: 14.5px; }
.avatar {
  display: grid;
  place-items: end center;
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #d6e2f3;
  color: #5a7299;
}
.avatar svg { width: 30px; height: 30px; fill: currentColor; margin-bottom: -3px; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  color: #fff;
  padding: 26px 0;
  background:
    linear-gradient(90deg, rgba(8, 38, 92, .97) 0%, rgba(10, 48, 115, .88) 38%, rgba(16, 66, 150, .45) 62%, rgba(20, 80, 170, .2) 100%),
    url("../images/contact-skyline.jpg") center 60% / cover no-repeat,
    var(--navy-900);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact__info h2 {
  font-size: clamp(2rem, 3.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.contact__lead {
  margin-top: 12px;
  max-width: 440px;
  font-size: 15.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .94);
}
.contact-list { margin-top: 20px; display: grid; gap: 14px; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-size: 15.5px;
}
.contact-list .icon { width: 22px; height: 22px; margin-top: 1px; }
.contact-list li:last-child .icon { fill: none; }
.contact-list strong { font-weight: 600; }
.contact-list small { display: block; font-size: 13px; color: rgba(255, 255, 255, .85); }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.estimate-form {
  padding: 20px 26px 22px;
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(3, 18, 50, .35);
}
.estimate-form h3 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #134aaf;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-bottom: 12px;
}
.field { display: block; }
.field--full { grid-column: 1 / -1; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #c9d2df;
  border-radius: 5px;
  background: #fff;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 70px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23344054' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
  cursor: pointer;
}
.field select:invalid { color: #6b7280; }
.field select option { color: var(--text); }
.field ::placeholder { color: #6b7280; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 92, 224, .15);
}
.field.is-invalid input,
.field.is-invalid select { border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217, 45, 32, .12); }
.estimate-form .btn--block { padding: 12px 20px; background: #0b4fc8; }
.estimate-form .btn--block:hover { background: var(--blue-dark); }
.form-status { margin-top: 10px; font-size: 14px; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: #b42318; }
.form-status.is-success { color: #067647; }
.estimate-form { position: relative; }
.estimate-form .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: rgba(255, 255, 255, .88); font-size: 13.5px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr 1.25fr 1.25fr;
  padding-top: 26px;
  padding-bottom: 22px;
}
.footer-grid > * { padding: 0 26px; }
.footer-grid > :first-child { padding-left: 0; }
.footer-grid > :last-child { padding-right: 0; }
.footer-grid > :nth-child(2),
.footer-grid > :nth-child(4) { border-left: 1px solid rgba(255, 255, 255, .2); }
.footer-brand .logo__icon { width: 54px; height: 34px; }
.footer-brand .logo__text { font-size: 23px; }
.footer-brand p { margin: 8px 0 0 64px; line-height: 1.4; }
.footer-col h4 { font-family: var(--font-body); font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-col li { line-height: 1.75; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.checklist {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: 26px;
}
.checklist li { display: flex; align-items: center; gap: 7px; }
.checklist svg { width: 13px; height: 13px; fill: none; color: #fff; }
.checklist__more { color: #fff; font-weight: 600; }
.checklist__more span { width: 13px; text-align: center; font-weight: 700; }
.footer-area { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-area__row { display: flex; gap: 10px; align-items: flex-start; }
.footer-area__row .icon { width: 22px; height: 22px; color: #fff; }
.footer-area__row strong { display: block; color: #fff; font-size: 15px; }
.footer-area .btn { padding: 10px 22px; }

.footer-bottom {
  background: var(--footer-bottom);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 11px 0;
  font-size: 12.5px;
  text-align: center;
}
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }

/* ---------- Lightbox ---------- */
.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 15, 35, .85); }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__close {
  position: absolute;
  top: -16px; right: -16px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: #fff; color: var(--navy);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.lightbox__close .icon { width: 20px; height: 20px; fill: none; }

/* ---------- Phone / email popup ---------- */
.contact-dialog {
  width: min(400px, calc(100% - 32px));
  padding: 30px 26px 24px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-align: center;
  box-shadow: 0 24px 60px rgba(3, 18, 50, .35);
}
.contact-dialog::backdrop { background: rgba(5, 15, 35, .6); }
.contact-dialog__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--soft-2); color: var(--navy);
  cursor: pointer;
}
.contact-dialog__close .icon { width: 18px; height: 18px; fill: none; }
.contact-dialog__icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #e3ecfc; color: var(--blue);
}
.contact-dialog__icon .icon { width: 24px; height: 24px; }
.contact-dialog h3 { font-size: 20px; color: var(--navy); }
.contact-dialog__value {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  user-select: all;
}
.contact-dialog__note { margin-top: 4px; font-size: 14px; color: var(--muted); }
.contact-dialog__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.contact-dialog__actions .btn { flex: 1 1 150px; }
.contact-dialog__status { margin-top: 12px; font-size: 14px; font-weight: 600; color: #067647; }
.contact-dialog__status:empty { display: none; }
.btn--light { background: var(--soft-2); color: var(--navy); }
.btn--light:hover { background: #dde5f1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .header-inner > .logo { padding-right: 18px; margin-right: 14px; }
  .main-nav a:not(.btn) { padding-left: 11px; padding-right: 11px; }
  .main-nav a:not(.btn)::after { left: 11px; right: 11px; }
  .service-card { flex-basis: calc((100% - var(--gap) * 3) / 4); }
}

@media (max-width: 940px) {
  :root { --header-h: 64px; }

  .logo__text { font-size: 22px; }
  .logo__icon { width: 44px; height: 27px; }
  .header-inner > .logo { padding-right: 0; margin-right: 0; border-right: 0; }
  .header-cta { display: none; }
  .header-call, .nav-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 20px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(12, 45, 98, .14);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a:not(.btn) { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav__cta { display: inline-flex; margin-top: 16px; padding: 13px 20px; }

  /* Hero stacks: text first, worker photo below */
  .hero { display: flex; flex-direction: column; }
  .hero__inner { order: 1; }
  .hero__content { max-width: 640px; padding: 34px 0 32px; }
  .hero__photo {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: clamp(220px, 56vw, 380px);
    -webkit-mask-image: none;
            mask-image: none;
  }

  .contact { padding: 48px 0; }
  .contact__inner { grid-template-columns: 1fr; gap: 32px; }
  .contact {
    background:
      linear-gradient(180deg, rgba(8, 38, 92, .95) 0%, rgba(10, 48, 115, .88) 55%, rgba(16, 66, 150, .7) 100%),
      url("../images/contact-skyline.jpg") center / cover no-repeat,
      var(--navy-900);
  }

  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .footer-grid > * { padding: 0; }
  .footer-grid > :nth-child(2),
  .footer-grid > :nth-child(4) { border-left: 0; }
  .footer-grid > :nth-child(odd) { padding-right: 20px; }
}

@media (max-width: 768px) {
  .review-grid { grid-template-columns: 1fr; max-width: 560px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { flex-basis: calc((100% - var(--gap) * 2) / 3); }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .main-nav { padding-left: 16px; padding-right: 16px; }

  .logo__text { font-size: 19px; }
  .logo__icon { width: 38px; height: 24px; }
  .logo { gap: 8px; }

  .badge { font-size: 10.5px; }
  .hero h1 br { display: none; }
  .hero__lead { font-size: 15.5px; }
  .hero__actions { flex-direction: column; gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .trust { flex-direction: column; align-items: flex-start; gap: 10px; }
  .trust li, .trust li:first-child { padding: 0; }
  .trust li + li { border-left: 0; }

  .section { padding: 44px 0 46px; }
  .section-title { gap: 12px; }

  .service-grid { --gap: 10px; }
  .service-card { flex-basis: calc((100% - var(--gap)) / 2); padding: 18px 10px 16px; }
  .service-card h3 { font-size: 16px; }
  .service-card p { font-size: 13px; }
  .services-more { border-radius: 14px; font-size: 14px; padding-right: 16px; }

  .gallery-grid { gap: 8px; }

  .review-card { padding: 20px; }

  .estimate-form { padding: 20px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field input, .field select, .field textarea { font-size: 16px; padding: 11px 12px; } /* 16px prevents iOS zoom */

  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :nth-child(odd) { padding-right: 0; }
  .footer-brand p { margin-left: 0; }
  .footer-area .btn { width: 100%; }
  .footer-bottom .container { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
