/*
  Shared design-system CSS for site-conversions redesigns.
  Site-specific brand colors/fonts are set as CSS custom properties in
  each site's assets/css/brand.css, loaded BEFORE this file.
  Expected variables (with fallbacks below): --brand-primary, --brand-primary-dark,
  --brand-accent, --brand-accent-dark, --font-heading, --font-body
*/
:root {
  --brand-primary: #0f4c81;
  --brand-primary-dark: #0a3660;
  --brand-accent: #dd1515;
  --brand-accent-dark: #b81010;
  --font-heading: 'Montserrat', -apple-system, sans-serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;

  --ink: #1a202a;
  --ink-soft: #4b4f58;
  --bg-soft: #f6f8fa;
  --border: #e5e8ec;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(15,76,129,0.08);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 16px; color: var(--ink-soft); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand-accent); margin-bottom: 12px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 30px; border-radius: 8px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand-accent); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.btn-primary:hover { background: var(--brand-accent-dark); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }

/* header */
header.site { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 8px rgba(15,23,42,0.05); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 16px; }
.logo img { height: 72px; width: auto; }
nav.primary { display: flex; align-items: center; gap: 26px; }
nav.primary > a, nav.primary > .nav-dropdown > button {
  font-family: var(--font-body); font-size: 15px; font-weight: 700; text-decoration: none; color: var(--ink);
  background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; gap: 4px;
}
nav.primary a:hover, nav.primary > .nav-dropdown > button:hover { color: var(--brand-primary); }
.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  padding: 22px; margin-top: 14px; z-index: 60;
  columns: 3; column-gap: 28px; width: max-content; max-width: 720px;
}
/* Bridges the gap created by margin-top above so the cursor stays "inside"
   the dropdown (and hover doesn't drop) while moving from the nav button
   down into the panel. */
