/* ==========================================================================
   Keyheat Solutions
   Mobile first stylesheet. Dark charcoal ground, warm amber accent,
   thin amber bordered boxes as the recurring UI motif.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --charcoal:      #3a3a3a;  /* the brand ground colour */
  --charcoal-deep: #2b2b2b;  /* page background, sits behind everything */
  --charcoal-mid:  #333333;  /* alternating band background */
  --charcoal-soft: #454545;  /* raised surfaces, cards */
  --charcoal-line: #565656;

  --amber:         #c8792e;  /* the accent */
  --amber-bright:  #e2a15c;
  --amber-pale:    #f0cba3;

  --cream:         #f5f2ed;
  --text:          #dcd7d0;
  --text-dim:      #a49e96;

  /* Thin amber border, the recurring motif */
  --hairline:      1px solid rgba(200, 121, 46, 0.38);
  --hairline-soft: 1px solid rgba(200, 121, 46, 0.18);

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --shell: 1180px;
  --gutter: 1.25rem;
  --section-y: 3.75rem;
  --radius: 3px;

  --shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 700px) {
  :root { --gutter: 2rem; --section-y: 5.25rem; }
}
@media (min-width: 1024px) {
  :root { --section-y: 6.5rem; }
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* clears the sticky header when jumping to an anchor */
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--charcoal-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* room for the mobile sticky action bar */
@media (max-width: 899px) {
  body { padding-bottom: 4.5rem; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--amber-bright); text-decoration: none; }
a:hover { color: var(--amber-pale); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--cream);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 7vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.7vw, 1.6rem); }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--amber); color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.66); }
.section--band { background: var(--charcoal-mid); }
.section--charcoal { background: var(--charcoal); }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 200;
  background: var(--amber);
  color: #fff;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.75rem; color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Section headings and the flame divider
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.9rem;
}

.section-head { max-width: 42rem; margin-bottom: 2.75rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-dim); font-size: 1.03rem; }

/* Small flame glyph used to break sections apart. The image is the real
   brand mark so the divider always matches the logo exactly. */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding-block: 0.5rem;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: clamp(2.5rem, 14vw, 8rem);
  background: linear-gradient(90deg, transparent, rgba(200, 121, 46, 0.55));
}
.divider::after { background: linear-gradient(270deg, transparent, rgba(200, 121, 46, 0.55)); }
.divider img { width: auto; height: 1.6rem; opacity: 0.95; }

.divider--head {
  justify-content: flex-start;
  padding: 0;
  margin-bottom: 1.5rem;
}
.divider--head::before { display: none; }
.divider--head::after { width: 4rem; }
.section-head--center .divider--head { justify-content: center; }
.section-head--center .divider--head::before { display: block; width: 4rem; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  min-height: 48px;              /* comfortable touch target */
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}
.btn--primary:hover { background: var(--amber-bright); border-color: var(--amber-bright); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--amber-pale);
  border-color: rgba(200, 121, 46, 0.55);
}
.btn--ghost:hover {
  background: rgba(200, 121, 46, 0.12);
  border-color: var(--amber);
  color: var(--amber-pale);
}

