/*
Theme Name: BH Air Duct Services
Theme URI: https://bhairductservices.com/
Author: BH Air Duct Services
Description: One-page theme for BH Air Duct Services - air duct, dryer vent and HVAC system cleaning in Garden City, NY and Nassau County. Graphite and lime "fresh air" design with Space Grotesk headings, editorial service rows, a checklist of warning signs and animated airflow in the hero.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: bh-airduct
*/

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------ */
:root {
  --ink: #17211f;
  --ink-2: #222e2b;
  --ink-3: #34423e;
  --lime: #c4f24b;
  --lime-dk: #7da70b;
  --air: #8cc7ff;
  --fog: #eef2ef;
  --fog-2: #e2e9e4;
  --paper: #ffffff;
  --text: #36413e;
  --muted: #66726e;
  --line: #d9e1dc;
  --r: 10px;
  --shadow: 0 26px 50px -30px rgba(23, 33, 31, .55);
  --shadow-sm: 0 12px 26px -18px rgba(23, 33, 31, .45);
  --display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--paper); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime-dk); text-underline-offset: 3px; }
a:hover { color: var(--lime-dk); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.08; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-family: var(--display); font-size: 1.24rem; font-weight: 700; letter-spacing: -.015em; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg[aria-hidden] { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 104px 0; position: relative; }
.sec--fog { background: var(--fog); }
.sec--ink { background: var(--ink); color: #c5d0cc; }
.sec--ink h2, .sec--ink h3 { color: #fff; }
[id] { scroll-margin-top: 90px; }
.center { text-align: center; }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 60ch; }
.sec--ink .lead { color: #a9b6b1; }
.center .lead { margin-left: auto; margin-right: auto; }
.head { margin-bottom: 56px; }
.head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; }
.head--split .lead { margin: 0; }
.note { font-size: .88rem; color: var(--muted); }

.tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(196, 242, 75, .3); }
.sec--ink .tag, .hero .tag { color: var(--lime); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--lime-dk); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: var(--r); border: 1.5px solid transparent; font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1.2; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #d4ff63; color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); color: #fff; }
.btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--line:hover { border-color: var(--lime); color: var(--lime); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--fog); color: var(--ink); }
.btn--sm { padding: 12px 18px; font-size: .94rem; }

