/* ==========================================================================
   SafeTurn Locksmith — Chicago, IL
   Premium dark / brass security-industry design system
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #0d0d0f;
  --bg-raise: #131315;
  --bg-card: #18181b;
  --bg-card-hover: #1e1e22;
  --bg-inset: #09090b;

  /* Brass / gold */
  --gold: #d4af37;
  --gold-deep: #c9a227;
  --gold-light: #e8cc6a;
  --gold-pale: #f3e3ad;

  /* Text */
  --text: #f2efe8;
  --text-muted: #b3ada0;
  --text-faint: #7d766a;
  --on-gold: #14120a;

  /* Lines */
  --hairline: rgba(212, 175, 55, 0.16);
  --hairline-strong: rgba(212, 175, 55, 0.32);

  /* Status */
  --danger: #e05a4e;

  /* Type */
  --font-display: Georgia, "Times New Roman", "Iowan Old Style", ui-serif, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6.5rem;

  /* Layout */
  --content-w: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --header-h: 84px;

  --shadow-card: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 8px 24px -8px rgba(212, 175, 55, 0.35);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.18;
  margin: 0 0 var(--sp-4);
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

p {
  margin: 0 0 var(--sp-4);
  color: var(--text-muted);
  max-width: 62ch;
}

a {
  color: var(--gold-light);
  text-decoration-color: rgba(232, 204, 106, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-pale);
}

ul,
ol {
  padding-left: 1.2em;
  color: var(--text-muted);
}

li {
  margin-bottom: var(--sp-2);
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
}

/* Focus visibility everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* -------------------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

main {
  display: block;
}

.section {
  padding-block: var(--sp-8);
  position: relative;
}

.section-tight {
  padding-block: var(--sp-7);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  border-radius: 2px;
}

.section-head {
  max-width: 68ch;
  margin-bottom: var(--sp-7);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-alt {
  background: var(--bg-raise);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

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

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -60px;
  background: var(--gold);
  color: var(--on-gold);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 200;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: var(--sp-4);
}

/* -------------------------------------------------------------------------
   4. Buttons & CTAs
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.1;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    filter 0.18s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(155deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: var(--on-gold);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  filter: brightness(1.06);
  color: var(--on-gold);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline-strong);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.06);
}

.btn-ghost {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.16);
}

.btn-lg {
  padding: 1.1rem 2rem;
  font-size: 1.08rem;
}

.btn-block {
  width: 100%;
}

.btn svg {
  flex-shrink: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}

/* -------------------------------------------------------------------------
   5. Header / Nav
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--sp-5);
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: var(--sp-2) 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-light);
  border-color: var(--gold);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-9);
  background: radial-gradient(ellipse 90% 70% at 82% 0%, rgba(212, 175, 55, 0.14), transparent 60%),
    linear-gradient(180deg, #101012 0%, #0d0d0f 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: var(--bg-raise);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-8);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy .eyebrow {
  color: var(--gold-light);
}

.hero-copy h1 {
  margin-bottom: var(--sp-5);
}

.hero-copy .lede {
  font-size: 1.1rem;
  max-width: 52ch;
  color: var(--text-muted);
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art svg {
  width: 100%;
  height: auto;
  max-width: 480px;
}

.hero-trustline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  font-size: 0.88rem;
  color: var(--text-faint);
}

.hero-trustline li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
}

.hero-trustline svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   7. Stats / trust badge bar
   ------------------------------------------------------------------------- */
.stats-bar {
  background: var(--bg-raise);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: var(--sp-7);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--gold-light);
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-faint);
  letter-spacing: 0.03em;
  margin-top: var(--sp-1);
}

/* -------------------------------------------------------------------------
   8. Cards — services / values / team
   ------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.card {
  background: linear-gradient(165deg, var(--bg-card) 0%, var(--bg-inset) 130%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: var(--sp-4);
}

.card h3 {
  margin-bottom: var(--sp-2);
}

.card p {
  margin-bottom: var(--sp-3);
  font-size: 0.96rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-light);
  text-decoration: none;
}

.card-link:hover {
  color: var(--gold-pale);
}

.card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s var(--ease);
}

.card-link:hover svg {
  transform: translateX(3px);
}

/* Services page uses a two-column list with anchor targets */
.service-block {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--sp-5);
  padding-block: var(--sp-7);
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.service-block:last-of-type {
  border-bottom: none;
}

.service-icon-wrap {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.04));
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-wrap svg {
  width: 46px;
  height: 46px;
}

