/* Cosmos Heating & Air Conditioning — desert heat outside, calm cool inside */

@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --slate: #203038;
  --night: #141e23;
  --sand: #e8b870;
  --sand-deep: #d9a352;
  --dune: #f5ead6;
  --bone: #fbf7f0;
  --clay: #8a5a1f;
  --mist: #b9c6cc;
  --line-light: rgba(32, 48, 56, .16);
  --line-dark: rgba(185, 198, 204, .22);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--dune);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 4px; }
.on-light :focus-visible, main :focus-visible { outline-color: var(--clay); }
.on-dark :focus-visible { outline-color: var(--sand); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--sand); color: var(--night); padding: .6rem 1rem; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- TEST banner ---------- */
.test-banner {
  background: var(--night);
  color: var(--sand);
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .55rem 1rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--dune);
  border-bottom: 1px solid var(--line-light);
  position: relative;
  z-index: 20;
}
.page-home .site-header { background: var(--dune); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; color: var(--slate); }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; letter-spacing: -0.035em; }
.brand__trade { font-family: var(--sans); font-weight: 700; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; margin-top: .35rem; }

.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: clamp(1rem, 2vw, 1.9rem); }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .95rem; padding: .35rem 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 220ms var(--ease-out);
}
.nav a[aria-current="page"] { background-size: 100% 1.5px; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background-size: 100% 1.5px; } }

.nav-mobile { border-top: 1px solid var(--line-light); }
.nav-mobile ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; white-space: nowrap;
  padding: .7rem var(--gutter);
}
.nav-mobile a { text-decoration: none; font-weight: 600; font-size: .9rem; }
.nav-mobile a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }

.header-call { display: none; }

@media (min-width: 960px) {
  .nav { display: block; }
  .nav-mobile { display: none; }
  .header-call { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--sand); color: var(--night);
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 1.05rem 1.6rem; border-radius: 999px;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
  white-space: nowrap;
}
.pill:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .pill:hover { background: var(--sand-deep); } }
.pill--night { background: var(--night); color: var(--sand); }
.pill--night .pill__dot { background: var(--sand); }
@media (hover: hover) and (pointer: fine) { .pill--night:hover { background: var(--slate); } }
.page-heat :focus-visible, .on-sand :focus-visible, .faq-hero :focus-visible { outline-color: var(--night); }
.pill--small { padding: .75rem 1.15rem; font-size: .92rem; }
.pill__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--night); opacity: .75; }

.textlink {
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .32em;
  transition: text-underline-offset 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .textlink:hover { text-underline-offset: .5em; } }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }

.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 1.1rem; display: block;
}
.on-dark .eyebrow { color: var(--sand); }

/* ---------- Home: the Cool-Down ---------- */
.cooldown { position: relative; background: var(--slate); color: var(--bone); }
.cooldown__stage {
  position: relative; min-height: max(560px, 100svh); overflow: hidden;
}
.cooldown__photo {
  position: absolute; left: 0; top: 0; width: 100%; height: 108%;
  object-fit: cover; object-position: 66% top;
  transform-origin: 70% 40%;
}
@media (min-width: 900px) { .cooldown__photo { object-position: center top; } }
.cooldown__grade { position: absolute; inset: 0; pointer-events: none; }
.cooldown__grade--warm { background: linear-gradient(180deg, #f2c06a 0%, #e8b870 55%, #d98f3c 100%); mix-blend-mode: soft-light; opacity: 0; }
.cooldown__grade--cool { background: linear-gradient(180deg, #203038 0%, #2b4250 60%, #141e23 100%); mix-blend-mode: multiply; opacity: .38; }
/* The veil darkens only where the words sit (upper left); the house, lower right, stays in its light */
.cooldown__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 30, 35, .74) 0%, rgba(20, 30, 35, .5) 38%, rgba(20, 30, 35, .08) 68%, rgba(20, 30, 35, 0) 100%),
    linear-gradient(180deg, rgba(20, 30, 35, .3) 0%, rgba(20, 30, 35, 0) 40%, rgba(20, 30, 35, 0) 78%, rgba(20, 30, 35, .5) 100%);
}
@media (max-width: 759px) {
  .cooldown__veil { background: linear-gradient(180deg, rgba(20, 30, 35, .72) 0%, rgba(20, 30, 35, .62) 60%, rgba(20, 30, 35, .3) 85%, rgba(20, 30, 35, .55) 100%); }
}
.cooldown__copy {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding-top: clamp(2.5rem, 9vh, 6.5rem); padding-bottom: 3rem;
}
.cooldown__lines { display: grid; gap: 1.6rem; }
.cooldown__line { display: block; }
.cooldown h1 { font-size: clamp(2.6rem, 7.2vw, 6.6rem); color: var(--bone); max-width: 11ch; }
.cooldown__aside { margin-top: 1rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.1rem, 1.8vw, 1.45rem); color: var(--dune); }
/* In the still the inside line is the second voice; once the scrub runs it takes the stage alone */
.cooldown__inside {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 3.2rem); line-height: 1.04; letter-spacing: -0.02em;
  color: var(--sand); max-width: 16ch;
}
.is-cooling .cooldown__inside { font-size: clamp(2.2rem, 5.6vw, 5rem); max-width: 12ch; }
.cooldown__sub { margin-top: 1.2rem; max-width: 34rem; color: var(--bone); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.cooldown__cta { margin-top: 1.8rem; }
.cooldown__cta .textlink { color: var(--bone); }

.gauge {
  position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: none; flex-direction: column; align-items: center; gap: .8rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--bone);
}
.gauge__track { position: relative; width: 2px; height: 34vh; background: rgba(251, 247, 240, .3); overflow: hidden; border-radius: 2px; }
.gauge__fill { position: absolute; inset: 0; background: var(--sand); transform-origin: top; transform: scaleY(1); }

