:root {
  --ink: #17191c;
  --muted: #656b70;
  --paper: #f3f5f7;
  --paper-2: #fbfcfd;
  --card: #ffffff;
  --plum: #1b1423;
  --purple-950: #121518;
  --purple: #273238;
  --purple-2: #7b63a6;
  --white: #ffffff;
  --accent: #c6ccd3;
  --accent-2: #f3f5f8;
  --silver: #d2d6d8;
  --silver-cta: #e8ecef;
  --silver-cta-2: #f2edf8;
  --silver-cta-hover: #f7f9fa;
  --silver-cta-hover-2: #f8f4ff;
  --cta: #eef2f4;
  --cta-2: #f2edf8;
  --cta-hover: #f8fafb;
  --cta-hover-2: #f8f4ff;
  --cta-purple: #8d55bf;
  --cta-purple-soft: #c3a8df;
  --cta-gradient: linear-gradient(135deg, #4b2373 0%, #63368f 48%, #7b4aaa 100%);
  --cta-gradient-hover: linear-gradient(135deg, #562a80 0%, #70409e 48%, #8b58ba 100%);
  --line: rgba(24, 21, 31, 0.12);
  --shadow: 0 22px 70px rgba(24, 21, 31, 0.14);
  --radius: 30px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; background: var(--paper); }

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(141, 85, 191, 0.12), transparent 32rem),
    linear-gradient(135deg, #fbfcfd 0%, #eef2f5 50%, #f5f2fa 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image: linear-gradient(rgba(39, 50, 56, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(39, 50, 56, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

::selection { color: #fff; background: var(--purple); }

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible { outline: 3px solid rgba(140, 148, 162, 0.72); outline-offset: 4px; }

img { display: block; max-width: 100%; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: "Antonio", sans-serif;
  letter-spacing: -0.025em;
  line-height: 0.94;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.wrap { width: min(calc(100% - 44px), var(--max)); min-width: 0; margin-inline: auto; }

.site-header {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(18, 21, 24, 0.96), rgba(39, 50, 56, 0.9) 52%, rgba(33, 24, 22, 0.78)),
    url("/assets/images/hero-metal-roof-coastal.jpeg") center/cover;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10rem;
  background: linear-gradient(to bottom, transparent, rgba(24, 21, 31, 0.46));
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 16px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(12, 10, 20, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
}

.brand { display: inline-flex; align-items: center; min-width: 218px; gap: 12px; }

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(38, 17, 63, 0.16);
}

.brand strong, .brand small { display: block; }
.brand strong { font-weight: 800; line-height: 1; }
.brand small { margin-top: 4px; color: rgba(255, 255, 255, 0.68); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.navlinks { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 800; font-size: 0.9rem; }

.navlinks a {
  padding: 12px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.15;
  text-align: center;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.navlinks a:hover { color: #fff; background: rgba(255, 255, 255, 0.11); transform: translateY(-1px); }
.navlinks .phone { color: #fff; background: var(--cta-gradient); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22); }

.navlinks .phone:hover { color: #fff; background: var(--cta-gradient-hover); }

.hero { position: relative; z-index: 1; padding: 112px 0 70px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) 420px; gap: 56px; align-items: center; }

.eyebrow { margin-bottom: 16px; color: var(--accent-2); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }

.hero h1 { max-width: 860px; margin-bottom: 24px; font-size: clamp(3.9rem, 8vw, 8.2rem); }

.intro { max-width: 760px; margin-bottom: 28px; color: rgba(255, 255, 255, 0.78); font-size: clamp(1.02rem, 1.8vw, 1.2rem); line-height: 1.68; }

.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-local {
  max-width: 760px;
  margin: 22px 0 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.65;
}

.hero-services {
  max-width: 790px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
}

.hero-services-label {
  display: block;
  margin-bottom: 10px;
  color: var(--silver-cta-2);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 100%;
}

.hero-chips span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  font-weight: 900;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 15px 22px;
  border-radius: 999px;
  line-height: 1.15;
  text-align: center;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--cta-gradient); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-primary:hover { background: var(--cta-gradient-hover); }
.btn-secondary { color: #fff; border: 1px solid rgba(210, 214, 216, 0.34); background: linear-gradient(135deg, rgba(210, 214, 216, 0.12), rgba(78, 32, 116, 0.18)); }
.btn-secondary:hover { border-color: rgba(210, 214, 216, 0.58); background: linear-gradient(135deg, rgba(232, 236, 239, 0.18), rgba(78, 32, 116, 0.25)); }

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-card::before { content: ""; display: block; height: 8px; background: linear-gradient(90deg, var(--accent), var(--purple-2), var(--plum)); }

.card-media { min-height: 260px; background: linear-gradient(135deg, #fff, #ece8f2); }
.card-media.job-photo img { width: 100%; height: 300px; object-fit: cover; }
.card-copy { padding: 28px; }
.card-label { margin-bottom: 12px; color: var(--purple); font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.card-copy h2 { margin-bottom: 14px; font-size: 2.35rem; }
.card-copy p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.65; }

.proof-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 60px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
}

.proof-strip div { padding: 22px; background: rgba(16, 14, 27, 0.42); }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip strong { margin-bottom: 7px; font-weight: 900; }
.proof-strip span { color: rgba(255, 255, 255, 0.72); line-height: 1.5; }

.section { padding: 82px 0; }
.section-head { max-width: 840px; margin-bottom: 38px; }
.section-head.compact { margin-bottom: 28px; }
.section-head h2, .split-copy h2, .why-list h2, .contact-card h2 { margin-bottom: 18px; font-size: clamp(2.8rem, 6vw, 5.25rem); }
.section-head p:not(.eyebrow), .split-copy p, .why-list > p:not(.eyebrow), .contact-card p { color: var(--muted); font-size: 1.06rem; line-height: 1.78; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; } /* CLIENT-EDIT: auto-fit keeps the 5-card service section balanced on desktop and cleanly stacked on smaller screens. */
.service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(24, 21, 31, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.service:hover, .why-item:hover, .capability-grid article:hover { transform: translateY(-4px); border-color: rgba(78, 32, 116, 0.28); box-shadow: 0 22px 48px rgba(24, 21, 31, 0.13); }
.service img { width: 100%; height: 205px; object-fit: cover; }
.service div { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.service span { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 50%; color: #fff; background: var(--purple); font-weight: 900; }
.service h3 { margin-bottom: 12px; font-size: 1.95rem; }
.service p { flex: 1; margin-bottom: 0; color: var(--muted); line-height: 1.7; }

.epdm-project {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(242, 244, 246, 0.92)),
    radial-gradient(circle at 12% 18%, rgba(217, 217, 223, 0.42), transparent 32rem);
}

.epdm-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
}

.epdm-copy h2 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 6vw, 5.25rem);
}

.epdm-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.78;
}

.epdm-proof-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
}

.epdm-proof-list span {
  position: relative;
  padding: 13px 16px 13px 42px;
  border: 1px solid rgba(38, 17, 63, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 900;
}

.epdm-proof-list span::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.epdm-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.epdm-gallery figure {
  position: relative;
  overflow: hidden;
  min-height: 174px;
  margin: 0;
  border: 1px solid rgba(20, 16, 32, 0.12);
  border-radius: 22px;
  background: #e6eaee;
  box-shadow: 0 16px 34px rgba(24, 21, 31, 0.12);
}

.epdm-gallery figure:first-child {
  grid-row: span 2;
}

.epdm-gallery img {
  width: 100%;
  height: 100%;
  min-height: 174px;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}

.epdm-gallery figure:hover img {
  transform: scale(1.045);
}

.epdm-gallery figcaption {
  position: absolute;
  left: 10px;
  right: auto;
  bottom: 10px;
  width: fit-content;
  max-width: calc(100% - 20px);
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 14, 27, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 900;
}

.capabilities { padding-top: 0; }
.capabilities-card {
  padding: 38px;
  border: 1px solid rgba(38, 17, 63, 0.12);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 48px rgba(24, 21, 31, 0.08);
}
.capabilities-card .eyebrow { color: var(--purple); }
.capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.capability-grid article {
  min-height: 145px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(251, 252, 253, 0.92);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.capability-grid strong { display: block; margin-bottom: 9px; font-family: "Antonio", sans-serif; font-size: 1.38rem; letter-spacing: -0.02em; }
.capability-grid span { display: block; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

.storm { background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(239, 243, 247, 0.78)), radial-gradient(circle at right center, rgba(78, 32, 116, 0.1), transparent 34rem); }
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; }
.split-media { position: relative; }
.split-media::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 32px; background: linear-gradient(135deg, var(--purple), var(--accent)); opacity: 0.22; }
.split-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow); }
.check-list { display: grid; gap: 12px; padding: 0; margin: 22px 0 26px; list-style: none; }
.check-list li { position: relative; padding: 13px 16px 13px 44px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.62); color: var(--ink); font-weight: 800; }
.check-list li::before { content: ""; position: absolute; left: 17px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(217, 217, 223, 0.22); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--purple); font-weight: 900; }
.text-link::after { content: ""; width: 34px; height: 2px; background: currentColor; transition: width 180ms ease; }
.text-link:hover::after { width: 52px; }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 18px; }
.work-item { position: relative; overflow: hidden; margin: 0; border-radius: 28px; background: #ddd; box-shadow: 0 16px 36px rgba(24, 21, 31, 0.1); }
.work-item.wide { grid-column: span 2; }
.work-item.tall { grid-row: span 2; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.work-item:hover img { transform: scale(1.045); }
.work-item figcaption { position: absolute; left: 16px; right: auto; bottom: 16px; width: fit-content; max-width: calc(100% - 32px); padding: 12px 16px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; color: #fff; background: rgba(16, 14, 27, 0.72); backdrop-filter: blur(12px); font-size: 0.9rem; font-weight: 900; line-height: 1.15; }

.why { background: linear-gradient(135deg, #17191c, #273238 58%, #1b1423); color: #fff; }
.why-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 46px; align-items: center; }
.quote-card { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 32px; background: rgba(255, 255, 255, 0.08); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24); }
.quote-card img { width: 100%; height: 330px; object-fit: cover; }
.quote-card blockquote { margin: 0; padding: 28px; }
.quote-card span { display: block; margin-bottom: 12px; color: var(--accent-2); font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.quote-card p { margin-bottom: 0; color: rgba(255, 255, 255, 0.78); font-size: 1.12rem; line-height: 1.75; }
.why-list > p:not(.eyebrow) { color: rgba(255, 255, 255, 0.72); }
.why-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.why-item { padding: 22px; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 22px; background: rgba(255, 255, 255, 0.07); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.why-item h3 { margin-bottom: 10px; font-size: 1.8rem; }
.why-item p { margin-bottom: 0; color: rgba(255, 255, 255, 0.7); line-height: 1.65; }

.areas { background: rgba(241, 245, 248, 0.76); }
.area-groups { display: grid; gap: 28px; }
.area-group h3 { margin-bottom: 14px; color: var(--purple); font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1; }
.area-note { max-width: 760px; margin: -2px 0 16px; color: var(--muted); font-weight: 800; line-height: 1.6; }
.area-list { display: flex; flex-wrap: wrap; gap: 12px; }
.area-list span { padding: 12px 16px; border: 1px solid rgba(38, 17, 63, 0.13); border-radius: 999px; background: rgba(255, 255, 255, 0.74); color: var(--ink); font-weight: 900; box-shadow: 0 10px 22px rgba(24, 21, 31, 0.05); }
.secondary-area-list { margin-top: 12px; }
.secondary-area-list span { background: rgba(255, 255, 255, 0.46); color: rgba(24, 21, 31, 0.78); }

.contact { padding-top: 34px; }
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 42px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 34px; background: linear-gradient(135deg, rgba(38, 17, 63, 0.95), rgba(78, 32, 116, 0.9)), url("/assets/images/roof-blue-metal-panorama.jpeg") center/cover; color: #fff; box-shadow: var(--shadow); }
.contact-card p:not(.eyebrow) { color: rgba(255, 255, 255, 0.76); }
.contact-actions { justify-content: flex-end; max-width: 470px; }
.site-footer { padding: 38px 0 44px; color: rgba(24, 21, 31, 0.76); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-grid p { margin: 0; line-height: 1.7; }
.footer-grid a { font-weight: 900; }
.mobile-call { position: fixed; left: 50%; right: auto; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; display: none; width: fit-content; min-width: 178px; max-width: calc(100% - 28px); padding: 15px 24px; border-radius: 999px; color: #fff; background: var(--cta-gradient); box-shadow: 0 16px 46px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22); font-weight: 950; text-align: center; transform: translateX(-50%); }
.mobile-call:hover { background: var(--cta-gradient-hover); }
.home-page .mobile-call { display: none !important; }
.interior-page .mobile-call,
.photo-page .mobile-call {
  display: none !important;
}

/* CLIENT-EDIT: final premium site structure */
.home-header .hero {
  padding-bottom: 88px;
}

.premium-hero .intro {
  max-width: 660px;
  font-size: clamp(1.06rem, 1.9vw, 1.28rem);
}

.trust-band {
  margin-top: 0;
  padding-top: 34px;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.clean-proof-strip {
  margin-top: 0;
  color: var(--white);
  background: rgba(16, 14, 27, 0.92);
}

.clean-proof-strip div {
  background: rgba(255, 255, 255, 0.045);
}

.compact-service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-service-grid .service {
  display: block;
}

.compact-service-grid .service img {
  height: 220px;
}

.home-work-preview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
}

.home-work-preview .work-item.wide {
  grid-column: span 2;
}

.refined-why-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.area-strip {
  background:
    linear-gradient(135deg, rgba(24, 21, 31, 0.96), rgba(38, 17, 63, 0.92)),
    url("/assets/images/roof-silver-metal-neighborhood.jpeg") center/cover;
  color: var(--white);
}

.area-strip-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
}

.area-strip-card h2 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.area-strip-card p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.75);
}

.final-cta {
  padding-top: clamp(34px, 7vw, 58px);
}

.final-cta .contact-card {
  grid-template-columns: 1fr;
  justify-items: center;
  max-width: 900px;
  margin-top: 0;
  text-align: center;
}

.final-cta .contact-card p:not(.eyebrow) {
  max-width: 700px;
}

.final-cta .contact-actions {
  justify-content: center;
  max-width: none;
}

.final-cta .contact-actions .btn {
  min-width: 176px;
}

.interior-header {
  min-height: auto;
}

.page-hero {
  position: relative;
  z-index: 1;
  padding: 76px 0 84px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.page-hero h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 1.65vw, 1.2rem);
  line-height: 1.68;
}

.page-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.detail-grid {
  display: grid;
  gap: 22px;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 21, 31, 0.1);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(24, 21, 31, 0.09);
}

.detail-card > img {
  width: 100%;
  height: 100%;
  min-height: 285px;
  object-fit: cover;
}

.detail-card > div {
  padding: clamp(24px, 4vw, 42px);
}

.detail-card h2 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4.4vw, 4.4rem);
}

