/* Ridgeline Painting Co. (sample) — mobile-first styles */
:root {
  --green: #23443a;
  --green-dark: #182f28;
  --cream: #f7f3ea;
  --gold: #d99a2b;
  --ink: #22262a;
  --muted: #5f655f;
  --line: #e3ddd0;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: #fff; padding-bottom: 60px; }
h1, h2, h3 { font-family: var(--serif); color: var(--green); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--green); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.kicker { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: #a06d12; margin-bottom: 0.4rem; }
.hint { font-size: 0.95rem; color: var(--muted); font-style: italic; }
svg { display: block; max-width: 100%; }

/* Buttons */
.btn { display: inline-block; padding: 0.85rem 1.4rem; border-radius: 6px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { background: #e6aa40; }
.btn-line { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-green { background: var(--green); color: #fff; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--green); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; font: 700 1.2rem var(--serif); }
.brand svg { width: 32px; height: 32px; }
.brand em { font-style: normal; font-weight: 400; opacity: 0.85; }
.nav { display: none; }
.call { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--gold); color: var(--green-dark); padding: 0.5rem 0.8rem; border-radius: 6px; text-decoration: none; font-weight: 700; }
.call svg { width: 18px; height: 18px; }
.call span { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; gap: 1.5rem; }
  .nav a { color: #e9efe9; text-decoration: none; font-weight: 600; }
  .nav a:hover { color: var(--gold); }
  .call span { display: inline; }
}

/* Hero */
.hero { background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%); color: #e9efe9; padding: 3rem 0 3.5rem; }
.hero h1 { color: #fff; }
.hero .kicker { color: var(--gold); }
.lead { font-size: 1.15rem; max-width: 36rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 2rem; }
.badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.badges li { border-left: 3px solid var(--gold); padding-left: 0.6rem; font-size: 0.85rem; line-height: 1.3; }
.badges strong { display: block; color: #fff; font-size: 0.95rem; }
.hero-art { margin-top: 2.5rem; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
@media (min-width: 900px) {
  .hero { padding: 5rem 0; }
  .hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
  .hero-art { margin-top: 0; }
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green); color: #e9efe9; }
.section-green h2 { color: #fff; }
.section-green .kicker { color: var(--gold); }
@media (min-width: 900px) { .section { padding: 5.5rem 0; } }

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.3fr; gap: 4rem; }
  .split-reverse { grid-template-columns: 1.3fr 1fr; }
  .split-top { align-items: start; grid-template-columns: 1fr 1fr; }
}

/* Services */
.services { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 8px; padding: 1.4rem; background: #fff; }
.service p { color: var(--muted); }
.service .price { color: var(--green); font-weight: 700; margin: 0; }

/* Before / after slider */
.compare { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 8 / 5; box-shadow: 0 10px 30px rgba(0,0,0,0.15); --pos: 50%; }
.compare-img { position: absolute; inset: 0; }
.compare-img svg { width: 100%; height: 100%; }
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; pointer-events: none; }
.compare-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--green); display: grid; place-items: center; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-label { position: absolute; top: 0.75rem; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 4px; pointer-events: none; }
.compare-label.left { left: 0.75rem; }
.compare-label.right { right: 0.75rem; }

/* Color visualizer */
.visualizer { border-radius: 12px; overflow: hidden; background: #dbe9f2; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.swatch-group { margin-bottom: 1rem; }
.swatch-group h3 { font: 700 0.9rem var(--sans); color: var(--ink); margin-bottom: 0.4rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--green); }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.filter { font: inherit; font-weight: 600; padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--green); background: #fff; color: var(--green); cursor: pointer; }
.filter.is-active { background: var(--green); color: #fff; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile { padding: 0; border: 0; background: #fff; border-radius: 10px; overflow: hidden; cursor: pointer; text-align: left; font: inherit; box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: transform 0.15s; }
.tile:hover { transform: translateY(-3px); }
.tile svg { aspect-ratio: 8 / 5; width: 100%; height: auto; }
.tile span { display: block; padding: 0.75rem 1rem; font-weight: 700; color: var(--green); }
.tile small { display: block; font-weight: 400; color: var(--muted); }
.lightbox { border: 0; border-radius: 12px; padding: 0; max-width: min(720px, 92vw); }
.lightbox::backdrop { background: rgba(0,0,0,0.6); }
.lightbox-text { padding: 1.25rem 1.5rem 1.5rem; }

/* Process */
.process { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; counter-reset: s; }
.process li { counter-increment: s; padding: 1.25rem; border-radius: 8px; background: var(--cream); }
.process li::before { content: "0" counter(s); font: 700 1.6rem var(--serif); color: var(--gold); }
.process p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .process { grid-template-columns: repeat(4, 1fr); } }

/* Reviews */
.reviews { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; background: rgba(255,255,255,0.07); border-radius: 10px; padding: 1.5rem; }
.stars { color: var(--gold); letter-spacing: 2px; }
.review blockquote { margin: 0.5rem 0 1rem; font: italic 1.1rem/1.5 var(--serif); color: #fff; }
.review figcaption { font-size: 0.9rem; opacity: 0.85; }

/* Areas + FAQ */
.areas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.areas li { padding: 0.6rem 0.8rem; border-radius: 6px; background: var(--cream); font-weight: 600; }
.areas li::before { content: "\25CF  "; color: var(--gold); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 0.9rem 0; font-weight: 700; color: var(--green); }
.faq details p { color: var(--muted); }

/* Form */
.checks { list-style: none; padding: 0; }
.checks li::before { content: "\2713  "; color: var(--gold); font-weight: 700; }
.form { background: #fff; padding: 1.5rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); display: grid; gap: 1rem; }
.form label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; padding: 0.7rem; border: 1px solid #c9c2b2; border-radius: 6px; width: 100%; background: #fff; }
.form fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 0.75rem 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.form legend { font-weight: 600; font-size: 0.95rem; padding: 0 0.3rem; }
.form .check { display: flex; align-items: center; gap: 0.4rem; font-weight: 400; }
.form .check input { width: auto; }
.row { display: grid; gap: 1rem; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }

/* Footer */
.footer { background: var(--green-dark); color: #c6d1c9; padding: 3rem 0 1.5rem; font-size: 0.95rem; }
.footer a { color: var(--gold); }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font: 700 1.3rem var(--serif); color: #fff; margin-bottom: 0.4rem; }
.footer-head { color: #fff; font-weight: 700; margin-bottom: 0.3rem; }
.footer-note { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }

/* Sticky bottom bar on phones */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -2px 10px rgba(0,0,0,0.15); }
.mobile-bar a { padding: 1rem; text-align: center; font-weight: 700; text-decoration: none; background: var(--green); color: #fff; }
.mobile-bar a.gold { background: var(--gold); color: var(--green-dark); }
@media (min-width: 900px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile { transition: none; } }
