/* Mac's Spray Foam — Shared Styles */
/* Brands marquee */
.brands__marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.brands__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: brandsScroll 40s linear infinite;
}
.brands__marquee:hover .brands__track { animation-play-state: paused; }
.brands__cell {
  flex: 0 0 220px;
  height: 130px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s;
}
.brands__cell:hover { border-color: var(--mint-deep); transform: translateY(-2px); }
.brands__cell img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0%);
  opacity: 1;
  transition: filter 0.2s, opacity 0.2s;
}
.brands__cell:hover img { filter: grayscale(100%); opacity: 0.78; }
@keyframes brandsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .brands__cell { flex: 0 0 170px; height: 110px; padding: 16px 18px; }
  .brands__cell img { max-height: 56px; }
}


:root {
  --mint: #7af1b0;
  --mint-deep: #46d188;
  --ink: #1c1c1c;
  --gray: #5f5f5f;
  --gray-2: #8a8a8a;
  --line: #e8e8e8;
  --bg: #ffffff;
  --bg-2: #f5f6f5;
  --bg-3: #ebedea;
  --radius: 6px;
  --maxw: 1240px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

address, em, i, cite, dfn { font-style: normal; }

body {
  margin: 0;
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--mint-deep); }

h1, h2, h3, h4 {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: 0; }
h4 { font-size: 1rem; letter-spacing: 0.04em; }

p { margin: 0 0 1em; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Work Sans', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--gray);
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.section--dark .eyebrow { color: #cfcfcf; }
.hero .eyebrow { color: #e7e7e7; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  padding: 14px 22px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--mint); color: var(--ink); border-color: var(--mint); transform: translateY(-1px); }
.btn--mint { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.btn--mint:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { padding: 11px 16px; font-size: 12px; }
.btn--icon { display: inline-flex; align-items: center; gap: 8px; }
.btn--icon svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 66px; width: auto; }
.nav__brand .brand-text { display: none; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }

.nav__cta { display: flex; gap: 10px; align-items: center; }

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: #5f5f5f;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(95,95,95,0.55) 0%, rgba(95,95,95,0.72) 60%, rgba(95,95,95,0.88) 100%);
  mix-blend-mode: multiply;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 96px 0 80px;
  text-align: center;
}
.hero h1 { color: #fff; max-width: 21ch; margin-left: auto; margin-right: auto; }
.hero__lede {
  max-width: 60ch;
  margin: 18px auto 30px;
  color: #e7e7e7;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .eyebrow { color: #e7e7e7; margin-bottom: 18px; }

.hero--page .hero__inner { padding: 80px 0 60px; }
.hero--page h1 { max-width: 22ch; }

/* Trust pillars */
.pillars {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  padding-bottom: 64px;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.25);
  padding: 28px;
}
.pillar { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-left: 3px solid var(--mint); }
.pillar h3 { font-size: 0.95rem; letter-spacing: 0.04em; margin: 0; }
.pillar p { margin: 0; font-size: 0.95rem; }

/* Sections */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--ink); color: #d8d8d8; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section__head .eyebrow { margin-bottom: 14px; }
.section__head p { font-size: 1.05rem; }

/* About / Welcome */
.welcome {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.welcome__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--bg-3);
}
.welcome__media img { width: 100%; height: 100%; object-fit: cover; }
.welcome__media::after {
  content: '';
  position: absolute;
  inset: auto -20px -20px auto;
  width: 120px;
  height: 120px;
  background: var(--mint);
  border-radius: 12px;
  z-index: -1;
}
.welcome__body .eyebrow { margin-bottom: 14px; }
.welcome__body h2 { margin-bottom: 16px; }

/* Service Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(0,0,0,0.25); }
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--placeholder {
  background:
    repeating-linear-gradient(45deg, #e5e7e4 0 12px, #eef0ed 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__media--placeholder span {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--gray);
  background: rgba(255,255,255,0.85);
  padding: 6px 10px;
  border-radius: 4px;
}
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { margin: 0; font-size: 0.97rem; }
.card__link {
  margin-top: auto;
  padding-top: 14px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card__link::after { content: '→'; transition: transform 0.2s ease; }
.card__link:hover::after { transform: translateX(4px); }

/* Bullet list */
.bullets { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.bullets li::before {
  content: '';
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--mint);
  margin-top: 9px;
}
.bullets--2col { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 28px; }

/* Service Areas */
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.area-chip {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section--dark .area-chip { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }

/* Why Us */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why__media { aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--bg-3); }
.why__media img { width: 100%; height: 100%; object-fit: cover; }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial__stars { color: var(--mint-deep); font-size: 16px; letter-spacing: 2px; }
.testimonial__quote { font-size: 1rem; color: var(--ink); margin: 0; }
.testimonial__author { font-family: 'Work Sans', sans-serif; font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; color: var(--gray); }

/* Final CTA */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  background: var(--mint);
  border-radius: 50%;
  opacity: 0.18;
}
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: #cfcfcf; margin: 0; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Photo-overlay variant matching interior hero styling */
.cta-band--photo {
  background-color: #5f5f5f;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cta-band--photo::before {
  inset: 0;
  right: 0; top: 0;
  width: auto; height: auto;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(95,95,95,0.55) 0%, rgba(95,95,95,0.72) 60%, rgba(95,95,95,0.88) 100%);
  mix-blend-mode: multiply;
  opacity: 1;
}
.cta-band--photo > div { position: relative; z-index: 2; }