.detail-card p {
  color: var(--muted);
  line-height: 1.7;
}

.highlight-detail-card {
  border-color: rgba(78, 32, 116, 0.22);
}

.mini-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 18px;
}

.mini-proof-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(24, 21, 31, 0.08);
}

.proof-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.proof-note-grid article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(24, 21, 31, 0.1);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(24, 21, 31, 0.08);
}

.proof-note-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 999px;
  color: var(--white);
  background: var(--plum);
  font-weight: 950;
}

.proof-note-grid h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.proof-note-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.full-areas .area-groups {
  gap: 24px;
}

.contact-page-card {
  min-height: 420px;
}

@media (max-width: 1120px) {
  .service-grid, .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { display: grid; grid-template-columns: 0.45fr 0.55fr; }
  .service img { height: 100%; min-height: 245px; }
  .compact-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-work-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .topbar { align-items: flex-start; border-radius: 28px; }
  .navlinks { display: grid; grid-template-columns: repeat(3, auto); justify-content: end; }
  .hero-grid, .split, .epdm-project-grid, .why-grid, .contact-card, .page-hero-grid, .detail-card, .area-strip-card { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-item.wide, .work-item.tall { grid-column: auto; grid-row: auto; }
  .contact-actions { justify-content: flex-start; }
  .page-hero img { max-width: 620px; }
  .proof-note-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 32px), var(--max)); }
  .topbar { position: relative; top: auto; flex-direction: column; padding: 14px; }
  .brand { width: 100%; min-width: 0; }
  .navlinks { width: 100%; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.84rem; }
  .navlinks a { display: grid; min-width: 0; min-height: 56px; place-items: center; padding: 11px 9px; background: rgba(255, 255, 255, 0.08); white-space: normal; }
  .navlinks .phone { grid-column: auto; }
  .hero { padding: 58px 0 46px; }
  .hero-grid { gap: 34px; }
  .hero h1 { font-size: clamp(3.35rem, 17vw, 5.7rem); }
  .intro { font-size: 1rem; }
  .hero-actions, .contact-actions { flex-direction: column; }
  .btn { width: 100%; }
  .proof-strip { grid-template-columns: 1fr; margin-top: 0; }
  .trust-band { margin-top: 0; padding-top: 32px; background: var(--paper); }
  .clean-proof-strip { margin-top: 0; }
  .section { padding: 58px 0; }
  .section-head h2, .split-copy h2, .why-list h2, .contact-card h2 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .service-grid, .capability-grid, .why-items { grid-template-columns: 1fr; }
  .compact-service-grid, .refined-why-items, .mini-proof-row { grid-template-columns: 1fr; }
  .service { display: block; }
  .service img { min-height: 0; height: 230px; }
  .compact-service-grid .service img { height: 230px; }
  .capabilities-card { padding: 24px; }
  .capability-grid article { min-height: 0; }
  .split-media::before { inset: 14px -10px -10px 14px; }
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .home-work-preview { grid-template-columns: 1fr; }
  .home-work-preview .work-item.wide { grid-column: auto; }
  .page-hero { padding: 54px 0 58px; }
  .page-hero h1 { font-size: clamp(2.7rem, 13vw, 5rem); }
  .page-hero img { border-radius: 22px; }
  .detail-card > img { min-height: 230px; }
  .detail-card > div, .proof-note-grid article { padding: 24px; }
  .contact-card { padding: 28px; }
  .footer-grid { display: grid; }
  .mobile-call { display: block; }
  .site-footer { padding-bottom: 88px; }
}

