/* 00  Core — resets and behaviour hooks only. Every visual decision for this
       site lives in the sections below, starting with the design tokens.    */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg, iframe, video { display: block; max-width: 100%; }
img { height: auto; }
iframe { border: 0; }
figure { margin: 0; }
[hidden] { display: none !important; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 0.5rem; top: 0.5rem; z-index: 999; transform: translateY(-160%); padding: 0.8rem 1.2rem; background: #000; color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.field__error { margin: 0; min-height: 1rem; font-size: 0.82rem; font-weight: 700; color: var(--err); }
.field.is-invalid :where(input, select, textarea) { border-color: var(--err); }
.form-status { min-height: 1.2rem; font-weight: 700; }
.form-status.is-error { color: var(--err); }
.form-status.is-ok { color: var(--ok); }
.img-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; width: 100%; padding: 1rem; text-align: center; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; }
.img-placeholder b { display: block; font-size: 0.92rem; letter-spacing: 0; text-transform: none; word-break: break-all; }
:target { scroll-margin-top: 120px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   Ellison Building HVAC Renewal — elisonhvac.xyz
   THE DEVICE: the timetable. Content is laid out on a time grid — hours down
   the side, periods across — because in an occupied building the question is
   never only what to do, it is when there is room to do it.
   01 Tokens · 02 Base · 03 Header · 04 Buttons · 05 Hero
   06 Page heads · 07 Timetable blocks · 08 Sections
   09 Schedule grid (signature) · 10 FAQ · 11 Form & contact · 12 Footer · 13 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --paper: #f2f1f6; --paper-2: #e5e4ed; --white: #ffffff;
  --indigo: #2e2a5c; --indigo-2: #443f7d; --indigo-soft: #d5d3e4;
  --coral: #e05a3c; --coral-dark: #b13a20; --coral-soft: #fbe2dc;
  --ink: #171528; --text: #4a4760; --muted: #6d6a82; --line: #d2d0de;
  --focus: #b13a20; --err: #a02820;
  --disp: "Chivo", "Segoe UI", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.91rem; --f-xs: 0.76rem; --f0: clamp(1rem, 0.97rem + 0.16vw, 1.06rem);
  --f1: clamp(1.14rem, 1.03rem + 0.5vw, 1.36rem);
  --f2: clamp(1.6rem, 1.3rem + 1.5vw, 2.3rem); --f3: clamp(1.95rem, 1.45rem + 2.5vw, 3.1rem);
  --r: 3px; --wrap: 1180px; --pad-y: clamp(2.8rem, 2.2rem + 3.2vw, 4.6rem);
}

