/* ============================================================
   South Manchester Painting & Decorating — v2 design system
   Tokens per Fontpair kit. Dark theme. No frameworks.
   ============================================================ */

:root {
  --bg: #0B1626;
  --fg: #F4F7FB;
  --muted: #B4B6B8;
  --primary: #4A90E2;
  --accent: #7FE3F0;
  --border: #3A3A3B;
  --raise-1: rgba(244, 247, 251, 0.025);
  --raise-2: rgba(244, 247, 251, 0.05);
  --font-heading: 'Besley', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --radius: 8px;
  --container: 1140px;
  --pad: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 0.5em;
}
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; font-weight: 500; }
h4 { font-size: 18px; font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
ul { padding-left: 1.2em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
strong { font-weight: 500; }
::selection { background: var(--primary); color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-tint { background: var(--raise-1); }

.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lede { font-size: 18px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--primary); color: var(--fg);
  font-family: var(--font-body); font-size: 17px; font-weight: 500;
  padding: 13px 24px; border-radius: var(--radius);
  border: 1px solid var(--primary); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-outline:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 22, 38, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 11px; color: var(--fg); }
.logo:hover { color: var(--fg); }
.logo svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.logo-name { font-family: var(--font-heading); font-weight: 600; font-size: 19px; line-height: 1.1; }
.logo-sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav-main { display: flex; align-items: center; gap: 26px; }
.nav-main > a { color: var(--fg); font-size: 15.5px; font-weight: 500; }
.nav-main > a:hover, .nav-main > a[aria-current] { color: var(--accent); }
.nav-cta { font-size: 15.5px; padding: 9px 18px; }
.nav-cta:hover { color: var(--bg); }
.nav-toggle { display: none; background: none; border: 0; color: var(--fg); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.6vw, 58px); margin-bottom: 20px; }
.hero .lede { font-size: 19px; margin-bottom: 30px; }
.hero-media { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border); }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--muted); }
.trust-item svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--pad);
  transition: border-color .15s ease, transform .15s ease;
}
a.card { color: var(--fg); display: block; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--fg); }
.card-icon { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: var(--raise-1); }
.card-icon svg { width: 22px; height: 22px; color: var(--accent); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 15px; font-weight: 500; }
.card-link svg { width: 16px; height: 16px; transition: transform .15s ease; }
a.card:hover .card-link svg { transform: translateX(3px); }
.card-media { margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 18px; border-bottom: 1px solid var(--border); aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 4px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.gallery figure { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--raise-1); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--border); }
.gallery .tall img { aspect-ratio: 3 / 4; }

/* ---------- Reviews ---------- */
.review { display: flex; flex-direction: column; gap: 14px; }
.stars { display: flex; gap: 3px; }
.stars svg { width: 16px; height: 16px; color: var(--accent); fill: var(--accent); }
.review blockquote { margin: 0; font-size: 15.5px; color: var(--fg); }
.review figcaption { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; }
.review figcaption span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- Steps ---------- */
.step { position: relative; }
.step-num { font-family: var(--font-heading); font-size: 15px; color: var(--accent); border: 1px solid var(--border); width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: var(--raise-1); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 19px 22px;
  font-family: var(--font-heading); font-size: 17.5px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--accent); flex: none; transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; text-align: center; background: var(--raise-1); }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 34px); }
.cta-band p { color: var(--muted); max-width: 56ch; margin: 0 auto 26px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
input, select, textarea {
  width: 100%; background: var(--raise-1); color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 16px; padding: 12px 14px;
  transition: border-color .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B4B6B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); font-size: 15px; }
.form-status.ok { display: block; border-color: var(--accent); color: var(--accent); }
.form-status.err { display: block; border-color: var(--primary); color: var(--fg); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Contact split ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.contact-list strong { display: block; font-size: 15px; }
.contact-list a, .contact-list span { color: var(--muted); font-size: 15px; }
.contact-list a:hover { color: var(--accent); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 60px 0 0; }
.breadcrumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs svg { width: 13px; height: 13px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 46px); max-width: 18ch; }
.page-hero .lede { max-width: 62ch; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

/* ---------- Two-col feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pill links (areas) ---------- */
.pill-grid { display: flex; flex-wrap: wrap; gap: 11px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 100px;
  padding: 9px 18px; font-size: 14.5px; font-weight: 500; color: var(--fg);
  transition: border-color .15s ease, color .15s ease;
}
.pill svg { width: 14px; height: 14px; color: var(--accent); }
.pill:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 88px; background: var(--raise-1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0; }
.footer-grid h4 { font-size: 15px; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); font-size: 14.5px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* ---------- Mobile ---------- */
@media (max-width: 920px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 48px 0; }
  .nav-main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 20px 20px;
  }
  .nav-main.open { display: flex; }
  .nav-main > a { padding: 13px 4px; border-bottom: 1px solid var(--border); font-size: 17px; }
  .nav-main > a:last-of-type { border-bottom: 0; }
  .nav-cta { margin-top: 14px; justify-content: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row .btn { width: 100%; }
  h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
