:root {
  --black: #111111;
  --black-2: #212121;
  --black-3: #2a2a2a;
  --red: #d62831;
  --red-dark: #b01f27;
  --red-hover: #dd373d;
  --paper: #ffffff;
  --cream: #f6f6f6;
  --line: #dbdbdb;
  --muted: #666666;
  --text: #222222;
  --white: #fff;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
.wrap { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 12px;
  top: 12px;
}

/* Focus-visible for interactive controls */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.menu-btn:focus-visible,
.service-card[data-book]:focus-visible,
.card.bookable[data-book]:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.topbar {
  background: var(--black);
  color: #c9c9c9;
  font-size: 0.9rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 0;
}
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }

header.site {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 30;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand { text-decoration: none; color: var(--black); line-height: 1.15; display: inline-flex; align-items: center; }
.brand img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
footer .brand img {
  height: 44px;
  max-width: 170px;
  filter: brightness(0) invert(1);
}
.brand strong {
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.28rem;
}
.brand em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
nav.desk { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
nav.desk a { color: var(--black); font-weight: 700; text-decoration: none; }
nav.desk a:hover, nav.desk a.active, nav.desk a[aria-current="page"] { color: var(--red); }
.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--black);
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
}
nav.mobile {
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 8px 18px 16px;
}
nav.mobile.open { display: grid; gap: 10px; }
nav.mobile a { color: var(--black); font-weight: 700; text-decoration: none; }
nav.mobile a.active,
nav.mobile a[aria-current="page"] { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 12px 16px;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--red-hover); }
.btn-light { background: transparent; border: 1px solid rgba(255,255,255,.75); }
.btn-light:hover { background: #fff; color: var(--black) !important; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red) !important;
}
.btn-outline:hover { background: var(--red); color: #fff !important; }

.hero {
  min-height: 70vh;
  display: grid;
  align-items: center;
  color: #fff;
  background-color: var(--black);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-inner { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; padding: 72px 0; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: #f0d8d9;
  margin: 0 0 10px;
}
.hero h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 16ch;
}
.hero .lead { max-width: 40ch; color: #e8e8e8; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.section { padding: 64px 0; }
.section h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 10px;
  color: var(--black);
}
.sub { color: var(--muted); max-width: 62ch; margin: 0 0 28px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card, .quote, .info-box {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
}
.card h3 { margin: 0 0 8px; color: var(--black); }
.card p { margin: 0; color: var(--muted); }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; color: var(--red); }
.card-img {
  margin: -22px -22px 16px;
  height: 160px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Homepage category tiles: whole card clickable via a stretched link */
.card {
  position: relative;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.card .stretched-link {
  position: static;
}
.card .stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}


.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card[data-book] {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.service-card[data-book]:hover {
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.service-card .body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 1.1rem;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}
.service-card .book-hint {
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--red);
}

.badges {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
  overflow: visible;
}
.badges img {
  display: block;
  height: auto;
  width: auto;
  max-height: 56px;
  max-width: 150px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  background: #fff;
  border-radius: 6px;
  padding: 6px 8px;
  box-sizing: content-box;
}
.badges.badges-sm img {
  max-height: 40px;
  max-width: 110px;
  padding: 4px 6px;
}
.band .badges img {
  background: transparent;
  padding: 0;
  border-radius: 0;
  max-height: 52px;
  max-width: 160px;
}
.band .badges img.badge-on-light {
  background: #fff;
  border-radius: 6px;
  padding: 6px 8px;
}

.band { background: var(--black); color: #fff; }
.band .wrap { display: grid; grid-template-columns: 1.3fr auto; gap: 24px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #c5c5c5; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote { background: var(--cream); border-left: 4px solid var(--red); }
.quote p { margin: 0 0 10px; }
.quote cite { color: var(--muted); font-style: normal; font-weight: 700; }

.page-hero {
  color: #fff;
  padding: 56px 0;
  border-bottom: 3px solid var(--red);
  background-color: var(--black);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-hero h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}
.page-hero p { margin: 0; color: #e8e8e8; max-width: 58ch; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.split img { width: 100%; height: 360px; object-fit: cover; }
.list { margin: 0 0 18px; padding-left: 18px; color: var(--muted); }
.list li { margin: 7px 0; }
.prose { max-width: 70ch; }
.prose p { color: #444444; }
.prose h2 { margin-top: 28px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
iframe.map { width: 100%; min-height: 280px; border: 0; }

footer { background: var(--black-2); color: #c2c2c2; padding: 40px 0 20px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; }
footer .brand { color: #fff; margin-bottom: 8px; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { color: var(--red); }
.legal { border-top: 1px solid #3a3a3a; margin-top: 24px; padding-top: 14px; font-size: 0.84rem; color: #939393; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal.open { display: flex; }
.modal-card { background: #fff; max-width: 460px; padding: 24px; border-top: 4px solid var(--red); }
.modal-card h3 { margin-top: 0; color: var(--black); }
.modal-card p { color: #444; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

@media (max-width: 860px) {
  nav.desk { display: none; }
  .menu-btn { display: inline-block; }
  .cards, .quotes, .split, .band .wrap, .contact-grid, .foot { grid-template-columns: 1fr; }
  .hero { min-height: 58vh; }
}

.faq-section {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.35rem;
  color: var(--red);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.faq-section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.prose h2 { font-size: 1.15rem; margin: 1.4rem 0 0.4rem; color: var(--black); }

/* Service areas — local SEO town list */
.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px 14px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.area-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--black);
}
.section-tint { background: #f7f5f4; }

/* --- Ported content pages: Cleaning 101 guides + service detail pages (added 2026-10-07) --- */
.crumbs { font-size: 0.88rem; color: #d9d9d9; margin: 0 0 10px; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.article-body { max-width: none; }
.article-body h2 { font-size: 1.3rem; margin: 1.8rem 0 0.5rem; color: var(--black); }
.article-body h3 { font-size: 1.08rem; margin: 1.4rem 0 0.35rem; color: var(--black); }
.article-body ol, .article-body ul { color: #444444; padding-left: 22px; }
.article-body li { margin: 6px 0; }
.article-img { margin: 0 0 1.2rem; }
.article-img img { width: 100%; height: auto; border: 1px solid var(--line); }
.post-meta { font-size: 0.9rem; color: var(--muted) !important; margin: 0 0 12px; }
.article-aside { display: grid; gap: 18px; }
.article-aside h2 { font-size: 1.1rem; margin: 0 0 10px; color: var(--black); }
.article-aside .info-box p { color: var(--muted); }
.aside-cta { border-top: 4px solid var(--red); }
.cta-stack { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.link-list { list-style: none; margin: 0 0 12px; padding: 0; }
.link-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { color: var(--black); text-decoration: none; font-weight: 600; }
.link-list a:hover { color: var(--red); }
.link-list [aria-current="page"] { color: var(--red); font-weight: 700; }
.article-aside .quote { margin: 0; }
.learn-more { margin-top: 32px; }
.learn-more .link-list { columns: 2; column-gap: 32px; }
.learn-more .link-list li { break-inside: avoid; }
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .learn-more .link-list { columns: 1; }
}

/* --- Mobile menu: fit the viewport and scroll inside the panel (added 2026-10-07) ---
   --nav-top is set by js/site.js to the open panel's top edge; 82px is a fallback. */
@media (max-width: 860px) {
  nav.mobile.open {
    max-height: calc(100vh - var(--nav-top, 82px));
    max-height: calc(100dvh - var(--nav-top, 82px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  html.menu-open,
  html.menu-open body { overflow: hidden; }
}
/* Short landscape phones: three columns of links so "Book now" fits without scrolling */
@media (max-width: 860px) and (max-height: 500px) and (orientation: landscape) {
  nav.mobile.open { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px; padding: 6px 18px 12px; }
  nav.mobile .btn { grid-column: 1 / -1; }
}