@media (max-width: 430px) {
  h1, h2, h3,
  .btn,
  .navlinks a,
  .text-link {
    overflow-wrap: anywhere;
  }

  .brand img { width: 52px; height: 52px; }
  .brand strong { font-size: 0.98rem; }
  .topbar { border-radius: 24px; padding: 12px 10px; }
  .navlinks { font-size: 0.78rem; }
  .navlinks a { padding-inline: 7px; }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 4.8rem); }
  .section-head h2,
  .split-copy h2,
  .why-list h2,
  .contact-card h2 {
    font-size: clamp(2.15rem, 11.6vw, 3.45rem);
  }
  .card-media.job-photo img { height: 235px; }
  .card-copy, .service div, .quote-card blockquote { padding: 22px; }
  .area-list span { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
}

.brand-trust {
  color: var(--cta-2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
/* brand-trust mobile cleanup */
.brand span {
  min-width: 0;
}

.brand-trust {
  display: block;
  line-height: 1.15;
  margin-top: 0.18rem;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .brand {
    align-items: center;
  }

  .brand span {
    max-width: calc(100vw - 8.5rem);
  }

  .brand small {
    white-space: nowrap;
  }
}
/* transparent horizontal brand lockup */
.brand {
  flex: 0 1 250px;
  justify-content: flex-start;
}

.brand img.brand-lockup {
  width: clamp(200px, 18vw, 250px);
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

@media (max-width: 1020px) {
  .brand {
    flex-basis: 100%;
    justify-content: center;
  }

  .brand img.brand-lockup {
    width: min(100%, 250px);
  }
}

@media (min-width: 761px) and (max-width: 1020px) {
  .site-header .wrap.topbar {
    width: min(calc(100% - 44px), 900px);
    display: grid;
    grid-template-columns: minmax(228px, 0.7fr) minmax(410px, 1fr);
    align-items: center;
    gap: clamp(20px, 3vw, 34px);
    padding: 16px 18px;
    border-radius: 30px;
  }

  .brand {
    width: auto;
    min-width: 0;
    flex: initial;
    flex-basis: auto;
    justify-content: center;
  }

  .brand img.brand-lockup {
    width: clamp(214px, 28vw, 268px);
  }

  .navlinks {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    justify-content: stretch;
    font-size: 0.86rem;
  }

  .navlinks a {
    display: grid;
    min-width: 0;
    min-height: 48px;
    place-items: center;
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.075);
    line-height: 1.05;
    text-align: center;
    white-space: normal;
  }

  .navlinks .phone {
    grid-column: auto;
    min-height: 48px;
  }
}

@media (max-width: 760px) {
  .brand {
    justify-content: center;
    margin-bottom: 4px;
  }

  .brand img.brand-lockup {
    width: min(100%, 230px);
  }
}

@media (max-width: 430px) {
  .site-header .wrap.topbar {
    width: min(calc(100% - 18px), var(--max));
  }

  .brand img.brand-lockup {
    width: min(100%, 220px);
  }
}
/* structured hero area/services panels */
.hero-snapshot {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.75fr);
  gap: 14px;
  margin: 1.45rem 0 0;
}

.snapshot-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(16, 12, 28, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  padding: 20px;
}

.snapshot-card::before {
  content: "";
  position: absolute;
  inset: -45% auto auto -12%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 217, 223, 0.20), transparent 66%);
  pointer-events: none;
}

