/* JM Carpet Cleaning. Colours from their logo: cyan accent, near-black ink. */
:root {
  --ink: #131419;
  --ink-2: #24252b;
  --muted: #555a63;
  --accent: #19c0db;
  --accent-text: #0a7387;
  --teal: #3ec6bf;
  --line: #e3e7ea;
  --soft: #f4f8f9;
  --head: Barlow, "Barlow Fallback", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans Pro", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--body); color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; margin-bottom: 1.2rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 .8rem; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 20px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 1.2rem; }
.brand img { width: 52px; height: auto; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-text); }
.top__call { background: var(--accent); color: var(--ink); text-decoration: none; font-weight: 700; padding: 11px 18px; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.top__call:hover { background: #12aac3; }

/* Hero: full-width photo band, words right under it */
.hero__photo { width: 100%; height: clamp(280px, 46vw, 520px); overflow: hidden; background: var(--ink-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.hero__text { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 48px; padding-top: 28px; padding-bottom: 32px; align-items: end; }
.eyebrow { font-weight: 600; color: var(--muted); margin-bottom: .4rem; border-left: 4px solid var(--teal); padding-left: 10px; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: .5rem; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; margin: 0; }
.open { margin: 0 0 .3rem; min-height: 1.6em; }
.status { display: inline-block; font-weight: 700; font-size: 1.02rem; }
.status::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.today-line:empty { display: none; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: .6rem 0 .7rem; }
.btn { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 10px 14px; border-radius: 6px; font-weight: 700; font-size: 1.02rem; text-decoration: none; line-height: 1.2; }
.btn--main { background: var(--accent); color: var(--ink); }
.btn--main:hover { background: #12aac3; }
.btn--line { border: 2px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--soft); }
.since { margin: 0; color: var(--muted); font-weight: 600; }

/* Strip: Towns / Hours / Call */
.strip { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip__in { display: grid; grid-template-columns: 1fr 1.4fr 1fr; }
.strip__cell { padding: 22px 24px 18px 0; }
.strip__cell + .strip__cell { padding-left: 24px; border-left: 1px solid var(--line); }
.strip p { margin: 0 0 .2rem; }
.strip .strip__label { font-family: var(--head); font-size: .95rem; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }
.towns { font-weight: 700; font-size: 1.1rem; }
.strip__phone { font-family: var(--head); font-weight: 700; font-size: 1.45rem; color: var(--ink); text-decoration: none; }

/* Sections */
.work, .services, .visit, .info { padding: 56px 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure, .photos figure { margin: 0; align-self: start; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.gallery figcaption { font-size: .95rem; color: var(--muted); padding-top: 6px; }
.more { margin: 1.2rem 0 0; font-weight: 600; }

.services { border-top: 1px solid var(--line); }
.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.group h3 { margin-bottom: .3rem; }
.items { list-style: none; padding: 0; margin: 0; }
.items li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.items li:last-child { border-bottom: 0; }
.items li[data-sold-out] { opacity: .6; }
.sold-out { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

.visit { background: var(--ink); color: #fff; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-family: var(--head); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--accent); margin-bottom: .5rem; }
.steps h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.steps p { color: #d5d8dd; margin: 0; }

.info__in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.rows { margin: 0; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 600; }
.rows dd { margin: 0; text-align: right; }
#details:empty { display: none; }
#details div:first-child { border-top: 0; }
.closures { list-style: none; padding: 0; margin: 0 0 .8rem; font-weight: 700; }
.faq h3 { font-size: 1.12rem; margin: 1.1rem 0 .3rem; }
.faq h3:first-child { margin-top: 0; }
.faq p { margin: 0; color: var(--ink-2); }

/* Footer */
.foot { background: var(--ink); color: #e9ebee; padding: 40px 0 48px; }
.foot__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 0 0 .3rem; }
.foot a { color: #fff; }
.foot__name { font-family: var(--head); font-weight: 700; font-size: 1.25rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: flex-start; }
.foot__nav a { text-decoration: none; padding: 8px 0; }
.foot__nav a:hover { text-decoration: underline; }

/* Phone call bar */
.callbar { display: none; }

/* Inner pages */
.page-head { padding-top: 44px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: .6rem; }
.page-head p { font-size: 1.15rem; color: var(--ink-2); max-width: 40em; }
.page-body { padding-top: 24px; padding-bottom: 64px; }
.prose > * { max-width: 42em; }
.prose h2 { margin-top: 2rem; }
.svc { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px; }
.svc:first-child { border-top: 0; }
.svc .items { columns: 2; column-gap: 32px; }
.svc .items li { break-inside: avoid; }
.town { padding: 28px 0; border-top: 1px solid var(--line); max-width: 46em; }
.town:first-child { border-top: 0; }
.town h2 { margin-bottom: .5rem; }
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.photos .tall img { aspect-ratio: 3 / 4; }
.photos figcaption { color: var(--muted); padding-top: 6px; }
.bigcall { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 12px 28px; border-radius: 6px; background: var(--accent); color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 1.6rem; text-decoration: none; margin: .4rem 0 1.2rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-list li { padding: 6px 0; }

@media (max-width: 900px) {
  .hero__text { grid-template-columns: 1fr; gap: 14px; }
  .groups { grid-template-columns: repeat(2, 1fr); }
  .info__in { grid-template-columns: 1fr; gap: 40px; }
  .svc { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .foot { padding-bottom: 96px; }
  .top__in { min-height: 0; padding-top: 10px; padding-bottom: 6px; gap: 6px 12px; }
  .brand img { width: 40px; }
  .brand { font-size: 1.05rem; }
  .top__call, .nav a[href="index.html"] { display: none; }
  .nav { margin-left: 0; width: 100%; gap: 0 18px; }
  .nav a { padding: 8px 0; font-size: .95rem; }
  .hero__photo { height: 250px; }
  .hero__photo img { object-position: 50% 14%; }
  .hero__text { padding-top: 18px; padding-bottom: 24px; }
  .eyebrow { font-size: .95rem; }
  .hero h1 { font-size: 2.3rem; }
  .lede { font-size: 1.08rem; }
  .btns { margin-top: .5rem; }
  .btn { font-size: .98rem; padding: 8px 10px; }
  .strip__in { grid-template-columns: 1fr; }
  .strip__cell, .strip__cell + .strip__cell { padding: 14px 0; border-left: 0; }
  .strip__cell + .strip__cell { border-top: 1px solid var(--line); }
  .work, .services, .visit, .info { padding: 40px 0; }
  .gallery { grid-template-columns: 1fr; gap: 20px; }
  .groups { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .svc .items { columns: 1; }
  .photos { grid-template-columns: 1fr; }
  .callbar { display: flex; align-items: center; justify-content: center; position: fixed; left: 0; right: 0; bottom: 0; min-height: 52px; padding-bottom: env(safe-area-inset-bottom); background: var(--accent); color: var(--ink); font-weight: 700; font-size: 1.05rem; text-decoration: none; border-top: 1px solid #0f9fb6; z-index: 10; }
}