/* JS + motion allowed: the stage is pinned (sticky) and both lines share one cell */
.is-cooling .cooldown { height: 230vh; }
.is-cooling .cooldown__stage { position: sticky; top: 0; height: 100vh; min-height: 0; }
.is-cooling .cooldown__copy { height: 100vh; }
.is-cooling .cooldown__lines { grid-template-areas: "stack"; }
.is-cooling .cooldown__line { grid-area: stack; }
@media (min-width: 760px) { .is-cooling .gauge { display: flex; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.on-dark { background: var(--night); color: var(--bone); }
.on-slate { background: var(--slate); color: var(--bone); }
.on-sand { background: var(--sand); color: var(--night); }
.on-sand .eyebrow { color: var(--night); }
.section-title { font-size: clamp(2.1rem, 5vw, 4rem); max-width: 18ch; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 38rem; }
.muted { color: var(--mist); }

/* Meet Cosmo */
.meet { background: var(--slate); }
.meet .wrap { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.meet__art { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.meet__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.meet h2 { color: var(--sand); font-size: clamp(2.1rem, 4.6vw, 3.8rem); max-width: 13ch; }
.meet p { margin-top: 1.4rem; color: var(--bone); max-width: 32rem; }
.meet p + p { color: var(--mist); }
@media (min-width: 900px) { .meet .wrap { grid-template-columns: 1.1fr .9fr; } }

/* Services list (home) */
.services-head { display: grid; gap: 1.2rem; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.service-row {
  display: grid; gap: 1.8rem; align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line-light);
}
.service-row:last-child { border-bottom: 1px solid var(--line-light); }
.service-row__media { display: block; border-radius: var(--radius); overflow: hidden; }
.service-row__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 400ms var(--ease-out); }
.service-row__media--furnace img { object-position: 50% 0; }
@media (hover: hover) and (pointer: fine) { .service-row__media:hover img { transform: scale(1.03); } }
.service-row h3 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.service-row h3 a { text-decoration: none; }
.service-row p { margin-top: 1rem; max-width: 30rem; }
.service-row .textlink { display: inline-block; margin-top: 1.4rem; color: var(--slate); }
@media (min-width: 900px) {
  .service-row { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
  .service-row:nth-child(even) .service-row__media { order: 2; }
}

/* Steps */
.steps { list-style: none; display: grid; gap: 2.5rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); counter-reset: step; }
.steps li { border-top: 2px solid var(--night); padding-top: 1.4rem; counter-increment: step; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--serif); font-weight: 600; font-size: 3.4rem; line-height: 1; margin-bottom: 1rem;
}
.steps h3 { font-size: 1.6rem; }
.steps p { margin-top: .6rem; max-width: 22rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); } }

