/* ==========================================================================
   Rock Hill Foundation Solutions — Design System & Production Stylesheet
   Palette: Deep Slate-Charcoal (#111827), Crisp Off-White (#f8fafc),
            Forest Emerald (#047857 / #059669), Structural Amber (#b45309)
   Fonts:   Self-hosted Plus Jakarta Sans + Inter (strict font-src 'self')
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette */
  --slate-950: #0b1120;
  --slate-900: #111827;
  --slate-800: #1f2937;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --canvas: #f8fafc;
  --surface: #ffffff;

  /* Forest Emerald Primary Accent */
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;

  /* Structural Warning Amber (strictly symptoms / risks) */
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-200: #fde68a;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;

  /* Form Feedback */
  --danger-700: #b91c1c;
  --danger-50: #fef2f2;
  --danger-200: #fecaca;

  /* Typography */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;

  /* Layout & Rhythm */
  --container-max: 76rem;
  --gutter: clamp(1rem, 2.5vw, 2rem);
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-pill: 9999px;

  /* Editorial Shadows */
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-sm: 0 4px 14px -2px rgba(17, 24, 39, 0.07),
    0 2px 6px -2px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 14px 30px -8px rgba(17, 24, 39, 0.14),
    0 4px 10px -4px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 22px 44px -12px rgba(11, 17, 32, 0.32);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

[id] {
  scroll-margin-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-size-adjust: from-font;
  line-height: 1.6;
  color: var(--slate-700);
  background-color: var(--canvas);
  text-align: start;
  overflow-wrap: break-word;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: var(--emerald-700);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: var(--emerald-800);
}

:focus-visible {
  outline: 2.5px solid var(--emerald-500);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size-adjust: from-font;
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.35rem);
}

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

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

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

strong {
  color: var(--slate-900);
  font-weight: 600;
}

.section-dark strong,
.hero strong,
.page-hero strong,
.site-footer strong {
  color: #ffffff;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--slate-900);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Layout Containers & Section Rhythm (Zero Stacked Dark Containers)
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  margin-inline: auto;
}

.prose {
  max-width: 68ch;
}

.section {
  padding-block: clamp(3.25rem, 5.5vw, 5.25rem);
}

.section--tight {
  padding-block: clamp(2.25rem, 3.5vw, 3.25rem);
}

.section-light {
  background-color: var(--surface);
  color: var(--slate-700);
}

.section-tinted {
  background-color: var(--canvas);
  color: var(--slate-700);
  border-block: 1px solid var(--slate-200);
}

.section-dark {
  background-color: var(--slate-900);
  color: #e2e8f0;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-dark p {
  color: #cbd5e1;
}

.section-header {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background-color: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-100);
}

.eyebrow--dark {
  background-color: rgba(16, 185, 129, 0.14);
  color: var(--emerald-400);
  border-color: rgba(52, 211, 153, 0.32);
}

.eyebrow--warn {
  background-color: var(--amber-50);
  color: var(--amber-700);
  border-color: var(--amber-200);
}

.lead-copy {
  font-size: clamp(1.03rem, 0.98rem + 0.28vw, 1.18rem);
  line-height: 1.65;
  color: var(--slate-700);
}

.section-dark .lead-copy,
.hero .lead-copy,
.page-hero .lead-copy {
  color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-block-size: 2.95rem;
  padding: 0.72rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.96875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

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

.btn-primary {
  background-color: var(--emerald-700);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.26);
}

.btn-primary:hover {
  background-color: var(--emerald-600);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.34);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--slate-900);
  border-color: var(--slate-300);
}

.btn-secondary:hover {
  border-color: var(--emerald-700);
  color: var(--emerald-700);
  background-color: var(--emerald-50);
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: var(--emerald-400);
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Sticky Header & Accessible Mobile Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--slate-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-block-size: 3.75rem;
  padding-block: 0.65rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
  color: var(--slate-900);
  flex: 0 1 auto;
}

.brand-link:hover {
  color: var(--slate-900);
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald-700);
  letter-spacing: 0.01em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-nav>a,
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  font-family: var(--font-display);
  font-size: 0.9125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--slate-700);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.primary-nav>a:hover,