.nav-dropdown-panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-dropdown:hover .nav-dropdown-panel, .nav-dropdown.open .nav-dropdown-panel { display: block; }
.nav-dropdown-panel .mega-group { break-inside: avoid; margin-bottom: 18px; display: inline-block; width: 100%; }
.nav-dropdown-panel .mega-label {
  font-size: 11px; font-weight: 800; color: var(--brand-accent); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 6px; padding: 0 12px;
}
.nav-dropdown-panel a { display: block; padding: 7px 12px; border-radius: 6px; font-size: 13.5px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav-dropdown-panel a:hover { background: var(--bg-soft); color: var(--brand-primary); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 700; color: var(--brand-primary); text-decoration: none; font-size: 17px; white-space: nowrap; }
.header-phone span { display: block; font-size: 11px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--brand-primary); padding: 0; flex: none;
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-header-actions { display: none; }
.header-phone-mobile {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 8px; background: var(--brand-primary); color: #fff; flex: none;
}
.header-phone-mobile svg { width: 19px; height: 19px; }

/* hero */
.hero { position: relative; color: #fff; padding: 84px 0 96px; background-size: cover; background-position: center; }
.hero.has-image { background: linear-gradient(rgba(6,20,40,0.74), rgba(6,20,40,0.82)), var(--hero-img) center/cover no-repeat; }
.hero.no-image { background: linear-gradient(120deg, var(--brand-primary), var(--brand-primary-dark)); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero.no-card .wrap { grid-template-columns: 1fr; max-width: 820px; text-align: center; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); color: #fff; }
.hero p.lead { color: #dfe7ef; font-size: 18px; max-width: 560px; }
.hero.no-card p.lead { max-width: 680px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 24px; align-items: center; }
.hero.no-card .hero-actions { justify-content: center; }
.hero-phone { display: flex; flex-direction: column; }
.hero-phone a { font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; }
.hero-phone small { color: #b9c8d6; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.trust-inline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 26px; font-size: 14px; color: #e7edf3; min-width: 0; }
.hero.no-card .trust-inline { justify-content: center; }
.trust-inline li { display: flex; align-items: center; gap: 8px; }
.trust-inline svg { flex: none; width: 18px; height: 18px; color: #4ade80; }
.hero-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,0.35); min-width: 0; }
.hero-card h3 { color: var(--brand-primary); margin-bottom: 6px; }
.hero-card p.small { font-size: 14px; margin-bottom: 18px; color: var(--ink-soft); }
.hero-card .btn-primary { width: 100%; }
.hero-rating { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: #fff; }
.hero-rating .stars { color: #ffc94d; letter-spacing: 2px; }
.hero.no-card .hero-rating { justify-content: center; }

/* stat bar */
.stat-bar { background: var(--brand-primary); color: #fff; padding: 22px 0; }
.stat-bar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat-bar .stat b { display: block; font-size: 22px; font-weight: 800; }
.stat-bar .stat span { font-size: 12.5px; color: #cfe0ee; text-transform: uppercase; letter-spacing: 0.04em; }

section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }
.check-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.check-list svg { flex: none; width: 22px; height: 22px; color: var(--brand-accent); margin-top: 1px; }
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 10px; text-align: center; }

.service-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-tile { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #fff; text-decoration: none; color: inherit; display: block; transition: transform .15s ease, box-shadow .15s ease; }
.service-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15,23,42,0.14); }
.service-tile-img { aspect-ratio: 4/3; background-size: cover; background-position: center; position: relative; }
.service-tile-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,40,0) 45%, rgba(6,20,40,0.6) 100%); }
.service-tile-body { padding: 18px 22px 22px; }
.service-tile-body h3 { margin-bottom: 6px; font-size: 18.5px; }
.service-tile-body p { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.service-tile-link { font-size: 13.5px; font-weight: 700; color: var(--brand-primary); display: inline-flex; align-items: center; gap: 4px; }
.service-tile:hover .service-tile-link { text-decoration: underline; }
@media (max-width: 980px) { .service-tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-tile-grid { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; font-size: 17px; }
.step p { font-size: 14.5px; margin-bottom: 0; }

.remove-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.remove-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.remove-card .icon { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--brand-accent); }
.remove-card h3 { font-size: 15.5px; margin-bottom: 0; }

.guarantee { background: linear-gradient(120deg, var(--brand-primary), var(--brand-primary-dark)); color: #fff; border-radius: var(--radius); padding: 48px; text-align: center; }
.guarantee h2 { color: #fff; margin-bottom: 10px; }
.guarantee p { color: #d7e4f0; max-width: 560px; margin: 0 auto 26px; }
.guarantee .urgency { font-size: 13.5px; color: #ffd7d7; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 20px; }
.guarantee-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; min-width: 0; }

/* reviews */
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.review-card .stars { color: #f5a300; letter-spacing: 2px; font-size: 15px; margin-bottom: 10px; }
.review-card p { font-size: 14.5px; color: var(--ink); margin-bottom: 14px; }
.review-card .who { font-size: 13px; font-weight: 700; color: var(--ink-soft); }

.review-slider {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 16px; margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
}
.review-slider .review-card { flex: 0 0 320px; scroll-snap-align: start; }
.review-slider::-webkit-scrollbar { height: 8px; }
.review-slider::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.review-slider-row { display: flex; align-items: center; gap: 14px; }
.review-slider-row .review-slider { flex: 1 1 auto; min-width: 0; }
.slider-arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--brand-primary); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow);
}
.slider-arrow:hover { background: var(--brand-primary); color: #fff; }
.slider-arrow svg { width: 20px; height: 20px; }
.review-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.btn-outline-dark {
  background: #fff; border: 2px solid var(--brand-primary); color: var(--brand-primary);
  padding: 12px 22px; font-size: 14px;
}
.btn-outline-dark:hover { background: var(--brand-primary); color: #fff; }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.gallery-filter {
  border: 1px solid var(--border); background: #fff; color: var(--ink-soft); font-family: inherit;
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.gallery-filter.active, .gallery-filter:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.gallery-masonry { columns: 3 250px; column-gap: 16px; }
.gallery-item { break-inside: avoid; margin-bottom: 16px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.gallery-item img { width: 100%; display: block; }
.plain-photo { break-inside: unset; margin-bottom: 0; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.plain-photo .photo-media img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.photo-media { position: relative; }
.photo-badge {
  position: absolute; left: 10px; bottom: 10px; background: rgba(6,20,40,0.78); color: #fff;
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; letter-spacing: .01em;
}
.photo-caption {
  padding: 8px 12px 10px; font-size: 12.5px; line-height: 1.4; color: var(--text-secondary, #566073);
}
.photo-caption-loc { color: var(--brand-primary); font-weight: 600; }

.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 200; background: rgba(6,10,18,0.92);
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-content { max-width: 900px; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-content img { max-width: 100%; max-height: 68vh; border-radius: 8px; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-caption { color: #fff; text-align: center; margin-top: 16px; max-width: 640px; }
.lightbox-title { font-family: var(--font-heading); font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.lightbox-desc { font-size: 14px; color: #d7dee8; margin-bottom: 8px; }
.lightbox-loc { font-size: 13px; color: var(--brand-accent); font-weight: 600; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff;
  font-size: 34px; line-height: 1; cursor: pointer; padding: 4px 10px;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12);
  border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.24); }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close { top: 10px; right: 12px; }
}

.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { font-size: 22px; color: var(--brand-primary); transition: transform 0.2s; flex: none; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; }

.form-section { background: var(--bg-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.lead-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.lead-form h3 { margin-bottom: 6px; }
.lead-form .req { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-family: inherit; font-size: 14.5px; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brand-primary); outline-offset: 1px; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 18px; }
.field-check input { width: auto; margin-top: 3px; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

footer.site { background: #14202e; color: #b9c5d1; padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.foot-services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-bottom: 36px; min-width: 0; }
.foot-services-grid h4 { font-size: 13px; }
.foot-services-grid ul { gap: 8px; font-size: 12.5px; }
footer.site h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; }
footer.site a { text-decoration: none; color: #b9c5d1; }
footer.site a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; font-size: 13px; text-align: center; color: #7f8ea0; }

.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none;
  background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0,0,0,0.12);
  padding: 10px 14px; gap: 10px;
}
.mobile-cta a { flex: 1; }
.mobile-cta .btn { padding: 14px 10px; font-size: 14px; }
.mobile-cta .btn-call { background: var(--brand-primary); color: #fff; }

@media (max-width: 980px) {
  html, body { overflow-x: hidden; }
  .nav-row { flex-wrap: nowrap; gap: 10px; padding: 14px 0; }
  .logo img { height: 52px; }
  .header-cta { display: none; }
  .mobile-header-actions { display: flex; align-items: center; gap: 10px; }
  .header-phone-mobile { display: flex; }
  .menu-toggle { display: flex; }
  nav.primary {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 16px; box-shadow: 0 12px 20px rgba(0,0,0,0.08); max-height: 80vh; overflow-y: auto;
  }
  nav.primary.open { display: flex; }
  nav.primary > a, nav.primary > .nav-dropdown > button { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); justify-content: space-between; }
  .nav-dropdown-panel { display: none; position: static; transform: none; box-shadow: none; border: none; margin: 0 0 0 12px; padding: 0; min-width: 0; width: auto; max-width: none; columns: 1; }
  .nav-dropdown-panel .mega-label { padding: 10px 0 2px; }
  .nav-dropdown.open .nav-dropdown-panel { display: block; }
  .hero .wrap, .two-col, .form-grid { grid-template-columns: 1fr; }
  .review-slider .review-card { flex-basis: 82vw; }
  .slider-arrow { display: none; }
  .gallery-masonry { columns: 2 160px; }
  .hero-copy, .hero-card, .two-col > div, .form-grid > div, .hero-actions, .trust-inline, .guarantee-actions, .nav-row, .foot-grid, .foot-services-grid {
    min-width: 0;
  }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-services-grid { grid-template-columns: 1fr 1fr; }
  .two-col .img-col { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .remove-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-bar .wrap { grid-template-columns: repeat(2, 1fr); }
  .guarantee { padding: 36px 22px; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 66px; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .remove-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-services-grid { grid-template-columns: 1fr; }
}
