/* =============================================================
   TEMPLATE SHELL STYLESHEET
   Contains NO business-specific data. All colour comes from CSS
   custom properties set by the active trade profile (see /profiles
   and js/render.js). Fixed design tokens live in :root; profile
   overrides only the --c-* colour tokens.
   ============================================================= */

:root {
  /* ---- Colour tokens (overridden per profile at runtime) ---- */
  --c-brand: #0b3d52;
  --c-brand-strong: #062935;
  --c-brand-soft: #e7f3f6;
  --c-on-brand: #ffffff;
  --c-accent: #17a2bd;
  --c-accent-strong: #0f8296;
  --c-on-accent: #ffffff;
  --c-accent-soft: #e0f3f7;
  --c-emergency: #e4572e;
  --c-hero-grad: linear-gradient(180deg, rgba(6,41,53,0.55) 0%, rgba(6,41,53,0.82) 100%);

  /* ---- Neutral / functional tokens (fixed) ---- */
  --c-ink: #16202a;
  --c-ink-soft: #566470;
  --c-line: #e4e8ec;
  --c-surface: #ffffff;
  --c-surface-alt: #f6f8f9;
  --c-star: #f5a623;

  /* ---- Type ---- */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-hero: clamp(2.15rem, 6.2vw, 4rem);
  --fs-h2: clamp(1.75rem, 4vw, 2.75rem);
  --fs-h3: clamp(1.2rem, 2.2vw, 1.45rem);
  --lh-tight: 1.08;
  --lh-body: 1.62;

  /* ---- Spacing / shape ---- */
  --wrap: 1180px;
  --wrap-narrow: 820px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16,32,42,0.06), 0 2px 8px rgba(16,32,42,0.05);
  --shadow-md: 0 8px 24px rgba(16,32,42,0.09), 0 2px 6px rgba(16,32,42,0.05);
  --shadow-lg: 0 24px 60px rgba(16,32,42,0.16);
  --ring: 0 0 0 3px color-mix(in srgb, var(--c-accent) 45%, transparent);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: 800; letter-spacing: -0.02em; color: var(--c-ink); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-surface-alt); }
.section--brand { background: var(--c-brand); color: var(--c-on-brand); }
.section--brand h2, .section--brand h3 { color: var(--c-on-brand); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--c-accent-strong);
}
.section--brand .eyebrow { color: color-mix(in srgb, var(--c-accent) 70%, white); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--c-ink-soft); margin-top: 0.75rem; font-size: 1.075rem; }
.section--brand .section-head p { color: color-mix(in srgb, var(--c-on-brand) 82%, transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.5rem; border-radius: var(--radius-pill); font-weight: 800;
  font-size: 1.02rem; border: 2px solid transparent; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  line-height: 1; white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--c-accent-strong); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: rgba(255,255,255,0.08); color: var(--c-on-brand); border-color: rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--c-brand); border-color: var(--c-line); }
.btn--outline:hover { border-color: var(--c-brand); background: var(--c-brand-soft); }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--c-surface) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; color: var(--c-ink); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--c-brand); color: var(--c-on-brand); font-weight: 800; font-size: 0.92rem;
  letter-spacing: -0.02em; flex: none; box-shadow: var(--shadow-sm); overflow: hidden;
}
.brand-mark--img { background: none; box-shadow: none; padding: 0; object-fit: contain; }
.brand small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; color: var(--c-ink-soft); text-transform: none; }
.nav { display: none; align-items: center; gap: 1.9rem; }
.nav a { font-weight: 600; font-size: 0.98rem; color: var(--c-ink-soft); transition: color .15s; }
.nav a:hover { color: var(--c-brand); }
.header-cta { display: none; align-items: center; gap: 0.9rem; }
.header-phone { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 800; color: var(--c-brand); font-size: 1.02rem; }
.header-phone svg { width: 1.05em; height: 1.05em; color: var(--c-accent-strong); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--c-brand-strong); color: var(--c-on-brand); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Two-layer scrim: a vertical wash for overall legibility plus a
   side-anchored darkening under the text column, so hero copy stays
   readable over any photo (light skies, busy backgrounds, etc). */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.12) 55%, rgba(0,0,0,0) 78%),
    var(--c-hero-grad);
}
.hero-inner { position: relative; padding-block: clamp(3rem, 10vw, 6.5rem); display: grid; gap: 1.4rem; max-width: 44rem; }
.hero .eyebrow { color: color-mix(in srgb, var(--c-accent) 75%, white); }
.hero h1 { font-size: var(--fs-hero); color: #fff; text-wrap: balance; }
.hero-sub { font-size: clamp(1.05rem, 2.3vw, 1.28rem); color: rgba(255,255,255,0.9); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 0.4rem; }
.hero-signals { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.1rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,0.18); }
.hero-signal { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; font-weight: 600; color: rgba(255,255,255,0.92); }
.hero-signal svg { width: 1.15em; height: 1.15em; color: color-mix(in srgb, var(--c-accent) 80%, white); flex: none; }