.primary-nav>a[aria-current="page"],
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.is-active,
.nav-dropdown-trigger[aria-expanded="true"],
.nav-dropdown.is-open>.nav-dropdown-trigger {
  color: var(--emerald-700);
  background-color: var(--emerald-50);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 60;
  min-width: 260px;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--emerald-700);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.18s var(--ease-out), visibility 0.16s ease;
}

/* Invisible hover bridge so diagonal cursor movement never prematurely closes the menu */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -0.65rem;
  left: 0;
  right: 0;
  height: 0.65rem;
}

.nav-dropdown.is-open>.nav-dropdown-menu,
.nav-dropdown-trigger[aria-expanded="true"]+.nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown.is-open .nav-chevron,
.nav-dropdown-trigger[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover>.nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
  }
}

.nav-dropdown-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--slate-700);
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] {
  background-color: var(--emerald-50);
  color: var(--emerald-700);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-block-size: 2.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background-color: var(--slate-900);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.header-phone:hover {
  background-color: var(--emerald-700);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-block-size: 2.75rem;
  padding: 0.5rem;
  background: var(--surface);
  color: var(--slate-900);
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--emerald-700);
  color: var(--emerald-700);
}

.mobile-nav {
  display: none;
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  border-top: 1px solid var(--slate-200);
  background-color: var(--surface);
  padding: 0.9rem var(--gutter) 1.35rem;
  box-shadow: var(--shadow-md);
}

.site-header.is-open .mobile-nav {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.mobile-nav-list>li>a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--slate-900);
  text-decoration: none;
}

.mobile-nav-list a:hover,
.mobile-nav-list a[aria-current="page"] {
  background-color: var(--emerald-50);
  color: var(--emerald-700);
}

.mobile-nav-group {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background-color: var(--canvas);
  overflow: hidden;
}

.mobile-nav-group summary {
  list-style: none;
  cursor: pointer;
  padding: 0.68rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-900);
}

