/* Free-estimate capture page - standalone shell aligned with the TJB frontend. */
:root {
  --jb-dark: #0d2238;
  --jb-navy: #0f2740;
  --jb-blue: #6ea0c5;
  --jb-teal: #2d86a8;
  --jb-orange: #ffb000;
  --jb-orange-dark: #8a3a00;
  --jb-red: #dc2626;
  --jb-green: #15803d;
  --jb-ink: #111827;
  --jb-text: #374151;
  --jb-muted: #6b7280;
  --jb-line: #e5e7eb;
  --jb-bg: #f8fafc;
  --jb-surface: #ffffff;
  --shadow-lg: 0 28px 90px -48px rgba(15, 39, 64, 0.9);
  --shadow-md: 0 18px 45px -32px rgba(15, 39, 64, 0.65);
}

* { box-sizing: border-box; }

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

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--jb-bg);
  color: var(--jb-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
.hidden { display: none !important; }

.emergency {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #b91c1c, #ef4444);
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.banner-main {
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.banner-sub {
  font-size: 0.78rem;
  font-weight: 700;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--jb-blue);
  box-shadow: 0 10px 30px rgba(15, 39, 64, 0.18);
}

.nav-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.logo-link img {
  display: block;
  width: auto;
  height: 56px;
  max-width: 280px;
  object-fit: contain;
}

.desktop-nav,
.desktop-cta,
.tablet-book,
.nav-call {
  display: none;
}

.desktop-menu {
  position: relative;
}

.desktop-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.desktop-menu summary::-webkit-details-marker {
  display: none;
}

.desktop-menu-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 90;
  width: 236px;
  padding: 8px;
  border: 1px solid rgba(15, 39, 64, 0.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(15, 39, 64, 0.24);
}

.desktop-menu-panel.compact {
  width: 190px;
}

.desktop-nav .desktop-menu-panel a {
  display: block;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--jb-navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.desktop-nav .desktop-menu-panel a:hover {
  background: #eef6ff;
  color: var(--jb-blue);
}

.chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.desktop-menu[open] summary .chevron,
.mobile-submenu-toggle[aria-expanded="true"] .chevron {
  transform: rotate(225deg);
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu-toggle {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--jb-blue);
  color: #fff;
}

.mobile-menu-overlay[hidden] {
  display: none !important;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--jb-blue);
  flex: 0 0 auto;
}

.mobile-menu-head .logo-link img {
  height: 56px;
  max-width: 280px;
}

.mobile-menu-close {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

.mobile-menu-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-scroll {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  padding: 12px 12px 18px;
}

.mobile-menu-scroll a,
.mobile-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mobile-menu-scroll a:hover,
.mobile-menu-scroll a:focus-visible,
.mobile-menu-scroll a[aria-current="page"],
.mobile-submenu-toggle:hover,
.mobile-submenu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.mobile-submenu-panel {
  padding: 2px 0 6px 16px;
}

.mobile-submenu-panel[hidden] {
  display: none !important;
}

.mobile-submenu-panel a {
  min-height: 42px;
  padding-block: 9px;
  color: #dbeafe;
  font-size: 0.92rem;
  font-weight: 700;
}

.mobile-review-card {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  text-align: center;
}

.mobile-review-card span {
  color: #facc15;
  letter-spacing: 0;
}

.mobile-review-card strong {
  color: #fff;
  font-size: 1.05rem;
}

.mobile-review-card small {
  color: #dbeafe;
  font-weight: 700;
}

.mobile-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d2238;
  box-shadow: 0 -12px 30px -22px rgba(0, 0, 0, 0.8);
}

.mobile-menu-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}

.mobile-menu-actions a:first-child {
  background: var(--jb-orange);
  color: #fff;
}

.mobile-menu-actions a:last-child {
  border: 1px solid rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 34, 56, 0.98) 0%, rgba(15, 39, 64, 0.96) 58%, rgba(138, 58, 0, 0.30) 100%),
    url('/blue-pipes-bg.webp');
  background-size: auto, 520px;
  background-position: center, right bottom;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 40px 16px 48px;
  display: grid;
  gap: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.10);
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.dark {
  border-color: #fed7aa;
  background: #fff7ed;
  color: var(--jb-orange-dark);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-size: 2.3rem;
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 900;
}

.sub {
  margin: 18px 0 0;
  max-width: 660px;
  color: #dbeafe;
  font-size: 1.05rem;
  font-weight: 600;
}

.hero-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  max-width: 560px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  color: #dbeafe;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--jb-ink);
  padding: 20px;
  box-shadow: 0 28px 90px -42px rgba(0, 0, 0, 0.9);
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--jb-line);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 176, 0, 0.16);
  color: var(--jb-orange-dark);
  flex: 0 0 auto;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-card-head strong,
.hero-card-head span {
  display: block;
}

.hero-card-head strong {
  font-size: 1.1rem;
  font-weight: 900;
}

