/* ============================================================
   West Services — Big Sky Ground · Homepage Rev 2
   Oatmeal #F6F4F0, Denim #2F6690, Red #CE1824, Mustard #EFA00B
   Fonts: Outfit, Caveat
   Visual source: Figma West Services Homepage Rev 2 (210:724)
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #184769;
  background: #F6F4F0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ws-text-heading);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Topbar --- */
.topbar {
  background: #CE1824;
  padding: 8px 0;
  text-align: center;
}

.topbar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #F6F4F0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.topbar-phone {
  font-size: 0.85rem;
  font-weight: 700;
  color: #F6F4F0;
  border-bottom: 1px solid rgba(246, 244, 240, 0.45);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #F6F4F0;
  border-bottom: 1px solid rgba(47, 102, 144, 0.16);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(9, 53, 84, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo-img {
  height: 60px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-list a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #2F6690;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-list a:hover { color: #184769; }

.header-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.header-cta-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #799FC0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-cta-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #CE1824;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
}

.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #2F6690;
  border-radius: 2px;
  transition: all 0.3s;
  position: absolute;
  left: 11px;
}

.hamburger { top: 21px; }
.hamburger::before { content: ''; top: -7px; }
.hamburger::after { content: ''; top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* --- Phone pill (shared) --- */
.phone-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 248px;
  /* height comes from 50px avatar + equal 5px padding on top/bottom/left */
  padding: 5px 28px 5px 5px;
  background: #FFEBE9;
  border: 1px solid #FFA39A;
  border-radius: 179px;
  box-shadow: 0 4px 18px rgba(206, 24, 36, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.phone-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(206, 24, 36, 0.18);
}

.phone-pill-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}

.phone-pill-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 0;
}

.phone-pill-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid #FFEBE9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.phone-pill-number {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #CE1824;
  white-space: nowrap;
}

.hero-note {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.02;
  color: #093554;
  transform: rotate(-1.82deg);
  max-width: 120px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 80vh;
  padding: 113px 0 180px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scaleX(-1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(9, 53, 84, 0.72) 0%,
    rgba(9, 53, 84, 0.28) 46%,
    rgba(9, 53, 84, 0.05) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--ws-hero-copy-measure);
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 35px;
  padding: 0 14px 0 10px;
  border-radius: 186px;
  background: rgba(0, 23, 41, 0.34);
  color: #FFFFFF;
  font-size: 12px;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.rating-stars {
  display: inline-flex;
  gap: 1px;
  align-items: center;
}

.hero h1 {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #E3F2FF;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0, 23, 41, 0.25);
}

.hero-sub {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.28;
  color: #C3DBF0;
  max-width: 510px;
  margin-bottom: 28px;
}

.hero-cta-group,
.estimate-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* --- Reviews --- */
.reviews {
  position: relative;
  z-index: 2;
  margin-top: -120px;
  padding-bottom: 48px;
}

.reviews-viewport {
  overflow: hidden;
  /* First card lines up with .container content edge */
  padding-left: max(24px, calc((100% - 1120px) / 2 + 24px));
}

.reviews-track {
  display: flex;
  align-items: stretch;
  width: max-content;
}

.review-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 344px;
  width: 344px;
  min-height: 252px;
  margin-right: 20px;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #CFCCC5;
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(9, 53, 84, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.review-card:hover {
  border-color: #2F6690;
  box-shadow: 0 12px 32px rgba(9, 53, 84, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  .reviews-track {
    animation: reviews-drift 40s linear infinite;
  }

  .reviews-viewport:hover .reviews-track,
  .reviews-viewport:focus-within .reviews-track {
    animation-play-state: paused;
  }
}

@keyframes reviews-drift {
  /* left-to-right: start on the duplicate half, drift toward the first set */
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track {
    width: auto;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .review-card {
    margin-right: 0;
  }

  .review-card[aria-hidden="true"] { display: none; }
}

.review-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 35px;
  margin-bottom: 4px;
}

.review-name {
  font-family: 'Caveat', cursive;
  font-size: 25px;
  line-height: 1.4;
  color: #4D473A;
}

.review-g {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  margin-top: 5px;
}

.review-stars {
  color: #EFA00B;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.review-quote {
  font-size: 11.2px;
  line-height: 1.75;
  color: #2A2316;
}

/* --- Section headers --- */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #799FC0;
  margin-bottom: 8px;
}

.section-tag--script {
  font-family: 'Caveat', cursive;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #2F6690;
  line-height: 1.4;
}

.section-header h2 {
  font-size: 39px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* --- Services --- */
.services {
  /* Bottom gap to estimate band matches services-grid gap (30px) */
  padding: 48px 0 30px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 526px));
  gap: 30px;
  justify-content: center;
  align-items: start;
}

.service-card {
  position: relative;
  width: 100%;
  max-width: 526px;
  aspect-ratio: 526 / 347;
  border-radius: 4px;
  overflow: hidden;
  background: #FFFFFF;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  /* Crew members are framed on the left of each plate. Anchor there so a narrower card crops the empty right side instead of the person. */
  object-position: left center;
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(9, 53, 84, 0.25) 0%,
    rgba(9, 53, 84, 0.75) 46%,
    #093554 100%
  );
}