.mobile-nav-group summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-group summary::after {
  content: "+";
  width: 1.45rem;
  height: 1.45rem;
  border-radius: var(--radius-pill);
  background-color: var(--emerald-50);
  color: var(--emerald-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

.mobile-nav-group[open] summary::after {
  content: "−";
  background-color: var(--emerald-700);
  color: #ffffff;
}

.mobile-nav-sublist {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0.4rem 0.5rem;
  background-color: var(--surface);
  border-top: 1px solid var(--slate-200);
  display: grid;
  gap: 0.15rem;
}

.mobile-nav-sublist li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-sublist a {
  display: block;
  padding: 0.52rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-700);
  text-decoration: none;
}

@media (max-width: 64rem) {
  .primary-nav {
    display: none;
  }

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

@media (max-width: 36rem) {
  .header-inner {
    gap: 0.45rem;
    min-block-size: 3.5rem;
    padding-block: 0.4rem;
  }

  .brand-link {
    gap: 0.45rem;
    flex: 1 1 0;
    min-width: 0;
  }

  .brand-mark {
    width: 1.9rem;
    height: 1.9rem;
  }

  .brand-name {
    font-size: 0.8125rem;
    line-height: 1.15;
    white-space: normal;
  }

  .brand-sub {
    display: none;
  }

  .header-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .header-phone {
    min-block-size: 2.25rem;
    padding: 0.32rem 0.58rem;
    font-size: 0.78125rem;
    white-space: nowrap;
  }

  .header-phone .phone-label-prefix {
    display: none;
  }

  .nav-toggle {
    min-width: 2.25rem;
    min-block-size: 2.25rem;
    padding: 0.3rem;
  }
}

/* --------------------------------------------------------------------------
   2-Column Hero & Above-the-Fold Inspection Form
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--slate-900);
  background-image:
    radial-gradient(circle at 82% 16%, rgba(5, 150, 105, 0.22), transparent 44%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, #0f172a 100%);
  color: #f8fafc;
  padding: 1.45rem 0 1.55rem;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  margin-bottom: 0.45rem;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 2.9vw, 2.55rem);
  line-height: 1.12;
  margin-bottom: 0.55rem;
}

.hero .lead-copy {
  font-size: 0.94rem;
  line-height: 1.46;
  margin-bottom: 0.65rem;
}

.hero-accent {
  color: var(--emerald-400);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  padding-top: 0;
}

.hero-credentials {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.hero-credentials li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #e2e8f0;
  font-size: 0.895rem;
  line-height: 1.4;
}

.hero-credentials .icon-check {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.08rem;
  border-radius: var(--radius-pill);
  background-color: rgba(16, 185, 129, 0.16);
  color: var(--emerald-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-credentials .icon-check svg,
.trust-icon svg,
.li-icon svg,
.badge-warn svg,
.badge-check svg {
  flex-shrink: 0;
  display: block;
}

.hero-meta-note {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Inner Page Hero Variant */
.page-hero {
  position: relative;
  overflow: clip;
  background-color: var(--slate-900);
  background-image: radial-gradient(circle at 85% 20%,
      rgba(5, 150, 105, 0.18),
      transparent 45%);
  color: #f8fafc;
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
}

.page-hero.hero--with-form {
  padding: 1.6rem 0 1.7rem;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #ffffff;
}

.page-hero.hero--with-form .breadcrumbs {
  margin-bottom: 0.75rem;
}

.page-hero.hero--with-form .eyebrow {
  margin-bottom: 0.55rem;
}

.page-hero.hero--with-form h1 {
  font-size: clamp(1.85rem, 2.7vw, 2.45rem);
  line-height: 1.14;
  margin-bottom: 0.7rem;
}

.page-hero.hero--with-form .lead-copy {
  font-size: 0.96rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.page-hero.hero--with-form .btn-group {
  margin-top: 1.1rem !important;
}

.page-hero .hero-form-card {
  padding: 1.15rem 1.4rem;
}

.page-hero .form-card-title {
  font-size: 1.18rem;
  margin-bottom: 0.2rem;
}

.page-hero .form-card-subtitle {
  font-size: 0.84rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.page-hero .lead-form {
  gap: 0.6rem;
}

.page-hero .field {
  gap: 0.22rem;
}

.page-hero .field input,
.page-hero .field select {
  min-block-size: 2.38rem;
  padding: 0.5rem 0.72rem;
  font-size: 0.92rem;
}

.page-hero .field textarea {
  min-height: 3rem;
  min-block-size: 3rem;
  padding: 0.48rem 0.72rem;
  font-size: 0.92rem;
}

.page-hero .lead-form .btn {
  min-block-size: 2.7rem;
  padding: 0.62rem 1.15rem;
}

.page-hero .form-privacy-note {
  margin-top: 0.15rem;
  font-size: 0.78rem;
}

.contact-email-link {
  display: inline-block;
  max-width: 100%;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Layered Photographic Hero Backgrounds (Slate-Charcoal + Emerald Gradient Overlay) */
.hero.hero--bg,
.page-hero.hero--bg {
  background-color: var(--slate-900);
  background-image:
    linear-gradient(105deg,
      rgba(11, 17, 32, 0.82) 0%,
      rgba(17, 24, 39, 0.68) 54%,
      rgba(6, 78, 59, 0.48) 100%),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--bg h1,
.hero--bg .lead-copy {
  text-shadow: 0 1px 12px rgba(11, 17, 32, 0.42);
}

.hero--home {
  --hero-bg: url("/assets/img/hero-home.webp?v=2");
}

.hero--projects {
  --hero-bg: url("/assets/img/hero-projects.webp?v=2");
}

.hero--contact {
  --hero-bg: url("/assets/img/hero-contact.webp?v=2");
}

.hero--crack-repair {
  --hero-bg: url("/assets/img/hero-crack-repair.webp?v=2");
}

.hero--piers {
  --hero-bg: url("/assets/img/hero-piers.webp?v=2");
}

.hero--bowing-wall {
  --hero-bg: url("/assets/img/hero-bowing-wall.webp?v=2");
}

.hero--drainage {
  --hero-bg: url("/assets/img/hero-drainage.webp?v=2");
}

.hero--slab-leveling {
  --hero-bg: url("/assets/img/hero-slab-leveling.webp?v=2");
}

.hero--crawlspace {
  --hero-bg: url("/assets/img/hero-crawlspace.webp?v=2");
}

.hero--commercial {
  --hero-bg: url("/assets/img/hero-commercial.webp?v=2");
}

.hero--fort-mill {
  --hero-bg: url("/assets/img/hero-fort-mill.webp?v=2");
}

.hero--tega-cay {
  --hero-bg: url("/assets/img/hero-tega-cay.webp?v=2");
}

.hero--clover {
  --hero-bg: url("/assets/img/hero-clover.webp?v=2");
}

.hero--york {
  --hero-bg: url("/assets/img/hero-york.webp?v=2");
}

.hero--indian-land {
  --hero-bg: url("/assets/img/hero-lancaster.webp?v=2");
}

.hero--lake-wylie {
  --hero-bg: url("/assets/img/hero-rock-hill.webp?v=2");
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

.breadcrumbs a {
  color: #cbd5e1;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--emerald-400);
  text-decoration: underline;
}

.breadcrumbs li+li::before {
  content: "/";
  margin-right: 0.45rem;
  color: #64748b;
}

/* Above-the-Fold Hero Form Card */
.hero-form-card,
.form-card {
  background-color: var(--surface);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  border-top: 4px solid var(--emerald-700);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.35rem;
  box-shadow: var(--shadow-lg);
}

.form-card {
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  box-shadow: var(--shadow-sm);
}

.form-card-title {
  margin-bottom: 0.15rem;
  font-size: 1.16rem;
  color: var(--slate-900);
}

.form-card-subtitle {
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--slate-600);
}

.lead-form {
  display: grid;
  gap: 0.5rem;
}

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

.field {
  display: grid;
  gap: 0.18rem;
}

.field label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate-900);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-block-size: 2.28rem;
  padding: 0.44rem 0.68rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--slate-900);
  background-color: var(--surface);
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.field textarea {
  min-height: 2.95rem;
  min-block-size: 2.95rem;
  resize: vertical;
}

.hero-form-card .btn {
  min-block-size: 2.55rem;
  padding: 0.55rem 1rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-500);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--emerald-700);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.16);
}

/* Post-interaction validation styles (WCAG + Modern Web Guidance) */
.field :is(input, select, textarea):is(:user-invalid, [aria-invalid="true"]) {
  border-color: var(--danger-700);
  background-color: var(--danger-50);
}

.field-error {
  display: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--danger-700);
}

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

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  display: none;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  border: 1px solid transparent;
}

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