.snapshot-kicker {
  display: block;
  color: var(--cta-2);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  margin-bottom: 0.74rem;
  text-transform: uppercase;
}

.snapshot-card strong {
  display: block;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.05rem, 2.8vw, 1.34rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 0.86rem;
}

.area-grid,
.service-mini-grid {
  display: grid;
  gap: 8px;
}

.area-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.area-grid span,
.service-mini-grid span {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  font-size: 0.82rem;
  font-weight: 850;
  justify-content: center;
  line-height: 1.1;
  min-height: 38px;
  padding: 8px 10px;
  text-align: center;
}

.service-mini-grid span {
  background: rgba(217, 217, 223, 0.11);
}

.area-grid span {
  background: rgba(255, 255, 255, 0.075);
}

@media (max-width: 900px) {
  .hero-snapshot {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .snapshot-card {
    border-radius: 24px;
    padding: 18px;
  }

  .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-mini-grid {
    grid-template-columns: 1fr;
  }
}
/* service number bubbles removed */
.service div > span:first-child {
  display: none;
}

.service h3 {
  margin-top: 0;
}
/* service carousel compression */
.hero-card::before {
  display: none;
}

.hero-card {
  overflow: hidden;
}

.card-media.job-photo img {
  display: block;
}

.service-grid {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 0 0 20px;
  scroll-padding: 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(217, 217, 223, 0.65) transparent;
}

.service-grid::after {
  content: "";
  flex: 0 0 1px;
}

.service {
  flex: 0 0 clamp(318px, 30vw, 410px);
  min-height: auto;
  scroll-snap-align: start;
}

.service img {
  height: 238px;
  min-height: 0;
}

.service div {
  padding: 28px 30px 34px;
}

.service h3 {
  font-size: clamp(2.15rem, 3.1vw, 2.9rem);
  line-height: 0.98;
}

.service p {
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .service-grid {
    gap: 16px;
    margin-left: -2px;
    padding-bottom: 18px;
  }

  .service {
    flex-basis: min(84vw, 390px);
  }

  .service img {
    height: 220px;
  }

  .epdm-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .epdm-gallery figure:first-child {
    grid-row: auto;
  }

  .epdm-gallery figure,
  .epdm-gallery img {
    min-height: 230px;
  }

  .epdm-gallery figcaption {
    bottom: 72px;
  }
}

/* CLIENT-EDIT: services hub panels used on services.html */
.services-page .page-hero {
  padding-bottom: clamp(54px, 8vw, 86px);
}

.service-hub {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(239, 243, 247, 0.92)),
    radial-gradient(circle at 88% 12%, rgba(141, 85, 191, 0.10), transparent 30rem);
}

