/* ART Cleaning Services. Colors come from the logo: forest green, cream, broom-handle brown.
   The terracotta --cta is reserved for the estimate button so it is the one accent on screen. */
:root {
  --green: #23401a;
  --green-2: #2f5323;
  --paper: #fffdf8;   /* default section background */
  --cream: #f3ebdc;   /* review cards */
  --cream-2: #ede3d3; /* light text on dark green */
  --sage: #dfe8d6;    /* hero, page heading band + alternate sections: a green tint from the logo */
  --ink: #1f2a1a;
  --muted: #4b5546;
  --line: #c9bea8;
  --cta: #9c4a1f;
  --cta-dark: #7c3a17;
  --white: #fff;
  --focus: #1f2a1a;
  --rule-on-green: rgba(243, 235, 220, .22); /* hairline dividers on the green footer block */
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); color: var(--green); line-height: 1.2; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); margin-top: .4em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--green-2); text-underline-offset: .15em; }
a:hover { color: var(--green); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.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; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.section { padding-top: 1.5rem; padding-bottom: 2.5rem; }
.alt { background: var(--sage); }
.page-band { background: var(--sage); display: flow-root; } /* flow-root keeps child margins inside the band, so no white strips between bands */
.page-band .page-head { padding-bottom: 1.25rem; }
.page-band:has(+ .band-tail) .page-head { padding-bottom: 0; }
.page-band:has(+ .band-tail) .page-head > :last-child { margin-bottom: 0; }
.band-tail .wrap { padding-top: 1rem; }
.band-tail { padding-bottom: 1.5rem; }
.band-tail .cta-row { margin-top: 0; }
.alt .wrap > h2:first-child, .section > h2:first-child { margin-top: .6em; }
main:focus { outline: none; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--green); color: var(--white); padding: .75rem 1rem; z-index: 100; border-radius: 0 0 var(--radius) var(--radius); }
.skip:focus { top: 0; outline-color: var(--cream); }

/* header */
/* light header so the dark-green logo stands out */
.site-header { background: var(--white); color: var(--ink); border-bottom: 4px solid var(--green); }
.header-inner { max-width: 78rem; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: .25rem 1.5rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { grid-row: 1 / 3; display: flex; align-items: center; gap: .8rem; color: var(--green); text-decoration: none; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; min-height: 44px; }
.brand img { width: 96px; height: 96px; }
/* mid-size screens: the logo already reads "ART Cleaning Service", so drop the text to keep the nav on one row */
@media (min-width: 45.01rem) and (max-width: 80rem) { .brand span { display: none; } }
.brand:hover { color: var(--ink); }
.header-actions { grid-column: 2; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: .5rem 1.25rem; }
.header-phone { color: var(--green); font-weight: 700; font-size: 1.1rem; text-decoration: underline; padding: .4rem .25rem; }
.header-phone:hover { color: var(--ink); }
.menu-btn { display: none; font: inherit; font-weight: 700; color: var(--white); background: var(--green); border: 0; border-radius: 6px; padding: .55rem 1rem; min-height: 44px; cursor: pointer; }
.site-nav { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: .25rem 1rem; justify-content: flex-end; flex-wrap: wrap; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 .2rem; margin: 0; padding: 0; max-width: none; }
.site-nav a:not(.btn) { color: var(--green); font-weight: 600; text-decoration: none; display: inline-block; padding: .6rem .45rem; border-bottom: 3px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--green); font-weight: 700; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.4rem; background: var(--cta); color: var(--white); font-weight: 700; font-size: 1.0625rem; text-decoration: none; border: 2px solid var(--cta); border-radius: 8px; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--cta-dark); border-color: var(--cta-dark); color: var(--white); }
.btn-lg { min-height: 56px; font-size: 1.15rem; padding: .9rem 1.8rem; }
.btn-sm { min-height: 44px; padding: .5rem 1rem; }
.phone-link { font-weight: 700; display: inline-block; padding: .6rem .25rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 1.25rem 0 .5rem; }
.reassure { color: var(--muted); font-size: .98rem; }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: .75rem 0 0; margin: 0; max-width: none; font-size: .95rem; }
.crumbs li + li::before { content: "›"; margin: 0 .4rem 0 .15rem; color: var(--muted); }
.crumbs a { display: inline-block; padding: .2rem 0; }
.crumbs a[aria-current="page"] { color: var(--ink); text-decoration: none; }