.service-block h2 {
  margin-bottom: var(--sp-2);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

.service-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

/* -------------------------------------------------------------------------
   9. Why choose us
   ------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-5);
}

.why-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--sp-4);
  margin: 0;
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-icon svg {
  width: 20px;
  height: 20px;
}

.why-list h3 {
  margin-bottom: var(--sp-1);
  font-size: 1.05rem;
}

.why-list p {
  font-size: 0.94rem;
  margin: 0;
}

.tumbler-art {
  display: flex;
  justify-content: center;
}

.tumbler-art svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

/* -------------------------------------------------------------------------
   10. Testimonials
   ------------------------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  position: relative;
}

.testimonial .stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--sp-3);
}

.testimonial .stars svg {
  width: 16px;
  height: 16px;
}

.testimonial blockquote {
  margin: 0 0 var(--sp-4);
  font-style: italic;
  color: var(--text);
  font-size: 0.98rem;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--gold-light);
  font-size: 0.88rem;
}

.testimonial .role {
  display: block;
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 400;
}

/* -------------------------------------------------------------------------
   11. Service area teaser / list
   ------------------------------------------------------------------------- */
.area-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.area-chip {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.area-chip:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.area-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}

.area-feature {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
}

.area-feature .response-time {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: var(--sp-3);
}

.area-feature .response-time svg {
  width: 14px;
  height: 14px;
}

/* -------------------------------------------------------------------------
   12. Final CTA banner
   ------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-7);
  background: linear-gradient(135deg, #17140b 0%, #1c1710 45%, #100e08 100%);
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.14), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(212, 175, 55, 0.12), transparent 50%);
  pointer-events: none;
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}

.cta-banner h2 {
  color: var(--gold-pale);
}

.cta-banner p {
  color: var(--text-muted);
  margin-inline: auto;
}

.cta-banner .cta-row {
  justify-content: center;
  margin-top: var(--sp-5);
}

/* -------------------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-inset);
  border-top: 1px solid var(--hairline-strong);
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-6);
  margin-top: var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--hairline);
}

.footer-brand {
  display: flex;
  gap: var(--sp-3);
}

.footer-brand .brand-mark {
  width: 38px;
  height: 38px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-faint);
  margin-top: var(--sp-2);
  max-width: 30ch;
}

.footer-heading {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-nap p {
  margin: 0 0 var(--sp-2);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-nap a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nap a:hover {
  color: var(--gold-light);
}

.footer-social {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.footer-social a:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer-bottom a {
  color: var(--text-faint);
}

.license-line {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* -------------------------------------------------------------------------
   14. Forms (contact page)
   ------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
}

.form-row {
  margin-bottom: var(--sp-5);
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.02em;
}

input,
select,
textarea {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.required {
  color: var(--gold-light);
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: var(--sp-4);
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  margin-bottom: var(--sp-5);
}

.info-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.info-row h3 {
  font-size: 0.98rem;
  margin-bottom: var(--sp-1);
}

.info-row p,
.info-row a {
  margin: 0;
  font-size: 0.95rem;
}

.hours-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: var(--sp-4);
  font-weight: 700;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: var(--sp-3) var(--sp-2);
  border-bottom: 1px solid var(--hairline);
  font-size: 0.92rem;
}

.hours-table th {
  color: var(--text-faint);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.hours-table .emergency-row td {
  color: var(--gold-light);
  font-weight: 700;
}

.hours-table tr:last-child td {
  border-bottom: none;
}

/* -------------------------------------------------------------------------
   15. Sticky mobile call bar
   ------------------------------------------------------------------------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: linear-gradient(155deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  padding: var(--sp-3) var(--sp-5);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
}

.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  color: var(--on-gold);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.02rem;
}

.mobile-call-bar svg {
  width: 20px;
  height: 20px;
}

/* -------------------------------------------------------------------------
   16. Misc decorative dividers
   ------------------------------------------------------------------------- */
.keyhole-divider {
  display: flex;
  justify-content: center;
  padding-block: var(--sp-6);
  opacity: 0.55;
}

.keyhole-divider svg {
  width: 32px;
  height: 44px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-card);
}

.badge svg {
  width: 16px;
  height: 16px;
}