.service-panel-grid {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.service-fit-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 clamp(24px, 4vw, 42px);
}

.service-fit-guide article {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(24, 21, 31, 0.10);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 242, 246, 0.78));
  box-shadow: 0 12px 28px rgba(24, 21, 31, 0.06);
}

.service-fit-guide strong,
.service-fit-guide span {
  display: block;
}

.service-fit-guide strong {
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 950;
  line-height: 1.25;
}

.service-fit-guide span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.roof-choice-board {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
  margin: 0 0 clamp(28px, 5vw, 48px);
  padding: clamp(22px, 3.4vw, 36px);
  border: 1px solid rgba(24, 21, 31, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(18, 21, 24, 0.96), rgba(39, 50, 56, 0.92) 58%, rgba(27, 20, 35, 0.95)),
    radial-gradient(circle at 100% 0%, rgba(141, 85, 191, 0.2), transparent 20rem);
  color: var(--white);
  box-shadow: 0 26px 70px rgba(24, 21, 31, 0.18);
}

.roof-choice-board-copy {
  position: sticky;
  top: 112px;
}

.roof-choice-board-copy .eyebrow {
  color: #f7f9ff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.42);
}

.roof-choice-board-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(2.45rem, 4.8vw, 4.5rem);
}

.roof-choice-board-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.7;
}

