/* Empire State Heating & Air — modern, high-end HVAC refresh.
   Palette: deep navy / charcoal with a warm copper accent.
   Typography: system UI sans (no remote fonts). All assets are self-hosted. */
:root {
  --navy: #102033;
  --navy-2: #173049;
  --ink: #1A222C;
  --text: #3A4450;
  --muted: #5C6B78;
  --copper: #8A4C18;
  --copper-2: #A35C1F;
  --cream: #F5F2EC;
  --paper: #FFFFFF;
  --line: #E4DFD6;
  --overlay: rgba(16, 32, 51, .8);
  --sans: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: inline-block; }
a { color: var(--copper); text-underline-offset: .15em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--copper-2); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--sans); color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(1.85rem, 5vw, 3rem); margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 .6em; }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { color: var(--copper); text-decoration: underline; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
p, ul { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.subhead { font-weight: 600; color: var(--ink); letter-spacing: 0; }
.center { text-align: center; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: .5rem; top: -4rem; z-index: 200; background: var(--paper); color: var(--navy); padding: .6rem 1rem; font-weight: 600; border: 2px solid var(--navy); }
.skip-link:focus { top: .5rem; }
main:focus { outline: none; }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.announce { margin: 0; background: var(--navy); text-align: center; }
.announce a, .header-banner { display: block; color: #fff; text-decoration: none; font-size: .92rem; font-weight: 600; padding: .55rem 1rem; }
.announce a:hover, .header-banner:hover { color: #fff; background: var(--navy-2); }
.site-header__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding-top: .7rem; padding-bottom: .7rem; }
.site-logo img { width: 180px; display: block; }
.site-header__actions { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.menu-toggle { font: 600 .95rem var(--sans); color: var(--navy); background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: .6rem 1rem; min-height: 44px; cursor: pointer; }
.menu-toggle:hover { background: var(--line); }

/* ---------- nav (mobile first: stacked, no JS needed) ---------- */
.site-nav { flex: 1 1 100%; background: var(--cream); border-radius: 8px; }
.site-nav .menu { list-style: none; margin: 0; padding: .35rem .6rem 1rem; }
.site-nav a, .sub-toggle { display: flex; align-items: center; width: 100%; text-align: left; color: var(--ink); text-decoration: none; font: 600 .95rem/1.3 var(--sans); padding: .7rem .6rem; background: none; border: 0; min-height: 44px; border-radius: 6px; }
.site-nav a:hover, .sub-toggle:hover { background: #fff; color: var(--navy); }
.site-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.sub-menu { list-style: none; margin: 0; padding: 0 0 0 .8rem; }
.sub-toggle { cursor: pointer; }
.sub-toggle::after { content: ""; width: .45rem; height: .45rem; margin-left: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.has-sub.is-active > .sub-toggle { color: var(--copper); }
.js .site-nav[data-collapsed="true"] { display: none; }
.js .sub-toggle[aria-expanded="false"] + .sub-menu { display: none; }

/* ---------- sections ---------- */
.section { padding: 3rem 0; }
.section--tint { background: var(--cream); }
.section--center { text-align: center; }
.section--center ul { text-align: left; display: inline-block; }
.hero { position: relative; color: #fff; padding: 3.4rem 0 3.8rem; background-color: var(--navy); background-image: url(../img/thermostat.jpg); background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--overlay); }
.hero .wrap { position: relative; }
.hero h1, .page-hero h1 { color: #fff; }
.hero__eyebrow { margin: 0 0 .9rem; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f0d2b0; }
.hero__sub { font-weight: 500; font-size: 1.08rem; color: #fff; max-width: 36rem; }
.hero .btn { margin-right: .5rem; margin-top: .35rem; }
.page-hero { background: var(--navy); color: #fff; padding: 2.4rem 0 2rem; }
.page-hero .hero__sub { color: #d9e2ea; }

.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; font: 600 .95rem/1.3 var(--sans); letter-spacing: .01em; padding: .8rem 1.35rem; border: 2px solid var(--navy); border-radius: 8px; min-height: 44px; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn--call, .btn--red2 { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn--call:hover, .btn--red2:hover { background: var(--copper-2); border-color: var(--copper-2); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { background: #6b6b6b; border-color: #6b6b6b; color: #fff; cursor: not-allowed; }
.rule { border: 0; border-top: 3px solid var(--copper); width: 3.5rem; margin: .2rem 0 1.2rem; }
.split { display: grid; gap: 2rem; }
.page-contact-us .split { align-items: start; }
.split__media img { width: 100%; border-radius: 12px; }

.banner { color: #fff; text-align: center; padding: 3.5rem 0; }
.banner h2, .banner .subhead { color: #fff; }
.banner--red { background: var(--navy-2); }
.banner--photo { position: relative; background-color: var(--navy); background-size: cover; background-position: center; }
.banner--photo::before { content: ""; position: absolute; inset: 0; background: var(--overlay); }
.banner--photo .wrap { position: relative; }
.banner--comfort { background-image: url(../img/air-conditioner-backyard.jpg); }

/* Service cards */
.section--services h2, .section--tiles h2 { text-align: center; margin-bottom: 1.5rem; }
.cards, .tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.card, .tile { margin: 0; }
.card a, .tile a { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 8px 24px rgba(16, 32, 51, .06); transition: transform .2s ease, box-shadow .2s ease; }
.card a:hover, .tile a:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(16, 32, 51, .12); color: inherit; }
.card img, .tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.card__title, .tile__label { display: block; padding: 1rem 1.1rem 1.15rem; font-weight: 700; color: var(--ink); font-size: 1.05rem; letter-spacing: -0.01em; }
.card a:hover .card__title, .tile a:hover .tile__label { color: var(--copper); }

.testimonial { margin: 0 0 1.5rem; padding: 1.6rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--copper); text-align: left; border-radius: 0 12px 12px 0; box-shadow: 0 6px 18px rgba(16, 32, 51, .05); }
.testimonial blockquote { margin: 0 0 .8rem; font-size: 1.05rem; }
.testimonial blockquote p { margin: 0; }
.testimonial__name { font-weight: 700; color: var(--ink); }
.stars { color: var(--copper-2); letter-spacing: .1em; }
.testimonial--featured { font-size: 1.05rem; }
.review-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.review-grid .testimonial { margin: 0; }

.areas { list-style: none; padding: 0; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .7rem; max-width: 760px; margin: 1rem auto; text-align: center !important; }
.areas a { display: block; padding: .85rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--ink); background: var(--paper); }
.areas a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.post-date { color: var(--copper); font-weight: 600; }

.section--location { background: var(--cream); }
.location-card { background: var(--paper); border-top: 4px solid var(--copper); padding: 1.75rem; box-shadow: 0 8px 24px rgba(16, 32, 51, .06); max-width: 460px; border-radius: 0 0 12px 12px; }
.section--location .location-card { margin: 0 auto; text-align: center; }
.location-card h2 { font-size: 1.25rem; }
.label { font-weight: 700; color: var(--ink); }

.map-embed { margin: 1.25rem 0 0; max-width: 760px; }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; border-radius: 12px; background: var(--cream); }
.map-embed__link { margin: .75rem 0 0; font-weight: 600; }

/* ---------- forms / mailto ---------- */
.form-wrap { margin-top: 1rem; }
.form-wrap--mailto .form-status { display: block; }
.form__title { margin-bottom: .4rem; }
.form-status { display: inline-block; background: var(--cream); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: .7rem 1rem; font-weight: 600; }
.form__body { border: 0; padding: 0; margin: 0; min-width: 0; }
.field { margin: 0 0 1.1rem; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: .3rem; }
.field--name .name-row { display: grid; gap: .8rem; }
.field--name label { font-weight: 400; font-size: .9rem; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="file"], select, textarea { width: 100%; font: inherit; color: var(--ink); padding: .65rem .7rem; border: 1px solid #767676; border-radius: 8px; background: #fff; min-height: 44px; }
.choice { display: flex; gap: .5rem; align-items: center; margin: .3rem 0; }
.choice label { font-weight: 400; margin: 0; }
.choice input { width: 1.2rem; height: 1.2rem; }
.req { color: var(--copper); }
.help { font-size: .9rem; margin: .3rem 0 0; }
.field--note { font-style: italic; }
.form--disabled .form__body { opacity: .75; }
.form--disabled input, .form--disabled select, .form--disabled textarea { background: #f2f2f2; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #d5dde5; padding: 2.6rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #f0d2b0; }
.site-footer__grid { display: grid; gap: 1.6rem; }
.site-footer__logo img { width: 200px; background: #fff; padding: .55rem .7rem; border-radius: 8px; }
.site-footer p { margin: 0 0 .45rem; }
.site-footer__contact p:first-child { font-weight: 700; color: #fff; }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  .field--name .name-row { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .cards, .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .js .site-nav[data-collapsed="true"] { display: block; }
  .menu-toggle { display: none; }
  .site-logo img { width: 210px; }
  .site-header__bar { flex-wrap: nowrap; gap: 1.25rem; }
  .site-nav { flex: 1 1 auto; background: transparent; border-radius: 0; }
  .site-header__actions { margin-left: 0; }
  .site-nav .menu { display: flex; flex-wrap: wrap; justify-content: flex-end; padding: 0; }
  .site-nav .menu > li { position: relative; }
  .site-nav a, .sub-toggle { width: auto; font-size: .86rem; padding: .55rem .65rem; }
  .sub-menu { position: absolute; left: 0; top: 100%; z-index: 20; min-width: 15rem; background: var(--paper); padding: .35rem; box-shadow: 0 10px 28px rgba(16, 32, 51, .16); display: none; border: 1px solid var(--line); border-radius: 10px; }
  .sub-menu a { padding: .55rem .8rem; }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .sub-toggle[aria-expanded="true"] + .sub-menu { display: block; }
  .js .has-sub:hover > .sub-toggle[aria-expanded="false"] + .sub-menu { display: block; }
  .cards, .tiles { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 3fr 2fr; align-items: center; }
  .page-contact-us .split { align-items: start; }
  .hero { padding: 5.5rem 0 5.8rem; }
  .section { padding: 4rem 0; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .site-footer__contact { text-align: right; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-nav, .menu-toggle, .announce, .skip-link { display: none !important; } }

/* ---------- Increment 20: customer pages (colours mapped to the navy/copper palette) ---------- */
.invoice-link { font-weight: 600; letter-spacing: .04em; }
.utility { background: var(--cream); border-bottom: 1px solid var(--line); }
.utility .wrap { display: flex; justify-content: center; }
.invoice-link--header { display: inline-block; padding: .35rem 0; font-size: .92rem; white-space: nowrap; }
.draft-note { display: inline-block; background: #fff4d6; color: #4a3500; border: 1px solid #c9a227; border-radius: 3px; padding: .2rem .6rem; font-size: .9rem; font-weight: 600; }
.note-box { background: var(--cream); border-left: 4px solid var(--navy-2); padding: 1rem 1.25rem; margin: 1rem 0; }
.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: .4rem; }
.badge-verified { display: inline-block; background: var(--navy-2); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .05em; padding: .1rem .5rem; border-radius: 3px; }
.testimonial__town, .testimonial__date { color: var(--text); font-size: .95rem; }
.disclosure { display: block; margin-top: .5rem; font-size: .9rem; font-style: italic; }
.testimonial blockquote p { overflow-wrap: anywhere; }
.coupons { list-style: none; padding: 0; display: grid; gap: 1rem; }
.coupon { border: 2px dashed var(--copper); padding: 1rem 1.25rem; background: #fff; }
.coupon__title { font-size: 1.25rem; margin: 0 0 .4rem; }
.coupon__terms, .coupon__meta { margin: .2rem 0; overflow-wrap: anywhere; }
.coupon__code { letter-spacing: .1em; color: var(--ink); }
.training-group ul { padding-left: 1.2rem; }
.training-group .help { margin-top: -.4rem; }

/* Desktop header (Nov 12 2026): logo + call button on the first row, the whole main menu on ONE full-width row below.
   With Coupons and Customers added, the menu no longer fits beside the logo (it wrapped "Request An Appointment" onto a
   second bar). scripts/layout-check.mjs fails if the menu wraps at 1024, 1280, 1366 or 1440 px. */
@media (min-width: 900px) {
  .site-header__bar { flex-wrap: wrap; row-gap: .35rem; padding-bottom: .35rem; }
  .site-nav { order: 3; flex: 1 1 100%; border-top: 1px solid var(--line); padding-top: .3rem; }
  .site-nav .menu { flex-wrap: nowrap; justify-content: center; }
  .site-nav a, .sub-toggle { white-space: nowrap; }
  .site-header__actions { margin-left: auto; }
  .utility .wrap { justify-content: flex-end; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .site-nav a, .sub-toggle { font-size: .82rem; padding: .5rem .45rem; }
}
