/* Greenley Heating & Cooling — site styles
   Brand colors come from the logo: blue #1d6fb8, red #d42a30. */
:root {
  --blue: #1d6fb8;
  --blue-dark: #155a96;
  --navy: #0f2c4c;
  --red: #d42a30;
  --red-dark: #b31f25;
  --ink: #1f2933;
  --muted: #52606d;
  --line: #d9e2ec;
  --soft: #f1f6fb;
  --cream: #fff8ec;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(15, 44, 76, .10);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.soft { background: var(--soft); }
.section.cream { background: var(--cream); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .5em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.1;
  transition: background .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: #fff; background: transparent; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }

/* Top bar + header */
.topbar { background: var(--navy); color: #dbe7f3; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.logo img { width: 230px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--soft); color: var(--blue); }
.nav .btn { margin-left: 8px; color: #fff; padding: .7em 1.1em; }
.nav .btn:hover { color: #fff; background: var(--red-dark); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--navy); border: 2px solid var(--line); border-radius: 10px; padding: 6px 12px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 12px; left: 12px; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; display: grid; }
.menu nav a { padding: 12px; text-decoration: none; color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--soft); }

/* Hero */
.hero {
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(212,42,48,.35), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(29,111,184,.55), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, #13406e 100%);
  padding: 72px 0 80px;
  position: relative; overflow: hidden;
}
.hero h1 { color: #fff; max-width: 780px; }
.hero .lead { color: #d6e4f2; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hero-card h2 { font-size: 1.35rem; margin-bottom: .3em; }
.hero-card .price { font-size: 3rem; font-weight: 800; color: var(--red); line-height: 1; }
.hero-card ul { margin: .8em 0 1em; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; }
.stars { color: #ffc940; letter-spacing: 1px; }
.page-hero { padding: 54px 0 56px; }
.crumbs { font-size: .85rem; color: #b9cde2; margin-bottom: 10px; }
.crumbs a { color: #fff; }

/* Affordable-replacement promo strip under the home hero */
.promo { background: var(--cream); border-bottom: 1px solid #f1dfc0; }
.promo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: 1.05rem; }
.promo strong { color: var(--red); }

/* Cards & grids */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 8px rgba(15,44,76,.04); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; display: block; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card .more { color: var(--blue); font-weight: 700; font-size: .95rem; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: var(--soft); margin-bottom: 12px; }
.icon.red { background: #fdecec; }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why .num { font-size: 2.2rem; font-weight: 800; color: var(--blue); line-height: 1; }
.why .num.red { color: var(--red); }

/* Reviews */
.review { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; }
.review blockquote { margin: 10px 0 14px; font-size: 1.02rem; flex: 1; }
.review cite { font-style: normal; font-weight: 700; color: var(--navy); font-size: .92rem; }
.review cite span { font-weight: 400; color: var(--muted); }

/* Split layout for inner pages */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.2em; }
.aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.aside .card.cta { background: var(--navy); color: #dbe7f3; border: 0; }
.aside .card.cta h3 { color: #fff; }
.aside .card.cta .btn { width: 100%; margin-top: 8px; }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.7em; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800; }

.callout { background: var(--cream); border-left: 5px solid var(--red); border-radius: 10px; padding: 18px 20px; margin: 1.2em 0; }
.callout.blue { background: var(--soft); border-left-color: var(--blue); }

table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .95rem; }
th { background: var(--navy); color: #fff; text-align: left; padding: 10px 12px; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.faq details p { margin: .7em 0 0; }

/* Areas */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.area-list li a, .area-list li span { display: inline-block; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--navy); }
.area-list li a:hover { border-color: var(--blue); color: var(--blue); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--red) 0%, #a81e24 100%); color: #fff; padding: 48px 0; }
.cta-band h2 { color: #fff; margin: 0 0 .2em; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band p { margin: 0; color: #ffe1e1; }
.cta-band .btn-white { background: #fff; color: var(--red); }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { font-weight: 600; color: var(--navy); font-size: .95rem; display: grid; gap: 6px; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1.5px solid #b8c6d6; border-radius: 10px; width: 100%; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(29,111,184,.25); border-color: var(--blue); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hidden { display: none; }

/* Footer */
.footer { background: var(--navy); color: #c3d3e4; padding: 52px 0 110px; font-size: .95rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.footer a { color: #e3edf7; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; padding: 0; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer .mark { width: 64px; margin-bottom: 12px; background: #fff; border-radius: 50%; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; font-size: .85rem; }

/* Sticky mobile call bar */
.callbar { display: none; }

/* Draft markers — things John needs to confirm before launch. Remove when done. */
.todo { background: #fff3bf; outline: 2px dashed #e0a800; padding: 0 4px; border-radius: 4px; }

@media (max-width: 1120px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .g3, .g4, .why { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .aside { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 46px 0; }
  .hero { padding: 44px 0 52px; }
  .logo img { width: 180px; }
  .g2, .g3, .g4, .why, .form .row { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff;
    box-shadow: 0 -4px 18px rgba(0,0,0,.12);
  }
  .callbar .btn { width: 100%; padding: .9em .6em; }
}
