:root {
  --red: #ec1f26;
  --yellow: #ffe30f;
  --teal: #477177;
  --teal-dark: #395c61;
  --ink: #242424;
  --panel-dark: #1b1c1c;
  --input-bg: #f8f9fa;
  --muted: #6b6b6b;
  --border: #e6e6e6;
  --container: 1240px;
  --font: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Jura', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; margin: 0 0 16px; line-height: 1.2; }
p { margin: 0 0 16px; line-height: 1.65; color: var(--ink); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.accent { color: var(--teal); }
.accent-yellow { color: var(--yellow); }

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 48px;
}
.section-title--light { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 26px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #f5d900; }
.btn--dark { background: var(--panel-dark); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--sm { padding: 13px 20px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
}
.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand > img { width: 68px; height: auto; flex-shrink: 0; }
.brand > span {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.site-header__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.site-header__phone span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
}
.site-header__phone span:first-child svg { width: 17px; height: 17px; }

/* ---------- Hero ---------- */
/* No explicit height here — .hero__media (below) is the only in-flow
   child (content + form are both lifted out of flow in one way or
   another), so .hero's own auto-height just follows it. */
.hero { position: relative; z-index: 2; }
/* Mobile: a plain in-flow block, pulled up into the photo by a negative
   margin — simple overlap, and .welcome below it is naturally pushed down
   by however tall the (much taller, all-fields-stacked) mobile form
   actually renders, so nothing underneath it can get hidden. Desktop
   swaps this for real absolute positioning (see the 880px+ block) so the
   teal panel behind .welcome can start flush with the hero image instead
   of after the form. */
.hero__form-wrap {
  position: relative;
  margin-top: -80px;
  margin-bottom: 32px;
  z-index: 1;
}
.hero__media {
  position: relative;
  height: 640px;
  overflow: hidden;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media > div {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 35%, rgba(0,0,0,.2) 60%, rgba(0,0,0,0) 85%);
}
.hero__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.hero__content h1 {
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 500;
  margin-bottom: 14px;
}
.hero__content p {
  color: #fff;
  font-size: 18px;
  max-width: 420px;
  margin-bottom: 28px;
}

/* Consultation form */
.consult-form {
  position: relative;
  background: var(--panel-dark);
  color: #fff;
  padding: 14px 16px 16px;
  display: grid;
  gap: 18px 24px;
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "name"
    "email"
    "phone"
    "message"
    "robot"
    "submit";
}
.consult-form > h2 {
  grid-area: title;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
}
/* :not(.checkbox) — the checkbox's own <label class="checkbox"> is also a
   label nested inside a .field, so without this it would inherit these
   same NAME/EMAIL/PHONE label styles (including display:block, overriding
   .checkbox's own flex layout, and text-transform:uppercase, which is
   wrong for the "I am not a robot" copy). */
.field label:not(.checkbox) {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field .req { color: var(--yellow); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  border: none;
  border-radius: 2px;
  background: var(--input-bg);
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
}
.field input::placeholder { color: #8a8f93; }
.field--check { display: flex; align-items: flex-end; }
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.checkbox input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  background: var(--input-bg);
  accent-color: var(--yellow);
}
.checkbox span { line-height: 1; }
.field--submit { display: flex; align-items: flex-end; }
.field--submit .btn { width: 100%; justify-content: center; }
.consult-form > p {
  grid-column: 1 / -1;
  background: rgba(255,227,15,.12);
  color: var(--yellow);
  border: 1px solid rgba(255,227,15,.4);
  border-radius: 2px;
  padding: 12px 16px;
  font-size: 14px;
  margin: 0;
}

/* ---------- Welcome ---------- */
.welcome {
  position: relative;
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--border);
}
.welcome__teal-panel { display: none; }
.welcome__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.welcome__grid > div h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 500; }
.welcome__grid > div p { color: var(--ink); }
.welcome figure { margin: 0; position: relative; }
.welcome figure img { width: 100%; height: auto; }
.welcome figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(27,28,28,.85);
  color: var(--yellow);
  padding: 16px 20px;
  font-size: 18px;
  text-align: center;
}

/* ---------- Services ---------- */
.services { padding: 60px 0 0; }
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.service-card {
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}
.service-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.service-card > div { padding: 28px; }
.service-card > div h3 { color: var(--teal); font-size: 21px; font-weight: 500; }
.service-card > div p { color: var(--ink); min-height: 48px; }

.services__band {
  position: relative;
  margin-top: 32px;
  padding: 56px 0 64px;
}
/* The teal doesn't fill this whole band — per the original design it only
   starts partway into row 2, right where each card's image ends and its
   white body begins, not behind the images themselves. top = the band's
   own padding-top + one card image's height, so it lines up with that
   image/body seam regardless of how tall the cards end up being below it. */
.services__teal-panel {
  position: absolute;
  top: calc(56px + 220px);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--teal);
  z-index: 0;
}
.services__band > .container { position: relative; z-index: 1; }