.emergency-badge {
  display: inline-flex; align-items: center; gap: 0.55rem; align-self: flex-start;
  background: var(--c-emergency); color: #fff; font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 0.5rem 0.95rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
}
.emergency-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6);} 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0);} 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0);} }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--c-line); border-inline: 1px solid var(--c-line); }
.trust-item { background: var(--c-surface); padding: 1.15rem 1.1rem; display: flex; align-items: center; gap: 0.85rem; }
.trust-item .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent-strong); display: grid; place-items: center; flex: none; }
.trust-item .ico svg { width: 22px; height: 22px; }
.trust-item strong { display: block; font-size: 0.98rem; font-weight: 800; color: var(--c-ink); line-height: 1.2; }
.trust-item span { font-size: 0.82rem; color: var(--c-ink-soft); }

/* ---------- Services ---------- */
.card-grid { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
.service-card {
  position: relative; background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card .thumb { aspect-ratio: 4 / 3; background: var(--c-brand-soft); overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.service-card:hover .thumb img { transform: scale(1.05); }
.service-card .body { padding: 1.35rem 1.35rem 1.45rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.service-card h3 { font-size: var(--fs-h3); }
.service-card p { color: var(--c-ink-soft); font-size: 0.99rem; }
.service-card .more { margin-top: auto; padding-top: 0.6rem; font-weight: 800; color: var(--c-accent-strong); display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.96rem; }
.service-card .more svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.service-card:hover .more svg { transform: translateX(4px); }
.service-card__link { position: absolute; inset: 0; z-index: 1; }

/* ---------- Reviews ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--c-star); }
.stars svg { width: 1.05em; height: 1.05em; }
.rating-summary { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.rating-summary .score { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.rating-summary .meta { font-size: 0.92rem; color: var(--c-ink-soft); }
.review-grid { display: grid; gap: 1.15rem; grid-template-columns: 1fr; margin-top: 2rem; }
.review-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.9rem; }
.section--brand .review-card { background: color-mix(in srgb, var(--c-on-brand) 8%, transparent); border-color: rgba(255,255,255,0.16); }
.review-card blockquote { font-size: 1.04rem; line-height: 1.55; color: var(--c-ink); }
.section--brand .review-card blockquote { color: rgba(255,255,255,0.95); }
.review-author { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); display: grid; place-items: center; font-weight: 800; flex: none; }
.review-author .n { font-weight: 800; font-size: 0.95rem; }
.review-author .src { font-size: 0.8rem; color: var(--c-ink-soft); }
.section--brand .review-author .src { color: rgba(255,255,255,0.7); }

/* ---------- About / split ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 5 / 6; object-fit: cover; }
.check-list { list-style: none; padding: 0; display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 600; }
.check-list li svg { width: 1.35em; height: 1.35em; color: var(--c-accent-strong); flex: none; margin-top: 1px; }

/* ---------- Service areas ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.chip { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-pill); padding: 0.5rem 1.05rem; font-weight: 700; font-size: 0.94rem; box-shadow: var(--shadow-sm); }
.section--brand .chip { background: color-mix(in srgb, var(--c-on-brand) 10%, transparent); border-color: rgba(255,255,255,0.2); color: #fff; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.85rem; margin-top: 2rem; }
.faq-item { border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; font-weight: 800; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { width: 26px; height: 26px; border-radius: 50%; background: var(--c-brand-soft); color: var(--c-brand); display: grid; place-items: center; flex: none; transition: transform .2s var(--ease); font-size: 1.2rem; line-height: 1; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 1.3rem 1.25rem; color: var(--c-ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.contact-info { display: grid; gap: 1.4rem; align-content: start; }
.contact-line { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-line .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent-strong); display: grid; place-items: center; flex: none; }
.contact-line .ico svg { width: 22px; height: 22px; }
.contact-line strong { display: block; font-size: 1.02rem; }
.contact-line span, .contact-line a { color: var(--c-ink-soft); }
.contact-line a:hover { color: var(--c-accent-strong); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.hours-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--c-line); }
.hours-table td:last-child { text-align: right; font-weight: 700; }

.form { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow-md); display: grid; gap: 1.05rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field input, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--c-line); border-radius: 12px;
  font: inherit; font-size: 1rem; background: var(--c-surface-alt); color: var(--c-ink); transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-accent); background: #fff; box-shadow: var(--ring); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--c-ink-soft); }
.form-status { font-weight: 700; padding: 0.8rem 1rem; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent-strong); }
.form-status[hidden] { display: none; }

/* ---------- Final CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--fs-h2); color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 34rem; margin: 0.9rem auto 0; }
.cta-band .hero-actions { justify-content: center; margin-top: 1.7rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-brand-strong); color: rgba(255,255,255,0.75); padding-block: clamp(2.5rem, 6vw, 4rem) 6.5rem; }
.footer-top { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 0.9rem; font-size: 0.94rem; max-width: 24rem; }
.footer-col h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { font-size: 0.94rem; color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; padding-top: 1.6rem; font-size: 0.85rem; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 0.6rem;
  padding: 0.65rem calc(env(safe-area-inset-right) + 0.75rem) calc(env(safe-area-inset-bottom) + 0.65rem) calc(env(safe-area-inset-left) + 0.75rem);
  background: color-mix(in srgb, var(--c-surface) 92%, transparent); backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-line); box-shadow: 0 -6px 24px rgba(16,32,42,0.1);
}
.call-bar .btn { flex: 1; }
.call-bar .btn--call { background: var(--c-accent); color: var(--c-on-accent); }
.call-bar .btn--quote { background: var(--c-surface); color: var(--c-brand); border: 2px solid var(--c-line); }

/* ---------- Service (inner) page ---------- */
.subhero { background: var(--c-brand); color: var(--c-on-brand); padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.subhero .crumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 0.8rem; }
.subhero .crumb a:hover { color: #fff; }
.subhero h1 { font-size: clamp(2rem, 5vw, 3.25rem); color: #fff; max-width: 20ch; }
.subhero p { color: rgba(255,255,255,0.88); margin-top: 0.9rem; max-width: 40rem; font-size: 1.1rem; }
.service-detail { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.service-detail .prose p { color: var(--c-ink-soft); margin-bottom: 1rem; font-size: 1.08rem; }
.service-detail img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.mini-services { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.5rem; }
.mini-services a { font-size: 0.9rem; font-weight: 700; padding: 0.5rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--c-line); background: var(--c-surface); }
.mini-services a:hover, .mini-services a[aria-current] { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 620px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cta { display: flex; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .split--reverse .split-media { order: 2; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
  .service-detail { grid-template-columns: 1.15fr 0.85fr; }
  .call-bar { display: none; }
  .site-footer { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
}
@media (min-width: 620px) and (max-width: 899px) {
  .call-bar .btn--quote { display: none; }
}
