/* Carrollton Heating and Air — brand: logo red + blue on navy */
:root {
  --red: #d62828;
  --red-dark: #b01e1e;
  --blue: #1f4e9d;
  --blue-light: #e8eefa;
  --navy: #0f1b2d;
  --ink: #1b2330;
  --muted: #5a6473;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --star: #f5a623;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 27, 45, .08);
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: transform .12s ease, background .12s ease; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-white { background: #fff; color: var(--red); }
.btn-outline-white { border-color: #fff; color: #fff; }

/* Top bar + header */
.topbar { background: var(--navy); color: #cfd6e3; font-size: .875rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 1em; padding: .45em 20px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand img { width: 190px; }
.nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.nav a:not(.btn) { display: block; padding: .5em .8em; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 8px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--red); background: #fdf0f0; }
.nav .btn { margin-left: .5rem; }
.nav-toggle, .nav-btn { display: none; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #172a47 60%, var(--blue) 140%); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero h1 { color: #fff; }
.hero .lede { font-size: 1.2rem; color: #d7deea; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1.25rem; }
.hero-actions .btn-outline { background: transparent; border-color: #fff; color: #fff; }
.hero-img { border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); transform: rotate(1.5deg); }
.rating-badge { display: inline-flex; align-items: center; gap: .6em; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: .45em .9em; border-radius: 999px; color: #fff; text-decoration: none; font-size: .95rem; }
.stars { color: var(--star); letter-spacing: .08em; }

/* Sections */
.section { padding: 4rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .6em; }
.hero .eyebrow { color: #ff8a8a; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-top: .4em; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); }
.icon.red { background: #fdecec; color: var(--red); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checks li { padding-left: 1.9em; position: relative; margin: .55em 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2em; height: 1.2em; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/80% no-repeat; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); margin: 0; }
.review blockquote { margin: .6em 0 1em; color: var(--ink); }
.review figcaption { font-weight: 700; color: var(--navy); font-size: .95rem; }
.review figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.reviews-foot { text-align: center; margin-top: 2rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.1rem 4rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; }

/* Duct banner */
.banner { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 300px; display: grid; place-items: center; text-align: center; padding: 2rem; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 80%; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,27,45,.35), rgba(15,27,45,.8)); }
.banner > div { position: relative; z-index: 1; }
.banner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 3rem 0 2.5rem; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 40em; margin-bottom: 0; }
.float-right { float: right; width: 200px; margin: 0 0 1rem 1.5rem; }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--red) 0%, #a81c1c 100%); color: #fff; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 2.6rem; padding-bottom: 2.6rem; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .25em; }
.cta p { margin: 0; color: #ffe1e1; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; margin-bottom: .3em; }
label .req { color: var(--red); }
input, textarea, select {
  width: 100%; font: inherit; padding: .7em .85em; border: 1.5px solid #cfd6e1; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,78,157,.15); }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: #e9f7ef; color: #13693a; }
.form-msg.err { display: block; background: #fdecec; color: #8d1c1c; }
.side-card { background: var(--navy); color: #d7deea; border-radius: var(--radius); padding: 1.8rem; }
.side-card h2, .side-card h3 { color: #fff; }
.side-card a { color: #fff; }
.side-phone { font-size: 1.6rem; font-weight: 800; text-decoration: none; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c3d3; padding-top: 3rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #fff; }
.footer-logo { width: 180px; background: #fff; padding: 10px 14px; border-radius: 10px; margin-bottom: 1rem; }
.footer-phone { font-size: 1.4rem; font-weight: 800; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1rem; padding-bottom: 5.5rem; font-size: .85rem; color: #8995a8; }

.call-fab { display: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-in, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .hero-img { max-width: 360px; margin: 0 auto; }
  .cards, .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .float-right { float: none; margin: 0 auto 1rem; }
  .nav-btn { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
  .nav-btn span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: .5rem 20px 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-toggle:checked ~ ul { display: flex; }
  .nav .btn { margin: .5rem 0 0; }
  .brand img { width: 150px; }
  .call-fab {
    display: inline-flex; align-items: center; gap: .5em; position: fixed; right: 16px; bottom: 16px; z-index: 60;
    background: var(--red); color: #fff; padding: .85em 1.2em; border-radius: 999px; font-weight: 800; text-decoration: none;
    box-shadow: 0 10px 24px rgba(214,40,40,.4);
  }
  .section { padding: 3rem 0; }
}