.service-card-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 28px 40px 42%;
  color: #E3F2FF;
}

.service-card-copy h3 {
  font-size: 31px;
  font-weight: 600;
  line-height: 1.28;
  color: #E3F2FF;
  margin-bottom: 12px;
}

.service-card-copy p {
  font-size: 15.2px;
  line-height: 1.7;
  color: #C3DBF0;
  margin-bottom: 0;
}

.service-card-link {
  align-self: flex-start;
  margin-top: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #EFA00B;
}

.service-card-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-card-link:focus-visible {
  outline: 2px solid #EFA00B;
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Estimate --- */
.estimate {
  /* Sits tight under service cards; bottom spacing matches other section breaks */
  padding: 0 0 72px;
}

.estimate-band {
  position: relative;
  overflow: hidden;
  background-color: #F6F4F0;
  background-image:
    linear-gradient(
      90deg,
      rgba(246, 244, 240, 0.96) 0%,
      rgba(246, 244, 240, 0.9) 26%,
      rgba(246, 244, 240, 0.62) 40%,
      rgba(246, 244, 240, 0.16) 54%,
      rgba(246, 244, 240, 0) 68%
    ),
    url("photos/rev2/estimate-truck.jpg");
  background-size: 100% 100%, cover;
  background-position: center center, center 46%;
  background-repeat: no-repeat;
  border: 1px solid #E2DCD2;
  border-radius: 4px;
  padding: 48px 56px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(9, 53, 84, 0.08);
}

.estimate-band .section-tag--script {
  margin-bottom: 4px;
}

.estimate-band h2 {
  max-width: 420px;
  font-size: 31px;
  font-weight: 600;
  line-height: 1.28;
  margin-bottom: 16px;
}

.estimate-copy {
  max-width: 420px;
  font-size: 16px;
  line-height: 1.5;
  color: #2F1C00;
  margin-bottom: 28px;
}

/* Shown only on narrow screens. Desktop keeps the background crop. */
.estimate-truck-frame {
  display: none;
}

/* --- Neighbors / polaroids / certified --- */
.neighbors {
  padding: 40px 0 80px;
  overflow: visible;
}

.neighbors > .container {
  overflow: visible;
}

.neighbors-quote {
  max-width: 982px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: clamp(28px, 3.2vw, 41.6px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ws-text-heading);
}

.neighbors-sub {
  max-width: 705px;
  margin: 0 auto 72px;
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.28;
  color: #2F1C00;
}

/* Polaroids bleed past the content box and sit on top of the certified card */
.neighbors-stage {
  position: relative;
  overflow: visible;
}

.polaroid-row {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  /* Bleed past the certified card so frames cover the container edges */
  width: calc(100% + 520px);
  max-width: none;
  margin: 24px -260px -300px;
  overflow: visible;
}

/* Polaroid component: frame + photo + caption; shadow lives on the frame */
.polaroid {
  position: relative;
  flex: 0 0 auto;
  margin: 0 -32px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: #F9F8F5;
  border: 1px solid #CFCCC5;
  /* Figma: 0 13px 16px rgba(0,23,41,0.1) — applied to the frame so it rotates with the card */
  box-shadow: 0 13px 16px rgba(0, 23, 41, 0.1);
  padding: 16px 16px 0;
}

.polaroid-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #E8E4DC;
}