/* -------------------------------------------------------------------------
   17. About page — stats, team, certifications
   ------------------------------------------------------------------------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.founder-art {
  display: flex;
  justify-content: center;
}

.founder-art svg {
  width: 100%;
  max-width: 340px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.team-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
}

.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
}

.team-card h3 {
  margin-bottom: var(--sp-1);
}

.team-role {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
  display: block;
}

.team-card p {
  font-size: 0.92rem;
  margin: 0 auto;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.cert-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  background: linear-gradient(165deg, var(--bg-card), var(--bg-inset));
}

.cert-card svg {
  width: 40px;
  height: 40px;
  margin-bottom: var(--sp-3);
}

.cert-card h3 {
  font-size: 1rem;
  margin-bottom: var(--sp-2);
}

.cert-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* -------------------------------------------------------------------------
   18. Responsive breakpoints
   ------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid,
  .why-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .hero-art svg {
    max-width: 320px;
  }

  .card-grid,
  .testimonial-grid,
  .team-grid,
  .cert-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--sp-6);
  }

  .area-chip-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .area-feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--sp-7);
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--sp-6) var(--sp-5);
    gap: var(--sp-6);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.26s var(--ease);
    z-index: 99;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: var(--sp-2);
  }

  .nav-links a {
    display: block;
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 1.05rem;
  }

  .header-cta .btn span.btn-text-full {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .service-block {
    grid-template-columns: 64px 1fr;
  }

  .service-icon-wrap {
    width: 60px;
    height: 60px;
  }

  .service-icon-wrap svg {
    width: 32px;
    height: 32px;
  }

  .card-grid,
  .testimonial-grid,
  .team-grid,
  .cert-grid,
  .values-grid,
  .stats-grid,
  .area-chip-grid {
    grid-template-columns: 1fr;
  }

  .form-row-split {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mobile-call-bar {
    display: block;
  }

  body {
    padding-bottom: 68px;
  }

  .section {
    padding-block: var(--sp-7);
  }
}

@media (max-width: 480px) {
  .wrap {
    padding-inline: var(--sp-4);
  }

  h1 {
    font-size: 1.9rem;
  }

  .cta-banner {
    padding: var(--sp-6) var(--sp-4);
  }
}

/* ==========================================================================
   19. Addendum — Booking, Portal, Payments & Estimate (appended)
   ========================================================================== */
:root {
  --success: #4caf7d;
  --success-light: #7fd6ab;
  --danger-light: #f0968c;
}

/* -- 19.1 Nav "Book Now" pill + inline contextual callout -------------- */
.nav-links a.nav-book-btn {
  background: linear-gradient(155deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: var(--on-gold);
  border-radius: 999px;
  padding: var(--sp-2) var(--sp-5);
  border-bottom: none;
  font-weight: 800;
}

.nav-links a.nav-book-btn:hover,
.nav-links a.nav-book-btn[aria-current="page"] {
  color: var(--on-gold);
  border-color: transparent;
  filter: brightness(1.06);
}

.inline-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-5);
}

.inline-callout svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.inline-callout p {
  margin: 0;
  font-size: 0.94rem;
}

/* -- 19.2 Segmented mode tabs (booking.html) ---------------------------- */
.mode-tabs {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: var(--sp-7);
}

.mode-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.mode-tab.is-active {
  background: linear-gradient(155deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: var(--on-gold);
}

.mode-panel[hidden] {
  display: none;
}

/* -- 19.3 Emergency dispatch panel --------------------------------------- */
.emergency-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  background: linear-gradient(135deg, rgba(224, 90, 78, 0.16), rgba(224, 90, 78, 0.03));
  border: 1px solid rgba(224, 90, 78, 0.45);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-7);
}

.emergency-banner svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.emergency-banner h2 {
  color: var(--danger-light);
  font-size: 1.15rem;
  margin-bottom: var(--sp-1);
}

.emergency-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.btn-danger {
  background: linear-gradient(155deg, #f0776c 0%, var(--danger) 55%, #c0453a 100%);
  color: #1a0805;
  box-shadow: 0 8px 24px -8px rgba(224, 90, 78, 0.45);
}

.btn-danger:hover {
  filter: brightness(1.06);
  color: #1a0805;
}

.dispatch-form-card,
.calendar-card,
.booking-form-card,
.confirm-card,
.estimate-panel,
.summary-card,
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
}

.dispatch-tracking {
  background: linear-gradient(165deg, var(--bg-card) 0%, var(--bg-inset) 130%);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
}

.dispatch-tech {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--hairline);
}

.tech-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tech-meta .tech-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.tech-meta .tech-role {
  font-size: 0.84rem;
  color: var(--text-faint);
}

.dispatch-ref {
  margin-left: auto;
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.dispatch-ref strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}

.eta-block {
  text-align: center;
  padding-block: var(--sp-5);
}

.eta-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: var(--sp-2);
}

.eta-countdown {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.eta-countdown.is-complete {
  color: var(--success-light);
}

.dispatch-status {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-top: var(--sp-3);
}

.dispatch-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-inset);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-top: var(--sp-5);
}

