/* Ray's Cleaning Solutions. Palette comes from the logo (crimson script, navy outline) and the blue work jersey. */
:root {
  --navy: #13224B;
  --navy-deep: #0E1838;
  --blue: #1273C4;
  --blue-ink: #0D5FA6;
  --red: #C8102E;
  --red-dark: #A50D26;
  --white: #FFFFFF;
  --water: #EAF3FA;
  --line: #D3DCE5;
  --ink: #16203A;
  --muted: #4A566E;
  --star: #E8A400;
  --f-head: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --f-body: "Figtree", "Segoe UI", Arial, sans-serif;
  --gut: 32px;
  --max: 1240px;
  --header-h: 84px;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--blue-ink); }
h1, h2, h3 { font-family: var(--f-head); color: var(--navy); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.125rem, 4vw, 3.25rem); font-weight: 800; }
h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.results :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  font-family: var(--f-body); font-size: 1.125rem; font-weight: 700; line-height: 1;
  text-decoration: none; border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--call { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--call:hover { background: var(--navy); color: #fff; }
.btn--block { width: 100%; }

.stars { color: var(--star); letter-spacing: 2px; font-size: 1.25rem; line-height: 1; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 46; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { height: 68px; width: auto; }
.site-nav { display: flex; gap: 30px; margin-left: auto; }
.site-nav a { color: var(--navy); font-weight: 600; text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--red); }
.header-call {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  background: var(--navy); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 700; white-space: nowrap;
}
.header-call:hover { background: var(--blue-ink); }
.header-call svg { width: 20px; height: 20px; fill: currentColor; }
.header-call__short { display: none; }
.menu-btn { display: none; }
.mobile-menu, .scrim { display: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  align-items: stretch;
  padding-left: max(var(--gut), calc((100vw - var(--max)) / 2));
  overflow: hidden;
}
.hero__text { padding: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 72px) clamp(48px, 6vw, 96px) 0; align-self: center; }
.hero__where { font-weight: 700; color: var(--blue-ink); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.5rem, 4.3vw, 4.375rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }
.hero__lead { margin-top: 24px; max-width: 34em; font-size: 1.25rem; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__actions .btn--call { font-size: 1.25rem; }
.hero__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 28px; color: var(--muted); }
.hero__rating strong { color: var(--ink); }
.hero__photo { position: relative; min-height: 540px; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 60%; border-bottom-left-radius: 72px; }

/* ---------- Before and after ---------- */
.results { background: var(--navy-deep); color: #D9E3F0; padding: clamp(72px, 8vw, 120px) 0; margin-top: clamp(40px, 5vw, 72px); }
.results .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 48px; align-items: start; }
.results__head h2 { color: #fff; font-size: clamp(2.5rem, 5vw, 4.25rem); }
.results__head p { margin-top: 20px; max-width: 24em; }
.results__grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.ba img { width: 100%; border-radius: 6px; background: #000; }
.ba figcaption { margin-top: 12px; color: #B9C6D8; }
.ba figcaption strong { display: block; font-family: var(--f-head); font-size: 1.375rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; }

/* ---------- Services ---------- */
.services { padding: clamp(72px, 8vw, 120px) 0; }
.services__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.services__photo { position: sticky; top: calc(var(--header-h) + 24px); }
.services__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; border-radius: var(--r); }
.services__intro { margin-top: 18px; font-size: 1.25rem; color: var(--muted); max-width: 30em; }
.svc { margin-top: 32px; border-top: 2px solid var(--navy); }
.svc li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.svc p { color: var(--muted); }
.services__note { margin-top: 28px; font-weight: 600; color: var(--navy); max-width: 30em; }

/* ---------- Recent work ---------- */
.work { padding: 0 0 clamp(72px, 8vw, 120px); }
.work__grid { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(260px, 27vw, 380px); gap: 12px; }
.work__item--wide { grid-column: span 2; }
.work__item .zoom { height: 100%; overflow: hidden; }
.work__item img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; transition: transform .3s ease; }
.work__item .zoom:hover img { transform: scale(1.03); }

/* ---------- Reviews ---------- */
.reviews { background: var(--water); padding: clamp(72px, 8vw, 120px) 0; }
.reviews__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; }
.reviews__score { color: var(--ink); font-weight: 600; max-width: 26em; }
.reviews__score .stars { display: block; margin-bottom: 8px; font-size: 1.5rem; }
.quote--lead { margin-top: 48px; padding-left: clamp(20px, 3vw, 40px); border-left: 6px solid var(--red); }
.quote--lead blockquote p { font-family: var(--f-head); font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; color: var(--navy); max-width: 30em; }
.quote figcaption { margin-top: 14px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); margin-right: 8px; }
.reviews__cols { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; align-items: start; }
.reviews__cols .quote { padding: 22px 0 30px; border-top: 1px solid #B9CBDB; }

/* ---------- Service area ---------- */
.area { padding: clamp(72px, 8vw, 120px) 0; }
.area__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.area__text > p { margin-top: 18px; color: var(--muted); font-size: 1.25rem; }
.area__list { margin-top: 28px; columns: 2; column-gap: 32px; font-weight: 600; color: var(--navy); }
.area__list li { padding: 9px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.area__text > .area__ask { margin-top: 24px; font-size: 1.125rem; }
.area__ask a { font-weight: 700; }
.area__map { background: var(--water); border-radius: var(--r); padding: 20px 20px 14px; }
.area__map svg { display: block; width: 100%; height: auto; overflow: hidden; border-radius: 6px; }
.map__rings circle { fill: none; stroke: #9DB6CC; stroke-width: 1.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.map__scale text { font-family: var(--f-body); font-size: 15px; font-weight: 600; fill: #55708A; paint-order: stroke; stroke: var(--water); stroke-width: 8px; stroke-linejoin: round; }
.map__towns circle { fill: var(--blue); stroke: #fff; stroke-width: 2.5; }
.map__towns text { font-family: var(--f-body); font-size: 20px; font-weight: 600; fill: var(--navy); paint-order: stroke; stroke: var(--water); stroke-width: 6px; stroke-linejoin: round; }
.map__towns .map__county { font-style: italic; font-weight: 500; fill: #3D5673; }
.map__home circle { fill: var(--red); stroke: #fff; stroke-width: 3.5; }
.map__home text { font-family: var(--f-head); font-size: 26px; font-weight: 800; fill: var(--navy); paint-order: stroke; stroke: var(--water); stroke-width: 6px; stroke-linejoin: round; }
.area__mapnote { margin-top: 8px; font-size: 1rem; color: var(--muted); }

/* ---------- About ---------- */
.about { padding: 0 0 clamp(72px, 8vw, 120px); }
.about__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__text p { margin-top: 18px; max-width: 32em; }
.about__facts { margin-top: 28px; border-top: 2px solid var(--navy); max-width: 32em; }
.about__facts li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.about__photo img { width: 100%; border-radius: var(--r); }
.about__photo figcaption { margin-top: 10px; font-size: 1rem; color: var(--muted); }

/* ---------- Quote ---------- */
.quote-sec { background: var(--navy); color: #D9E3F0; padding: clamp(72px, 8vw, 120px) 0; }
.quote-sec__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.quote-sec__form { background: #fff; color: var(--ink); border-radius: 16px; padding: clamp(24px, 3.4vw, 44px); }
.quote-sec__form > p { margin-top: 12px; color: var(--muted); }
form { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 6px; }
.field:nth-of-type(3), .field:nth-of-type(4), .form-err, form .btn { grid-column: 1 / -1; }
label { font-weight: 700; color: var(--navy); }
label span { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 54px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #8FA1B5; border-radius: 8px;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
::placeholder { color: #6C7A90; opacity: 1; }
.form-err { color: var(--red-dark); font-weight: 700; min-height: 0; }
.form-err:empty { display: none; }
.quote-sec__info h2 { color: #fff; }
.bigphone { display: inline-block; margin-top: 18px; font-family: var(--f-head); font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; text-decoration: none; line-height: 1.1; }
.bigphone:hover { text-decoration: underline; text-underline-offset: 6px; }
.info { margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, .28); }
.info > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.info dt { color: #A9B9CF; }
.info dd { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.info a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #B9C6D8; padding: 40px 0; font-size: 1.0625rem; }
.site-footer__in { display: grid; gap: 6px; }
.site-footer__name { font-family: var(--f-head); font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.site-footer a { color: #fff; margin-right: 20px; display: inline-block; padding: 6px 0; }

.sticky-book { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 13, 30, .96); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1500px); max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 1.0625rem; color: #D6DEEA; padding-inline: 90px; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .4); color: #fff; cursor: pointer; }
.lightbox__btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__btn:hover { background: #fff; color: var(--navy); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ================= Responsive ================= */
@media (max-width: 1100px) {
  .reviews__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 22px; }
}

@media (max-width: 960px) {
  :root { --gut: 16px; --header-h: 68px; }
  .site-nav { display: none; }
  .site-header__in { gap: 10px; }
  .brand img { height: 50px; }
  .header-call { margin-left: auto; padding: 0 18px; }
  .header-call__num { display: none; }
  .header-call__short { display: inline; }
  .menu-btn {
    display: grid; place-content: center; gap: 5px; width: 48px; height: 48px; flex: none;
    background: #fff; border: 2px solid var(--navy); border-radius: 50%; cursor: pointer;
  }
  .menu-btn span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(14, 24, 56, .5); }
  .mobile-menu {
    display: grid; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 45;
    background: #fff; padding: 8px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(14, 24, 56, .5);
  }
  .mobile-menu a { display: flex; align-items: center; min-height: 54px; color: var(--navy); font-weight: 700; font-size: 1.1875rem; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-child { border-bottom: 0; color: var(--red-dark); }
  .scrim[hidden], .mobile-menu[hidden] { display: none; }

  .hero { grid-template-columns: 1fr; padding-left: 0; }
  .hero__text { padding: 22px var(--gut) 36px; }
  .hero__where { margin-bottom: 10px; font-size: 1rem; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 3.5rem); }
  .hero__lead { font-size: 1.125rem; margin-top: 14px; line-height: 1.5; }
  .hero__actions { display: grid; grid-template-columns: 1fr; margin-top: 20px; gap: 10px; }
  .hero__photo { min-height: 0; aspect-ratio: 16 / 9; order: -1; }
  .hero__photo img { border-bottom-left-radius: 0; object-position: 55% 60%; }

  .results { margin-top: 0; }
  .results .wrap { grid-template-columns: 1fr; gap: 28px; }
  .results__grid { grid-template-columns: 1fr; gap: 28px; }
  .ba figcaption strong { font-size: 1.25rem; }

  .services__in { grid-template-columns: 1fr; }
  .services__photo { position: static; order: 2; }
  .services__photo img { aspect-ratio: 4 / 4.4; }
  .svc li { grid-template-columns: 1fr; padding: 18px 0; }

  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 56vw; gap: 8px; margin-top: 24px; }

  .reviews__cols { grid-template-columns: 1fr; margin-top: 40px; }
  .quote--lead { margin-top: 32px; border-left-width: 5px; }

  .area__in, .about__in, .quote-sec__in { grid-template-columns: 1fr; }
  .area__map { padding: 10px 8px 10px; margin-inline: -4px; }
  .map__towns text { font-size: 26px; }
  .map__home text { font-size: 31px; }
  .map__scale text { font-size: 19px; }
  .area__mapnote { padding-left: 8px; }

  form { grid-template-columns: 1fr; }
  .info > div { grid-template-columns: 96px minmax(0, 1fr); }

  .site-footer { padding: 32px 0 calc(32px + 86px); }

  .sticky-book {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px -18px rgba(14, 24, 56, .6);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .sticky-book.is-visible { transform: none; }
  .sticky-book .btn { flex: 1; min-height: 54px; padding: 0 12px; }

  .lightbox__prev, .lightbox__next { top: auto; bottom: 64px; transform: none; }
  .lightbox__cap { bottom: 18px; padding-inline: 16px; }
}

@media (min-width: 600px) and (max-width: 960px) {
  .hero__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
  .results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work__grid { grid-auto-rows: 44vw; }
  .reviews__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