/* Closing band */
.closing { position: relative; overflow: hidden; background: var(--night); color: var(--bone); }
.closing__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.closing__bg { object-position: 62% 50%; }
.closing__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 30, 35, .92) 0%, rgba(20, 30, 35, .82) 42%, rgba(20, 30, 35, .38) 72%, rgba(20, 30, 35, .22) 100%); }
@media (max-width: 759px) { .closing__veil { background: rgba(20, 30, 35, .8); } }
.closing .wrap { position: relative; z-index: 1; padding-top: clamp(5rem, 12vw, 9rem); padding-bottom: clamp(5rem, 12vw, 9rem); }
.closing h2 { font-size: clamp(2.4rem, 6vw, 5.2rem); color: var(--sand); max-width: 13ch; }
.closing p { margin-top: 1.3rem; max-width: 30rem; font-size: 1.15rem; }
.closing .cta-row { margin-top: 2.2rem; }
.closing .textlink { color: var(--bone); }

/* ---------- Inner pages ---------- */
.crumbs { font-size: .85rem; font-weight: 500; padding-top: 1.6rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .55; }
.crumbs a { text-decoration: underline; text-underline-offset: .25em; }

.page-hero { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); overflow-x: clip; }
.page-hero__grid { display: grid; gap: clamp(2.2rem, 5vw, 4.5rem); align-items: center; padding-top: clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.7rem); max-width: 12ch; }
.page-hero .lede { margin-top: 1.4rem; }
.page-hero .cta-row { margin-top: 2rem; }
.page-hero .textlink { color: inherit; }
.page-hero__media { border-radius: 0 var(--radius) var(--radius) 0; overflow: hidden; margin: 0 0 0 calc(var(--gutter) * -1); }
.section--flush { padding-top: 0; }
.page-hero__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.page-hero__media--furnace img { object-position: 50% 0; }
.page-hero__media--install img { object-position: 70% 50%; }
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: .95fr 1.05fr; }
  .page-hero__media { margin-left: 0; margin-right: calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gutter)); border-radius: var(--radius) 0 0 var(--radius); }
}
.page-heat { background: var(--sand); color: var(--night); }
.page-heat .eyebrow { color: var(--night); }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .split { grid-template-columns: .8fr 1.2fr; } }

.signs { list-style: none; display: grid; gap: 0; }
.signs li {
  position: relative; padding: 1.1rem 0 1.1rem 2.2rem; border-top: 1px solid var(--line-light); font-size: 1.12rem; font-weight: 500;
}
.signs li:last-child { border-bottom: 1px solid var(--line-light); }
.signs li::before {
  content: ""; position: absolute; left: 0; top: 1.62rem; width: 1rem; height: 2px; background: var(--clay);
}
@media (min-width: 700px) { .signs { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } .signs li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line-light); } }

.checks { list-style: none; display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 20px; overflow: hidden; margin-top: 2.5rem; }
.checks li { background: var(--slate); padding: 1.6rem 1.5rem; }
.checks strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--sand); margin-bottom: .4rem; letter-spacing: -0.01em; }
.checks span { color: var(--mist); }
@media (min-width: 700px) and (max-width: 999px) {
  .checks { grid-template-columns: repeat(2, 1fr); }
  .checks li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .checks { grid-template-columns: repeat(3, 1fr); }
  .checks li:last-child:nth-child(3n+2) { grid-column: span 2; }
  .checks li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}

.process { list-style: none; counter-reset: p; display: grid; gap: 1px; margin-top: 2.5rem; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 20px; overflow: hidden; }
.process li { counter-increment: p; background: var(--slate); padding: 1.8rem 1.5rem; }
.process li::before { content: counter(p); display: block; font-family: var(--serif); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--sand); margin-bottom: .8rem; }
.process strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; margin-bottom: .35rem; }
.process span { color: var(--mist); }
@media (min-width: 800px) { .process { grid-template-columns: repeat(3, 1fr); } }