.dispatch-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  transition: width 1s linear;
}

.dispatch-progress-bar.is-complete {
  background: linear-gradient(90deg, var(--success), var(--success-light));
}

.status-steps {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-6);
  list-style: none;
  padding: 0;
}

.status-steps li {
  flex: 1;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-faint);
  position: relative;
  margin: 0;
}

.status-steps li::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-inset);
  border: 2px solid var(--hairline-strong);
  margin: 0 auto var(--sp-2);
}

.status-steps li.is-complete {
  color: var(--gold-light);
  font-weight: 700;
}

.status-steps li.is-complete::before {
  background: var(--gold);
  border-color: var(--gold);
}

.status-steps li.is-current {
  color: var(--text);
  font-weight: 700;
}

.status-steps li.is-current::before {
  background: var(--danger);
  border-color: var(--danger);
}

/* -- 19.4 Calendar (Schedule a Visit) ------------------------------------ */
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
}

.calendar-head h3 {
  margin: 0;
}

.calendar-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--sp-2);
}

.calendar-weekdays div {
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding-bottom: var(--sp-2);
}

.cal-day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: inherit;
  padding: 0;
}

.cal-day.is-empty {
  background: transparent;
  border: none;
}

.cal-day.is-available {
  cursor: pointer;
  border-color: var(--hairline-strong);
  color: var(--text);
  font-weight: 600;
}

.cal-day.is-available:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
}

.cal-day.is-unavailable {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}

.cal-day.is-today {
  box-shadow: inset 0 0 0 2px var(--gold-deep);
}

.cal-day.is-selected {
  background: linear-gradient(155deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: var(--on-gold);
  font-weight: 800;
  border-color: transparent;
}

.calendar-legend {
  display: flex;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
  font-size: 0.78rem;
  color: var(--text-faint);
  flex-wrap: wrap;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.legend-dot.available {
  background: var(--bg-inset);
  border: 1px solid var(--hairline-strong);
}

.legend-dot.unavailable {
  background: var(--bg-inset);
  opacity: 0.4;
}

.legend-dot.selected {
  background: linear-gradient(155deg, var(--gold-light), var(--gold-deep));
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.slot-btn {
  border: 1px solid var(--hairline-strong);
  background: var(--bg-inset);
  color: var(--text);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  font-size: 0.92rem;
}

.slot-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.slot-btn.is-selected {
  background: linear-gradient(155deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: var(--on-gold);
  border-color: transparent;
}

.slot-btn.is-taken {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.emergency-flag {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: rgba(224, 90, 78, 0.1);
  border: 1px solid rgba(224, 90, 78, 0.4);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-6);
  font-size: 0.9rem;
}

.emergency-flag svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.emergency-flag p {
  margin: 0;
  color: var(--text-muted);
}

/* -- 19.5 Confirmation screens -------------------------------------------- */
.confirm-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(76, 175, 125, 0.12);
  border: 1px solid rgba(76, 175, 125, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
}

.confirm-icon-wrap svg {
  width: 34px;
  height: 34px;
}

.confirm-card {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.confirm-ref {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(212, 175, 55, 0.1);
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  font-weight: 700;
  margin: var(--sp-4) 0 var(--sp-6);
}

.confirm-details {
  text-align: left;
  background: var(--bg-inset);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-6);
  display: grid;
  gap: var(--sp-2);
  font-size: 0.94rem;
}

.confirm-details strong {
  color: var(--text);
}

.next-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
  text-align: left;
}

.next-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--sp-4);
  margin: 0;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--hairline-strong);
  color: var(--gold-light);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.92rem;
}

/* -- 19.6 Portal login ----------------------------------------------------- */
.login-shell {
  max-width: 440px;
  margin-inline: auto;
}

.login-card h1 {
  margin-bottom: var(--sp-2);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

/* -- 19.7 Portal dashboard --------------------------------------------- */
.portal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--sp-7);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.portal-topbar h1 {
  margin-bottom: var(--sp-1);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
}

.dash-card h2 {
  font-size: 1.15rem;
  margin-bottom: var(--sp-4);
}

.dash-card.full-width {
  grid-column: 1 / -1;
}

.appt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--hairline);
}

.appt-item:last-child {
  border-bottom: none;
}

.appt-date {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-light);
  display: block;
}

.appt-meta {
  font-size: 0.86rem;
  color: var(--text-faint);
}

.data-table {
  width: 100%;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: var(--sp-3) var(--sp-2);
  border-bottom: 1px solid var(--hairline);
}

