/* Pioneer Chimney Sweep Co — main stylesheet */
:root {
  --ink: #1b1714;
  --ink-soft: #3a332d;
  --charcoal: #24201c;
  --ember: #d4521a;
  --ember-dark: #b0410f;
  --gold: #e8a33d;
  --cream: #faf6f0;
  --sand: #f0e8dc;
  --white: #ffffff;
  --muted: #6b625a;
  --line: #e4dbcd;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 23, 20, 0.12);
  --shadow-sm: 0 4px 14px rgba(27, 23, 20, 0.08);
  --max: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-soft);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--ember-dark); text-decoration: none; }
a:hover { color: var(--ember); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--charcoal); color: #e9e1d6; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ember); margin-bottom: 12px;
}
.section-dark .eyebrow { color: var(--gold); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: #cfc5b8; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ember); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s;
  font-family: var(--sans); text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ember); color: #fff; box-shadow: 0 8px 20px rgba(212, 82, 26, .35); }
.btn-primary:hover { background: var(--ember-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ember); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Top bar */
.topbar { background: var(--ink); color: #d9cfc2; font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--gold); }
.topbar-group { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.topbar svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; fill: var(--gold); }
.open-badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.open-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #8a8178; }
.open-badge.is-open::before { background: #3ecf6e; box-shadow: 0 0 0 4px rgba(62,207,110,.2); }
.open-badge.is-closed::before { background: #e5584a; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.28rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ember); font-weight: 700; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.link { color: var(--ink); font-weight: 600; padding: 10px 14px; border-radius: 8px; font-size: .98rem; }
.nav a.link:hover, .nav a.link.active { color: var(--ember); background: var(--sand); }
.nav .btn { margin-left: 10px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 3px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; color: #fff; background: var(--charcoal); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(20,16,13,.9) 0%, rgba(20,16,13,.72) 48%, rgba(20,16,13,.3) 100%); }
.hero .container { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 110px; }
.hero-content { max-width: 680px; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--gold); }
.hero p.lead { font-size: 1.2rem; color: #ece4d8; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: .95rem; color: #e6dccd; }
.hero-badges li { list-style: none; display: flex; align-items: center; gap: 8px; }
.hero-badges { padding: 0; }
.hero-badges svg { width: 18px; height: 18px; fill: var(--gold); flex: none; }
.page-hero .container { padding-top: 84px; padding-bottom: 84px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.crumbs { font-size: .9rem; color: #d3c8b9; margin-bottom: 14px; }
.crumbs a { color: var(--gold); }

/* Feature strip */
.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.strip-item { padding: 26px 22px; display: flex; gap: 14px; align-items: flex-start; border-right: 1px solid var(--line); }
.strip-item:last-child { border-right: 0; }
.strip-item svg { width: 34px; height: 34px; fill: var(--ember); flex: none; }
.strip-item strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }
.strip-item span { font-size: .92rem; color: var(--muted); line-height: 1.4; display: block; }

/* Grids & cards */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media .tag {
  position: absolute; left: -14px; bottom: 24px; background: var(--ember); color: #fff;
  padding: 14px 20px; border-radius: 12px; font-family: var(--serif); box-shadow: var(--shadow); max-width: 220px; line-height: 1.3;
}
.split-media .tag b { display: block; font-size: 1.5rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 11px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ember) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .98rem; }
.card-link { margin-top: auto; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.card-link::after { content: "→"; transition: transform .2s; }
.card-link:hover::after { transform: translateX(5px); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 30px 26px; }
.feature .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ember); display: grid; place-items: center; margin-bottom: 18px; }
.feature .icon svg { width: 26px; height: 26px; fill: #fff; }
.feature p { color: #d3c9bb; font-size: .98rem; margin: 0; }
.light-features .feature { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-sm); }
.light-features .feature h3 { color: var(--ink); }
.light-features .feature p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 24px 26px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: -20px; left: 24px;
  width: 42px; height: 42px; border-radius: 50%; background: var(--ember); color: #fff; font-family: var(--serif);
  font-weight: 700; font-size: 1.2rem; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(212,82,26,.4);
}
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 1 / 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.07); }

.cta-band { background: linear-gradient(120deg, var(--ember-dark), var(--ember)); color: #fff; padding: 64px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0; color: #ffe9dc; }
.cta-band .btn-light { background: #fff; color: var(--ember-dark); }
.cta-band .btn-light:hover { background: var(--ink); color: #fff; }

/* Service detail blocks */
.service-block { padding: 70px 0; border-bottom: 1px solid var(--line); }
.service-block:last-of-type { border-bottom: 0; }
.service-block h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.price-note { display: inline-block; background: var(--sand); border-radius: 999px; padding: 6px 16px; font-size: .88rem; font-weight: 600; color: var(--ink); margin: 6px 0 18px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.stat { background: var(--white); border-radius: 12px; border: 1px solid var(--line); padding: 18px 16px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ember); }
.stat span { font-size: .85rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 56px 20px 22px; font-family: var(--serif); font-size: 1.12rem; color: var(--ink); font-weight: 700; cursor: pointer; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.7rem; color: var(--ember); transition: transform .25s; font-family: var(--sans); }
.faq-q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.info-list { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.info-card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--ember); display: grid; place-items: center; flex: none; }
.info-card .ic svg { width: 24px; height: 24px; fill: #fff; }
.contact-grid > * { min-width: 0; }
.info-card > div:last-child { min-width: 0; }
.info-card h3 { font-size: 1.05rem; margin: 0 0 3px; }
.info-card p { margin: 0; color: var(--muted); font-size: .98rem; overflow-wrap: anywhere; }
.info-card a { font-weight: 600; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: .96rem; }
.hours-table td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.hours-table tr.today td { color: var(--ember-dark); font-weight: 700; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink);
  background: var(--cream); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px rgba(212,82,26,.15); background: #fff; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d6392b; }
.field .error { display: none; color: #d6392b; font-size: .85rem; margin-top: 5px; }
.field.invalid .error { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: #e5f6ea; color: #1d6b37; }
.form-status.err { display: block; background: #fdeceb; color: #a02a20; }
.map-wrap { margin-top: 50px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 400px; border: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #cdc3b5; padding-top: 70px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.site-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 16px; }
.site-footer a { color: #cdc3b5; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand-name small { color: var(--gold); }
.contact-line { display: flex; gap: 11px; margin-bottom: 12px; align-items: flex-start; }
.contact-line svg { width: 18px; height: 18px; fill: var(--gold); flex: none; margin-top: 4px; }
.footer-hours li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255,255,255,.14); padding-bottom: 7px; }
.footer-hours li span:last-child { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Mobile call bar */
.call-bar { display: none; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .card, .gallery img { transition: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(2) { border-right: 0; }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards, .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 22px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a.link { padding: 14px 12px; }
  .nav .btn { margin: 10px 0 0; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .split-media .tag { left: 14px; }
  .hero .container { padding-top: 76px; padding-bottom: 76px; }
  .section { padding: 64px 0; }
  .topbar-group.hide-sm { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .cards, .features, .steps { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip-item:last-child { border-bottom: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px 20px; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .brand-name { font-size: 1.1rem; }
  .brand-mark { width: 40px; height: 40px; }
  .call-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--ember);
    box-shadow: 0 -4px 16px rgba(0,0,0,.2);
  }
  .call-bar a { flex: 1; color: #fff; font-weight: 700; padding: 15px 10px; text-align: center; }
  .call-bar a + a { background: var(--ember-dark); }
}
