/* Richard's Cleaning Services - East Devon
   Mobile-first, fast, no dependencies */

:root {
  --brand: #0b6e4f;
  --brand-dark: #074d37;
  --accent: #f4a261;
  --text: #1a2b34;
  --muted: #5a6b73;
  --bg: #ffffff;
  --bg-soft: #f3f7f5;
  --border: #e2eae6;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(11, 110, 79, 0.08);
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; color: var(--text); margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

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

/* Top bar */
.topbar { background: var(--brand-dark); color: #fff; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--accent); }

/* Header / nav */
header.site { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; max-width: var(--max); margin: 0 auto; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--brand); }
.logo span { color: var(--accent); }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav a { color: var(--text); font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--brand); }
.btn { display: inline-block; background: var(--brand); color: #fff !important; padding: 12px 22px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn-accent { background: var(--accent); color: #1a2b34 !important; }
.btn-accent:hover { background: #e08e4a; }
.btn-outline { background: transparent; color: var(--brand) !important; border: 2px solid var(--brand); }

/* Mobile nav */
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--brand); cursor: pointer; }
@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .nav ul { display: none; position: absolute; top: 100%; right: 0; left: 0; background: #fff; flex-direction: column; padding: 18px 20px; border-bottom: 1px solid var(--border); }
  .nav ul.open { display: flex; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; padding: 70px 20px; text-align: center; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p.lead { font-size: 1.2rem; max-width: 700px; margin: 0 auto 1.5em; opacity: .95; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .trust { margin-top: 28px; font-size: .95rem; opacity: .9; }

/* Sections */
section { padding: 60px 0; }
section.alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* Grid cards */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.card .icon { width: 44px; height: 44px; background: var(--bg-soft); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--brand); margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 12px; }

/* Two-column */
.two-col { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* Lists */
ul.check { list-style: none; padding: 0; }
ul.check li { padding: 8px 0 8px 32px; position: relative; }
ul.check li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--brand); font-weight: bold; }

/* Reviews */
.review { background: #fff; border-left: 4px solid var(--accent); padding: 20px 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.stars { color: var(--accent); margin-bottom: 6px; }
.review-author { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* Areas list */
.areas-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.areas-list a { display: block; padding: 12px 16px; background: #fff; border: 1px solid var(--border); border-radius: 8px; text-align: center; color: var(--text); }
.areas-list a:hover { background: var(--brand); color: #fff; text-decoration: none; border-color: var(--brand); }

/* Final CTA */
.cta-band { background: var(--brand); color: #fff; text-align: center; padding: 60px 20px; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .95; margin-bottom: 24px; }

/* Forms */
form.quote { background: #fff; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; gap: 14px; }
form.quote label { font-weight: 600; font-size: .95rem; }
form.quote input, form.quote textarea, form.quote select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fafcfb; }
form.quote textarea { min-height: 120px; resize: vertical; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; padding-right: 30px; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details > *:not(summary) { margin-top: 12px; color: var(--muted); }

/* Footer */
footer.site { background: #1a2b34; color: #cbd6db; padding: 50px 20px 20px; font-size: .92rem; }
footer.site .container { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
footer.site h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
footer.site a { color: #cbd6db; }
footer.site a:hover { color: var(--accent); }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site ul li { padding: 4px 0; }
footer.site .copy { border-top: 1px solid #2d4048; margin-top: 30px; padding-top: 18px; text-align: center; font-size: .85rem; opacity: .8; grid-column: 1 / -1; }

/* Breadcrumbs */
.crumbs { padding: 14px 0; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Before/After Gallery */
.ba-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 30px; }
.ba-pair { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ba-pair .ba-row { display: grid; grid-template-columns: 1fr 1fr; }
.ba-img { aspect-ratio: 4/3; position: relative; background: linear-gradient(135deg, #e8efeb 25%, #f3f7f5 25%, #f3f7f5 50%, #e8efeb 50%, #e8efeb 75%, #f3f7f5 75%); background-size: 20px 20px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.85rem; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-img .ba-label { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.65); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; z-index: 2; }
.ba-img .ba-label.after { background: var(--brand); }
.ba-caption { padding: 14px 18px; }
.ba-caption h4 { margin: 0 0 4px; font-size: 1rem; color: var(--text); }
.ba-caption p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Cookie consent banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #1a2b34; color: #fff; padding: 16px 20px; box-shadow: 0 -2px 16px rgba(0,0,0,0.18); z-index: 9999; font-size: 0.92rem; line-height: 1.45; }
.cookie-inner { max-width: var(--max); margin: 0 auto; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 240px; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-buttons button { font: inherit; font-weight: 600; padding: 9px 18px; border-radius: 6px; cursor: pointer; border: 0; }
#cookieReject { background: transparent; color: #fff; border: 1px solid #fff; }
#cookieReject:hover { background: rgba(255,255,255,0.1); }
#cookieAccept { background: var(--accent); color: #1a2b34; }
#cookieAccept:hover { background: #e08e4a; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: .9rem; color: var(--muted); }
