/* ==========================================================================
   The Yengi's Handy Man LLC — DMV Craftsmanship Design System
   Harmonized with Official Brand Logo: Deep Navy, Craftsman Crimson, Warm Ivory
   ========================================================================== */

:root {
  /* Color Palette — Curated HSL */
  --bg-canvas: hsl(36, 26%, 97%);         /* Crisp warm alabaster */
  --bg-surface: hsl(214, 20%, 93.5%);     /* Subtle cool-warm architectural stone */
  --bg-card: hsl(0, 0%, 100%);            /* Clean white card surface */
  --bg-ink: hsl(213, 73%, 14%);           /* Official logo deep navy */
  --bg-ink-elevated: hsl(213, 62%, 19%);  /* Elevated navy surface */

  --text-primary: hsl(213, 55%, 14%);     /* Deep navy-charcoal ink */
  --text-secondary: hsl(214, 18%, 34%);   /* Refined slate */
  --text-muted: hsl(214, 12%, 47%);       /* Muted steel */
  --text-on-dark: hsl(36, 30%, 97%);      /* Crisp off-white on navy */
  --text-on-dark-muted: hsl(214, 22%, 76%);

  --accent: hsl(359, 82%, 38%);           /* Official logo crimson red */
  --accent-hover: hsl(359, 85%, 31%);
  --accent-soft: hsl(359, 72%, 95%);
  --brass: hsl(38, 72%, 48%);             /* Rating stars & warm brass */
  --pine: hsl(152, 42%, 28%);             /* Verified licensed green */
  --pine-soft: hsl(150, 32%, 93%);
  --error: hsl(359, 78%, 42%);

  --border-subtle: hsl(214, 18%, 86%);
  --border-strong: hsl(214, 16%, 75%);
  --border-on-dark: hsla(214, 30%, 92%, 0.16);

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing & Layout */
  --container-max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-py: clamp(4.5rem, 9vw, 7.5rem);

  /* Radii & Elevation */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px hsla(24, 20%, 10%, 0.05), 0 4px 12px hsla(24, 20%, 10%, 0.04);
  --shadow-md: 0 4px 16px hsla(24, 20%, 10%, 0.06), 0 14px 36px hsla(24, 20%, 10%, 0.07);
  --shadow-lg: 0 12px 32px hsla(24, 20%, 10%, 0.10), 0 28px 60px hsla(24, 20%, 10%, 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 180ms var(--ease-out);
  --transition-base: 300ms var(--ease-out);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  line-height: 1.6;
  overflow-x: hidden;
  /* Subtle warm plaster grain so surfaces feel tactile, never sterile */
  background-image: radial-gradient(hsla(24, 18%, 35%, 0.035) 1px, transparent 0);
  background-size: 24px 24px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-ink);
  color: var(--text-on-dark);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: var(--radius-sm);
}

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

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

.section--surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section--dark {
  background-color: var(--bg-ink);
  color: var(--text-on-dark);
}

/* Typography Hierarchy */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section--dark .eyebrow {
  color: hsl(26, 78%, 64%);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
}

h1 {
  font-size: clamp(2.45rem, 5.2vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

h3 {
  font-size: clamp(1.22rem, 1.8vw, 1.45rem);
  letter-spacing: -0.018em;
}

p {
  margin: 0;
}

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 58ch;
}

.section--dark .lead {
  color: var(--text-on-dark-muted);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 680px;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

.section-header--split {
  max-width: none;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-header--split > div {
  max-width: 600px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.55rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast),
    border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background-color: var(--accent);
  color: hsl(38, 45%, 98%);
  box-shadow: 0 2px 6px hsla(18, 68%, 32%, 0.24);
}

.btn--primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px hsla(18, 68%, 32%, 0.28);
}

.btn--secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--bg-ink);
  background-color: hsl(36, 30%, 95%);
  transform: translateY(-1px);
}

.btn--dark-outline {
  background-color: transparent;
  color: var(--text-on-dark);
  border-color: hsla(36, 30%, 95%, 0.28);
}

.btn--dark-outline:hover {
  background-color: hsla(36, 30%, 95%, 0.08);
  border-color: hsla(36, 30%, 95%, 0.55);
}