.more { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.more a { display: grid; gap: 1rem; text-decoration: none; }
.more__img { border-radius: 20px; overflow: hidden; }
.more__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 400ms var(--ease-out); }
.more__img--furnace img { object-position: 50% 0; }
.more h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.more span { font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
@media (hover: hover) and (pointer: fine) { .more a:hover .more__img img { transform: scale(1.03); } }
@media (min-width: 760px) { .more { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

/* FAQ */
.faq-hero { background: var(--sand); color: var(--night); }
.faq-hero .eyebrow { color: var(--night); }
.faq-hero__art { margin: 0; justify-self: center; box-shadow: 0 30px 60px -34px rgba(20, 30, 35, .45); border-radius: var(--radius); overflow: hidden; max-width: 520px; }
.faq-hero__art img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.faq-layout { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: start; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 1.6fr 1fr; } .faq-aside { position: sticky; top: 2rem; } }
.faq-aside { background: var(--slate); color: var(--bone); border-radius: var(--radius); padding: clamp(1.8rem, 3vw, 2.4rem); }
.faq-aside h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--sand); }
.faq-aside p { margin-top: .9rem; color: var(--mist); }
.faq-aside .pill { margin-top: 1.6rem; }
.faq-aside .textlink { display: block; width: fit-content; margin-top: 1.2rem; color: var(--bone); }
.faq-list { max-width: 52rem; }
.faq-list details { border-top: 1px solid var(--line-light); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-light); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.6rem 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.2; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1.5px solid var(--slate);
  display: grid; place-items: center; font-family: var(--sans); font-weight: 500; font-size: 1.3rem;
  transition: transform 220ms var(--ease-out), background-color 200ms ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--sand); border-color: var(--sand); }
.faq-list details p { padding: 0 3.5rem 1.8rem 0; max-width: 42rem; font-size: 1.08rem; }
.faq-list a { font-weight: 700; }

/* Contact */
.contact-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.bigphone {
  display: inline-block; margin-top: 1.6rem; font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.2rem, 3.9vw, 4rem); letter-spacing: -0.03em; line-height: 1; text-decoration: none; color: var(--slate); white-space: nowrap;
  border-bottom: 3px solid var(--sand); padding-bottom: .3rem;
}
.contact-lede { margin-top: 1.2rem; }
.contact-art { margin: 2.5rem 0 0; border-radius: var(--radius); overflow: hidden; max-width: 420px; }
.contact-art img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.lead {
  background: var(--slate); color: var(--bone); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 3rem);
}
.lead h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--sand); }
.lead > p.muted { margin-top: .8rem; }
.lead form { display: grid; gap: 1.2rem; margin-top: 2rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 700; font-size: .92rem; }
.field label small { font-weight: 500; color: var(--mist); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--night);
  background: var(--bone); border: 2px solid transparent; border-radius: 14px; padding: .9rem 1rem;
  transition: border-color 160ms ease;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sand); }
.field-pair { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.lead .notice { font-size: .92rem; color: var(--mist); }
.lead .pill { justify-self: start; margin-top: .3rem; }
.lead .consent { font-size: .85rem; color: var(--mist); }
.lead .privacy-link { margin-top: 1.2rem; font-size: .9rem; }
.lead .privacy-link a { color: var(--sand); font-weight: 700; }

/* Privacy */
.prose { max-width: 44rem; }
.prose-page { padding-top: clamp(2rem, 5vw, 3.5rem); }
.prose .lede { margin-top: 1.3rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 3rem; margin-bottom: .9rem; }
.prose p, .prose ul { margin-top: .9rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-top: .4rem; }
.prose a { font-weight: 700; }
.prose .note { margin-top: 3rem; padding: 1.4rem 1.6rem; background: var(--bone); border-radius: 18px; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--bone); padding: clamp(4rem, 8vw, 6rem) 0 2.5rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-name { font-family: var(--serif); font-weight: 600; font-size: 2rem; letter-spacing: -0.03em; line-height: 1.05; }
.footer-name span { display: block; font-family: var(--sans); font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-top: .4rem; }
.site-footer p { color: var(--mist); margin-top: 1rem; max-width: 22rem; }
.footer-phone { display: inline-block; margin-top: 1.2rem; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--sand); text-decoration: none; }
.site-footer h2 { font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer ul a { text-decoration: none; color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .site-footer ul a:hover { text-decoration: underline; text-underline-offset: .25em; } }
.footer-base {
  margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; font-size: .85rem; color: var(--mist);
}
.footer-base p { margin: 0; max-width: none; }

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(20, 30, 35, .96); padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--bone);
  font-size: .85rem; font-weight: 600;
}
.callbar .pill { flex: 1 1 auto; max-width: 18rem; }
/* The footer, not the body, makes room for the bar, so no light strip shows under it */
@media (max-width: 959px) { .site-footer { padding-bottom: calc(2.5rem + 4.6rem + env(safe-area-inset-bottom)); } }
@media (min-width: 960px) { .callbar { display: none; } }

/* ---------- Reveal (JS adds .is-pending only to elements below the fold) ---------- */
.reveal.is-pending { opacity: 0; transform: translateY(24px); }
.reveal { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }

/* ---------- Reduced motion: everything still ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal.is-pending { opacity: 1; transform: none; }
}