.btn--light {
  background: var(--cream);
  color: var(--charcoal-deep);
  border-color: var(--cream);
}
.btn--light:hover { background: #fff; color: var(--charcoal-deep); }

.btn--block { width: 100%; }

.btn svg { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* --------------------------------------------------------------------------
   6. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(43, 43, 43, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 121, 46, 0.22);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

/* Wordmark: elegant serif KEYHEAT with a small caps SOLUTIONS underneath */
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { height: 2.35rem; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  color: var(--cream);
}
.brand__sub {
  font-family: var(--font-body);
  font-size: 0.53rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.32rem;
  margin-left: 0.2em;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 10px;
  background: transparent;
  border: var(--hairline);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-nav {
  position: fixed;
  inset: 4.5rem 0 auto 0;
  background: var(--charcoal);
  border-bottom: 1px solid rgba(200, 121, 46, 0.28);
  padding: 0.5rem var(--gutter) 1.75rem;
  transform: translateY(-130%);
  transition: transform 0.34s var(--ease);
  max-height: calc(100vh - 4.5rem);
  overflow-y: auto;
}
.site-nav.is-open { transform: translateY(0); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.site-nav a {
  display: block;
  padding: 0.95rem 0.25rem;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.site-nav a:hover { color: var(--amber-bright); }
.site-nav a[aria-current="page"] { color: var(--amber); }

/* the in-drawer call button keeps the .btn treatment rather than the link one */
.site-nav .nav-cta { margin-top: 1.4rem; }
.site-nav .nav-cta a.btn {
  display: flex;
  padding: 0.9rem 1.6rem;
  border-bottom: 0;
  color: #fff;
  font-size: 0.88rem;
}

.header-call { display: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    transform: none;
    background: none;
    border: 0;
    padding: 0;
    overflow: visible;
    max-height: none;
    margin-left: auto;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1.9rem; }
  .site-nav a {
    padding: 0.35rem 0;
    border-bottom: 0;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    position: relative;
  }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -3px;
    height: 1px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
  }
  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .nav-cta { display: none; }

  .header-call {
    display: inline-flex;
    margin-left: 1.75rem;
    padding: 0.65rem 1.25rem;
    min-height: 42px;
    font-size: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 46rem);
  padding-block: 4.5rem;
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(34, 34, 34, 0.95) 0%, rgba(38, 38, 38, 0.88) 45%, rgba(43, 43, 43, 0.62) 100%),
    linear-gradient(180deg, rgba(30, 30, 30, 0.55), rgba(30, 30, 30, 0.75));
}

.hero__inner { max-width: 38rem; }

.hero__mark {
  height: 4.25rem;
  width: auto;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 0.35rem;
  letter-spacing: 0.06em;
}
.hero__wordmark-sub {
  font-family: var(--font-body);
  font-size: clamp(0.62rem, 1.9vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.6rem;
}

.hero__tagline {
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  color: var(--text);
  max-width: 32rem;
  margin-bottom: 2rem;
}

/* Trust strip under the hero copy, thin amber bordered box motif */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border: var(--hairline);
  border-radius: var(--radius);
  background: rgba(26, 26, 26, 0.5);
  max-width: 34rem;
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.trust-strip__item strong { color: var(--cream); font-weight: 600; }
.trust-strip img { height: 1.9rem; width: auto; }

/* --------------------------------------------------------------------------
   8. Page banner (inner pages)
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  padding-block: 3.5rem 3rem;
  background: var(--charcoal);
  border-bottom: 1px solid rgba(200, 121, 46, 0.22);
  isolation: isolate;
  overflow: hidden;
}
.page-banner__media { position: absolute; inset: 0; z-index: -2; opacity: 0.3; }
.page-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.page-banner__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(43, 43, 43, 0.96), rgba(43, 43, 43, 0.7));
}
.page-banner h1 { margin-bottom: 0.4rem; }
.page-banner p { color: var(--text-dim); max-width: 40rem; }

@media (min-width: 700px) { .page-banner { padding-block: 5rem 4.25rem; } }

.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--amber-bright); }
.breadcrumb span { color: var(--amber); }

/* --------------------------------------------------------------------------
   9. Service cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--charcoal-soft);
  border: var(--hairline-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.service-card:hover {
  border-color: rgba(200, 121, 46, 0.75);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--charcoal-deep);
}
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43, 43, 43, 0.1), rgba(43, 43, 43, 0.72));
}
.service-card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { margin-bottom: 0.55rem; }
.service-card__body p { color: var(--text-dim); font-size: 0.93rem; }
.service-card__link {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.service-card__link:hover { color: var(--amber-bright); }
.service-card__link span { transition: transform 0.25s var(--ease); }
.service-card:hover .service-card__link span { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   10. Split rows (about teaser, service detail sections)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.75rem; }
  .split--reverse .split__media { order: 2; }
}

/* Thin amber bordered frame around photography, the recurring motif */
.framed {
  position: relative;
  border: var(--hairline);
  border-radius: var(--radius);
  padding: 0.6rem;
}
.framed img {
  width: 100%;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.framed--tall img { aspect-ratio: 3 / 4; }
.framed--portrait img { aspect-ratio: 4 / 5; }

.stat-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.stat {
  flex: 1 1 8rem;
  border: var(--hairline-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  background: rgba(0, 0, 0, 0.14);
}
.stat__value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Ticked feature lists */
.tick-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.tick-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.7rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.62rem;
  height: 0.62rem;
  border: 1px solid var(--amber);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   11. Testimonials
   -------------------------------------------------------------------------- */
.rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  border: var(--hairline);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  margin: 0 auto 2.75rem;
  max-width: 34rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.16);
}
.rating-summary__score {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--amber);
  line-height: 1;
}
.rating-summary p { font-size: 0.85rem; color: var(--text-dim); }

.stars { display: inline-flex; gap: 0.18rem; }
.stars svg { width: 1.05rem; height: 1.05rem; fill: var(--amber); }
.stars--lg svg { width: 1.35rem; height: 1.35rem; }

/* Carousel */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}
.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 0.5rem;
}