.form-status.is-pending {
  background-color: var(--slate-100);
  border-color: var(--slate-300);
  color: var(--slate-900);
}

.form-status.is-success {
  background-color: var(--emerald-50);
  border-color: var(--emerald-600);
  color: var(--emerald-800);
}

.form-status.is-error {
  background-color: var(--danger-50);
  border-color: var(--danger-200);
  color: var(--danger-700);
}

.form-privacy-note {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--slate-600);
  text-align: center;
}

@media (max-width: 58rem) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 48rem) {

  .hero,
  .page-hero.hero--with-form {
    padding-block: 1.4rem 1.85rem;
  }

  .hero-grid {
    gap: 1.15rem;
  }

  .hero .eyebrow,
  .page-hero .eyebrow {
    margin-bottom: 0.55rem;
    font-size: 0.75rem;
    padding: 0.24rem 0.62rem;
  }

  .hero h1,
  .page-hero.hero--with-form h1 {
    font-size: clamp(1.68rem, 1.35rem + 1.8vw, 2.2rem);
    margin-bottom: 0.6rem;
    line-height: 1.15;
  }

  .hero .lead-copy,
  .page-hero.hero--with-form .lead-copy {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }

  .hero-credentials {
    margin: 0.75rem 0 1rem;
    gap: 0.45rem;
  }

  .hero-credentials li {
    font-size: 0.8875rem;
    line-height: 1.4;
  }

  .hero-meta-note {
    margin-top: 0.65rem;
    font-size: 0.8rem;
  }

  .hero-form-card {
    padding: 1.15rem;
  }

  .form-card-title {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
  }

  .form-card-subtitle {
    font-size: 0.84rem;
    margin-bottom: 0.85rem;
  }

  .lead-form {
    gap: 0.65rem;
  }

  .hero .btn-group {
    gap: 0.55rem;
  }

  .hero .btn {
    min-block-size: 2.65rem;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 34rem) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .hero .btn-group,
  .page-hero .btn-group,
  .cta-band .btn-group {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

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

  .page-hero h1 {
    font-size: clamp(1.65rem, 1.3rem + 1.8vw, 2.15rem);
  }
}

/* --------------------------------------------------------------------------
   4-Item Trust Strip (Directly Below Hero)
   -------------------------------------------------------------------------- */
.trust-strip {
  background-color: var(--surface);
  border-bottom: 1px solid var(--slate-200);
  padding-block: 0.85rem;
}

.trust-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-right: 0.5rem;
}