/* hero + page head */
.hero { padding: 1.5rem 0 2.25rem; background: var(--sage); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; }
.lead { font-size: 1.15rem; }
.page-head { padding-top: .5rem; }
.trust { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; max-width: none; }
.trust li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-size: .95rem; }
.trust a { color: var(--ink); }

/* before / after */
.ba { margin: 0 0 1.5rem; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ba-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); }
.ba-item img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.ba-tag { position: absolute; top: .5rem; left: .5rem; background: var(--ink); color: var(--white); font-weight: 700; font-size: .85rem; padding: .2rem .55rem; border-radius: 5px; text-transform: uppercase; letter-spacing: .04em; }
.ba-tag-after { background: var(--green); }
.ba figcaption { font-size: .95rem; color: var(--muted); margin-top: .4rem; }
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* reviews */
.review { background: var(--cream); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; max-width: 60ch; }
.review blockquote { margin: 0; }
.review blockquote p { font-family: var(--serif); font-size: 1.15rem; margin-bottom: .5rem; }
.review figcaption { color: var(--muted); font-size: .95rem; }
.review cite { font-style: normal; font-weight: 700; color: var(--ink); }
.stars { color: #6b4a00; letter-spacing: .1em; margin: 0 0 .25rem; }
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }

/* cards + lists */
/* 6 cards: 3 x 2 on desktop, 2 x 3 on tablets, 1 column on phones */
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 1rem; max-width: none; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.section:not(.alt) .card { background: var(--cream); }
.card-help, .section:not(.alt) .card-help { background: var(--green); border-color: var(--green); color: var(--cream-2); }
.card-help a { color: var(--white); }
.card-help a:hover { color: var(--cream); }
.card-help :focus-visible { outline-color: var(--cream); }
.card h3 { margin: 0; }
.card p { margin: 0; }
.checks { padding-left: 0; list-style: none; }
.checks li { position: relative; padding-left: 1.7rem; margin-bottom: .45rem; }
.checks li::before { content: ""; position: absolute; left: .2rem; top: .5em; width: .55rem; height: .9rem; border: solid var(--green-2); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.steps { padding-left: 1.5rem; }
.steps li { margin-bottom: .6rem; padding-left: .25rem; }
.steps li::marker { font-weight: 700; color: var(--green); }
.note { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: .75rem 1rem; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.side h2:first-child { margin-top: .4em; }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.towns { columns: 3; column-gap: 1rem; }
.towns li { break-inside: avoid; }
@media (max-width: 40rem) { .towns { columns: 2; } }

/* CTA band */
.cta-band { background: var(--green); color: var(--cream); padding: 2.5rem 0; }
.cta-band h2 { color: var(--white); margin-top: .2em; }
.cta-band :focus-visible { outline-color: var(--cream); }
.cta-band .btn { border-color: var(--cream); }
.cta-band .phone-link, .cta-band a { color: var(--cream); }
.cta-band .reassure { color: var(--cream-2); }

/* form */
.estimate { background: var(--white); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line); border-radius: var(--radius); padding: 1.25rem; max-width: 36rem; }
.field { margin: 0 0 1.1rem; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .3rem; padding: 0; }
.radios { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.radios label { font-weight: 400; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.radios input { width: 1.3rem; height: 1.3rem; accent-color: var(--green); }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid #6f6a5e; border-radius: 6px; padding: .6rem .7rem; min-height: 48px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[aria-invalid="true"] { border-color: #a1260d; }
.req { color: #a1260d; }
.req-note, .hint { color: var(--muted); font-size: .95rem; margin: .25rem 0 0; }
.req-note { margin: 0 0 1rem; }
.err { color: #a1260d; font-weight: 700; margin: .3rem 0 0; }
.err::before { content: "Error: "; }
.form-errors { border: 2px solid #a1260d; border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1rem; }
.form-errors h2 { font-size: 1.1rem; margin: 0 0 .4rem; color: #a1260d; }
.form-errors ul { margin: 0; }
.form-status { font-weight: 700; margin: .5rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.site-footer { background: var(--green); color: var(--cream); padding: 2.5rem 0 1rem; }
main:has(> .cta-band:last-child) + .site-footer { padding-top: 0; }
main:has(> .cta-band:last-child) + .site-footer .footer-grid { border-top: 1px solid var(--rule-on-green); padding-top: 2.25rem; }
.site-footer a { color: var(--cream); display: inline-block; padding: .2rem 0; }
.site-footer :focus-visible { outline-color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-name, .footer-head { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--white); margin-bottom: .4rem; }
.footer-base { border-top: 1px solid var(--rule-on-green); margin-top: 1.5rem; padding-top: 1rem; font-size: .95rem; }

.mobile-bar { display: none; }

@media (max-width: 60rem) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 1.25rem; }
  .ba-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 45rem) {
  html { scroll-padding-bottom: 5rem; }
  .site-footer { padding-bottom: calc(1rem + 4.5rem + env(safe-area-inset-bottom)); } /* room for the fixed Call bar, in the footer's own color */
  .header-inner { display: flex; flex-wrap: wrap; gap: .5rem; }
  .brand { margin-right: auto; font-size: 1.15rem; gap: .6rem; line-height: 1.15; }
  .brand span { max-width: 7.5em; }
  .brand img { width: 64px; height: 64px; }
  .header-actions { display: none; }
  .menu-btn { display: inline-block; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; padding-bottom: .5rem; }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { display: block; padding: .7rem .25rem; border-bottom: 1px solid var(--cream-2); }
  .ba-grid, .reviews, .area-grid, .footer-grid, .cards { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--green); border-top: 1px solid var(--rule-on-green); box-shadow: 0 -6px 16px rgba(31, 42, 26, .18);
    padding: .5rem 1rem calc(.5rem + env(safe-area-inset-bottom));
  }
  .mobile-bar :focus-visible { outline-color: var(--cream); }
  .mobile-call { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 2px solid var(--cream); border-radius: 8px; color: var(--cream); font-weight: 700; text-decoration: none; }
  .mobile-bar .btn { border-color: var(--cream); }
}

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

@media print {
  .site-header nav, .mobile-bar, .cta-band, .skip { display: none; }
}

/* phones: show the real before/after photo on the first screen, right after the CTA */
@media (max-width: 45rem) {
  .hero { padding-top: .75rem; }
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy h1 { order: 1; margin-bottom: .4em; }
  .hero-copy .lead { order: 2; font-size: 1.05rem; }
  .hero-copy .cta-row { order: 3; margin-top: .5rem; }
  .hero-media { order: 4; }
  .hero-copy .trust { order: 5; }
  .hero-media .ba-item img { aspect-ratio: 4 / 3; }
  .hero-media .ba { margin-bottom: .5rem; }
  .mobile-bar .btn, .mobile-call { white-space: nowrap; font-size: 1rem; padding-left: .5rem; padding-right: .5rem; }
}
@media (max-width: 22rem) {
  .header-inner { gap: .5rem; }
  .brand { gap: .4rem; }
  .brand { font-size: .9rem; }
  .header-inner { padding-left: .75rem; padding-right: .75rem; }
  .brand img { width: 52px; height: 52px; }
  .menu-btn { padding: .5rem .7rem; }
}

/* no-orphans (website skill checklist 13) */
body{text-wrap:pretty}
h1,h2,h3,h4,h5,h6,blockquote,figcaption,caption,legend,.eyebrow,.lede,.btn,button{text-wrap:balance}
