/*
Theme Name: Peace of Mind Contracting
Theme URI: https://pomcontracting.com
Author: Nyftylabs
Author URI: https://nyftylabs.com
Description: Custom editorial theme for Peace of Mind Contracting — a Maryland general contractor specializing in residential remodels. Features a Services custom post type, working contact form with submission backup, and Customizer-based site settings.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pomc
Tags: business, contractor, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, threaded-comments, translation-ready
*/

:root {
  --cream: #F4F1EA;
  --cream-deep: #EAE5D7;
  --ink: #1A1814;
  --ink-soft: #4A4E5C;
  --navy: #1D3B75;
  --navy-deep: #142A55;
  --navy-soft: #4A6BA8;
  --navy-tint: #EEF2FA;
  --line: rgba(26,24,20,0.12);
  --line-soft: rgba(26,24,20,0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.serif { font-family: 'Montserrat', sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

/* ===== TOP BAR ===== */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.92);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 18px 0; }
.mobile-menu-toggle,
.mobile-phone-link,
.mobile-action-strip { display: none; }
.mobile-menu-toggle {
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.mobile-menu-lines {
  display: block;
  width: 25px;
  height: 18px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 8px / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 16px / 100% 2px no-repeat;
}
.logo { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; color: var(--navy); }
.logo-image { width: min(260px, 38vw); max-height: 62px; object-fit: contain; }
.logo-mark { width: 38px; height: 38px; border: 1.5px solid var(--navy); border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: var(--navy); color: var(--cream); }
.logo-text { line-height: 1.05; }
.logo-text small { display: block; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; font-weight: 500; }
nav.primary { display: flex; gap: 36px; font-size: 14px; font-weight: 500; }
nav.primary ul { list-style: none; display: flex; gap: 36px; margin: 0; padding: 0; }
nav.primary a { position: relative; padding: 4px 0; transition: color 0.2s; }
nav.primary a:hover { color: var(--navy); }
nav.primary a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--navy); transition: width 0.3s; }
nav.primary a:hover::after { width: 100%; }
.call-cta { display: flex; align-items: center; gap: 12px; }
.call-cta .num { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; color: var(--navy); }
.call-label { display: none; }
.call-cta .badge { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.3; font-weight: 500; }
@media (max-width: 900px) { nav.primary { display: none; } .call-cta .badge { display: none; } }

@media (max-width: 900px) {
  .topbar {
    color: var(--cream);
    background: var(--navy-deep);
    border-bottom: 0;
    box-shadow: 0 12px 32px -28px rgba(9, 20, 43, 0.8);
  }

  .topbar-inner {
    position: relative;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 96px;
    gap: 0;
    align-items: center;
    min-height: 66px;
    width: 100%;
    max-width: none;
    padding: 6px max(18px, env(safe-area-inset-left)) 6px max(18px, env(safe-area-inset-right));
  }

  .mobile-menu-toggle {
    grid-column: 1;
    grid-row: 1;
    display: inline-grid;
    justify-items: start;
    gap: 3px;
    width: 64px;
    padding: 4px 0;
    color: var(--cream);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
  }

  .logo {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    min-width: 0;
  }

  .logo-image {
    width: min(142px, 36vw);
    max-height: 54px;
    padding: 5px 8px;
    border: 1px solid rgba(244, 241, 234, 0.26);
    border-radius: 6px;
    background: var(--cream);
  }

  .mobile-phone-link {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    justify-items: end;
    align-content: center;
    gap: 2px;
    min-width: 0;
    color: var(--cream);
    text-align: right;
  }

  .mobile-phone-link span {
    color: rgba(244, 241, 234, 0.74);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-phone-link strong {
    display: block;
    max-width: 96px;
    color: var(--cream);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
    white-space: nowrap;
  }

  .call-cta {
    display: none;
  }

  nav.primary.is-open {
    grid-column: 1 / -1;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 5;
    display: block;
    padding: 8px;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid rgba(29, 59, 117, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 60px -36px rgba(9, 20, 43, 0.7);
  }

  nav.primary.is-open ul {
    display: grid;
    gap: 0;
  }

  nav.primary.is-open a {
    display: block;
    padding: 12px 14px;
    border-radius: 6px;
  }

  nav.primary.is-open a:hover,
  nav.primary.is-open a:focus {
    color: var(--navy);
    background: rgba(29, 59, 117, 0.08);
    outline: none;
  }

  nav.primary.is-open a::after {
    display: none;
  }

  .mobile-action-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    overflow-x: hidden;
    padding: 10px max(8px, env(safe-area-inset-left)) 12px max(8px, env(safe-area-inset-right));
    border-top: 1px solid rgba(244, 241, 234, 0.18);
    background: var(--navy-deep);
    scrollbar-width: none;
  }

  .mobile-action-strip::-webkit-scrollbar {
    display: none;
  }

  .mobile-action {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 0;
    color: var(--cream);
    background: transparent;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
    cursor: pointer;
  }

  .mobile-action-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 2px solid rgba(244, 241, 234, 0.92);
    border-radius: 10px;
  }

  .mobile-action svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-action:hover .mobile-action-icon,
  .mobile-action:focus-visible .mobile-action-icon {
    background: rgba(244, 241, 234, 0.1);
  }
}