.data-table th {
  color: var(--text-faint);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.status-badge.is-paid {
  background: rgba(76, 175, 125, 0.14);
  color: var(--success-light);
  border: 1px solid rgba(76, 175, 125, 0.4);
}

.status-badge.is-due {
  background: rgba(224, 90, 78, 0.14);
  color: var(--danger-light);
  border: 1px solid rgba(224, 90, 78, 0.4);
}

.status-badge.is-complete {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-light);
  border: 1px solid var(--hairline-strong);
}

.invoice-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
  background: var(--bg-inset);
}

.invoice-card:last-child {
  margin-bottom: 0;
}

.invoice-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.invoice-head h3 {
  margin-bottom: var(--sp-1);
  font-size: 1rem;
}

.invoice-sub {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.invoice-items {
  list-style: none;
  margin: 0 0 var(--sp-3);
  padding: 0;
  font-size: 0.88rem;
}

.invoice-items li {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  border-bottom: 1px dashed var(--hairline);
  margin: 0;
  color: var(--text-muted);
}

.invoice-items li:last-child {
  border-bottom: none;
}

.invoice-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  color: var(--text);
  font-size: 1.02rem;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--hairline-strong);
}

.property-block {
  margin-bottom: var(--sp-6);
}

.property-block:last-child {
  margin-bottom: 0;
}

.property-block h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-1);
  font-size: 1.02rem;
}

.property-address {
  font-size: 0.84rem;
  color: var(--text-faint);
  margin-bottom: var(--sp-3);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-1) var(--sp-4);
  font-size: 0.94rem;
}

.account-grid dt {
  color: var(--text-faint);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--sp-3);
}

.account-grid dd {
  margin: 2px 0 0;
  color: var(--text);
  font-weight: 600;
}

/* -- 19.8 Payment modal --------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  z-index: 300;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-card);
}

.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

.secure-note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: var(--sp-5);
  justify-content: center;
}

.secure-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.card-form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.pay-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-light);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--sp-2);
}

.pay-amount-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-5);
}

.field-error {
  color: var(--danger-light);
  font-size: 0.78rem;
  margin-top: var(--sp-1);
  display: none;
}

.field-error.is-shown {
  display: block;
}

.pay-spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-8) 0;
}

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid var(--hairline);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.pay-success {
  text-align: center;
  padding: var(--sp-4) 0;
}

.demo-note {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: var(--sp-7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}

.demo-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* -- 19.9 Estimate builder ------------------------------------------------ */
.estimate-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-8);
  align-items: start;
}

.service-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
}

.service-pick-btn {
  border: 1px solid var(--hairline-strong);
  background: var(--bg-inset);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
}

.service-pick-btn.is-active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
}

.service-pick-btn svg {
  width: 30px;
  height: 30px;
  margin: 0 auto var(--sp-2);
  display: block;
}

.estimate-field {
  margin-bottom: var(--sp-5);
}

.estimate-field[hidden] {
  display: none;
}

.estimate-fieldset[hidden] {
  display: none;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: var(--sp-1);
}

.stepper {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.stepper-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-inset);
  color: var(--gold-light);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: inherit;
}

.stepper-btn:hover {
  border-color: var(--gold);
}

.stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper-val {
  min-width: 44px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.summary-card {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-5));
}

.price-range {
  text-align: center;
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--sp-4);
}

.price-range .range-val {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: var(--gold-light);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.price-range .range-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-top: var(--sp-1);
}

.breakdown-list {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
}

.breakdown-list li {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.breakdown-list li:last-child {
  border-bottom: none;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--text-faint);
  background: var(--bg-inset);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: var(--sp-4);
  margin-top: var(--sp-5);
}

/* -- 19.10 Addendum responsive -------------------------------------------- */
@media (max-width: 980px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .estimate-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }

  .service-picker {
    grid-template-columns: repeat(3, 1fr);
  }

  .account-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links a.nav-book-btn {
    display: inline-block;
    margin-top: var(--sp-3);
  }

  .calendar-grid .cal-day {
    font-size: 0.8rem;
  }

  .slot-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .service-picker {
    grid-template-columns: 1fr 1fr;
  }

  .card-form-split {
    grid-template-columns: 1fr;
  }

  .dispatch-tech {
    flex-wrap: wrap;
  }

  .dispatch-ref {
    margin-left: 0;
    text-align: left;
  }

  .modal {
    padding: var(--sp-6) var(--sp-5);
  }
}

@media (max-width: 480px) {
  .status-steps {
    font-size: 0.62rem;
  }

  .eta-countdown {
    font-size: 2.4rem;
  }
}