/* ---------- Gallery ---------- */
.gallery { margin-top: 72px; }
.gallery .section-title { margin-bottom: 32px; }
.gallery__main {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.gallery__main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,20,20,.55);
  color: #fff;
  border: none;
  cursor: pointer;
}
.gallery__nav svg { width: 22px; height: 22px; }
.gallery__nav:first-of-type { left: 0; }
.gallery__nav:last-of-type { right: 0; }
.gallery__thumbs {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.gallery__thumb {
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 1.3 / 1;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--yellow); }

/* ---------- CTA ---------- */
.cta { background: var(--yellow); padding: 24px 0; }
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.cta__inner h2 { font-size: clamp(26px, 3.5vw, 32px); font-weight: 500; margin: 0; }

@media (min-width: 640px) {
  .cta__inner {
    flex-direction: row;
    justify-content: center;
    gap: 48px;
    text-align: left;
  }
}

/* ---------- Why Choose ---------- */
.why-us { padding: 80px 0; }
.why-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  padding: 28px;
}
.why-card > span {
  display: inline-flex;
  color: var(--teal);
  margin-bottom: 18px;
}
.why-card > span svg { width: 34px; height: 34px; }
.why-card > span img { height: 40px; width: auto; }
.why-card h3 { color: var(--teal); font-size: 19px; font-weight: 500; }
.why-card p { color: var(--ink); font-size: 15px; margin: 0; }