/* ===== HERO ===== */
.hero { padding: 90px 0 60px; position: relative; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero-grid > * { min-width: 0; max-width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--navy); font-weight: 600; margin-bottom: 32px; }
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--navy); }
h1.hero-title { font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: clamp(48px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.035em; color: var(--ink); margin-bottom: 28px; }
h1.hero-title .ital { font-style: italic; font-weight: 300; color: var(--navy); }
.hero-lead { font-size: 18px; color: var(--ink-soft); max-width: 480px; line-height: 1.55; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; font-weight: 600; font-size: 14px; letter-spacing: 0.02em; border-radius: 999px; border: none; cursor: pointer; transition: transform 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s; font-family: inherit; }
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-primary .arrow { transition: transform 0.25s; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.hero-image-wrap { position: relative; min-width: 0; max-width: 100%; }
.hero-image-frame { position: relative; width: 100%; max-width: 100%; aspect-ratio: 4/5; overflow: hidden; border-radius: 6px; background: var(--cream-deep); }
.hero-image-frame img { width: 100%; max-width: none; height: 100%; object-fit: cover; filter: saturate(0.95); }
.hero-stat { position: absolute; background: var(--cream); padding: 20px 24px; border-radius: 4px; box-shadow: 0 24px 60px -20px rgba(29,59,117,0.25); }
.hero-stat-1 { bottom: 18px; left: 18px; max-width: 200px; }
.hero-stat-2 { top: 32px; right: 18px; padding: 14px 20px; background: var(--navy); color: var(--cream); }
.hero-stat .num { font-size: 36px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; color: var(--navy); }
.hero-stat .lbl { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; font-weight: 600; }
.hero-stat-2 .num { font-size: 18px; color: var(--cream); }
.hero-stat-2 .lbl { color: rgba(244,241,234,0.7); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero-stat-1, .hero-stat-2 { display: none; } }

/* ===== TRUST ===== */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; margin-top: 80px; overflow: hidden; }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-soft); font-weight: 500; }
.trust-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.trust-item strong { color: var(--ink); font-weight: 600; font-size: 15px; }

/* ===== SECTIONS ===== */
section { padding: 120px 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; margin-bottom: 80px; align-items: end; }
.section-num { font-style: italic; font-weight: 300; color: var(--navy); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-weight: 400; font-size: clamp(40px, 5.2vw, 72px); line-height: 1; letter-spacing: -0.03em; }
.section-title .ital { font-style: italic; font-weight: 300; color: var(--navy); }
.section-intro { font-size: 17px; color: var(--ink-soft); max-width: 520px; line-height: 1.6; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 50px; } section { padding: 80px 0; } }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.services-grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services-grid--compact { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.service-card { background: var(--cream); padding: 36px 28px 32px; position: relative; transition: background 0.35s; cursor: pointer; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; }
.service-card:hover { background: var(--navy); color: var(--cream); }
.service-card:hover .svc-num, .service-card:hover .svc-desc { color: rgba(244,241,234,0.75); }
.service-card:hover .svc-link { color: var(--cream); }
.service-card:hover .svc-icon { color: var(--cream); transform: rotate(-8deg); }
.svc-icon { width: 36px; height: 36px; color: var(--navy); transition: color 0.35s, transform 0.35s; margin-bottom: 28px; }
.svc-num { font-style: italic; font-weight: 300; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; transition: color 0.35s; }
.svc-title { font-size: 28px; font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 14px; }
.svc-desc { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 20px; transition: color 0.35s; }
.svc-link { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; transition: color 0.35s; }
@media (max-width: 1100px) { .services-grid, .services-grid--six, .services-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ===== WORK GALLERY ===== */
.work-gallery { background: var(--cream-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-flow: dense; }
.work-card { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 6px; background: var(--cream); box-shadow: 0 22px 50px -34px rgba(29,59,117,0.45); cursor: zoom-in; }
.work-card.is-wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.work-card.is-tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 0.5s ease, filter 0.5s ease; }
.work-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(20,42,85,0.58)); opacity: 0.86; pointer-events: none; }
.work-card figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: var(--cream); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-shadow: 0 1px 16px rgba(0,0,0,0.32); }
.work-card:hover img { transform: scale(1.04); filter: saturate(1.04); }
.work-card:focus-visible { outline: 3px solid #c7972f; outline-offset: 4px; }
@media (max-width: 1000px) { .work-mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .work-gallery {
    overflow: hidden;
  }

  .work-gallery .wrap {
    width: 100%;
    padding: 0;
  }

  .work-gallery .section-head {
    width: calc(100% - 40px);
    margin-inline: auto;
  }

  .work-mosaic {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(78vw, 1fr);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory;
    padding: 0 20px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .work-mosaic::-webkit-scrollbar {
    display: none;
  }

  .work-card,
  .work-card.is-wide,
  .work-card.is-tall {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}

/* ===== ABOUT ===== */
.about { background: var(--navy); color: var(--cream); }
.about .section-num { color: var(--navy-tint); }
.about .section-title { color: var(--cream); }
.about .section-title .ital { color: var(--navy-tint); }
.about .about-intro { color: rgba(244,241,234,0.75); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 80px; align-items: center; }
.about-photo { aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; position: relative; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.02); }
.about-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20,42,85,0.5)); }
.about-caption { position: absolute; bottom: 24px; left: 24px; z-index: 2; color: var(--cream); }
.about-caption .name { font-size: 22px; font-weight: 500; }
.about-caption .role { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy-tint); margin-top: 4px; font-weight: 600; }
.about-text p { font-size: 17px; line-height: 1.65; color: rgba(244,241,234,0.82); margin-bottom: 22px; }
.about-text p.lead { font-style: italic; font-weight: 300; font-size: 26px; line-height: 1.35; color: var(--cream); margin-bottom: 28px; letter-spacing: -0.01em; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid rgba(244,241,234,0.18); padding-top: 32px; }
.value { padding-right: 20px; }
.value .v-num { font-style: italic; font-weight: 300; color: var(--navy-tint); font-size: 14px; margin-bottom: 8px; }
.value .v-title { font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.value .v-text { font-size: 13px; color: rgba(244,241,234,0.65); line-height: 1.5; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } .values { grid-template-columns: 1fr; gap: 24px; } }

