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

/* ==========================================================================
   Martinez HVAC & Color Studio — martinezhvac.xyz
   Teal and coral on warm white. A bordered "cell" toolbar for a header.
   01 Tokens · 02 Base · 03 Cell header · 04 Hero & service menu · 05 Page heads
   06 Buttons · 07 Bands & blocks · 08 Ductless planner (signature) · 09 FAQ
   10 Form & contact · 11 Footer · 12 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --ink: #1f2933; --text: #3d4751; --muted: #5f6a74; --line: #1f2933; --soft-line: #e5ddd2;
  --paper: #fffaf5; --white: #ffffff; --sand: #f6ede2;
  --teal: #0f766e; --teal-dark: #0b5b55; --teal-soft: #d7efec; --teal-light: #8fd9d1;
  --coral: #f26b5b; --coral-ink: #b8392a; --coral-soft: #fde5e1;
  --focus: #b8392a; --err: #b42318; --ok: #1f6f3a;
  --head: "Fjalla One", "Arial Narrow", system-ui, sans-serif;
  --body: "Cantarell", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-sm: 0.94rem; --f0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem); --f1: clamp(1.25rem, 1.12rem + 0.5vw, 1.55rem);
  --f2: clamp(1.9rem, 1.5rem + 1.7vw, 2.9rem); --f3: clamp(2.5rem, 1.8rem + 3.4vw, 4.6rem);
  --wrap: 1200px; --pad-y: clamp(3.4rem, 2.4rem + 4vw, 6rem);
}

/* 02 Base */
body { background: var(--paper); color: var(--text); font-family: var(--body); font-size: var(--f0); line-height: 1.7; }
h1, h2, h3 { margin: 0 0 0.45em; font-family: var(--head); font-weight: 400; color: var(--ink); line-height: 1.08; letter-spacing: 0.005em; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); line-height: 1.18; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--coral-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong, b { color: var(--ink); }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.kicker { display: inline-block; margin-bottom: 0.9rem; padding: 0.15rem 0.55rem; background: var(--coral); color: var(--ink); font-family: var(--head); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* 03 Cell header */
.cells { position: sticky; top: 0; z-index: 90; background: var(--white); border-bottom: 2px solid var(--line); }
.cells__row { display: flex; align-items: stretch; min-height: 72px; border-left: 2px solid var(--line); border-right: 2px solid var(--line); }
.cell { display: flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0 1.1rem; border-right: 2px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--head); font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.cell:last-child { border-right: 0; }
.cell svg { width: 18px; height: 18px; }
.cell--logo { justify-content: flex-start; gap: 0.6rem; padding-left: 0.9rem; font-size: 1.35rem; text-transform: none; letter-spacing: 0; }
.cell--logo svg { width: 38px; height: 38px; }
.cell--logo small { display: block; font-family: var(--body); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cell--logo span { line-height: 1.05; }
.cell--grow { flex: 1; border-right: 2px solid var(--line); }
.cell--nav:hover, .cell--tel:hover { background: var(--sand); }
.cell--nav[aria-current="page"] { background: var(--coral-soft); box-shadow: inset 0 -5px 0 var(--coral); color: var(--coral-ink); }
.cell--cta { background: var(--teal); color: #fff; }
.cell--cta:hover { background: var(--teal-dark); color: #fff; }
.cell--tel svg { color: var(--teal); }
.nav-toggle { display: none; }
.nav-cells { display: contents; }
.cells__mobile { display: none; }
@media (max-width: 1099px) {
  .cells__row > .cell--tel, .cells__row > .cell--cta, .cells__row > .cell--grow { display: none; }
  .cell--logo { flex: 1; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 72px; padding: 0; border: 0; border-left: 2px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav-cells { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--white); border-bottom: 2px solid var(--line); }
  .nav-cells.is-open { display: flex; }
  .nav-cells .cell { justify-content: flex-start; min-height: 58px; padding: 0 1.2rem; border-right: 0; border-top: 2px solid var(--line); }
  .cells__mobile { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--line); border-left: 2px solid var(--line); border-right: 2px solid var(--line); }
  .cells__mobile .cell { min-height: 52px; }
  .cells__mobile .cell:first-child { border-right: 2px solid var(--line); }
}
@media (max-width: 400px) { .cell--logo small { display: none; } .cell--logo { font-size: 1.15rem; } .cell--logo svg { width: 32px; height: 32px; } }

/* 04 Hero & service menu */
.hero { padding-block: clamp(2.8rem, 2rem + 3.5vw, 5rem); }
.hero .wrap { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: center; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.hero .wrap > * { min-width: 0; }
.hero h1 { max-width: 13ch; }
.hero p.big { font-size: var(--f1); line-height: 1.5; max-width: 38ch; }
.menu-card { border: 2px solid var(--line); background: var(--white); box-shadow: 10px 10px 0 var(--teal); }
.menu-card h2 { margin: 0; padding: 1rem 1.3rem; border-bottom: 2px solid var(--line); background: var(--teal); color: #fff; font-size: 1.35rem; }
.menu-card ul { margin: 0; padding: 0; list-style: none; }
.menu-card li + li { border-top: 1px dashed #b9b1a6; }
.menu-card a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.95rem 1.3rem; color: var(--ink); text-decoration: none; }
.menu-card a:hover { background: var(--sand); }
.menu-card a b { font-family: var(--head); font-weight: 400; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.03em; }
.menu-card a span { display: block; font-size: var(--f-sm); color: var(--muted); }
.menu-card a svg { flex: none; width: 20px; height: 20px; color: var(--coral-ink); }

/* 05 Page heads */
.phead { border-bottom: 2px solid var(--line); background: var(--sand); }
.phead .wrap { padding-block: clamp(2.4rem, 2rem + 2.6vw, 4rem); }
.phead h1 { font-size: clamp(2.2rem, 1.7rem + 2.4vw, 3.8rem); max-width: 18ch; }
.phead p { font-size: var(--f1); line-height: 1.5; max-width: 54ch; }
.crumbs { display: flex; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: var(--f-sm); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--coral-ink); }

/* 06 Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.4rem; border: 2px solid var(--line); border-radius: 0; font-family: var(--head); font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn svg { width: 1em; height: 1em; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dark); color: #fff; }
.btn--plain { background: var(--white); color: var(--ink); }
.btn--plain:hover { background: var(--coral-soft); color: var(--ink); }
.btn--coral { background: var(--coral); color: var(--ink); }
.btn--coral:hover { background: #ff8a7c; color: var(--ink); }

/* 07 Bands & blocks */
.sec { padding-block: var(--pad-y); }
.sec--sand { background: var(--sand); }
.band { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.band .wrap { display: grid; gap: 0; }
@media (min-width: 900px) { .band .wrap { grid-template-columns: 1fr 1fr; } }
.band .wrap > * { min-width: 0; }
.band__text { padding: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(0rem, 2vw, 3rem) clamp(2rem, 1.5rem + 3vw, 4rem) 0; }
.band--teal { background: var(--teal); color: #d7efec; }
.band--teal h2, .band--teal h3 { color: #fff; }
.band--teal .kicker { background: var(--coral); }
.band--teal a { color: #fff; }
.band--teal :focus-visible { outline-color: #fff; }
.band figure img, .band figure .img-placeholder { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: 0; }
.band--flip .band__text { order: 2; padding-left: clamp(0rem, 2vw, 3rem); padding-right: 0; }
@media (max-width: 899px) { .band__text, .band--flip .band__text { padding-inline: 0; } .band--flip .band__text { order: 0; } .band figure { margin-bottom: 2rem; } }
.ticks { margin: 1rem 0 1.4rem; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 0.45rem 0 0.45rem 1.8rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.8rem; width: 12px; height: 12px; background: var(--coral); transform: rotate(45deg); }
.three { display: grid; gap: 0; border: 2px solid var(--line); }
@media (min-width: 860px) { .three { grid-template-columns: repeat(3, 1fr); } }
.three > div { padding: 1.6rem 1.4rem; background: var(--white); }
.three > div + div { border-top: 2px solid var(--line); }
@media (min-width: 860px) { .three > div + div { border-top: 0; border-left: 2px solid var(--line); } }
.three .n { display: block; font-family: var(--head); font-size: 3rem; line-height: 1; color: var(--coral); }
.three h3 { margin-top: 0.4rem; }
.three p { font-size: var(--f-sm); }
.about-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.2fr 0.8fr; } }
.about-grid > * { min-width: 0; }
.notebox { padding: 1.4rem; border: 2px solid var(--line); background: var(--white); }
.notebox + .notebox { margin-top: 1rem; }
.notebox h3 { font-size: 1.2rem; }
.notebox p { font-size: var(--f-sm); }
.chips { display: flex; flex-wrap: wrap; gap: 0; margin: 1rem 0 0; padding: 0; list-style: none; border-top: 2px solid var(--line); border-left: 2px solid var(--line); }
.chips li { padding: 0.5rem 0.9rem; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); background: var(--white); font-size: var(--f-sm); }
.map-cell { width: 100%; aspect-ratio: 4 / 3; min-height: 280px; border: 2px solid var(--line); background: var(--sand); }

/* 08 Ductless planner (signature) */
.planner { border: 2px solid var(--line); background: var(--white); }
.planner__head { padding: 1rem 1.3rem; background: var(--teal); color: #fff; font-family: var(--head); font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.04em; }
.planner__body { display: grid; gap: 0; }
@media (min-width: 900px) { .planner__body { grid-template-columns: 1.2fr 0.8fr; } }
.planner__body > * { min-width: 0; }
.rooms { margin: 0; padding: 0; border: 0; }
.rooms legend { padding: 1rem 1.3rem 0; font-weight: 700; color: var(--ink); }
.room { display: grid; grid-template-columns: auto 1fr auto; gap: 0.8rem; align-items: center; padding: 0.8rem 1.3rem; border-bottom: 1px dashed #b9b1a6; }
.room input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--teal); }
.room label { font-weight: 700; color: var(--ink); }
.room select { width: auto; min-width: 9.5rem; padding: 0.45rem 2rem 0.45rem 0.6rem; font-size: var(--f-sm); }
.result { padding: 1.5rem 1.4rem; border-top: 2px solid var(--line); background: var(--coral-soft); }
@media (min-width: 900px) { .result { border-top: 0; border-left: 2px solid var(--line); } }
.result h3 { font-size: 1.4rem; }
.result .big { display: block; font-family: var(--head); font-size: 3.4rem; line-height: 1; color: var(--coral-ink); }
.result small { display: block; margin-top: 0.8rem; font-size: 0.85rem; color: var(--muted); }
.planner:not(.is-live) .result [data-live] { display: none; }
.planner.is-live .result [data-static] { display: none; }
.rule-table { width: 100%; border-collapse: collapse; background: var(--white); border: 2px solid var(--line); font-size: var(--f-sm); }
.rule-table th, .rule-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--soft-line); text-align: left; }
.rule-table thead th { background: var(--ink); color: #fff; font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; }

/* 09 FAQ */
.faq { border-top: 2px solid var(--line); }
.mq { border-bottom: 2px solid var(--line); }
.mq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-family: var(--head); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); list-style: none; }
.mq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 3px solid var(--coral-ink); border-bottom: 3px solid var(--coral-ink); transform: rotate(45deg); transition: transform 0.2s; }
.mq[open] summary::after { transform: rotate(-135deg); }
.mq > div { padding-bottom: 1.2rem; }

/* 10 Form & contact */
.form { display: grid; gap: 1rem 1.2rem; margin-top: 1.4rem; }
@media (min-width: 680px) { .form--2col { grid-template-columns: 1fr 1fr; } }
.field--full, .form__end { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: var(--f-sm); color: var(--ink); }
.req { color: var(--coral-ink); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; padding: 0.8rem 0.9rem; font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: 0; }
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='%231f2933' stroke-width='2.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 15px; padding-right: 2.4rem; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { background: var(--teal-soft); }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted); }
.contact-grid { display: grid; gap: 0; border: 2px solid var(--line); background: var(--white); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; } }
.contact-grid > * { min-width: 0; padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); }
.contact-grid > :first-child { background: var(--teal); color: #d7efec; }
@media (min-width: 960px) { .contact-grid > :first-child { border-right: 2px solid var(--line); } }
.contact-grid > :first-child h2 { color: #fff; }
.contact-grid > :first-child a { color: #fff; }
.contact-grid > :first-child :focus-visible { outline-color: #fff; }
.contact-grid .num { display: block; margin: 0.3rem 0 1rem; font-family: var(--head); font-size: 2.1rem; color: #fff; text-decoration: none; }
.contact-grid dl div { padding: 0.8rem 0; border-top: 1px solid rgba(255,255,255,0.25); }
.contact-grid dt { font-family: var(--head); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-light); }
.contact-grid dd { margin: 0.2rem 0 0; }

/* 11 Footer */
.ftr { background: var(--ink); color: #b9c2cb; font-size: var(--f-sm); border-top: 6px solid var(--coral); }
.ftr .wrap { display: grid; gap: 1.8rem; padding-block: 2.8rem 1.4rem; }
@media (min-width: 820px) { .ftr .wrap { grid-template-columns: 1.3fr 1fr auto; align-items: start; } }
.ftr h2 { margin-bottom: 0.6rem; font-size: 1.2rem; color: #fff; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr :focus-visible { outline-color: var(--coral); }
.ftr__tel { font-family: var(--head); font-size: 2.2rem; line-height: 1; }
.ftr nav { display: grid; gap: 0.35rem; }
.ftr__base { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid #34404c; font-size: 0.82rem; }
.ftr__base p { margin: 0; max-width: none; }

/* 12 Images */
.img-placeholder { background: var(--sand); border: 2px dashed #b9b1a6; color: var(--muted); }
.img-placeholder b { color: var(--ink); }
.band--teal .img-placeholder { background: var(--teal-dark); border-color: var(--teal-light); color: #d7efec; }
.band--teal .img-placeholder b { color: #fff; }
figure img, figure .img-placeholder { border-radius: 0; }
figcaption { margin-top: 0.5rem; font-size: 0.86rem; color: var(--muted); }
.mt { margin-top: 2rem; }