.hero-card-head span {
  color: var(--jb-muted);
  font-size: 0.9rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.hero-stats div {
  min-height: 108px;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  text-align: center;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--jb-navy);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.hero-stats span {
  margin-top: 8px;
  color: var(--jb-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-proof {
  display: grid;
  gap: 10px;
}

.hero-proof > div {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.hero-proof strong {
  display: block;
  color: var(--jb-navy);
  font-size: 0.95rem;
  font-weight: 900;
}

.hero-proof p {
  margin: 5px 0 0;
  color: var(--jb-muted);
  font-size: 0.86rem;
}

.page-main {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

body.embed-body {
  min-height: auto;
  background: transparent;
}

.embed-body .page-main {
  background: transparent;
}

.embed-body .embed-main {
  padding: 0;
}

.embed-body .estimate-layout {
  width: min(1180px, 100%);
  padding: 0 0 8px;
}

.embed-body .estimate-intro {
  align-self: start;
}

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


.trust-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -24px auto 30px;
  position: relative;
  z-index: 5;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--jb-line);
  box-shadow: var(--shadow-md);
}

.trust-strip span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  background: #fff;
  color: var(--jb-navy);
  font-weight: 850;
  font-size: 0.92rem;
}

.trust-strip span::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--jb-orange);
  flex: 0 0 auto;
}

.estimate-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 12px 16px 56px;
  display: grid;
  gap: 24px;
}

.estimate-intro h2 {
  margin: 0;
  max-width: 620px;
  color: var(--jb-ink);
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.estimate-intro > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--jb-muted);
  font-size: 1.05rem;
  margin: 16px 0 0;
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.steps div {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 14px;
  border: 1px solid var(--jb-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px -24px rgba(15, 39, 64, 0.9);
}

.steps strong {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--jb-navy);
  color: #fff;
  font-size: 1rem;
}

.steps span {
  color: var(--jb-ink);
  font-weight: 850;
}

.intake-flow { min-width: 0; }

.card {
  background: #fff;
  border: 1px solid var(--jb-line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.card.center { text-align: center; }
.form-card { padding: 0; overflow: hidden; }

.section-head {
  padding: 24px 22px 18px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-bottom: 1px solid var(--jb-line);
}

.section-head h2 {
  margin: 0 0 6px;
  color: var(--jb-ink);
  font-size: 1.45rem;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--jb-muted);
  font-size: 0.96rem;
}

.form-step {
  color: var(--jb-orange-dark) !important;
  font-size: 0.75rem !important;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px !important;
}

.form-card form { padding: 6px 22px 24px; }
.media-head { margin: -20px -20px 18px; }

label {
  display: block;
  font-weight: 850;
  margin: 14px 0 6px;
  color: var(--jb-ink);
  font-size: 0.93rem;
}

.req { color: var(--jb-red); }
.opt { color: var(--jb-muted); font-weight: 600; font-size: 0.84rem; }

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  color: var(--jb-ink);
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 39, 64, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 12px;
}

.address-picker { position: relative; }

.address-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px -28px rgba(15, 39, 64, 0.85);
}

.address-option {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  color: var(--jb-ink);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.address-option:last-child { border-bottom: 0; }
.address-option:hover,
.address-option:focus {
  outline: 0;
  background: #f8fafc;
  color: var(--jb-navy);
}

.field-help,
.address-selected {
  margin: 7px 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.field-help { color: var(--jb-muted); }

.address-selected {
  color: var(--jb-green);
  font-weight: 800;
}

.customer-status {
  margin: 12px 0 0;
  padding: 11px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.9rem;
  font-weight: 850;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:focus,
textarea:focus {
  outline: 0;
  border-color: var(--jb-teal);
  box-shadow: 0 0 0 4px rgba(45, 134, 168, 0.16);
}

.hp {
  position: absolute;
  left: -5000px;
  top: -5000px;
  height: 1px;
  width: 1px;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  margin-top: 14px;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

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

.btn-primary {
  width: 100%;
  color: #111827;
  background: var(--jb-orange);
  box-shadow: 0 12px 24px rgba(255, 176, 0, 0.22);
}

.btn-primary:hover { background: #f59e0b; }

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-ghost {
  background: transparent;
  color: var(--jb-navy);
  width: 100%;
  border: 1px solid #cbd5e1;
}

.btn-record { background: var(--jb-red); color: #fff; width: 100%; }
.btn-stop { background: var(--jb-navy); color: #fff; width: 100%; }
.btn-photo { background: var(--jb-teal); color: #fff; width: 100%; }

#preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 60vh;
  border-radius: 14px;
  background: #000;
  display: block;
}

.hint {
  color: var(--jb-teal);
  font-weight: 850;
  text-align: center;
  margin: 12px 0 0;
}

.cam-controls { text-align: center; }

.countdown {
  display: inline-block;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--jb-red);
}

.file-btn {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.file-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cam-tip {
  color: var(--jb-muted);
  text-align: center;
  font-size: 0.92rem;
  margin: 10px 0 0;
}

.tray-hint {
  font-weight: 850;
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--jb-text);
}

.thumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.thumb-item {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1622;
  border: 1px solid #cbd5e1;
  flex: 0 0 auto;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-vid {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
}

.thumb-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 22, 34, 0.82);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  padding: 2px 0;
}

.thumb-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 24px;
  height: 24px;
  line-height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.95);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  text-align: center;
}

.progress {
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--jb-orange), var(--jb-teal));
  transition: width 0.25s ease;
}

.status {
  color: var(--jb-muted);
  margin: 12px 0 0;
  text-align: center;
}

.check {
  width: 72px;
  height: 72px;
  margin: 6px auto 10px;
  border-radius: 50%;
  background: var(--jb-green);
  color: #fff;
  font-size: 2.2rem;
  line-height: 72px;
  font-weight: 900;
}

.next {
  text-align: left;
  background: #f8fafc;
  border-radius: 14px;
  padding: 4px 16px 10px;
  margin-top: 14px;
}

.next h3 {
  margin: 12px 0 6px;
  font-size: 1rem;
  color: var(--jb-navy);
}

.next ol {
  margin: 0;
  padding-left: 20px;
}

.next li { margin: 6px 0; }
.err { color: var(--jb-red); font-weight: 850; margin: 10px 0 0; }

.site-footer {
  background: #111827;
  color: #fff;
  padding: 34px 16px;
}

.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
}