/* ===== QUOTE BAND ===== */
.quote-band { padding: 38px 0; color: var(--cream); background: linear-gradient(120deg, var(--navy-deep), var(--navy) 62%, #284E8D); border-top: 1px solid rgba(244,241,234,0.12); border-bottom: 1px solid rgba(244,241,234,0.16); }
.quote-band-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: clamp(24px, 4vw, 58px); align-items: center; }
.quote-copy .panel-kicker { color: rgba(244,241,234,0.72); margin-bottom: 10px; }
.quote-copy h3 { max-width: 760px; font-weight: 400; font-size: clamp(32px, 4vw, 54px); line-height: 0.98; letter-spacing: 0; }
.quote-copy h3 .ital { display: inline-block; color: var(--navy-tint); font-style: italic; font-weight: 300; }
.quote-copy p { max-width: 680px; margin-top: 12px; color: rgba(244,241,234,0.72); font-size: 15px; line-height: 1.65; }
.quote-actions { display: grid; justify-items: end; gap: 16px; }
.quote-band .btn-primary { background: var(--cream); color: var(--navy-deep); box-shadow: 0 22px 50px -28px rgba(0,0,0,0.65); }
.quote-band .btn-primary:hover { background: #ffffff; color: var(--navy); }
.quote-points { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; max-width: 420px; }
.quote-points span { display: inline-flex; align-items: center; min-height: 32px; padding: 8px 12px; border: 1px solid rgba(244,241,234,0.2); border-radius: 999px; color: rgba(244,241,234,0.74); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 850px) { .quote-band { padding: 34px 0; } .quote-band-inner { grid-template-columns: 1fr; } .quote-actions { justify-items: start; } .quote-points { justify-content: flex-start; } }

/* ===== CONTACT ===== */
.contact-bg { background: var(--cream-deep); border-top: 1px solid var(--line); }
.contact-area { padding-top: 76px; }
.contact-area-board { display: grid; grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr); gap: 0; align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-rail { display: grid; gap: 18px; align-content: stretch; padding-right: 22px; }
.contact-panel, form.pomc-form { background: var(--cream); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 30px 60px -25px rgba(29,59,117,0.2); }
.contact-panel { display: grid; align-content: center; padding: clamp(28px, 4vw, 48px); }
.panel-kicker { margin-bottom: 14px; color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.contact-panel h3 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 48px); font-weight: 400; line-height: 1; letter-spacing: 0; }
.contact-panel p { margin: 0 0 24px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.contact-panel .btn { width: 100%; justify-content: center; }
.contact-detail-grid { display: grid; grid-template-columns: 1fr; gap: 0; align-content: start; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(244,241,234,0.88); box-shadow: 0 22px 52px -34px rgba(29,59,117,0.28); }
.info-block { display: grid; grid-template-columns: minmax(94px, max-content) minmax(0, 1fr); gap: 6px 18px; align-items: start; min-height: auto; padding: 16px 20px; border-bottom: 1px solid var(--line); background: transparent; }
.info-block:last-child { border-bottom: 0; }
.info-label { grid-column: 1; grid-row: 1 / span 2; align-self: start; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy); font-weight: 600; margin: 4px 0 0; white-space: nowrap; }
.info-value { font-size: clamp(21px, 1.6vw, 28px); font-weight: 400; line-height: 1.14; letter-spacing: 0; overflow-wrap: normal; }
.info-value a { white-space: nowrap; }
.info-value a:hover { color: var(--navy); }
.info-sub { grid-column: 2; grid-row: 2; max-width: 340px; font-size: 14px; color: var(--ink-soft); line-height: 1.45; margin-top: 0; }
form.pomc-form { padding: 48px 44px; }
.form-title { font-size: 26px; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 4px; }
.form-sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-row.single { grid-template-columns: 1fr; }
.field { position: relative; }
.field label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 8px; display: block; }
.field input, .field textarea { width: 100%; border: none; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 0; font-family: inherit; font-size: 15px; color: var(--ink); outline: none; transition: border-color 0.25s; }
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.field.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.choice-field { margin: 0 0 20px; padding: 0; border: 0; }
.choice-field legend { margin: 0 0 10px; color: var(--ink-soft); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-option { position: relative; display: block; min-width: 0; cursor: pointer; }
.choice-option[hidden] { display: none; }
.choice-option input { position: absolute; opacity: 0; pointer-events: none; }
.choice-option span { display: grid; min-height: 42px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: rgba(255,255,255,0.28); font-size: 13px; font-weight: 600; line-height: 1.25; transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.choice-option input:checked + span { border-color: var(--navy); color: var(--cream); background: var(--navy); box-shadow: 0 12px 28px -20px rgba(29,59,117,0.7); }
.choice-option input:focus-visible + span { outline: 3px solid rgba(29,59,117,0.28); outline-offset: 2px; }
.form-submit { margin-top: 28px; width: 100%; justify-content: center; }
.form-notice { padding: 16px 20px; border-radius: 6px; margin-bottom: 24px; font-size: 14px; font-weight: 500; }
.form-notice.success { background: #E6F5EA; color: #1F5A33; border: 1px solid #B8DDC5; }
.form-notice.error { background: #FDECEC; color: #7A1F1F; border: 1px solid #F0B8B8; }
.form-status { min-height: 1.4rem; margin-top: 16px; font-size: 14px; font-weight: 500; text-align: center; }
.form-status.is-success { color: #1F5A33; }
.form-status.is-error { color: #7A1F1F; }

/* ===== ESTIMATE MODAL ===== */
body.modal-is-open { overflow: hidden; }
.estimate-dialog { position: fixed; inset: 0; z-index: 1000; width: min(720px, calc(100% - 28px)); max-height: min(92vh, 780px); margin: auto; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink); overflow: visible; }
.estimate-dialog::backdrop { background: rgba(9, 20, 43, 0.66); backdrop-filter: blur(8px); }
.estimate-modal { position: relative; max-height: min(92vh, 780px); overflow: auto; border-radius: 8px; background: var(--cream); box-shadow: 0 34px 100px -35px rgba(9,20,43,0.55); }
.modal-form { box-shadow: none !important; }
.estimate-modal form.pomc-form { padding: 36px 44px 34px; }
.estimate-modal .form-sub { margin-bottom: 20px; }
.estimate-modal .choice-field { margin-bottom: 16px; }
.estimate-modal .choice-option span { min-height: 38px; padding: 8px 12px; }
.estimate-modal .form-row { gap: 14px; margin-bottom: 12px; }
.estimate-modal .field label { margin-bottom: 6px; }
.estimate-modal .field input, .estimate-modal .field textarea { padding: 8px 0; }
.estimate-modal .field textarea { min-height: 76px; }
.estimate-modal .form-submit { margin-top: 18px; }
.exit-modal-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 4px; padding: 12px 14px; border: 1px solid rgba(29,59,117,0.18); border-radius: 6px; background: rgba(29,59,117,0.07); color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.exit-modal-note[hidden] { display: none; }
.exit-modal-note span { color: var(--navy); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }
.exit-modal-note a { color: var(--navy); text-decoration: none; white-space: nowrap; }
.exit-modal-note a:hover, .exit-modal-note a:focus { text-decoration: underline; outline: none; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--cream); font: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.modal-close:hover, .modal-close:focus { color: var(--cream); background: var(--navy); border-color: var(--navy); outline: none; }
.exit-dialog { position: fixed; inset: 0; z-index: 1001; width: min(540px, calc(100% - 28px)); max-height: min(92dvh, 650px); margin: auto; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink); overflow: visible; }
.exit-dialog::backdrop { background: rgba(9, 20, 43, 0.62); backdrop-filter: blur(8px); }
.exit-mini { position: relative; max-height: min(92dvh, 650px); overflow: auto; border-radius: 8px; background: var(--cream); box-shadow: 0 34px 100px -35px rgba(9,20,43,0.58); }
.exit-mini-form { padding: 32px 34px 30px !important; box-shadow: none !important; }
.exit-mini-eyebrow { margin: 0 44px 12px 0; color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.exit-mini .form-title { max-width: 410px; margin-right: 44px; font-size: clamp(30px, 4vw, 44px); line-height: 0.98; }
.exit-mini .form-sub { max-width: 420px; margin: 12px 0 18px; font-size: 15px; line-height: 1.55; }
.exit-choice-field { margin: 0; }
.exit-choice-field legend { margin-bottom: 10px; }
.exit-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.exit-choice-grid .choice-option span { min-height: 42px; padding: 10px 12px; font-size: 12px; line-height: 1.18; }
.exit-mini-form.is-contact-step .exit-choice-field { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,0.34); }
.exit-mini-form.is-contact-step .exit-choice-field legend { margin-bottom: 6px; font-size: 10px; }
.exit-mini-form.is-contact-step .exit-choice-grid { grid-template-columns: 1fr; }
.exit-mini-form.is-contact-step .choice-option span { min-height: 34px; padding: 8px 10px; }
.exit-contact-step { display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.exit-contact-step[hidden] { display: none; }
.exit-contact-step .form-row { gap: 12px; margin: 0; }
.exit-contact-step .field label span { color: var(--ink-soft); font-size: 11px; letter-spacing: 0.04em; text-transform: none; }
.exit-mini-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.exit-mini-actions .form-submit { margin: 0; min-height: 48px; }
.exit-call-link { color: var(--navy); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.exit-call-link:hover, .exit-call-link:focus { text-decoration: underline; outline: none; }
.exit-mini-form.is-complete .exit-choice-field { display: none; }
.exit-mini-form.is-complete .form-status { margin: 18px 0 0; padding: 12px 14px; border-radius: 6px; background: rgba(44, 159, 101, 0.12); }
@media (max-width: 1050px) { .contact-area-board { grid-template-columns: 1fr; border-bottom: 0; } .contact-rail { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr); align-items: stretch; padding-right: 0; padding-bottom: 22px; } }
@media (max-width: 900px) { .contact-rail { grid-template-columns: 1fr; } .info-block { padding: 16px 18px; } form.pomc-form, .estimate-modal form.pomc-form { padding: 32px 24px; } .form-row, .estimate-modal .form-row { grid-template-columns: 1fr; } .estimate-dialog { width: min(100% - 20px, 720px); } .modal-close { top: 10px; right: 10px; } }
@media (max-width: 560px) { .exit-modal-note { display: grid; justify-items: start; } }
@media (max-width: 640px) { .exit-dialog { inset: auto 0 0; width: 100%; max-height: 86dvh; margin: 0; border-radius: 18px 18px 0 0; } .exit-mini { max-height: 86dvh; border-radius: 18px 18px 0 0; } .exit-mini-form { padding: 24px 20px 20px !important; } .exit-mini-eyebrow { margin-bottom: 8px; } .exit-mini .form-title { margin-right: 54px; font-size: clamp(28px, 7.4vw, 34px); line-height: 1.02; } .exit-mini .form-sub { margin: 10px 0 16px; font-size: 14px; line-height: 1.45; } .exit-choice-grid { grid-template-columns: 1fr; } .exit-mini-form.is-contact-step .exit-choice-field { padding: 8px 10px; } .exit-contact-step { gap: 10px; margin-top: 12px; padding-top: 12px; } .exit-mini-actions { grid-template-columns: 1fr; justify-items: stretch; gap: 8px; } .exit-mini-actions .form-submit { min-height: 50px; } .exit-call-link { justify-self: center; } }
@media (max-width: 560px) { .info-block { grid-template-columns: 1fr; gap: 5px; } .info-label, .info-value, .info-sub { grid-column: 1; grid-row: auto; } .info-label { margin: 0; } .info-sub { max-width: none; } }
@media (max-width: 520px) { .choice-grid { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .info-value { font-size: clamp(20px, 7vw, 25px); } .info-sub { font-size: 13px; } }

/* ===== GALLERY LIGHTBOX ===== */
.gallery-dialog { position: fixed; inset: 0; width: min(1180px, calc(100% - 28px)); max-height: min(94vh, 900px); margin: auto; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--cream); overflow: visible; }
.gallery-dialog::backdrop { background: rgba(9, 20, 43, 0.78); backdrop-filter: blur(8px); }
.gallery-preview { display: grid; gap: 12px; margin: 0; padding: 18px; border-radius: 8px; background: rgba(244,241,234,0.08); box-shadow: 0 34px 100px -35px rgba(9,20,43,0.85); }
.gallery-preview img { width: auto; max-width: 100%; max-height: min(82vh, 760px); margin: 0 auto; border-radius: 6px; object-fit: contain; box-shadow: 0 24px 70px -34px rgba(0,0,0,0.6); }
.gallery-preview figcaption { min-height: 20px; text-align: center; color: rgba(244,241,234,0.84); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.gallery-close { color: var(--ink); background: var(--cream); }
@media (max-width: 700px) { .gallery-dialog { width: min(100% - 18px, 1180px); } .gallery-preview { padding: 10px; } .gallery-preview img { max-height: 78vh; } }

/* ===== SERVICE AREA ===== */
.coverage-story { position: relative; display: grid; min-height: 0; overflow: visible; padding: clamp(30px, 4vw, 52px); border-left: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,255,255,0.52), rgba(236,228,213,0.78)); }
.coverage-copy { position: relative; z-index: 2; max-width: 430px; }
.coverage-copy h3 { margin: 0 0 12px; max-width: 560px; font-size: clamp(30px, 4vw, 52px); font-weight: 400; line-height: 1; letter-spacing: 0; }
.coverage-copy p { margin: 0; max-width: 520px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.area-list { position: relative; z-index: 2; align-self: end; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(80px, 16vw, 170px); border-top: 1px solid rgba(29,59,117,0.18); border-bottom: 1px solid rgba(29,59,117,0.18); background: rgba(244,241,234,0.72); backdrop-filter: blur(8px); }
.area-list div { min-height: 132px; padding: 22px; border-right: 1px solid rgba(29,59,117,0.16); }
.area-list div:last-child { border-right: none; }
.area-list span { display: block; margin-bottom: 8px; color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.area-list strong { display: block; color: var(--ink); font-size: 20px; font-weight: 400; line-height: 1.35; letter-spacing: 0; }
@media (max-width: 1050px) { .coverage-story { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 900px) { .coverage-story { min-height: auto; padding: 30px 22px; } .coverage-copy { max-width: 100%; } .area-list { grid-template-columns: 1fr; margin-top: 18px; } .area-list div { min-height: auto; border-right: none; border-bottom: 1px solid rgba(29,59,117,0.16); } .area-list div:last-child { border-bottom: none; } }

/* ===== FOOTER ===== */
footer.site-footer { background: var(--navy-deep); color: var(--cream); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(244,241,234,0.12); }
.footer-brand .logo { color: var(--cream); }
.footer-brand .logo-image { width: min(250px, 70vw); padding: 0; background: transparent; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand .logo-mark { background: var(--cream); border-color: var(--cream); color: var(--navy-deep); }
.footer-brand p { margin-top: 20px; font-size: 14px; color: rgba(244,241,234,0.6); line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-size: 14px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 18px; color: var(--navy-tint); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(244,241,234,0.7); transition: color 0.2s; }
.footer-col a:hover { color: var(--cream); }
.footer-button { padding: 0; border: 0; color: rgba(244,241,234,0.7); background: transparent; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.footer-button:hover, .footer-button:focus { color: var(--cream); outline: none; }
.footer-license { color: rgba(244,241,234,0.5); font-size: 13px; margin-top: 14px; }
.footer-bottom { margin-top: 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; color: rgba(244,241,234,0.5); letter-spacing: 0.04em; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ===== PUBLIC ERROR ===== */
.public-error { min-height: 100vh; width: min(760px, calc(100% - 40px)); margin: 0 auto; display: grid; align-content: center; gap: 18px; padding: 56px 0; }
.public-error .logo { width: min(280px, 80vw); margin-bottom: 18px; }
.public-error h1 { margin: 0; color: var(--ink); font-size: clamp(42px, 7vw, 72px); line-height: 1; letter-spacing: 0; font-weight: 500; }
.public-error p { max-width: 560px; margin: 0; color: var(--ink-soft); font-size: 18px; line-height: 1.55; }

/* ===== PAGE / 404 ===== */
.page-wrap { padding: 90px 0 120px; }
.page-wrap .entry-title { font-size: clamp(40px, 5vw, 64px); font-weight: 400; line-height: 1; letter-spacing: -0.03em; margin-bottom: 32px; }
.page-wrap .entry-content { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 720px; }
.page-wrap .entry-content p { margin-bottom: 20px; }
.page-wrap .entry-content h2, .page-wrap .entry-content h3 { color: var(--ink); margin-top: 36px; margin-bottom: 16px; font-weight: 500; }
.page-wrap .entry-content a { color: var(--navy); border-bottom: 1px solid var(--navy); }

/* ===== ENTRY ANIMS ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.36s; }

/* ===== ADMIN BAR FIX ===== */
.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .topbar { top: 46px; } }

/* ===== MOBILE CONTAINMENT ===== */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .wrap {
    width: calc(100% - 40px);
    max-width: 100%;
    padding-inline: 0;
  }

  .topbar-inner,
  .hero-grid,
  .section-head,
  .quote-band-inner,
  .contact-area-board,
  .footer-grid,
  .coverage-story,
  .services-grid,
  .work-mosaic {
    min-width: 0;
  }

  .topbar-inner {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 88px;
    justify-items: stretch;
    gap: 0;
    padding: 6px 0;
  }

  .logo {
    min-width: 0;
    flex: initial;
    justify-content: center;
  }

  .logo-image {
    width: min(128px, 34vw);
    max-height: 54px;
  }

  .mobile-phone-link strong {
    max-width: 88px;
    font-size: 9.5px;
  }

  .hero {
    padding: 58px 0 44px;
  }

  .hero-copy {
    max-width: 100%;
    min-width: 0;
  }

  h1.hero-title {
    max-width: 100%;
    width: min(100%, calc(100vw - 40px));
    font-size: clamp(40px, 11vw, 50px);
    line-height: 1;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  h1.hero-title .ital {
    display: block;
  }

  .hero-lead,
  .section-intro,
  .contact-panel p,
  .quote-copy p,
  .coverage-copy p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-lead {
    width: 100%;
    max-width: 42ch;
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .btn,
  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .hero-image-wrap,
  .hero-image-frame,
  .work-mosaic,
  .services-grid,
  .contact-panel,
  form.pomc-form {
    max-width: 100%;
    min-width: 0;
  }

  .section-title,
  .quote-copy h3,
  .contact-panel h3,
  .coverage-copy h3 {
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .quote-points span {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .logo-image {
    width: min(116px, 32vw);
  }

  .mobile-phone-link strong {
    max-width: 84px;
    font-size: 9px;
  }

  .mobile-action-strip {
    padding-inline: 6px;
  }

  .mobile-action-icon {
    width: 34px;
    height: 34px;
  }

  .mobile-action {
    font-size: 9.5px;
  }

  h1.hero-title {
    font-size: clamp(38px, 11vw, 46px);
  }
}

/* Roofing LP: keep roof-specific content from bunching in compact card/rail areas. */
.lp-roofing-maryland .section-title {
  max-width: 12.5ch;
  font-size: clamp(38px, 4.6vw, 64px);
  overflow-wrap: normal;
  word-break: normal;
}

.lp-roofing-maryland .section-intro {
  max-width: 560px;
}

.lp-roofing-maryland .services-grid--six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-roofing-maryland .service-card {
  min-height: 292px;
  padding: 32px 26px 30px;
}

.lp-roofing-maryland .svc-title {
  font-size: clamp(23px, 1.8vw, 26px);
  line-height: 1.08;
  overflow-wrap: normal;
}

.lp-roofing-maryland .svc-desc {
  line-height: 1.5;
}

.lp-roofing-maryland .svc-link {
  line-height: 1.3;
}

.lp-roofing-maryland .work-mosaic {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lp-roofing-maryland .work-card,
.lp-roofing-maryland .work-card.is-wide,
.lp-roofing-maryland .work-card.is-tall {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 4 / 3;
}

.lp-roofing-maryland .contact-area-board {
  grid-template-columns: minmax(300px, 0.66fr) minmax(0, 1.34fr);
}

.lp-roofing-maryland .info-block {
  grid-template-columns: 1fr;
  gap: 6px;
}

.lp-roofing-maryland .info-label,
.lp-roofing-maryland .info-value,
.lp-roofing-maryland .info-sub {
  grid-column: 1;
  grid-row: auto;
}

.lp-roofing-maryland .info-label {
  margin: 0;
}

.lp-roofing-maryland .info-value {
  font-size: clamp(22px, 1.45vw, 26px);
}

.lp-roofing-maryland .info-sub {
  max-width: none;
}

.lp-roofing-maryland .coverage-copy {
  max-width: 520px;
}

.lp-roofing-maryland .coverage-copy h3 {
  max-width: 520px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.04;
}

.lp-roofing-maryland .area-list strong {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.38;
}

@media (max-width: 1100px) {
  .lp-roofing-maryland .services-grid--six,
  .lp-roofing-maryland .work-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-roofing-maryland .contact-area-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .lp-roofing-maryland .section-title {
    max-width: 100%;
    font-size: clamp(34px, 9vw, 46px);
    overflow-wrap: break-word;
  }

  .lp-roofing-maryland .service-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .lp-roofing-maryland .work-mosaic {
    grid-auto-columns: minmax(78vw, 1fr);
    grid-template-columns: none;
  }
}

@media (max-width: 600px) {
  .lp-roofing-maryland .services-grid--six {
    grid-template-columns: 1fr;
  }
}

/* 2026-06-06 LP rhythm pass: tighter PPC layout, less dead space, safer headings. */
.trust {
  margin-top: clamp(40px, 5vw, 60px);
  padding: 22px 0;
}

.trust-inner {
  gap: 16px clamp(24px, 4vw, 42px);
}

section {
  padding: clamp(70px, 7vw, 92px) 0;
}

.section-head {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(38px, 5vw, 58px);
  align-items: center;
}

.section-title {
  max-width: 760px;
  font-size: clamp(36px, 4.35vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.section-intro {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.58;
}

.service-card {
  min-height: 252px;
  padding: 30px 24px 28px;
}

.svc-icon {
  margin-bottom: 22px;
}

.svc-title {
  font-size: clamp(23px, 1.8vw, 27px);
  line-height: 1.08;
}

.svc-desc {
  margin-bottom: 16px;
  line-height: 1.5;
}

.contact-area {
  padding-top: clamp(56px, 6vw, 72px);
}

.lp-roofing-maryland .section-title {
  max-width: 760px;
  font-size: clamp(36px, 4.35vw, 58px);
  line-height: 1.04;
}

.lp-roofing-maryland .services-grid--six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-roofing-maryland .service-card {
  min-height: 252px;
  padding: 30px 24px 28px;
}

@media (min-width: 980px) {
  .trust-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
  }
}

@media (max-width: 900px) {
  section {
    padding: 64px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
  }
}

@media (max-width: 600px) {
  .trust {
    margin-top: 34px;
    padding: 18px 0;
  }

  .trust-inner {
    gap: 14px;
  }

  .section-title,
  .lp-roofing-maryland .section-title {
    max-width: 100%;
    font-size: clamp(34px, 9vw, 44px);
  }

  .service-card,
  .lp-roofing-maryland .service-card {
    min-height: auto;
    padding: 26px 22px 24px;
  }

  .services-grid--six,
  .lp-roofing-maryland .services-grid--six {
    grid-template-columns: 1fr;
  }
}

/* 2026-06-06 LP compression pass: remove dead space and keep service copy readable. */
.trust {
  margin-top: clamp(26px, 3.5vw, 42px);
  padding: 16px 0;
}

.trust-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(150px, 0.55fr) minmax(230px, 0.85fr) minmax(320px, 1.35fr);
  gap: 12px 28px;
  align-items: center;
}

.trust-item {
  min-width: 0;
  gap: 10px;
  line-height: 1.35;
}

.trust-item strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

section {
  padding: clamp(56px, 5.6vw, 76px) 0;
}

#services {
  padding-top: clamp(42px, 4.2vw, 60px);
}

#services .section-head {
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
  gap: clamp(22px, 3.2vw, 42px);
  margin-bottom: clamp(24px, 3vw, 38px);
  align-items: center;
}

.section-title {
  max-width: 820px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.018em;
}

#services .section-title {
  max-width: 680px;
}

.section-intro {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.55;
}

.service-card {
  min-height: 232px;
  padding: 28px 24px 26px;
}

.svc-icon {
  margin-bottom: 18px;
}

.svc-num {
  margin-bottom: 9px;
}

.svc-title {
  font-size: clamp(22px, 1.65vw, 26px);
  line-height: 1.08;
  margin-bottom: 12px;
}

.svc-desc {
  margin-bottom: 14px;
}

.lp-roofing-maryland #services .section-title {
  max-width: 620px;
  font-size: clamp(34px, 3.75vw, 52px);
}

.lp-roofing-maryland #services .section-intro {
  max-width: 620px;
}

.lp-roofing-maryland .service-card {
  min-height: 232px;
  padding: 28px 24px 26px;
}

@media (max-width: 1180px) {
  .trust-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .trust {
    margin-top: 28px;
    padding: 14px 0;
  }

  .trust-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  section,
  #services {
    padding: 56px 0;
  }

  #services .section-head,
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .section-title,
  .lp-roofing-maryland #services .section-title {
    max-width: 100%;
    font-size: clamp(34px, 8vw, 44px);
  }

  .section-intro {
    max-width: 62ch;
  }
}

@media (max-width: 600px) {
  section,
  #services {
    padding: 48px 0;
  }

  .trust {
    margin-top: 22px;
  }

  .section-title,
  .lp-roofing-maryland #services .section-title {
    font-size: clamp(32px, 8.8vw, 40px);
    line-height: 1.05;
  }

  .service-card,
  .lp-roofing-maryland .service-card {
    min-height: auto;
    padding: 24px 20px 22px;
  }
}

/* 2026-06-07 coverage rebuild: remove generic map art and turn this into a useful POM service-area proof block. */
.coverage-story {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(260px, 0.72fr);
  grid-template-rows: auto auto;
  align-items: start;
  align-self: start;
  gap: 16px 22px;
  min-height: auto;
  overflow: visible;
  padding: clamp(26px, 3.4vw, 42px);
  border-left: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.58), rgba(236,228,213,0.72)),
    radial-gradient(circle at 82% 18%, rgba(29, 59, 117, 0.08), transparent 34%);
}

.coverage-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  max-width: 100%;
}

.coverage-copy h3 {
  max-width: 15.5em;
  margin-bottom: 12px;
  font-size: clamp(28px, 2.45vw, 38px);
  line-height: 1.08;
}

.coverage-copy p {
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.65;
}

.coverage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.coverage-actions .btn {
  min-width: min(100%, 240px);
  justify-content: center;
}

.coverage-phone {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.coverage-phone:hover,
.coverage-phone:focus {
  text-decoration: underline;
  outline: none;
}

.coverage-local-card {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-content: start;
  align-self: start;
  gap: 12px;
  min-height: 0;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: 8px;
  color: var(--cream);
  background:
    linear-gradient(145deg, rgba(29, 59, 117, 0.98), rgba(11, 30, 68, 0.96)),
    var(--navy);
  box-shadow: 0 30px 60px -36px rgba(9, 20, 43, 0.58);
}

.coverage-card-kicker {
  color: rgba(244, 241, 234, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.coverage-local-card strong {
  display: block;
  color: var(--cream);
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 500;
  line-height: 1.05;
}

.coverage-local-card p {
  margin: 0;
  color: rgba(244, 241, 234, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.coverage-local-card ul {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.coverage-local-card li {
  position: relative;
  padding-left: 18px;
  color: rgba(244, 241, 234, 0.9);
  font-size: 13px;
  line-height: 1.35;
}

.coverage-local-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
}

.area-list {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  align-self: start;
  border: 1px solid rgba(29,59,117,0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(244,241,234,0.7);
  backdrop-filter: blur(8px);
}

.area-list div {
  min-height: 0;
  padding: 18px 20px;
  border-right: 1px solid rgba(29,59,117,0.14);
}

.area-list div:last-child {
  border-right: 0;
}

.area-list strong {
  font-size: clamp(16px, 1.18vw, 18px);
  line-height: 1.35;
}

@media (max-width: 1050px) {
  .coverage-story {
    grid-template-columns: minmax(0, 1fr) minmax(245px, 0.68fr);
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .coverage-story {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 20px;
  }

  .coverage-copy,
  .coverage-local-card,
  .area-list {
    grid-column: 1;
  }

  .coverage-copy {
    grid-row: 1;
  }

  .coverage-local-card {
    grid-row: 2;
    min-height: auto;
  }

  .area-list {
    grid-row: 3;
    grid-template-columns: 1fr;
  }

  .area-list div {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(29,59,117,0.16);
  }

  .area-list div:last-child {
    border-bottom: none;
  }
}

@media (max-width: 560px) {
  .coverage-story {
    padding: 24px 18px;
  }

  .coverage-copy h3 {
    max-width: 100%;
    font-size: clamp(27px, 8vw, 34px);
  }

  .coverage-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .coverage-actions .btn {
    width: 100%;
  }

  .coverage-phone {
    justify-content: center;
  }
}