/* Gallery */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.gallery-tab {
  font-family: 'Work Sans', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.gallery-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery-tab:hover { border-color: var(--ink); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 14px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }
.gallery-grid .placeholder {
  background:
    repeating-linear-gradient(45deg, #e5e7e4 0 12px, #eef0ed 12px 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}

/* Two-col content layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col__media {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
}
.two-col__media img { width: 100%; height: 100%; object-fit: cover; }
.two-col--reverse .two-col__media { order: 2; }

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.stat__num {
  font-family: 'Work Sans', sans-serif;
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-card__icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--mint);
  display: grid; place-items: center;
  font-family: 'Work Sans', sans-serif;
  font-weight: 900;
  color: var(--ink);
}
.contact-card h3 { margin: 0 0 4px; }
.contact-card p, .contact-card a { margin: 0; color: var(--gray); }
.contact-card a:hover { color: var(--ink); }

.contact-list { display: grid; gap: 14px; }

/* Map */
.map-embed {
  width: 100%;
  border: 0;
  border-radius: 12px;
  display: block;
  min-height: 320px;
}

/* Footer */
.site-footer {
  background: #f1f2f1;
  color: var(--gray);
}
.site-footer .map-embed { border-radius: 0; min-height: 280px; filter: grayscale(15%); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 40px;
}
.footer__brand img { height: 56px; width: auto; margin-bottom: 16px; }
.footer__brand p { color: var(--gray); font-size: 0.95rem; }
.footer h4 {
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a, .footer p, .footer address { color: var(--gray); font-style: normal; }
.footer ul a:hover { color: var(--mint-deep); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: #888;
  flex-wrap: wrap;
}
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: #cfcfcf;
}
.footer__bottom a { color: var(--gray); }
.footer__bottom a:hover { color: var(--mint-deep); }
.footer__credit { color: var(--gray-2); font-size: 0.9rem; }
.footer__credit a { color: var(--gray); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.footer__credit a:hover { color: var(--mint-deep); border-color: var(--mint-deep); }
.footer__fb {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  color: var(--gray);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.footer__fb svg { width: 18px; height: 18px; color: #1877F2; flex-shrink: 0; }
.footer__fb:hover { color: var(--ink); }
.footer__social a:hover { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.footer__social svg { width: 16px; height: 16px; }

/* Mobile */
@media (max-width: 960px) {
  .pillars__grid { grid-template-columns: 1fr; }
  .welcome, .why, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .two-col--reverse .two-col__media { order: 0; }
  .cards, .testimonials { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-grid .wide { grid-column: span 2; }
  .gallery-grid .tall { grid-row: span 1; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 36px; }
  .cta-band__actions { justify-content: flex-start; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .bullets--2col { grid-template-columns: 1fr; }

  .nav__toggle { display: block; }
  .nav__links, .nav__cta { display: none; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    gap: 14px;
    align-items: flex-start;
  }
  .nav.is-open .nav__cta { display: flex; padding: 16px 24px; }
  .nav.is-open .nav__cta { position: absolute; top: calc(100% + 220px); left: 0; right: 0; background: #fff; padding: 0 24px 24px; }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .hero__inner { padding: 64px 0 56px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-grid .wide { grid-column: span 1; }
  .footer__top { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 28px; }
  .pillars { margin-top: -20px; }
  .nav__brand img { height: 55px; }
}

/* Utilities */
.center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-32 { margin-top: 32px; }
.flex-actions { display: flex; gap: 12px; flex-wrap: wrap; }