.trust-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  background-color: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  color: var(--emerald-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.trust-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.25;
  margin-bottom: 0.12rem;
}

.trust-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--slate-700);
  line-height: 1.32;
}

@media (max-width: 60rem) {
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 32rem) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   Editorial Grids & Light Cards
   -------------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.2vw, 1.75rem);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 58rem) {

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

@media (max-width: 42rem) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.grid-2>*,
.grid-3>*,
.grid-4>*,
.hero-grid>*,
.case-grid>*,
.footer-grid>*,
.trust-item>div,
.cta-band>div {
  min-width: 0;
}

.card {
  min-width: 0;
  background-color: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.4vw, 1.75rem);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--emerald-600);
  box-shadow: var(--shadow-sm);
}

.card--accent-top {
  border-top: 3px solid var(--emerald-700);
}

.card--warn {
  background-color: var(--amber-50);
  border-color: var(--amber-200);
  border-left: 4px solid var(--amber-700);
}

.card--warn:hover {
  border-color: var(--amber-700);
}

.card p {
  color: var(--slate-700);
  font-size: 0.95rem;
}

.card-link {
  margin-top: auto;
  padding-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--emerald-700);
  text-decoration: none;
}

.card-link:hover {
  color: var(--emerald-800);
  text-decoration: underline;
}

.card-media {
  margin: calc(clamp(1.35rem, 2.4vw, 1.75rem) * -1) calc(clamp(1.35rem, 2.4vw, 1.75rem) * -1) 0.5rem;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  background-color: var(--slate-100);
  aspect-ratio: 16 / 10;
}

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

/* --------------------------------------------------------------------------
   Semantic Symptom (Amber Warning SVG) vs. Solution (Emerald Check SVG) Lists
   -------------------------------------------------------------------------- */
.list-symptoms,
.list-solutions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.list-symptoms li,
.list-solutions li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--slate-700);
  font-size: 0.96875rem;
  line-height: 1.55;
}

.li-icon {
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.08rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.li-icon--warn {
  background-color: var(--amber-100);
  border: 1px solid var(--amber-200);
  color: var(--amber-700);
}

.li-icon--check {
  background-color: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  color: var(--emerald-700);
}

.li-text {
  flex: 1 1 auto;
  min-width: 0;
}

.badge-warn,
.badge-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.badge-warn {
  background-color: var(--amber-100);
  color: var(--amber-800);
  border: 1px solid var(--amber-200);
}

.badge-warn svg {
  color: var(--amber-700);
}

.badge-check {
  background-color: var(--emerald-50);
  color: var(--emerald-800);
  border: 1px solid var(--emerald-100);
}

.badge-check svg {
  color: var(--emerald-700);
}

/* --------------------------------------------------------------------------
   Zero-CLS Interactive Before / After Comparison Slider
   -------------------------------------------------------------------------- */
.ba-slider {
  --ba-pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--slate-800);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-md);
  user-select: none;
  touch-action: pan-y;
}

.ba-slider--4x3 {
  aspect-ratio: 4 / 3;
}

.ba-layer {
  position: absolute;
  inset: 0;
  margin: 0;
}

.ba-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after {
  clip-path: inset(0 0 0 var(--ba-pos));
  will-change: clip-path;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 2.5px;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(11, 17, 32, 0.65);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--ba-pos);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  background-color: var(--emerald-700);
  border: 2.5px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(11, 17, 32, 0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 4;
  font-weight: 800;
  font-size: 0.95rem;
}