.quote {
  height: 100%;
  border: var(--hairline);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.75rem;
  background: var(--charcoal-soft);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.6;
  color: rgba(200, 121, 46, 0.5);
  height: 1.4rem;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2.2vw, 1.32rem);
  line-height: 1.55;
  color: var(--cream);
}
.quote__meta {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.quote__source {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.carousel__btn {
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: var(--hairline);
  border-radius: 50%;
  cursor: pointer;
  color: var(--amber-pale);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.carousel__btn:hover { background: rgba(200, 121, 46, 0.16); border-color: var(--amber); }
.carousel__btn svg { width: 1rem; height: 1rem; fill: currentColor; }

.carousel__dots { display: flex; gap: 0.55rem; }
.carousel__dot {
  width: 9px; height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(200, 121, 46, 0.6);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.carousel__dot[aria-selected="true"] { background: var(--amber); transform: scale(1.25); }

@media (min-width: 860px) {
  .carousel__slide { flex-basis: 50%; }
}

/* Static grid of quotes on the testimonials page */
.quote-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }

.quote--placeholder {
  border-style: dashed;
  background: transparent;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}
.quote--placeholder p { color: var(--text-dim); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   12. Service area
   -------------------------------------------------------------------------- */
.area-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 860px) { .area-layout { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; } }

.town-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1rem;
}
@media (min-width: 520px) { .town-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.town-list li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-left: 0.95rem;
  position: relative;
}
.town-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62rem;
  width: 5px; height: 5px;
  background: var(--amber);
  border-radius: 50%;
}

/* Styled service area graphic.
   NOTE: no map image exists in assets/. This is a stylised radius graphic
   standing in for one. Drop a real map export into assets/images/ and swap
   the .area-map block for an <img> when one is available. */
.area-map {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 30rem;
  margin-inline: auto;
  width: 100%;
  border: var(--hairline);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 50%, rgba(200, 121, 46, 0.16), transparent 62%),
    var(--charcoal-soft);
  overflow: hidden;
}
.area-map__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
}
.area-map__ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(200, 121, 46, 0.35);
  border-radius: 50%;
}
.area-map__ring:nth-of-type(1) { width: 32%; height: 32%; }
.area-map__ring:nth-of-type(2) { width: 58%; height: 58%; border-style: dashed; }
.area-map__ring:nth-of-type(3) { width: 84%; height: 84%; border-color: rgba(200, 121, 46, 0.2); }
.area-map__pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}
.area-map__pin img { height: 2.5rem; width: auto; }
.area-map__pin strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  color: var(--cream);
}
.area-map__pin small {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}
.area-map__label {
  position: absolute;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  gap: 2.75rem;
}
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; } }

.form-panel {
  border: var(--hairline);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.8rem;
  background: var(--charcoal-soft);
}
@media (min-width: 700px) { .form-panel { padding: 2.25rem 2.1rem 2.4rem; } }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.field .req { color: var(--amber); }

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  min-height: 48px;
  font-family: inherit;
  font-size: 1rem;               /* 16px keeps iOS from zooming on focus */
  color: var(--cream);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 8.5rem; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(164, 158, 150, 0.6); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(0, 0, 0, 0.32);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #d9694f; }

.field__error {
  display: block;
  min-height: 1.1rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #e8836b;
}

.form-note { font-size: 0.8rem; color: var(--text-dim); margin-top: 1rem; }

.form-status {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border: var(--hairline);
  border-radius: var(--radius);
  background: rgba(200, 121, 46, 0.1);
  font-size: 0.92rem;
  color: var(--cream);
}
.form-status[hidden] { display: none; }

.contact-card {
  border: var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  background: rgba(0, 0, 0, 0.16);
  margin-bottom: 1.5rem;
}
.contact-card h3 { margin-bottom: 0.5rem; }
.contact-card p { color: var(--text-dim); font-size: 0.93rem; }
.contact-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  color: var(--amber-bright);
  letter-spacing: 0.04em;
  margin: 0.35rem 0 1rem;
}
.contact-card__phone:hover { color: var(--amber-pale); }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  border-top: 1px solid rgba(200, 121, 46, 0.25);
  border-bottom: 1px solid rgba(200, 121, 46, 0.25);
  background:
    linear-gradient(rgba(34, 34, 34, 0.9), rgba(34, 34, 34, 0.92)),
    var(--charcoal);
  text-align: center;
}
.cta-band .btn-row { justify-content: center; }
.cta-band p { color: var(--text-dim); max-width: 36rem; margin-inline: auto; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #232323;
  padding-block: 3.25rem 1.5rem;
  border-top: 1px solid rgba(200, 121, 46, 0.2);
}
.footer-grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; } }

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.site-footer p { color: var(--text-dim); font-size: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 0.6rem; }
.site-footer ul a { color: var(--text-dim); font-size: 0.9rem; }
.site-footer ul a:hover { color: var(--amber-bright); }

.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; }
.footer-brand img { height: 2.6rem; width: auto; }

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--amber-bright);
  letter-spacing: 0.04em;
}

.social-row { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.social-row a {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--hairline-soft);
  border-radius: 50%;
  color: var(--text-dim);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.social-row a:hover { color: var(--amber); border-color: var(--amber); }
.social-row svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

.footer-badge { margin-top: 1.5rem; }
.footer-badge img { height: 2.6rem; width: auto; }

.footer-base {
  margin-top: 2.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.79rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   16. Mobile sticky action bar
   Most visitors arrive on a phone looking for an emergency repair, so the
   phone number and quote CTA stay pinned to the bottom of the screen.
   -------------------------------------------------------------------------- */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(200, 121, 46, 0.3);
  border-top: 1px solid rgba(200, 121, 46, 0.45);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  min-height: 4.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sticky-bar__call { background: var(--amber); color: #fff; }
.sticky-bar__call:hover { color: #fff; }
.sticky-bar__quote { background: #232323; color: var(--amber-pale); }
.sticky-bar svg { width: 1.05rem; height: 1.05rem; fill: currentColor; flex: none; }

@media (min-width: 900px) { .sticky-bar { display: none; } }

/* --------------------------------------------------------------------------
   17. Scroll reveal and motion preferences
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