.roof-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.roof-choice-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.roof-choice-card span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #f7f9ff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.roof-choice-card h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(1.65rem, 2.6vw, 2.4rem);
}

.roof-choice-card p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.93rem;
  line-height: 1.58;
}

.roof-choice-card p:last-child {
  margin-bottom: 0;
}

.roof-choice-card strong {
  color: #ffffff;
}

.roof-choice-card.warranty-note {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(141, 85, 191, 0.18));
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.88fr);
  gap: clamp(22px, 3vw, 34px);
  align-items: stretch;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(24, 21, 31, 0.11);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 54px rgba(24, 21, 31, 0.09);
}

.service-panel:nth-child(even) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(237, 242, 247, 0.84)),
    var(--white);
}

.service-panel-copy {
  min-width: 0;
}

.service-panel-copy .eyebrow {
  color: var(--purple);
  text-shadow: none;
}

.service-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(2.45rem, 5vw, 4.85rem);
}

.service-panel p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.service-fit,
.service-value {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(96, 68, 130, 0.20);
  border-left: 5px solid rgba(141, 85, 191, 0.82);
  border-radius: 16px;
  background: linear-gradient(135deg, #f7f9fa 0%, #dbe3eb 48%, #cbb4e8 100%);
  color: #1a2027;
  box-shadow: 0 14px 30px rgba(39, 50, 56, 0.08);
}

.service-value {
  border-color: rgba(39, 50, 56, 0.11);
  border-left-color: rgba(123, 99, 166, 0.68);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 237, 242, 0.84));
}

.service-fit strong,
.service-value strong {
  color: var(--ink);
}

.service-solve {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(39, 50, 56, 0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.92), rgba(242, 237, 248, 0.82));
  color: var(--ink);
}

.service-solve strong {
  color: var(--ink);
}

.service-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  margin-top: 22px;
}

.service-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: stretch;
  min-width: 0;
}

.service-photo-strip img {
  width: 100%;
  height: 100%;
  min-height: clamp(188px, 19vw, 285px);
  object-fit: cover;
  border: 1px solid rgba(24, 21, 31, 0.1);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(24, 21, 31, 0.08);
}

.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.gallery-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.15;
}

.gallery-nav a:hover {
  color: #fff;
  background: var(--cta-gradient);
}

@media (max-width: 1020px) {
  .service-panel {
    grid-template-columns: 1fr;
  }

  .roof-choice-board {
    grid-template-columns: 1fr;
  }

  .roof-choice-board-copy {
    position: static;
  }

  .service-fit-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-photo-strip img {
    min-height: clamp(170px, 28vw, 250px);
  }
}

@media (max-width: 640px) {
  .service-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .service-fit-guide {
    grid-template-columns: 1fr;
  }

  .roof-choice-board {
    padding: 20px;
    border-radius: 24px;
  }

  .roof-choice-grid {
    grid-template-columns: 1fr;
  }

  .service-photo-strip {
    grid-template-columns: 1fr;
  }

  .service-photo-strip img {
    min-height: 238px;
  }

  .service-cta-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* inspection choice and gallery carousel polish */
.section:not(.dark) .eyebrow,
#work .eyebrow,
.photo-category .eyebrow {
  color: var(--purple);
}

.contact-card .eyebrow,
.area-strip .eyebrow,
.why .eyebrow,
.roof-choice-board .eyebrow,
.page-hero .eyebrow,
.photo-hero .eyebrow,
.photo-contact .eyebrow {
  color: var(--cta-2);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.38);
}

.contact-card .eyebrow,
.area-strip .eyebrow {
  letter-spacing: 0.14em;
}