.polaroid-caption {
  font-family: 'Caveat', cursive;
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 400;
  line-height: 1.25;
  color: #4D473A;
  text-align: center;
  padding: 16px 10px 24px;
}

/* Fan stack: center on top, sides tucked behind and lower */
.polaroid--1 {
  width: 256px;
  z-index: 1;
  transform: rotate(-7deg) translateY(48px);
}

.polaroid--2 {
  width: 300px;
  z-index: 3;
  transform: rotate(-4.5deg) translateY(20px);
}

.polaroid--3 {
  width: 348px;
  z-index: 5;
  transform: rotate(-1deg) translateY(0);
}

.polaroid--4 {
  width: 300px;
  z-index: 3;
  transform: rotate(4deg) translateY(24px);
}

.polaroid--5 {
  width: 256px;
  z-index: 1;
  transform: rotate(6.5deg) translateY(52px);
}

.certified-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 386px);
  gap: 0;
  align-items: stretch;
  background: #FFFFFF;
  border: 1px solid #E2DCD2;
  border-radius: 4px;
  overflow: visible;
}

.certified-copy {
  /* Extra space under the polaroid fan before the headline */
  padding: 430px 48px 48px 40px;
}

.certified-copy h3 {
  font-size: 31px;
  font-weight: 600;
  line-height: 1.28;
  margin-bottom: 16px;
}

.certified-copy > p {
  font-size: 24px;
  line-height: 1.28;
  color: #2F1C00;
  margin-bottom: 28px;
  max-width: 625px;
}

.certified-callout {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  color: #2A2316;
  margin-bottom: 12px !important;
}

.certified-safe {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Leave the top of the card white for polaroid overlap; tan panel starts below */
  background: transparent;
  border-left: 1px solid #E2DCD2;
  padding: 220px 0 0;
}

.certified-safe-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  flex: 1;
  /* Figma amber/50 — extra top pad so the seal clears the polaroid feet */
  background: #FFF2E2;
  border-radius: 0 0 3px 0;
  padding: 200px 28px 48px;
}

.certified-badge {
  width: 117px;
  height: 117px;
  border-radius: 50%;
  background: #CE1824;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(206, 24, 36, 0.28);
}

.certified-badge img {
  width: 62px;
  height: auto;
}

.certified-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #CE1824;
  margin-bottom: 24px;
}

.certified-list {
  width: 100%;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.certified-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 18px;
  background: #FDD4A0;
  border: 1px solid #FFE5C5;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(151, 102, 8, 0.1);
  font-size: 15px;
  font-weight: 500;
  color: #2F1C00;
  text-align: left;
}

.certified-list img {
  width: 22px;
  height: auto;
  flex-shrink: 0;
}

/* --- Storefront --- */
.storefront {
  padding: 40px 0 96px;
}

.storefront-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Half the previous cluster. A 50% stage keeps the same arrangement. */
.storefront-visual {
  position: relative;
  width: 50%;
  height: 280px;
  justify-self: center;
}

.storefront-part {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 2px 2px rgba(42, 32, 18, 0.12))
          drop-shadow(0 12px 16px rgba(42, 32, 18, 0.16));
}

.storefront-part--hvac {
  width: 42%;
  left: 0;
  bottom: 0;
  z-index: 1;
}

.storefront-part--electrical {
  width: 50%;
  left: 0;
  top: 0;
  z-index: 2;
}