.btn--sm {
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: hsla(0, 0%, 100%, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-logo {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: hsl(0, 0%, 100%);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.footer-logo-wrap .brand-logo {
  height: 58px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-ink);
  color: hsl(36, 40%, 95%);
  display: grid;
  place-items: center;
}

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

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

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-block: 0.25rem;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

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

.nav-links a[aria-current="page"] {
  font-weight: 600;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.header-phone:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 1.25rem var(--gutter) 1.75rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-drawer li a {
  display: block;
  padding: 0.7rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-actions {
  display: grid;
  gap: 0.75rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-block: clamp(3rem, 6vw, 5.25rem) clamp(3.5rem, 6vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.hero-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.4rem;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trust-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.trust-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.hero-media {
  position: relative;
}

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-ink);
  aspect-ratio: 4 / 3;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 700ms var(--ease-out);
}

.hero-photo-frame:hover img {
  transform: scale(1.025);
}

.hero-caption-card {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  background: hsla(24, 14%, 12%, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-on-dark);
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-on-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-caption-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-caption-sub {
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
}

.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: hsl(146, 52%, 72%);
  white-space: nowrap;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.filter-btn.is-active {
  background: var(--bg-ink);
  border-color: var(--bg-ink);
  color: var(--text-on-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.service-card.is-hidden {
  display: none;
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.service-rate {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.service-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.service-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

.service-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-link:hover {
  gap: 0.65rem;
  color: var(--accent-hover);
}

/* ==========================================================================
   Interactive Estimate Calculator
   ========================================================================== */
.estimator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

.estimator-controls {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.control-label {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.select-input,
.text-input,
.textarea-input {
  width: 100%;
  padding: 0.82rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: hsl(38, 45%, 99%);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.select-input:focus,
.text-input:focus,
.textarea-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px hsla(18, 68%, 44%, 0.14);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.choice-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-option {
  position: relative;
}

.choice-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  cursor: pointer;
  transition: all var(--transition-fast);
  height: 100%;
}

.choice-card strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.choice-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.choice-option input:checked + .choice-card {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.choice-option input:focus-visible + .choice-card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 0.12rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.estimator-summary {
  background: var(--bg-ink);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.2vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.summary-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(26, 78%, 64%);
}

.summary-price {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  margin-top: 0.35rem;
}

.summary-note {
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  line-height: 1.55;
}

.summary-breakdown {
  border-top: 1px solid var(--border-on-dark);
  border-bottom: 1px solid var(--border-on-dark);
  padding-block: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.breakdown-row span:first-child {
  color: var(--text-on-dark-muted);
}

.breakdown-row span:last-child {
  font-weight: 600;
  text-align: right;
}

/* ==========================================================================
   Project Showcase
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.project-card:hover .project-media img {
  transform: scale(1.04);
}

.project-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.project-duration {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.project-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

/* ==========================================================================
   Process & Guarantee (Dark Section)
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.process-step {
  background: var(--bg-ink-elevated);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: hsl(26, 78%, 64%);
  line-height: 1;
}

.process-step h3 {
  color: var(--text-on-dark);
}

.process-step p {
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

.guarantee-strip {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  background: hsla(36, 30%, 95%, 0.05);
  border: 1px solid var(--border-on-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.guarantee-strip strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.25rem;
}

.guarantee-strip p {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  max-width: 62ch;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-stars {
  color: var(--brass);
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}

.review-quote {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.review-author {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.review-author strong {
  font-size: 0.92rem;
}

.review-author span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact & Free Estimate Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.info-item span,
.info-item a {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.info-item a:hover {
  color: var(--accent);
}

.estimate-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.field-error {
  font-size: 0.8rem;
  color: var(--error);
  min-height: 1.1em;
}

.field.has-error .text-input,
.field.has-error .select-input,
.field.has-error .textarea-input {
  border-color: var(--error);
}

.textarea-input {
  resize: vertical;
  min-height: 112px;
}

.form-footer {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-privacy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-confirmation {
  display: none;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--pine-soft);
  border: 1px solid hsla(152, 36%, 30%, 0.25);
  color: hsl(152, 42%, 20%);
  flex-direction: column;
  gap: 0.75rem;
}

.form-confirmation.is-visible {
  display: flex;
}

.form-confirmation h3 {
  color: hsl(152, 42%, 18%);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-ink);
  color: var(--text-on-dark);
  padding-block: 3.5rem 2.25rem;
  border-top: 1px solid var(--border-on-dark);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-on-dark);
}

.footer-brand p {
  margin-top: 0.85rem;
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  max-width: 38ch;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-on-dark);
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a,
.footer-col li {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-on-dark);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Scroll Reveal Motion
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Subpage Hero & Breadcrumbs
   ========================================================================== */
.page-hero {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li + li::before {
  content: '/';
  color: var(--border-strong);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-primary);
  font-weight: 600;
}

.page-hero-inner {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   DMV Service Areas Grid
   ========================================================================== */
.dmv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.area-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.area-card-tag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.area-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.city-tags li {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.32rem 0.68rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

/* ==========================================================================
   FAQ Accordion (Semantic <details>)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 820px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.5rem 1.35rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.68;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* ==========================================================================
   Project Case Studies & CTA Band
   ========================================================================== */
.case-study-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.case-study {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
}

.case-study-media {
  min-height: 280px;
  background: var(--bg-ink);
}

.case-study-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-content {
  padding: clamp(1.6rem, 3.2vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.case-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding-block: 1rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.case-specs strong {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.cta-band {
  background: var(--bg-ink);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.cta-band-copy {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cta-band-copy p {
  color: var(--text-on-dark-muted);
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.not-found {
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
  text-align: center;
}

.not-found-inner {
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

/* ==========================================================================
   Legal Document Pages (Privacy Policy & Terms and Conditions)
   ========================================================================== */
.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  box-shadow: var(--shadow-sm);
  max-width: 860px;
}

.legal-meta {
  font-size: 0.86rem;
  color: var(--text-muted);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-prose {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legal-prose section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.legal-prose h2 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  color: var(--text-primary);
}

.legal-prose p,
.legal-prose li {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.legal-prose ul {
  margin: 0.25rem 0 0;
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.legal-prose a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Form Delivery Status & Utilities */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.form-status-error {
  display: none;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid hsla(359, 82%, 38%, 0.28);
  color: hsl(359, 70%, 28%);
  font-size: 0.9rem;
  line-height: 1.55;
}

.form-status-error.is-visible {
  display: block;
}

.form-status-error a {
  font-weight: 700;
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .estimator-grid,
  .contact-grid,
  .case-study {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .projects-grid,
  .reviews-grid,
  .dmv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 620px) {
  .services-grid,
  .projects-grid,
  .reviews-grid,
  .process-grid,
  .dmv-grid,
  .choice-grid,
  .form-grid,
  .case-specs {
    grid-template-columns: 1fr;
  }

  .hero-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .hero-caption-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .hero-actions,
  .page-hero-actions,
  .cta-band-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .page-hero-actions .btn,
  .cta-band-actions .btn {
    width: 100%;
  }
}