section.section.why .why-list > p.eyebrow {
  color: #f7f9ff;
  font-size: clamp(0.82rem, 2.25vw, 0.92rem);
  letter-spacing: 0.14em;
  opacity: 1;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.58);
}

@media (max-width: 760px) {
  .final-cta {
    padding-top: 40px;
  }

  .final-cta .contact-card {
    margin-top: 0;
  }
}

/* Annotation guard: why-section eyebrow must stay readable on the dark slate panel. */
.why-list > .eyebrow,
.why .eyebrow {
  color: #f7f9ff;
  opacity: 1;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.58);
}

.why-list > .eyebrow {
  font-size: clamp(0.82rem, 2.25vw, 0.92rem);
  letter-spacing: 0.14em;
}

.inspection-choice {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.inspection-choice span {
  color: var(--ink);
  flex-basis: 100%;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.inspection-choice a {
  align-items: center;
  border: 1px solid rgba(78, 32, 116, 0.18);
  border-radius: 999px;
  color: var(--purple);
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.inspection-choice a:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-1px);
}

.work-grid {
  display: flex;
  gap: 20px;
  grid-auto-rows: auto;
  grid-template-columns: none;
  overflow-x: auto;
  padding: 0 0 22px;
  scroll-padding: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(78, 32, 116, 0.45) transparent;
}

.work-grid::after {
  content: "";
  flex: 0 0 1px;
}

.work-item,
.work-item.wide,
.work-item.tall {
  flex: 0 0 clamp(320px, 42vw, 560px);
  grid-column: auto;
  grid-row: auto;
  height: clamp(300px, 34vw, 420px);
  scroll-snap-align: start;
}

.work-item.wide {
  flex-basis: clamp(390px, 58vw, 760px);
}

.work-item img {
  height: 100%;
}

@media (max-width: 760px) {
  .inspection-choice a {
    flex: 1 1 180px;
  }

  .work-grid {
    gap: 16px;
    padding-bottom: 18px;
  }

  .work-item,
  .work-item.wide,
  .work-item.tall {
    flex-basis: min(86vw, 430px);
    height: 320px;
  }

  .work-item figcaption {
    bottom: 72px;
  }
}
/* CLIENT-EDIT: photo gallery category polish */
.work-more {
  margin-top: clamp(20px, 4vw, 34px);
  display: flex;
  justify-content: center;
}

.area-context {
  background:
    linear-gradient(180deg, rgba(251, 252, 253, 0.92), rgba(237, 242, 247, 0.94)),
    radial-gradient(circle at 85% 5%, rgba(141, 85, 191, 0.12), transparent 28rem);
}

.area-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.area-context-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(24, 21, 31, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(24, 21, 31, 0.07);
}

.area-context-grid strong,
.area-context-grid span {
  display: block;
}

.area-context-grid strong {
  margin-bottom: 9px;
  color: var(--ink);
  font-weight: 950;
  line-height: 1.25;
}

.area-context-grid span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
}

@media (max-width: 1020px) {
  .area-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .area-context-grid {
    grid-template-columns: 1fr;
  }
}

.photo-page {
  background: var(--paper);
}

.photo-hero {
  padding: clamp(44px, 8vw, 96px) 0 clamp(34px, 6vw, 72px);
  background:
    radial-gradient(circle at 80% 10%, rgba(217, 217, 223, 0.32), transparent 36%),
    linear-gradient(135deg, var(--purple-950), var(--purple));
  color: var(--white);
}

.photo-hero .eyebrow,
.photo-contact .eyebrow {
  color: var(--silver);
}

.photo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 0.86fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}

.photo-hero-grid > * {
  min-width: 0;
}

.photo-hero h1 {
  margin: 0 0 clamp(14px, 2vw, 24px);
  max-width: 720px;
  font-size: clamp(3.75rem, 6.4vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.photo-hero p {
  max-width: 680px;
  color: rgba(255,255,255,0.82);
  font-size: clamp(1.05rem, 1.65vw, 1.22rem);
  line-height: 1.65;
}

.compact-actions {
  margin-top: 26px;
}

.photo-hero-card,
.photo-grid figure {
  margin: 0;
}

.photo-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 28px 70px rgba(0,0,0,0.25);
}

.photo-hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.photo-hero-card figcaption {
  position: absolute;
  left: 14px;
  right: auto;
  bottom: 14px;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(16, 14, 27, 0.76);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.15;
}

.photo-category {
  padding: clamp(52px, 8vw, 96px) 0;
}

.photo-category:nth-of-type(odd) {
  background: var(--paper-2);
}

.featured-photo-category {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 243, 247, 0.78)),
    radial-gradient(circle at 88% 12%, rgba(78, 32, 116, 0.12), transparent 28rem);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}

.photo-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: var(--white);
  border: 1px solid rgba(20, 16, 32, 0.10);
  box-shadow: 0 18px 50px rgba(20, 16, 32, 0.10);
}