.ba-label {
  position: absolute;
  top: 0.85rem;
  z-index: 3;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}

.ba-label--before {
  left: 0.85rem;
  background-color: rgba(17, 24, 39, 0.86);
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.4);
}

.ba-label--after {
  right: 0.85rem;
  background-color: rgba(4, 120, 87, 0.92);
  color: #ffffff;
  border: 1px solid rgba(167, 243, 208, 0.45);
}

.ba-range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba-range:focus-visible~.ba-handle {
  outline: 3px solid var(--emerald-400);
  outline-offset: 3px;
}

/* Engineering Case Study Meta & Structural Logs */
.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: center;
}

.case-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-block: 1.25rem;
}

.spec-box {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--slate-100);
  border: 1px solid var(--slate-200);
}

.section-dark .spec-box {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.spec-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-600);
  margin-bottom: 0.2rem;
}

.section-dark .spec-label {
  color: #94a3b8;
}

.spec-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
}

.section-dark .spec-value {
  color: #ffffff;
}

@media (max-width: 56rem) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Process Steps, Spec Tables & Native FAQ Accordions
   -------------------------------------------------------------------------- */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  background-color: var(--slate-900);
  color: var(--emerald-400);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background-color: var(--surface);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

.spec-table th,
.spec-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}

.spec-table th {
  background-color: var(--slate-100);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--slate-900);
  text-wrap: balance;
}

.spec-table tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 54rem;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--slate-900);
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: var(--radius-pill);
  background-color: var(--emerald-50);
  color: var(--emerald-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
  background-color: var(--emerald-700);
  color: #ffffff;
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--slate-700);
  font-size: 0.95rem;
  border-top: 1px solid var(--slate-100);
  padding-top: 0.85rem;
}

/* --------------------------------------------------------------------------
   CTA Banner & Dark Slate Footer
   -------------------------------------------------------------------------- */
.cta-band {
  background-color: var(--emerald-700);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2,
.cta-band p {
  color: #ffffff;
}

.cta-band .btn-cta-invert {
  background-color: #ffffff;
  color: var(--slate-900);
  border-color: #ffffff;
}

.cta-band .btn-cta-invert:hover {
  background-color: var(--slate-900);
  color: #ffffff;
  border-color: var(--slate-900);
}

.site-footer {
  background-color: var(--slate-900);
  color: #cbd5e1;
  border-top: 4px solid var(--emerald-700);
  padding-top: clamp(3rem, 5vw, 4.25rem);
  padding-bottom: 2.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 2.5rem;
}

.site-footer h2,
.site-footer h3 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.925rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--emerald-400);
  text-decoration: underline;
}

.footer-contact-line {
  margin-bottom: 0.45rem;
  font-size: 0.9375rem;
  color: #e2e8f0;
}

.footer-contact-line a {
  color: var(--emerald-400);
  font-weight: 600;
  text-decoration: none;
}

.footer-contact-line a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84375rem;
  color: #94a3b8;
}

@media (max-width: 56rem) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 34rem) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Scroll-Gated Floating Call Pill (.floating-call)
   Hidden on initial load (display: none) so it never overlaps the Hero form;
   revealed smoothly only when body.is-scrolled (window.scrollY > 680).
   -------------------------------------------------------------------------- */
@keyframes pillFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-call {
  display: none;
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 150;
  align-items: center;
  gap: 0.55rem;
  min-block-size: 3.1rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  background-color: var(--emerald-700);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 12px 28px rgba(4, 120, 87, 0.42),
    0 2px 8px rgba(11, 17, 32, 0.25);
}

.floating-call:hover {
  background-color: var(--emerald-600);
  color: #ffffff;
}

body.is-scrolled .floating-call {
  display: inline-flex;
  animation: pillFadeIn 0.26s var(--ease-out) forwards;
}

@media (min-width: 48.01rem) {
  .floating-call,
  body.is-scrolled .floating-call {
    display: none;
  }
}

@media (max-width: 48rem) {
  .site-footer {
    padding-bottom: 5rem;
  }
}

@media (max-width: 34rem) {
  .floating-call {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.65rem 1.05rem;
    font-size: 0.88rem;
  }
}

@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;
  }
}