/* ------------------------------------------------------------------
   Top bar + nav
------------------------------------------------------------------ */
.topbar { background: var(--lime); color: var(--ink); font-size: .87rem; font-weight: 600; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 40px; flex-wrap: wrap; }
.topbar ul { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar li { display: flex; align-items: center; gap: 8px; }
.topbar a { color: var(--ink); font-weight: 700; text-decoration: none; }

.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 46px; height: 46px; }
.brand > span { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.brand b { font-family: var(--display); font-size: 1.32rem; font-weight: 700; letter-spacing: -.03em; }
.brand span span { font-size: .74rem; color: var(--lime); margin-top: 5px; font-weight: 500; }

.menu { display: flex; gap: 6px; }
.menu a { color: #d6dfdb; font-weight: 500; font-size: .95rem; white-space: nowrap; text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.menu a:hover { background: var(--ink-3); color: #fff; }

.navside { display: flex; align-items: center; gap: 18px; }
.burger { display: none; width: 46px; height: 46px; border: 1.5px solid rgba(255, 255, 255, .25); background: transparent; border-radius: var(--r); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger i { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */
.hero { position: relative; background: var(--ink); color: #c5d0cc; padding: 76px 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 420px at 80% 20%, rgba(140, 199, 255, .14), transparent 70%), radial-gradient(500px 400px at 10% 90%, rgba(196, 242, 75, .08), transparent 70%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }
.hero__txt { padding-bottom: 80px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { color: #b4c1bc; font-size: 1.18rem; margin-bottom: 30px; }
.hero__acts { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__checks li { display: flex; align-items: center; gap: 8px; font-weight: 500; color: #fff; font-size: .93rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 7px 14px 7px 10px; }
.hero__checks svg { color: var(--lime); }
.hero__art { position: relative; align-self: end; }
.hero__art img { width: 100%; border-radius: 18px 18px 0 0; }
.hero__badge { position: absolute; left: -28px; top: 44px; background: var(--lime); color: var(--ink); border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow); }
.hero__badge b { display: block; font-family: var(--display); font-size: 1.2rem; line-height: 1.1; }
.hero__badge small { font-size: .84rem; font-weight: 500; }

/* Stats */
.stats { background: var(--fog); }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 30px 24px 30px 0; display: flex; gap: 14px; align-items: flex-start; }
.stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.stats svg { width: 28px; height: 28px; color: var(--lime-dk); margin-top: 2px; }
.stats b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--ink); line-height: 1.2; }
.stats span { font-size: .88rem; color: var(--muted); }

/* ------------------------------------------------------------------
   Services - editorial rows
------------------------------------------------------------------ */
.services { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 1.5px solid var(--ink); }
.svc { display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc__ico { grid-row: span 2; width: 56px; height: 56px; border-radius: 14px; background: var(--fog); color: var(--ink); display: grid; place-items: center; transition: background .2s ease; }
.svc:hover .svc__ico { background: var(--lime); }
.svc__ico svg { width: 28px; height: 28px; }
.svc h3 { margin: 4px 0 0; }
.svc h3 small { font-family: var(--sans); font-size: .78rem; font-weight: 600; color: var(--lime-dk); margin-left: 6px; white-space: nowrap; }
.svc p { font-size: .96rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------
   Warning signs - checklist
------------------------------------------------------------------ */
.signs { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; background: var(--ink-2); border-radius: var(--r); padding: 18px; }
.checklist .box { flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--lime); color: var(--ink); display: grid; place-items: center; margin-top: 1px; }
.checklist .box svg { width: 16px; height: 16px; }
.checklist b { display: block; color: #fff; font-size: 1rem; margin-bottom: 2px; }
.checklist p { margin: 0; font-size: .9rem; color: #a9b6b1; }
.signs__alert { margin-top: 30px; display: flex; gap: 14px; align-items: flex-start; border-left: 4px solid #ff7a59; background: rgba(255, 122, 89, .1); border-radius: 0 var(--r) var(--r) 0; padding: 18px 20px; color: #ffd9cd; font-size: .95rem; }
.signs__alert svg { color: #ff7a59; width: 24px; height: 24px; margin-top: 2px; }
.signs__alert b { color: #fff; }

/* ------------------------------------------------------------------
   Work gallery
------------------------------------------------------------------ */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work { border-radius: 16px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work div { padding: 22px 24px 26px; }
.work span { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--lime); padding: 3px 10px; border-radius: 6px; margin-bottom: 10px; }
.work p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------------------
   Why us
------------------------------------------------------------------ */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why__art img { border-radius: 20px; width: 100%; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; margin-top: 32px; }
.why__list li { border-top: 1.5px solid var(--ink); padding-top: 14px; }
.why__list span { display: block; color: var(--lime-dk); margin-bottom: 8px; }
.why__list span svg { width: 26px; height: 26px; }
.why__list b { display: block; color: var(--ink); margin-bottom: 4px; font-family: var(--display); font-size: 1.08rem; }
.why__list p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ------------------------------------------------------------------
   Process
------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; background: var(--paper); border-radius: 16px; padding: 26px 22px; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--display); font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; color: var(--ink); line-height: 1; margin-bottom: 16px; }
.step::after { content: ""; position: absolute; left: 22px; top: 72px; width: 36px; height: 4px; border-radius: 2px; background: var(--lime); }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------------------
   Areas
------------------------------------------------------------------ */
.areas { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.towns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.towns li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; font-weight: 500; color: var(--ink); font-size: .94rem; background: var(--paper); }
.towns li svg { color: var(--lime-dk); width: 15px; height: 15px; }
.towns li.home { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.towns li.home svg { color: var(--lime); }

/* ------------------------------------------------------------------
   FAQ
------------------------------------------------------------------ */
.faqwrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1.5px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 50px 22px 0; font-family: var(--display); font-weight: 600; color: var(--ink); position: relative; font-size: 1.12rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--fog) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%2317211f' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s ease, background-color .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--lime); }
.faq details > div { padding: 0 0 22px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* ------------------------------------------------------------------
   Contact
------------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.form { background: var(--paper); border-radius: 20px; padding: 40px; border: 1.5px solid var(--ink); }
.form h3 { font-size: 1.7rem; letter-spacing: -.03em; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.fgrid .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--fog); border: 1.5px solid transparent; border-radius: var(--r); padding: 13px 15px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.form textarea { min-height: 110px; resize: vertical; }
.form .btn { width: 100%; margin-top: 20px; }
.hp { position: absolute; left: -9999px; }
.alert { border-radius: var(--r); padding: 14px 18px; font-weight: 600; margin-top: 16px; }
.alert--ok { background: #eafbc6; color: #33490a; }
.alert--err { background: #ffe5dc; color: #8a2a12; }

.info { display: grid; gap: 14px; }
.card { background: var(--fog); border-radius: 16px; padding: 24px 26px; }
.card h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-family: var(--display); }
.card h4 svg { color: var(--lime-dk); }
.card p { margin: 0; }
.card .big { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: -.02em; }
.sec--fog .card { background: var(--paper); }
.card--ink, .sec--fog .card--ink { background: var(--ink); color: #c5d0cc; }
.card--ink h4 { color: var(--lime); }
.card--ink h4 svg { color: var(--lime); }
.hours { width: 100%; border-collapse: collapse; font-size: .94rem; }
.hours td { padding: 4px 0; }
.hours td + td { text-align: right; font-weight: 700; color: var(--ink); }

.map { margin-top: 56px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }
.map__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 24px; background: var(--fog); }
.map__bar b { color: var(--ink); }

/* ------------------------------------------------------------------
   CTA + footer
------------------------------------------------------------------ */
.cta { background: var(--lime); color: var(--ink); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='200' viewBox='0 0 600 200'%3E%3Cg fill='none' stroke='%2317211f' stroke-opacity='.08' stroke-width='3'%3E%3Cpath d='M0 50c100-40 200 40 300 0s200-40 300 0'/%3E%3Cpath d='M0 100c100-40 200 40 300 0s200-40 300 0'/%3E%3Cpath d='M0 150c100-40 200 40 300 0s200-40 300 0'/%3E%3C/g%3E%3C/svg%3E") right center / 600px 200px repeat-x; }
.cta .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-top: 60px; padding-bottom: 60px; flex-wrap: wrap; }
.cta h2 { margin-bottom: 6px; }
.cta p { margin: 0; font-size: 1.1rem; }
.cta__acts { display: flex; gap: 14px; flex-wrap: wrap; }

.foot { background: var(--ink); color: #a9b6b1; font-size: .94rem; padding-top: 76px; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.foot h4 { color: #fff; font-family: var(--display); font-size: .95rem; margin-bottom: 16px; }
.foot li { margin-bottom: 10px; }
.foot a { color: #dfe7e3; text-decoration: none; }
.foot a:hover { color: var(--lime); }
.foot__base { margin-top: 56px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

.dock { display: none; }

/* WordPress content */
.entry img { border-radius: var(--r); }
.entry h2, .entry h3 { margin-top: 1.4em; }
.entry ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 1140px) {
  .burger { display: flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--ink); box-shadow: var(--shadow); padding: 8px 0; }
  .menu.open { display: flex; }
  .menu a { padding: 15px 24px; border-radius: 0; }
}

@media (max-width: 960px) {
  .sec { padding: 80px 0; }
  .hero { padding-top: 56px; }
  .hero .wrap, .why, .areas, .contact, .signs, .faqwrap, .head--split { grid-template-columns: 1fr; gap: 40px; }
  .head--split { gap: 14px; }
  .hero__txt { padding-bottom: 0; }
  .hero__art { max-width: 600px; }
  .hero__badge { left: 12px; top: 16px; }
  .stats ul { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .services { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .wrap { padding: 0 16px; }
  .sec { padding: 64px 0; }
  .head { margin-bottom: 36px; }
  .topbar .wrap { justify-content: center; padding-top: 8px; padding-bottom: 8px; }
  .topbar ul { gap: 6px 16px; justify-content: center; }
  .topbar .topbar__addr { display: none; }
  .nav .wrap { min-height: 66px; }
  .brand img { width: 40px; height: 40px; }
  .brand b { font-size: 1.14rem; }
  .navside .btn { display: none; }
  .hero__acts .btn { flex: 1 1 100%; }
  .stats ul { grid-template-columns: 1fr; }
  .stats li, .stats li + li { padding: 18px 0; border-left: 0; }
  .stats li + li { border-top: 1px solid var(--line); }
  .checklist, .works, .steps, .fgrid, .why__list { grid-template-columns: 1fr; }
  .towns { grid-template-columns: 1fr 1fr; }
  .form { padding: 28px 20px; }
  .map iframe { height: 320px; }
  .cta .wrap { padding-top: 50px; padding-bottom: 50px; }
  .cta__acts, .cta__acts .btn { width: 100%; }
  .foot__grid { grid-template-columns: 1fr; gap: 30px; }

  .dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--lime); color: var(--ink); font-family: var(--display); font-weight: 700; border-radius: var(--r); padding: 15px; text-decoration: none; }
}

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