.storefront-part--plumbing {
  width: 52%;
  right: 0;
  top: 32%;
  z-index: 3;
}

.storefront-copy .section-tag--script {
  margin-bottom: 8px;
}

.storefront-copy h2 {
  font-size: 41.6px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.storefront-copy > p {
  font-size: 24px;
  line-height: 1.28;
  color: #2F1C00;
  margin-bottom: 28px;
}

.storefront-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.storefront-avatar {
  width: 67px;
  height: 67px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(9, 53, 84, 0.16);
}

.storefront-note {
  font-family: 'Caveat', cursive;
  font-size: 16px;
  color: #2A2316;
  margin-bottom: 2px;
}

.storefront-phone {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #CE1824;
}

/* --- Emergency --- */
.emergency {
  position: relative;
  background: #093554;
  color: #E3F2FF;
  padding: 88px 0;
  overflow: hidden;
}

.emergency::before,
.emergency::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 242, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.emergency::before { top: -80px; left: -40px; }
.emergency::after { bottom: -100px; right: -60px; }

.emergency-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.emergency-text h2 {
  font-size: 39px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.emergency-text p {
  max-width: 440px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.5;
  color: #C3DBF0;
}

.emergency-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.emergency-sub {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: #C3DBF0;
}

/* --- Footer --- */
.site-footer {
  position: relative;
  background: #F6F4F0;
  padding: 72px 0 0;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  left: 0;
  top: 0;
  width: 280px;
  height: 280px;
  pointer-events: none;
  opacity: 0.35;
}

.footer-mark {
  position: absolute;
}

.footer-mark-14 { left: -40px; top: 0; width: 105px; }
.footer-mark-15 { left: 40px; top: 8px; width: 117px; }
.footer-mark-13 { left: 120px; top: 0; width: 141px; }

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo-img {
  width: 88px;
  height: auto;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 15px;
  line-height: 1.55;
  color: #184769;
  max-width: 420px;
  margin-bottom: 12px;
}

.footer-chamber {
  font-size: 13px;
  color: #5482A8;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col li {
  font-size: 15px;
  color: #184769;
  margin-bottom: 10px;
}

.footer-col a:hover { color: #CE1824; }

.footer-bottom {
  border-top: 1px solid rgba(47, 102, 144, 0.16);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #799FC0;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .hero h1 { font-size: 56px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card { max-width: none; }
  .service-card-copy { padding-left: 44%; }
  .certified-row { grid-template-columns: 1fr; }
  .certified-copy { padding: 260px 32px 40px; }
  .certified-safe {
    border-left: 0;
    border-top: 1px solid #E2DCD2;
    /* Tan panel sits on the divider; the desktop top pad was empty white once the columns stack */
    padding: 0;
  }
  .certified-safe-panel {
    border-radius: 0 0 3px 3px;
    padding: 48px 32px 56px;
  }
  .certified-list { gap: 14px; }
  .certified-list li { padding: 18px 20px; }
  .polaroid-row {
    width: calc(100% + 64px);
    margin: 0 -32px -180px;
  }
  .polaroid { margin: 0 -24px; padding: 10px 10px 0; }
  .polaroid-caption { font-size: 15px; padding: 10px 6px 16px; }
  .polaroid--1,
  .polaroid--5 { width: 150px; }
  .polaroid--2,
  .polaroid--4 { width: 176px; }
  .polaroid--3 { width: 200px; }
  .storefront-inner { grid-template-columns: 1fr; }
  .storefront-visual { height: 250px; order: -1; }
}

@media (max-width: 1000px) {
  .service-card-copy {
    padding: 24px 18px 24px 46%;
  }
  .service-card-copy h3 {
    font-size: 24px;
    margin-bottom: 8px;
  }
  .service-card-copy p {
    font-size: 14px;
    line-height: 1.45;
  }
  .service-card-link {
    margin-top: 10px;
    font-size: 15px;
  }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 113px 0 auto 0;
    background: #F6F4F0;
    border-bottom: 1px solid rgba(47, 102, 144, 0.16);
    padding: 24px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
    z-index: 99;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    gap: 18px;
  }
  .header-cta { display: none; }
  .hero { min-height: 80vh; padding: 72px 0 140px; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 18px; }
  .reviews { margin-top: -80px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card-copy { padding: 32px 32px 32px 46%; }
  .service-card-copy h3 { font-size: 28px; margin-bottom: 12px; }
  .service-card-copy p { font-size: 15.2px; line-height: 1.7; }
  .service-card-link { margin-top: 16px; font-size: 16px; }
  .estimate-band {
    padding: 36px 24px 0;
    min-height: 0;
    justify-content: flex-start;
    background-image: none;
  }
  /* Source crop of estimate-truck.jpg (1024×545): x300 y210, 560×320.
     That window holds the whole truck, the valley, and a little foreground.
     The frame clips a scaled copy of the full photo so a tall card cannot
     zoom into the door and the dirt. */
  .estimate-truck-frame {
    display: block;
    position: relative;
    overflow: hidden;
    margin: 28px -24px 0;
    aspect-ratio: 560 / 320;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 100%);
  }
  .estimate-truck-frame img {
    position: absolute;
    width: 182.857%;
    max-width: none;
    height: auto;
    left: -53.571%;
    top: -65.625%;
  }
  .estimate-band h2,
  .estimate-copy { max-width: none; }
  .estimate-band .estimate-cta { flex-wrap: nowrap; }
  .estimate-band .phone-pill {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
    padding-right: 16px;
  }
  .polaroid-row {
    width: calc(100% + 40px);
    /* Less upward pull so the frames cover the card's top edge and the headline sits below the captions */
    margin: 0 -20px -72px;
  }
  .polaroid { margin: 0 -18px; padding: 8px 8px 0; }
  .polaroid-caption { font-size: 13px; padding: 8px 4px 12px; }
  .polaroid--1,
  .polaroid--5 { width: 112px; }
  .polaroid--2,
  .polaroid--4 { width: 130px; }
  .polaroid--3 { width: 148px; }
  .certified-copy { padding: 180px 24px 36px; }
  .neighbors-quote { font-size: 28px; margin-bottom: 16px; }
  .neighbors-sub { font-size: 18px; margin-bottom: 48px; }
  .certified-copy > p,
  .storefront-copy > p { font-size: 18px; }
  .storefront-copy h2 { font-size: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .emergency-text h2 { font-size: 28px; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 34px; }
  .phone-pill { min-width: 0; width: 100%; max-width: 280px; }
  /* Column is centered, so give the pill a definite width or it shrinks under the shared 100% rule. */
  .emergency-cta { width: 100%; }
  /* Taller than the photo so the copy fits, and each plate is reframed so the crew member stays on the left of the type. */
  .service-card { aspect-ratio: 0.96 / 1; }
  .service-card--electrical .service-card-img { object-position: 70% center; }
  .service-card--heating .service-card-img { object-position: 82% center; }
  .service-card--plumbing .service-card-img { object-position: left center; }
  .service-card--wells .service-card-img { object-position: left center; }
  .service-card-copy {
    padding: 18px 14px 18px 50%;
  }
  .service-card-copy h3 {
    font-size: 20px;
    line-height: 1.15;
    margin-bottom: 6px;
  }
  .service-card-copy p {
    font-size: 13px;
    line-height: 1.4;
  }
  .service-card-link {
    margin-top: 8px;
    font-size: 14px;
  }
  .polaroid--1,
  .polaroid--5 { width: 92px; }
  .polaroid--2,
  .polaroid--4 { width: 106px; }
  .polaroid--3 { width: 120px; }
  .polaroid { margin: 0 -14px; }
  .polaroid-caption { font-size: 11px; padding: 6px 2px 10px; }
}
/* Let the shared call pill fit the narrow certified card's copy column. */
.certified-row > * { min-width:0; }