.why-us__controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}
.why-us__controls button {
  width: 44px;
  height: 44px;
  background: var(--panel-dark);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.why-us__controls button svg { width: 18px; height: 18px; }
.why-us__controls span { font-weight: 600; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { background: var(--teal); color: #fff; padding: 72px 0; text-align: center; }
.stats h2 { font-weight: 400; font-size: clamp(22px, 3vw, 28px); margin-bottom: 48px; color: var(--yellow); }
.stats h2 span { display: block; font-size: clamp(26px, 3.6vw, 34px); font-weight: 600; margin-top: 6px; color: #fff; }
.stats__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.stat { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.stat:last-child { border-bottom: none; }
.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 600;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 10px;
}
.stat span { font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--panel-dark); color: #fff; padding: 64px 0 0; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}
.site-footer__grid h3 { color: var(--teal); font-weight: 500; font-size: 20px; }
/* The global p { color: var(--ink) } rule targets <p> directly, so it
   otherwise wins over .site-footer's own ancestor-level color: #fff
   (inheritance only applies when nothing targets the element itself,
   regardless of the ancestor rule's specificity) — makes the Business
   Hours line unreadably dark on this dark background without this. */
.site-footer__grid p { color: #fff; }
.offices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.office h4 { font-size: 13px; letter-spacing: .05em; margin-bottom: 10px; color: #fff; }
.office p { color: #d8d8d8; font-size: 15px; margin-bottom: 6px; }
.office a { color: #d8d8d8; }
.social-links { display: flex; gap: 12px; justify-content: center; }
.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: #2c2d2d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.social-links svg { width: 18px; height: 18px; }

.site-footer__bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 13px;
  color: #b9b9b9;
}
.site-footer__bottom p { color: #fff; }
.site-footer__bottom a { color: var(--teal); }

/* =======================================================
   Desktop breakpoint (~880px+)
   ======================================================= */
@media (min-width: 880px) {
  .site-header > .container { padding: 8px 24px; }
  .site-header__phone { font-size: 20px; }

  .hero__form-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 520px;
    margin-top: 0;
  }

  .consult-form {
    grid-template-columns: 1fr 1fr 1fr auto;
    grid-template-areas:
      "title title title title"
      "name email phone robot"
      "message message message submit";
    padding: 16px 24px 20px;
  }
  .field--check { padding-bottom: 14px; }

  .welcome__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .welcome__teal-panel {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 54%;
    right: 0;
    background: var(--teal);
    z-index: 0;
  }

  .services__grid { grid-template-columns: 1fr 1fr; }

  .why-us__grid { grid-template-columns: repeat(4, 1fr); }
  .why-us__controls { display: none !important; }

  .stats__row { grid-template-columns: repeat(3, 1fr); }
  .stat { border-bottom: none; border-right: 1px solid rgba(255,255,255,.25); }
  .stat:last-child { border-right: none; }

  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; text-align: left; }
  .offices { grid-template-columns: 1fr 1fr; }
  .social-links { justify-content: flex-start; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ===== Mobile-only: Why Choose becomes a 1-at-a-time carousel ===== */
@media (max-width: 879.98px) {
  .why-us__grid { overflow: hidden; }
  .why-card { display: none; }
  .why-card.is-active { display: block; }
  .why-us__controls { display: flex; }

  .brand { width: 100%; }
  .site-header__phone { display: none; }

  body { padding-bottom: 64px; }
  .mobile-call-bar { display: flex; }

  /* Shorter hero on mobile, with the scrim running top-to-bottom instead
     of left-to-right (the left-to-right fade only makes sense next to the
     wide headline column desktop has room for). */
  .hero__media, .hero__content { height: 420px; }
  .hero__media > div {
    background: linear-gradient(180deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.78) 45%, rgba(0,0,0,.5) 70%, rgba(0,0,0,.15) 95%);
  }
  .hero__content {
    justify-content: flex-start;
    padding-top: 56px;
  }

  /* .welcome's 160px top padding exists for desktop, where the form sits
     absolutely positioned and overlapping — it needs the room below it.
     On mobile the form is back in normal flow with its own 32px
     margin-bottom already providing that gap, so this would just stack
     another ~160px on top of it. */
  .welcome { padding-top: 0; }

  /* Mobile has its own, simpler version of the teal backing behind the
     welcome image — rather than a full-bleed side panel (not meaningful
     once the layout stacks to one column), it's a teal block that starts
     halfway down the image (top: 50%, relative to the image's own height,
     so it still lands at the right spot regardless of how tall the image
     actually renders), bleeds into the container's side gutters (-24px
     each side), and reaches all the way down to .welcome's own bottom
     edge (bottom: -80px, matching .welcome's padding-bottom exactly) so
     it connects directly with the divider below instead of stopping
     short of it. */
  .welcome figure { z-index: 1; }
  .welcome figure::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -24px;
    right: -24px;
    bottom: -80px;
    background: var(--teal);
    z-index: -1;
  }

  /* Less space between the divider under .welcome and the Services
     heading right after it. */
  .services { padding-top: 32px; }
}

/* ===== Mobile-only: sticky "Call Us" bar ===== */
.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
}
.mobile-call-bar svg { width: 18px; height: 18px; }
