/* 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; } }

/* ==========================================================================
   Delgado HVAC & Color Works — delgadohvac.xyz
   Jade, saffron and cream; one friendly rounded sans.
   01 Tokens · 02 Base · 03 Header · 04 Number bar (mobile) · 05 Buttons
   06 Hero collage · 07 Page heads · 08 Sections & tickets
   09 Pets & filters (signature) · 10 FAQ · 11 Form & contact · 12 Footer · 13 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --jade: #1b6b57; --jade-dark: #134d3f; --jade-soft: #e2f0eb;
  --saffron: #f0b429; --saffron-soft: #fdf3dc;
  --cream: #fffaf1; --white: #ffffff; --ink: #1f2a26; --text: #3f4a46; --muted: #5d6763; --line: #e8e0cf;
  --focus: #1b6b57; --err: #b3261e; --ok: #1b6b57;
  --font: "Livvic", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-sm: 0.93rem; --f0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem); --f1: clamp(1.2rem, 1.08rem + 0.5vw, 1.5rem);
  --f2: clamp(1.8rem, 1.4rem + 1.7vw, 2.6rem); --f3: clamp(2.3rem, 1.6rem + 3.2vw, 4.1rem);
  --r: 18px; --wrap: 1160px; --pad-y: clamp(3.2rem, 2.4rem + 4vw, 6rem);
}

/* 02 Base */
body { background: var(--cream); color: var(--text); font-family: var(--font); font-size: var(--f0); line-height: 1.65; }
h1, h2, h3 { margin: 0 0 0.5em; color: var(--ink); font-weight: 700; line-height: 1.12; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); font-weight: 600; }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--jade); 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; }
.eyebrow { display: inline-block; margin-bottom: 0.9rem; font-size: 0.85rem; font-weight: 700; color: var(--jade); }
.eyebrow::before { content: "● "; color: var(--saffron); }
.mt { margin-top: 2rem; }