.footer-company {
  grid-column: 1 / -1;
}

.footer-company img {
  width: auto;
  height: 48px;
  margin-bottom: 14px;
}

.footer-company p,
.footer-grid span {
  color: #9ca3af;
}

.footer-company p {
  max-width: 420px;
  margin: 0 0 14px;
  font-size: 0.94rem;
}

.footer-grid section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1rem;
}

.footer-grid a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 8px;
  background: var(--jb-orange);
  color: #111827 !important;
  font-weight: 900;
}

.footer-bottom {
  width: min(1180px, 100%);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid #374151;
  display: grid;
  gap: 12px;
}

.footer-bottom p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.8rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: #9ca3af;
  font-size: 0.8rem;
  text-decoration: none;
}

@media (min-width: 640px) {
  .emergency {
    min-height: 42px;
    flex-direction: row;
    gap: 12px;
  }

  .banner-sub {
    font-size: 0.86rem;
    font-weight: 800;
  }

  .nav-inner {
    padding: 10px 18px;
  }

  .tablet-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--jb-orange);
    color: #111827;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
  }

  .hero-inner {
    padding: 54px 22px 62px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .sub {
    font-size: 1.16rem;
  }

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

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-grid {
    grid-template-columns: 1fr 0.75fr;
  }

  .form-card form {
    padding: 8px 26px 28px;
  }

  .section-head {
    padding: 28px 26px 20px;
  }
}

@media (min-width: 900px) {
  .site-footer {
    padding: 52px 24px 40px;
  }

  .footer-grid {
    grid-template-columns: 1.1fr 0.7fr 0.9fr 0.7fr;
    gap: 34px;
  }

  .footer-company {
    grid-column: auto;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .mobile-menu-toggle,
  .tablet-book,
  .nav-call {
    display: none;
  }

  .logo-link img {
    height: 64px;
    max-width: 340px;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    font-weight: 760;
    font-size: 0.96rem;
  }

  .desktop-nav a,
  .desktop-nav .desktop-menu summary {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
  }

  .desktop-nav > a:hover,
  .desktop-nav > a[aria-current="page"],
  .desktop-nav .desktop-menu summary:hover {
    color: #e0f2fe;
  }

  .desktop-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .nav-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 26px;
    border-radius: 10px;
    background: var(--jb-orange);
    color: #111827;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(15, 39, 64, 0.16);
  }

  .rating-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.8rem;
  }

  .rating-pill span {
    color: #facc15;
    letter-spacing: 0;
  }

  .rating-pill strong {
    font-size: 0.82rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
    align-items: center;
    gap: 52px;
    padding: 64px 24px 76px;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .hero-card {
    padding: 24px;
  }

  .trust-strip {
    grid-template-columns: repeat(4, 1fr);
    margin-top: -32px;
  }

  .estimate-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.72fr);
    gap: 42px;
    padding: 34px 24px 72px;
    align-items: start;
  }

  .estimate-intro {
    position: sticky;
    top: 104px;
  }

  .estimate-intro h2 {
    font-size: 3rem;
  }

  .steps div {
    min-height: 76px;
  }
}

@media (max-width: 430px) {
  .nav-inner {
    padding: 8px 10px;
  }

  .logo-link img {
    height: 48px;
    max-width: 226px;
  }

  .hero-inner {
    padding: 34px 14px 46px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .estimate-layout {
    padding-inline: 14px;
  }

  .card {
    padding: 16px;
  }

  .media-head {
    margin: -16px -16px 16px;
  }

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