.photo-grid img {
  width: 100%;
  height: clamp(220px, 25vw, 360px);
  object-fit: cover;
  display: block;
}

.photo-grid figcaption {
  position: absolute;
  left: 14px;
  right: auto;
  bottom: 14px;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--white);
  background: rgba(16, 14, 27, 0.74);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.15;
}

.epdm-photo-grid img {
  height: clamp(250px, 31vw, 410px);
}

.photo-contact {
  padding: clamp(52px, 8vw, 96px) 0;
  background: var(--purple-950);
  color: var(--white);
}

.photo-contact .contact-card {
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}

.photo-contact h2 {
  margin: 0 0 clamp(14px, 2vw, 24px);
  color: var(--white);
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.photo-contact p {
  color: rgba(255,255,255,0.78);
}

@media (max-width: 900px) {
  .photo-hero-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .epdm-photo-grid img {
    height: clamp(260px, 76vw, 440px);
  }

  .photo-hero h1,
  .photo-contact h2 {
    font-size: clamp(3.05rem, 13vw, 5rem);
  }
}

@media (max-width: 560px) {
  .photo-hero-grid {
    gap: 24px;
  }

  .photo-hero h1,
  .photo-contact h2 {
    font-size: clamp(2.45rem, 11.8vw, 4rem);
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
  }

  .photo-hero p,
  .photo-contact p {
    font-size: 1rem;
  }

  .photo-hero-card,
  .photo-grid figure {
    border-radius: 24px;
  }

  .photo-grid figcaption {
    bottom: 12px;
    max-width: calc(100% - 24px);
  }
}

.home-page .home-work-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.home-page .home-work-preview::after {
  content: none;
}

.home-page .home-work-preview .work-item,
.home-page .home-work-preview .work-item.wide,
.home-page .home-work-preview .work-item.tall {
  flex: initial;
  width: auto;
  height: auto;
  min-height: 0;
  scroll-snap-align: initial;
}

.home-page .home-work-preview .work-item.wide {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .home-page .home-work-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .home-work-preview .work-item.wide {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .home-page .home-work-preview {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .home-page .home-work-preview .work-item,
  .home-page .home-work-preview .work-item.wide,
  .home-page .home-work-preview .work-item.tall {
    min-height: 250px;
  }

  .home-page .home-work-preview .work-item.wide {
    grid-column: auto;
  }

.home-page .home-work-preview .work-item figcaption {
    bottom: 16px;
  }
}

/* Homepage service preview should read as a clean grid, not a horizontal carousel. */
.home-page .compact-service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.home-page .compact-service-grid::after {
  content: none;
}

.home-page .compact-service-grid .service {
  flex: initial;
  width: auto;
  min-width: 0;
  scroll-snap-align: initial;
}

.home-page .compact-service-grid .service img {
  height: 180px;
}

.home-page .compact-service-grid .service div {
  padding: 20px;
}

.home-page .compact-service-grid .service h3 {
  font-size: clamp(1.55rem, 2.1vw, 2.05rem);
}

.home-page .compact-service-grid .service p {
  font-size: 0.92rem;
}

.home-owner-fit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(18px, 3vw, 28px);
}

.home-owner-fit article {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(24, 21, 31, 0.11);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 241, 246, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(141, 85, 191, 0.14), transparent 9rem);
  box-shadow: 0 14px 34px rgba(24, 21, 31, 0.07);
}

.home-owner-fit strong,
.home-owner-fit span {
  display: block;
}

.home-owner-fit strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 950;
  line-height: 1.2;
}

.home-owner-fit span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.58;
}

@media (max-width: 1120px) {
  .home-page .compact-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .home-page .compact-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-owner-fit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-page .compact-service-grid {
    grid-template-columns: 1fr;
  }
}

/* Final contrast guard for small labels on dark image/CTA surfaces. */
.contact-card .eyebrow,
.contact .contact-card .eyebrow,
.final-cta .contact-card .eyebrow,
.area-strip .eyebrow,
.section.area-strip .eyebrow,
.why .eyebrow,
.roof-choice-board .eyebrow,
.page-hero .eyebrow,
.photo-hero .eyebrow,
.photo-contact .eyebrow {
  color: #f7f9ff;
  opacity: 1;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.42);
}

.contact-card .eyebrow,
.area-strip .eyebrow,
.section.area-strip .eyebrow {
  letter-spacing: 0.14em;
}

.services-page .roof-choice-board .eyebrow {
  color: #f7f9ff;
  opacity: 1;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.42);
}

/* Final CTA sizing guard: buttons should read as compact pills, not full-width bars. */
@media (max-width: 760px) {
  .hero-actions,
  .contact-actions {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
  }

  .contact-card .contact-actions,
  .final-cta .contact-actions,
  .photo-contact .contact-actions {
    justify-content: center;
  }

  .btn,
  .hero-actions .btn,
  .contact-actions .btn,
  .final-cta .contact-actions .btn {
    width: fit-content;
    max-width: 100%;
  }
}
