/* =========================================================
   Exterior Painting Bradley Stoke
   Design system: teal/aqua + slate (unchanged from source site)
   ========================================================= */

:root {
  --white: #ffffff;
  --mist: #eef6f6;
  --mist-alt: #dcedee;
  --slate: #1c2b2e;
  --slate-deep: #10191b;
  --teal: #0e7c86;
  --teal-deep: #0a5d65;
  --teal-pale: #d7ecec;
  --ink: #223133;
  --ink-soft: #52605f;
  --grey-line: #d7e2e2;
  --muted: #7c8a89;
  --radius: 5px;
  --max-width: 1180px;
  --shadow-lift: 0 20px 46px rgba(14, 40, 43, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--slate);
  margin: 0 0 0.45em 0;
  font-weight: 700;
  line-height: 1.16;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.2rem); }
h3 { font-size: 1.24rem; }

p { margin: 0 0 1em 0; color: var(--ink-soft); }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); display: inline-block; border-radius: 2px; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--teal);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 24px; max-width: var(--max-width); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; color: var(--teal); flex-shrink: 0; }
.brand-text { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--slate); line-height: 1.15; }
.brand-text span { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; margin-top: 2px; }

.main-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.main-nav a { color: var(--ink); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.phone-link { font-family: 'IBM Plex Mono', monospace; color: var(--teal-deep); font-size: 1rem; font-weight: 700; white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
  border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 0.86rem;
  font-weight: 700; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-teal { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.btn-slate { background: var(--slate); color: var(--white); border-color: var(--slate); }
.btn-slate:hover { background: var(--slate-deep); border-color: var(--slate-deep); color: var(--white); }
.btn-outline { background: transparent; color: var(--slate); border-color: var(--grey-line); }
.btn-outline:hover { border-color: var(--slate); }

.nav-toggle { display: none; }

@media (max-width: 940px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 3px solid var(--teal);
    flex-direction: column; padding: 16px 24px 24px; gap: 14px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; background: transparent; border: 1px solid var(--grey-line);
    border-radius: var(--radius); color: var(--teal);
  }
  .header-bar { position: relative; }
  .phone-link { display: none; }
}

/* ---------------------------------------------------------
   Trust strip
   --------------------------------------------------------- */
.trust-strip { background: var(--slate); color: var(--white); }
.trust-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; padding: 9px 24px;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500;
}
.trust-strip span { white-space: nowrap; color: var(--white); opacity: 0.94; }
.trust-strip .accent { color: #6fe0c9; opacity: 1; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero { background: linear-gradient(160deg, var(--teal-pale) 0%, var(--mist) 55%); padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-copy p.lead { font-size: 1.1rem; max-width: 48ch; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-frame {
  position: relative; background: var(--white); border: 1px solid var(--grey-line);
  padding: 10px; border-radius: var(--radius); box-shadow: var(--shadow-lift);
}
.hero-frame img { width: 100%; height: auto; border-radius: 3px; }
.hero-frame figcaption {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--muted);
  letter-spacing: 0.05em; text-transform: uppercase; padding: 10px 4px 2px;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-frame { max-width: 420px; margin: 0 auto; }
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */
.section { padding: 70px 0; }
.section-white { background: var(--white); }
.section-mist { background: var(--mist); }
.section-teal { background: var(--teal-pale); }
.section-dark { background: var(--slate); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #b9c6c5; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------------------------------
   Service cards
   --------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white); border: 1px solid var(--grey-line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease; border-top: 4px solid var(--teal);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.service-card .icon-badge { width: 42px; height: 42px; color: var(--teal-deep); }
.service-card h3 { margin-bottom: 2px; }
.service-card p { font-size: 0.94rem; margin-bottom: 4px; flex-grow: 1; }
.service-card .card-link { font-family: 'IBM Plex Mono', monospace; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-deep); font-weight: 700; }

/* ---------------------------------------------------------
   Photo gallery grid (real job photos)
   flexbox rather than a fixed grid, so an uneven final row
   centers instead of trailing off left-aligned, and tiles are
   capped in size so small source photos aren't stretched blurry
   --------------------------------------------------------- */
.gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--grey-line);
  flex: 1 1 260px; max-width: 260px;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
@media (max-width: 500px) { .gallery-item { flex-basis: 100%; max-width: 340px; } }

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--grey-line); }
.section-dark .faq-item { border-bottom-color: rgba(255,255,255,0.16); }
.faq-item summary {
  padding: 20px 4px; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 1.02rem;
  color: var(--slate); display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none;
}
.section-dark .faq-item summary { color: var(--white); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: 'IBM Plex Mono', monospace; color: var(--teal); font-size: 1.3rem; flex-shrink: 0; }
.section-dark .faq-item summary::after { color: #6fe0c9; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 4px 22px; margin: 0; }

/* ---------------------------------------------------------
   Coverage
   --------------------------------------------------------- */
.coverage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 22px; }
@media (max-width: 760px) { .coverage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .coverage-grid { grid-template-columns: 1fr; } }
.coverage-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--grey-line); color: var(--ink-soft); font-size: 0.96rem; }
.coverage-item svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }

/* ---------------------------------------------------------
   CTA banner
   --------------------------------------------------------- */
.cta-banner { background: var(--teal); padding: 52px 0; text-align: center; }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-banner .btn-slate { margin-top: 8px; }

/* ---------------------------------------------------------
   Contact page
   --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--mist); border: 1px solid var(--grey-line); border-radius: var(--radius); padding: 32px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--grey-line); }
.contact-row:last-child { border-bottom: none; }
.contact-row svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.contact-row a, .contact-row span.value { color: var(--slate); font-size: 1rem; }
.contact-row .label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.hours-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.92rem; color: var(--ink-soft); border-bottom: 1px dashed var(--grey-line); }
.hours-row:last-child { border-bottom: none; }
.contact-card h3 svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 4px; }

/* ---------------------------------------------------------
   Page hero (inner pages)
   --------------------------------------------------------- */
.page-hero { background: var(--teal-pale); padding: 52px 0 38px; border-bottom: 3px solid var(--teal); }
.breadcrumb { font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { margin: 0 8px; color: var(--grey-line); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer { background: var(--slate-deep); color: #b9c6c5; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #6fe0c9; font-size: 0.76rem; letter-spacing: 0.09em; margin-bottom: 18px; text-transform: uppercase; font-family: 'IBM Plex Mono', monospace; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: #91a3a1; font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-brand-text { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; max-width: 32ch; color: #91a3a1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 0.78rem; color: #6c7b7a;
}
.footer-bottom a { color: #6c7b7a; }
.footer-bottom a:hover { color: var(--white); }

/* ---------------------------------------------------------
   Sticky mobile call button
   --------------------------------------------------------- */
.mobile-call-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--teal); border-top: 1px solid rgba(0,0,0,0.15); }
.mobile-call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px;
  color: var(--white); font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.86rem; font-weight: 700;
}
.mobile-call-bar svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .mobile-call-bar { display: block; } body { padding-bottom: 58px; } }

/* ---------------------------------------------------------
   Prose / 404
   --------------------------------------------------------- */
.prose h2 { margin-top: 1.6em; }
.prose ul { color: var(--ink-soft); padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.error-page .code { font-family: 'Poppins', sans-serif; color: var(--teal); font-size: 5rem; font-weight: 700; line-height: 1; margin-bottom: 8px; }
