/* trades template: plumbing, HVAC, roofing, tree and land work, appliance repair.
   Mobile-first; tap-to-call above the fold and in a sticky bar. Colors come from theme.css. */

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { font: 800 1.15rem/1.1 var(--font-display); text-decoration: none; color: var(--primary); letter-spacing: -.01em; margin-right: auto; }
.nav { display: none; gap: 26px; font-weight: 600; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.topbar-call { display: none; padding: .75em 1.2em; font-size: .95rem; }
@media (min-width: 900px) { .nav { display: flex; } }
@media (min-width: 640px) { .topbar-call { display: inline-flex; } }

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 10, .25) 0%, rgba(10, 14, 10, .35) 40%, rgba(10, 14, 10, .88) 100%); }
.hero-inner { padding-top: 120px; padding-bottom: clamp(40px, 7vw, 88px); }
.hero h1 { max-width: 16ch; text-wrap: balance; }
.hero .h1-kicker { color: #fff; max-width: none; }
.hero-sub { font-size: clamp(1.08rem, 1.8vw, 1.3rem); max-width: 52ch; color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.btn-lg { font-size: 1.06rem; padding: 1.05em 1.7em; }
.rating-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px); padding: 8px 14px; border-radius: 999px; font-size: .92rem; font-weight: 600; text-decoration: none; margin-bottom: 20px; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; font-size: .95rem; }
.badges li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }

/* Services */
.services { display: grid; gap: 18px; margin-top: 36px; grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .services--feature .service:first-child { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(4, 1fr); }
  .services--feature .service:first-child { display: grid; grid-template-columns: 1fr 1fr; }
  .services--feature .service:first-child img { height: 100%; aspect-ratio: auto; }
  .services--feature .service:first-child .service-body { align-self: center; padding: 24px 26px; }
}
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.service img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service-body { padding: 20px 22px 8px; }
.service-body p { color: var(--ink-soft); font-size: 1rem; }

/* Why us */
.why { background: var(--primary); color: #fff; }
.why .lead { color: rgba(255, 255, 255, .82); }
.why h2 { color: #fff; }
.why .eyebrow { color: var(--accent); }
.why-grid { display: grid; gap: 40px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why-list li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 20px 22px; }
.why-list h3 { margin-bottom: 6px; }
.why-list h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.why-list p { margin: 0; color: rgba(255, 255, 255, .8); }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1fr 1.15fr; align-items: start; } }

/* Reviews */
.reviews { background: var(--paper-2); }
.reviews-head { display: grid; gap: 24px; align-items: center; margin-bottom: 36px; }
.score { display: grid; justify-items: start; gap: 4px; }
.score-num { font: 800 4.5rem/1 var(--font-display); color: var(--primary); }
.score .stars { font-size: 1.3rem; }
.score-count { font-weight: 600; color: var(--ink-soft); }
@media (min-width: 760px) { .reviews-head { grid-template-columns: auto 1fr; gap: 56px; } }
.quotes { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .quotes { grid-template-columns: 1fr; } }
.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.quote-stars { margin: 0 0 10px; font-size: 1.15rem; line-height: 1; }
.quote blockquote { margin: 0 0 16px; font-size: 1.06rem; flex: 1; }
.quote figcaption { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.quotes-note { margin: 14px 0 0; font-size: .85rem; color: var(--ink-soft); }
.reviews-link { margin: 24px 0 0; }

/* Gallery */
.gallery { display: grid; gap: 10px; margin-top: 32px; grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.facts { margin: 32px 0 0; display: grid; gap: 18px; }
.facts dt { font-size: .95rem; font-weight: 700; color: var(--ink-soft); }
.facts dd { margin: 4px 0 0; }
.hours-row { display: flex; gap: 12px; justify-content: space-between; max-width: 320px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 6px; }
.form input, .form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #cfccc1; border-radius: 10px; background: var(--paper); }
.form button { width: 100%; margin-top: 18px; }
.form-note { font-size: .88rem; color: var(--ink-soft); margin: 12px 0 0; }

/* Sticky call bar on phones */
.callbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; justify-content: center;
  background: var(--accent); color: var(--on-accent); font-weight: 800; text-decoration: none; padding: 16px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
@media (min-width: 760px) { .callbar { display: none; } }

/* Optional made-up-business note (site.json "demo_note"; off unless a site sets it) */
.demo-note { margin: 0; background: #fff4d6; color: #3d2f00; border-bottom: 1px solid #e8d8a8; font-size: .9rem; font-weight: 600; text-align: center; padding: 10px var(--gutter); }