/* 02 Base */
body { background: var(--paper); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.67; }
h1, h2, h3 { margin: 0 0 0.45em; font-family: var(--disp); color: var(--ink); font-weight: 700; line-height: 1.15; letter-spacing: -0.028em; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--coral-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong, b { color: var(--ink); font-weight: 700; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.slot { display: block; margin-bottom: 0.5rem; font-family: var(--disp); font-size: 0.71rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral-dark); }
.sec--indigo .slot, .phead .slot, .hero .slot { color: #f2a48f; }
.mt { margin-top: 2rem; }

/* 03 Header — one row at every width; phone and action live inside it */
.hd { position: sticky; top: 0; z-index: 30; background: var(--indigo); }
.hd .wrap { display: flex; align-items: center; gap: 0.5rem; min-height: 58px; }
.es-logo { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; }
.es-logo svg { width: 26px; height: 26px; flex: none; }
.es-logo span { display: none; }
.es-logo b { display: block; font-family: var(--disp); font-size: 1.04rem; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.es-logo small { display: block; margin-top: -0.1em; font-size: 0.52rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; color: #f2a48f; }
.hd__tel { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto; color: #fff; font-family: var(--disp); font-weight: 700; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.hd__tel svg { width: 15px; height: 15px; color: #f2a48f; flex: none; }
.hd__tel:hover { color: #f2a48f; }
.hd__book { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: var(--r); background: var(--coral); color: #31150c; text-decoration: none; }
.hd__book svg { width: 18px; height: 18px; }
.hd__book b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hd__book:hover { background: #f2a48f; color: #31150c; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,0.32); border-radius: var(--r); background: transparent; color: #fff; cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
.esnav { display: none; }
@media (max-width: 959px) {
  .esnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.3rem 1rem 1.2rem; background: var(--indigo); }
  .esnav.is-open { display: flex; }
  .esnav a { padding: 0.85rem 0.2rem; border-bottom: 1px solid rgba(255,255,255,0.18); color: #fff; font-family: var(--disp); font-size: 1.06rem; font-weight: 700; text-decoration: none; }
  .esnav a[aria-current="page"] { color: #f2a48f; }
  .esnav :focus-visible { outline-color: #f2a48f; }
}
@media (min-width: 440px) { .es-logo span { display: block; } }
@media (min-width: 960px) {
  .hd .wrap { min-height: 70px; gap: 0.9rem; }
  .nav-toggle { display: none; }
  .esnav { display: flex; gap: 1.4rem; margin-left: 1.8rem; }
  .esnav a { padding: 0.3rem 0; color: #aeaac6; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
  .esnav a:hover { color: #fff; }
  .esnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--coral); }
  .esnav :focus-visible { outline-color: #f2a48f; }
  .hd__tel { font-size: 1rem; }
  .hd__book { width: auto; height: auto; padding: 0.62rem 1.2rem; gap: 0.45rem; font-family: var(--disp); font-weight: 700; }
  .hd__book b { position: static; width: auto; height: auto; clip: auto; }
}

/* 04 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.3rem; border: 0; border-radius: var(--r); background: var(--coral); color: #31150c; font-family: var(--disp); font-size: 0.97rem; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.18s, color 0.18s; }
.btn:hover { background: #f2a48f; color: #31150c; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--indigo { background: var(--indigo); color: #fff; }
.btn--indigo:hover { background: var(--ink); color: #fff; }
.btn--line { background: transparent; color: var(--indigo); box-shadow: inset 0 0 0 2px var(--indigo); }
.btn--line:hover { background: var(--indigo); color: #fff; }
.btn--paper, .phead a.btn--paper, .sec--indigo a.btn--paper, .hero a.btn--paper, .sg__out a.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover, .phead a.btn--paper:hover, .sec--indigo a.btn--paper:hover, .hero a.btn--paper:hover, .sg__out a.btn--paper:hover { background: #fff; color: var(--ink); }
@media (max-width: 460px) { .btn { white-space: normal; text-align: center; } }
.btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }

/* 05 Hero */
.hero { padding-block: clamp(2.6rem, 2rem + 3vw, 4.4rem); background: var(--indigo); color: #aeaac6; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero p.lede { font-size: var(--f1); line-height: 1.5; color: #ddd9ea; max-width: 50ch; }
.hero :focus-visible { outline-color: #f2a48f; }

/* 06 Page heads */
.phead { padding-block: clamp(2.1rem, 1.7rem + 2.3vw, 3.3rem); background: var(--indigo); color: #aeaac6; }
.phead h1 { color: #fff; max-width: 20ch; }
.phead p { font-size: 1.03rem; max-width: 58ch; }
.phead a:not(.btn) { color: #fff; }
.phead :focus-visible { outline-color: #f2a48f; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.9rem; padding: 0; list-style: none; font-size: 0.83rem; }
.crumbs li + li::before { content: "\00b7"; margin-right: 0.45rem; color: #f2a48f; }

/* 07 Timetable blocks — the device */
.tt { margin-top: 1.8rem; border-top: 2px solid var(--indigo); }
.sec--indigo .tt { border-top-color: var(--coral); }
.tt__row { display: grid; gap: 0.35rem 1.6rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 780px) { .tt__row { grid-template-columns: 8.5rem 1fr; align-items: baseline; } }
.sec--indigo .tt__row { border-bottom-color: rgba(255,255,255,0.22); }
.tt__when { display: inline-block; padding: 0.15rem 0.6rem; border-radius: var(--r); background: var(--indigo); color: #fff; font-family: var(--disp); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; justify-self: start; white-space: nowrap; }
.tt__when--coral { background: var(--coral); color: #31150c; }
.tt__when--open { background: transparent; color: var(--indigo); box-shadow: inset 0 0 0 2px var(--indigo); }
.sec--indigo .tt__when { background: #fff; color: var(--ink); }
.sec--indigo .tt__when--coral { background: var(--coral); color: #31150c; }
.sec--indigo .tt__when--open { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6); }
.tt b { display: block; margin-bottom: 0.12rem; font-family: var(--disp); font-size: 1.1rem; color: var(--ink); }
.sec--indigo .tt b { color: #fff; }
.tt p { margin: 0; font-size: var(--f-sm); }

/* 08 Sections */
.sec { padding-block: var(--pad-y); }
.sec--paper { background: var(--paper); }
.sec--white { background: var(--white); }
.sec--tint { background: var(--paper-2); }
.sec--indigo { background: var(--indigo); color: #aeaac6; }
.sec--indigo h2, .sec--indigo h3, .sec--indigo b { color: #fff; }
.sec--indigo a:not(.btn) { color: #fff; }
.sec--indigo :focus-visible { outline-color: #f2a48f; }
.head { max-width: 640px; }
.duo { display: grid; gap: 1.4rem; margin-top: 1.9rem; }
@media (min-width: 840px) { .duo { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.duo article { padding: 1.35rem 1.45rem; background: var(--white); border-radius: var(--r); border-top: 4px solid var(--coral); }
.sec--white .duo article { background: var(--paper); }
.duo h3 { font-size: 1.16rem; }
.duo ul { margin: 0.75rem 0 0; padding-left: 1.05em; font-size: var(--f-sm); }
.duo li { margin-bottom: 0.3rem; }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } .split--flip > :first-child { order: 2; } }
.split > * { min-width: 0; }
.split img, .split .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.figwide img, .figwide .img-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 380px); background: var(--paper-2); border-radius: var(--r); }
.where { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .where { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* 09 Schedule grid (signature) */
.sg { margin-top: 1.4rem; }
.sg fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.sg__presets { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 1.2rem; }
.sg__presets button { padding: 0.5rem 0.95rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink); font-family: var(--disp); font-size: var(--f-sm); font-weight: 700; cursor: pointer; }
.sg__presets button:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.sg__scroll { overflow-x: auto; padding-bottom: 0.4rem; background: var(--white); border-radius: var(--r); }
.sg__scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sg__grid { display: grid; grid-template-columns: 3.1rem repeat(24, 1.45rem); gap: 2px; min-width: 38.5rem; padding: 0.7rem; }
.sg__hh { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(24, 1.45rem); gap: 2px; }
.sg__hh span { font-size: 0.58rem; font-weight: 700; color: var(--muted); text-align: left; }
.sg__day { display: flex; align-items: center; padding: 0 0.4rem 0 0; border: 0; background: transparent; font-family: var(--disp); font-size: 0.72rem; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.sg__day:hover { color: var(--coral-dark); }
.sg__day:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.sg__cell { width: 1.45rem; height: 1.45rem; padding: 0; border: 0; border-radius: 1px; background: var(--paper-2); cursor: pointer; }
.sg__cell:hover { background: var(--indigo-soft); }
.sg__cell[aria-pressed="true"] { background: var(--coral); }
.sg__cell:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.sg__hint { margin: 0.5rem 0 0; font-size: var(--f-xs); color: var(--muted); }
@media (min-width: 720px) { .sg__hint { display: none; } }
.sg__out { margin-top: 1.6rem; padding: clamp(1.3rem, 1.1rem + 1.3vw, 1.9rem); background: var(--indigo); color: #aeaac6; border-radius: var(--r); }
.sg__out h2 { color: #fff; font-size: 1.1rem; }
.sg__out h3 { color: #fff; font-size: 1.02rem; margin-top: 1.3rem; }
.sg__out b { color: #fff; }
.sg__nums { display: grid; gap: 0.6rem; margin: 1rem 0 1.3rem; }
@media (min-width: 620px) { .sg__nums { grid-template-columns: repeat(3, 1fr); } }
.sg__nums div { padding: 0.85rem 1rem; background: #3b3670; border-radius: var(--r); }
.sg__nums span { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #f2a48f; }
.sg__nums strong { display: block; margin-top: 0.15rem; font-family: var(--disp); font-size: 1.45rem; font-weight: 700; color: #fff; line-height: 1.15; }
.sg__out ul { margin: 0.8rem 0 0; padding-left: 1.15em; font-size: var(--f-sm); }
.sg__out li { margin-bottom: 0.4rem; }
.sg__out .caveat { margin-top: 1.3rem; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,0.22); font-size: 0.85rem; color: #8d89a8; }
.sg__out :focus-visible { outline-color: #f2a48f; }

/* 10 FAQ */
.faq { display: grid; gap: 0; max-width: 880px; margin-top: 1.5rem; border-top: 2px solid var(--indigo); }
.esq { border-bottom: 1px solid var(--line); }
.esq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-family: var(--disp); font-weight: 700; font-size: 1.03rem; color: var(--ink); list-style: none; cursor: pointer; }
.esq summary::after { content: "+"; flex: none; color: var(--coral-dark); }
.esq[open] summary::after { content: "\2013"; }
.esq > div { padding: 0 0 1.1rem; }

/* 11 Form & contact */
.form { display: grid; gap: 1rem 1.3rem; margin-top: 1.2rem; }
@media (min-width: 640px) { .form--2col { grid-template-columns: 1fr 1fr; } }
.field--full, .form__end { grid-column: 1 / -1; }
.field label, .picks legend { font-weight: 700; color: var(--ink); font-size: 0.94rem; }
.req { color: var(--err); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea { width: 100%; padding: 0.72rem 0.9rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #b8b5c8; border-radius: var(--r); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e2a5c' stroke-width='2.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 15px; padding-right: 2.3rem; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--indigo); }
.picks { margin: 0; padding: 0; border: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
.picks legend { margin-bottom: 0.45rem; padding: 0; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: 0.44rem 0.9rem; border: 1px solid #b8b5c8; border-radius: 999px; background: var(--white); font-size: var(--f-sm); cursor: pointer; }
.pick input:checked + span { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-note { margin: 0.5rem 0 0; font-size: 0.84rem; color: var(--muted); }
.contact { display: grid; gap: 2.2rem; align-items: start; }
@media (min-width: 920px) { .contact { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }
.contact > * { min-width: 0; }
.side { display: grid; gap: 1rem; }
.side__card { padding: 1.25rem 1.4rem; background: var(--white); border-radius: var(--r); border-top: 4px solid var(--coral); }
.side__card h2 { font-size: 1.04rem; }
.side__card .big { display: block; margin: 0.15rem 0 0.3rem; font-family: var(--disp); font-size: 1.45rem; font-weight: 700; color: var(--ink); text-decoration: none; }

/* 12 Footer */
.ft { background: var(--ink); color: #9994ae; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #f2a48f; }
.ft__row { display: grid; gap: 1.5rem; padding-block: 2.8rem 1.6rem; }
@media (min-width: 820px) { .ft__row { grid-template-columns: 1.5fr 1fr 1fr; } }
.ft__name { margin: 0 0 0.45rem; font-family: var(--disp); font-size: 1.14rem; font-weight: 700; color: #fff; }
.ft h2 { margin: 0 0 0.55rem; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #f2a48f; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.32rem; }
.ft__base { padding-block: 0.9rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.8rem; }

/* 13 Images */
.img-placeholder { background: var(--paper-2); border: 1px dashed #aeabbe; color: var(--muted); }
.img-placeholder b { color: var(--ink); overflow-wrap: anywhere; }