/* 03 Header */
.hd { position: sticky; top: 0; z-index: 30; background: var(--cream); border-bottom: 4px solid var(--saffron); }
.hd .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.dg-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.dg-logo svg { width: 40px; height: 40px; flex: none; }
.dg-logo b { display: block; font-size: 1.35rem; font-weight: 700; line-height: 1; }
.dg-logo small { display: block; margin-top: 0.15rem; font-size: 0.74rem; color: var(--muted); }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; flex: none; min-height: 44px; padding: 0 1rem; border: 0; border-radius: 99px; background: var(--jade); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.dnav, .hd__end { display: none; }
@media (max-width: 1019px) {
  .dnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0.3rem; padding: 0.8rem 1rem 1.2rem; background: var(--cream); border-bottom: 4px solid var(--saffron); }
  .dnav.is-open { display: flex; }
  .dnav a { padding: 0.8rem 1rem; border-radius: 12px; color: var(--ink); font-size: 1.1rem; font-weight: 600; text-decoration: none; }
  .dnav a[aria-current="page"] { background: var(--jade-soft); color: var(--jade-dark); }
}
@media (min-width: 1020px) {
  .nav-toggle { display: none; }
  .dnav { display: flex; gap: 0.3rem; margin-left: auto; }
  .dnav a { padding: 0.5rem 0.95rem; border-radius: 99px; color: var(--text); font-weight: 600; text-decoration: none; }
  .dnav a:hover { background: var(--saffron-soft); color: var(--ink); }
  .dnav a[aria-current="page"] { background: var(--jade); color: #fff; }
  .hd__end { display: flex; align-items: center; gap: 1rem; margin-left: 1rem; }
  .hd__tel { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
}

/* 04 Number bar (mobile) — the full number, printed, plus Book */
.numbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; background: var(--jade-dark); box-shadow: 0 -8px 20px -10px rgba(0,0,0,0.4); }
.numbar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 58px; text-decoration: none; font-weight: 700; }
.numbar__tel { flex: 1; color: #fff; font-size: 1.12rem; letter-spacing: 0.01em; }
.numbar__tel svg { width: 19px; height: 19px; flex: none; color: var(--saffron); }
.numbar__book { padding: 0 1.3rem; background: var(--saffron); color: var(--ink); font-size: 1rem; }
.numbar :focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.numbar__book:focus-visible { outline-color: var(--ink); }
body { padding-bottom: 58px; }
@media (min-width: 1020px) { .numbar { display: none; } body { padding-bottom: 0; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.45rem; border: 0; border-radius: 99px; background: var(--jade); color: #fff; font: inherit; font-weight: 700; line-height: 1.25; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--sun { background: var(--saffron); color: var(--ink); }
.btn--sun:hover { background: var(--ink); color: #fff; }
.btn--soft { background: var(--jade-soft); color: var(--jade-dark); }
.btn--soft:hover { background: var(--jade); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* 06 Hero collage */
.hero { padding-block: clamp(2.6rem, 2rem + 3vw, 4.6rem) var(--pad-y); }
.hero__head { display: grid; gap: 1.2rem 3rem; margin-bottom: clamp(2rem, 1.6rem + 2vw, 3rem); }
@media (min-width: 900px) { .hero__head { grid-template-columns: 1.2fr 0.8fr; align-items: end; } }
.hero h1 { max-width: 17ch; margin: 0; }
.hero p.lede { font-size: var(--f1); line-height: 1.5; color: var(--ink); }
.collage { display: grid; gap: 0.8rem; }
@media (min-width: 760px) { .collage { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1rem; height: clamp(440px, 46vw, 620px); } .collage figure:first-child { grid-row: 1 / 3; } .collage figure { min-height: 0; } .collage figure img, .collage figure .img-placeholder { aspect-ratio: auto !important; } }
.collage img, .collage .img-placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.collage figure:first-child img, .collage figure:first-child .img-placeholder { aspect-ratio: 3 / 4; }
.collage figure:not(:first-child) img, .collage figure:not(:first-child) .img-placeholder { aspect-ratio: 5 / 3; }
@media (max-width: 759px) { .collage figure:first-child img, .collage figure:first-child .img-placeholder { aspect-ratio: 4 / 3; } .collage figure:not(:first-child) { display: none; } }
.collage figure { position: relative; }
.collage figcaption { position: absolute; left: 0.8rem; bottom: 0.8rem; padding: 0.35rem 0.8rem; border-radius: 99px; background: var(--cream); color: var(--ink); font-size: 0.85rem; font-weight: 700; }

/* 07 Page heads */
.phead { padding-block: clamp(2.6rem, 2rem + 3vw, 4.2rem); background: var(--jade); color: #d6ebe3; }
.phead h1 { color: #fff; font-size: clamp(2rem, 1.5rem + 2.4vw, 3.3rem); max-width: 20ch; }
.phead p { font-size: 1.1rem; max-width: 58ch; }
.phead a { color: #fff; }
.phead :focus-visible { outline-color: var(--saffron); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.88rem; }
.crumbs li + li::before { content: "→"; margin-right: 0.5rem; color: var(--saffron); }

/* 08 Sections & tickets */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.sec--sun { background: var(--saffron); }
.sec--sun .eyebrow { color: var(--ink); }
.sec--sun .eyebrow::before { color: var(--jade-dark); }
.sec--sun a:not(.btn) { color: var(--ink); }
.sec--sun :focus-visible { outline-color: var(--ink); }
.tickets { display: grid; gap: 1.4rem; }
@media (min-width: 880px) { .tickets { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.ticket { position: relative; display: flex; flex-direction: column; padding: 2rem 1.8rem 1.8rem; border-radius: var(--r); background: var(--white); border: 2px dashed var(--line); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 5.2rem; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); border: 2px dashed var(--line); }
.ticket::before { left: -14px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -14px; clip-path: inset(0 50% 0 0); }
.ticket__tag { align-self: flex-start; margin-bottom: 1rem; padding: 0.3rem 0.8rem; border-radius: 99px; background: var(--jade-soft); color: var(--jade-dark); font-size: 0.82rem; font-weight: 700; }
.ticket--biz .ticket__tag { background: var(--saffron-soft); color: #6b4d00; }
.ticket ul { margin: 0.4rem 0 1.4rem; padding: 0; list-style: none; border-top: 2px dashed var(--line); }
.ticket li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.ticket .btns { margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.chips li { padding: 0.7rem 1.1rem; border-radius: 99px; background: var(--cream); color: var(--ink); font-weight: 600; }
.chips b { color: var(--jade-dark); }
.split { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3.6rem; } }
.split > * { min-width: 0; }
.split img, .split .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.svc { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .svc { grid-template-columns: 1fr 1fr; } }
.svc li { padding: 1.2rem 1.3rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.svc b { display: block; margin-bottom: 0.2rem; font-size: 1.1rem; }
.visit { display: grid; gap: 2rem; align-items: stretch; }
@media (min-width: 880px) { .visit { grid-template-columns: 0.8fr 1.2fr; gap: 2.4rem; } }
.visit__card { padding: 2rem; border-radius: var(--r); background: var(--jade); color: #d6ebe3; }
.visit__card h2 { color: #fff; }
.visit__card a { color: #fff; }
.visit__card :focus-visible { outline-color: var(--saffron); }
.visit__card dl { margin: 1rem 0 0; }
.visit__card dt { margin-top: 0.9rem; font-size: 0.82rem; font-weight: 700; color: var(--saffron); }
.visit__card dd { margin: 0.1rem 0 0; }
.map { display: block; width: 100%; height: 100%; min-height: 320px; border-radius: var(--r); background: var(--jade-soft); }

/* 09 Pets & filters (signature) */
.pets { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 940px) { .pets { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }
.pets__form { padding: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.pets__form fieldset { margin: 0 0 1.4rem; padding: 0; border: 0; }
.pets__form legend { margin-bottom: 0.7rem; padding: 0; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.counts { display: grid; gap: 0.6rem; }
@media (min-width: 520px) { .counts { grid-template-columns: repeat(3, 1fr); } }
.count { padding: 0.9rem; border-radius: 14px; background: var(--cream); text-align: center; }
.count label { display: block; margin-bottom: 0.4rem; font-weight: 700; color: var(--ink); }
.count input { width: 100%; text-align: center; font-size: 1.2rem; font-weight: 700; }
.opts { display: grid; gap: 0.5rem; }
.opt-row { position: relative; display: block; }
.opt-row input { position: absolute; opacity: 0; }
.opt-row span { display: block; padding: 0.75rem 1rem 0.75rem 2.8rem; border-radius: 14px; background: var(--cream); color: var(--ink); font-weight: 600; cursor: pointer; }
.opt-row span::before { content: ""; position: absolute; left: 1rem; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--jade); border-radius: 50%; background: var(--white); }
.opt-row input[type="checkbox"] + span::before { border-radius: 5px; }
.opt-row input:checked + span { background: var(--jade-soft); }
.opt-row input:checked + span::before { background: var(--jade); box-shadow: inset 0 0 0 3px var(--white); }
.opt-row input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.pets__out { position: sticky; top: 100px; padding: 2rem; border-radius: var(--r); background: var(--saffron); color: var(--ink); }
.pets__out h2 { font-size: 1.25rem; }
.pets__out .days { display: block; font-size: clamp(3rem, 2.2rem + 3vw, 4.4rem); font-weight: 700; line-height: 1; }
.pets__out .unit { display: block; margin: 0.3rem 0 1rem; font-weight: 700; }
.pets__out p { font-size: var(--f-sm); }
.tips { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .tips { grid-template-columns: repeat(2, 1fr); } }
.tips li { padding: 1.4rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.tips h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.tips p { margin: 0; font-size: var(--f-sm); }

/* 10 FAQ */
.faq { max-width: 860px; counter-reset: q; }
.dq { position: relative; padding: 1.3rem 0 1.3rem 3.4rem; border-top: 1px solid var(--line); counter-increment: q; }
.dq::before { content: counter(q); position: absolute; left: 0; top: 1.25rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--saffron); color: var(--ink); font-weight: 700; }
.dq h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }

/* 11 Form & contact */
.form { display: grid; gap: 1.1rem 1.4rem; 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 { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.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.8rem 0.95rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #cfc6b3; border-radius: 12px; }
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='%231b6b57' 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.9rem center; background-size: 15px; padding-right: 2.4rem; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--jade); }
.form-note { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted); }
.banner { padding: 1.4rem 0; background: var(--saffron); }
.banner .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 2rem; }
.banner p { margin: 0; font-weight: 700; color: var(--ink); }
.banner a { color: var(--ink); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 700; text-decoration: none; }
.banner :focus-visible { outline-color: var(--ink); }
.cgrid { display: grid; gap: 2.4rem; }
@media (min-width: 920px) { .cgrid { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: start; } }
.cgrid > * { min-width: 0; }
.cgrid .formbox { padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.cgrid figure img, .cgrid figure .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.cgrid .map { height: 300px; min-height: 0; }

/* 12 Footer */
.ft { background: var(--jade-dark); color: #cfe3dc; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: var(--saffron); }
.ft__row { display: grid; gap: 1.8rem; padding-block: 3.2rem 2rem; }
@media (min-width: 820px) { .ft__row { grid-template-columns: 1.5fr 1fr 1fr; } }
.ft__mark { margin: 0 0 0.5rem; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); font-weight: 700; color: #fff; line-height: 1; }
.ft h2 { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--saffron); }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.ft__base { padding-block: 1rem; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.82rem; }

/* 13 Images */
.img-placeholder { background: var(--jade-soft); border: 1px dashed #9cc4b6; color: var(--muted); }
.img-placeholder b { color: var(--ink); }
