:root {
  --navy-950: #061729;
  --navy-900: #08213b;
  --navy-800: #0d3158;
  --blue-500: #16a8f8;
  --blue-600: #0078d4;
  --amber-400: #ffbd2f;
  --green-500: #16a071;
  --white: #ffffff;
  --gray-50: #f7f9fc;
  --gray-100: #edf2f7;
  --gray-200: #dce5ee;
  --gray-600: #5c6876;
  --gray-800: #243244;
  --shadow: 0 20px 50px rgba(6, 23, 41, 0.16);
  --radius: 8px;
  --heading: "Space Grotesk", "Montserrat", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  font-family: var(--body);
  line-height: 1.6;
  background: var(--white);
}

body.is-nav-open {
  overflow: hidden;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(22, 168, 248, 0.38);
  outline-offset: 3px;
}

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

textarea {
  resize: vertical;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(850px, calc(100% - 32px));
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--navy-950);
  background: var(--amber-400);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.emergency-strip {
  color: var(--white);
  background: linear-gradient(90deg, var(--navy-950), #122f4f 55%, #442b08);
  font-size: 0.9rem;
}

.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  text-align: center;
}

.strip-inner a {
  color: var(--amber-400);
  font-weight: 800;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 229, 238, 0.85);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 70px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--heading);
}

.brand img,
.footer-brand img {
  border-radius: 50%;
  background: var(--navy-950);
}

.brand strong {
  display: block;
  color: var(--navy-950);
  line-height: 1;
}

.brand small {
  display: block;
  color: var(--gray-600);
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 700;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  margin: 2px 0;
  background: var(--navy-950);
}

.main-nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  display: none;
  max-height: calc(100vh - 150px);
  overflow: auto;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.main-nav.is-open {
  display: grid;
}

.main-nav a {
  padding: 12px;
  color: var(--gray-800);
  border-radius: 6px;
  font-weight: 800;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--navy-950);
  background: var(--gray-100);
}

.header-actions {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

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

.btn-large {
  min-height: 52px;
  padding: 14px 20px;
}

.btn-accent {
  color: var(--navy-950);
  background: var(--amber-400);
  box-shadow: 0 12px 26px rgba(255, 189, 47, 0.28);
}

.btn-primary {
  color: var(--white);
  background: var(--blue-600);
}

.btn-light {
  color: var(--navy-950);
  background: var(--white);
}

.btn-ghost {
  color: var(--navy-950);
  border-color: var(--gray-200);
  background: var(--white);
}

.btn-ghost-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(600px, 72vh, 760px);
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero-compact {
  min-height: auto;
  padding: 82px 0 60px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(6, 23, 41, 0.98), rgba(13, 49, 88, 0.94));
}

.hero-service {
  min-height: clamp(540px, 64vh, 660px);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 23, 41, 0.92), rgba(6, 23, 41, 0.68) 44%, rgba(6, 23, 41, 0.08)),
    linear-gradient(0deg, rgba(6, 23, 41, 0.72), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 78px 0 58px;
}

.hero-content.no-media {
  padding: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-500);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  font-family: var(--heading);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  font-size: 2.45rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.hero-copy {
  max-width: 680px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.hero-actions,
.center-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span,
.footer-badges span {
  padding: 8px 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.section {
  padding: 64px 0;
}

.section-muted {
  background: var(--gray-50);
}

.section-intro {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-intro p:last-child {
  margin-top: 14px;
  color: var(--gray-600);
  font-size: 1.05rem;
}

.trust-band {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.trust-grid {
  display: grid;
  gap: 1px;
  background: var(--gray-200);
}

.trust-grid article {
  padding: 18px;
  background: var(--white);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  color: var(--navy-950);
  font-weight: 900;
}

.trust-grid span {
  margin-top: 5px;
  color: var(--gray-600);
  font-size: 0.92rem;
}

.split-grid,
.diagnostic-layout,
.calculator-layout,
.new-build-layout {
  display: grid;
  gap: 26px;
}

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

.check-list span {
  position: relative;
  padding-left: 32px;
  font-weight: 750;
}

.check-list span::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--white);
  background: var(--green-500);
  border-radius: 50%;
  content: "\2713";
  font-size: 0.8rem;
}

.quote-panel,
.lead-form,
.price-quote-form,
.new-build-form,
.wizard,
.calculator {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-new-build {
  padding: 70px 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 23, 41, 0.98), rgba(13, 49, 88, 0.94)),
    radial-gradient(circle at top right, rgba(22, 168, 248, 0.24), transparent 32%);
}

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

.new-build-steps span {
  padding: 12px 14px;
  color: var(--navy-950);
  background: var(--white);
  border-radius: var(--radius);
  font-weight: 850;
}

.new-build-form {
  color: var(--gray-800);
}

.new-build-form .fine-print {
  margin: 14px 0 0;
}

.quote-panel {
  align-self: start;
  display: grid;
  gap: 12px;
}

.price-quote-layout {
  display: grid;
  gap: 22px;
}

.quote-note {
  align-self: start;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  border-radius: var(--radius);
}

.quote-note strong {
  display: block;
  font-family: var(--heading);
  font-size: 1.6rem;
  line-height: 1.08;
}

.quote-note p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.quote-note ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.estimate-status {
  display: block;
  padding: 18px;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--green-500);
  border-radius: var(--radius);
}

.estimate-status h4 {
  margin: 0 0 8px;
  color: var(--navy-950);
  font-family: var(--heading);
  font-size: 1.2rem;
}

.estimate-status p + p {
  margin-top: 8px;
}

.quote-panel strong {
  color: var(--navy-950);
  font-family: var(--heading);
  font-size: 1.7rem;
  line-height: 1.1;
}

.quote-panel p {
  color: var(--gray-600);
}

.service-grid {
  display: grid;
  gap: 16px;
}

.service-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 168, 248, 0.45);
  box-shadow: var(--shadow);
}

.service-card span {
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card h3 {
  margin-top: 12px;
  color: var(--navy-950);
  font-size: 1.24rem;
}

.service-card p {
  align-self: start;
  margin-top: 18px;
  color: var(--gray-600);
}

.section-diagnostic {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 23, 41, 0.98), rgba(13, 49, 88, 0.96)),
    linear-gradient(90deg, rgba(22, 168, 248, 0.2), transparent);
}

.diagnostic-note {
  margin-top: 24px;
  padding: 16px;
  color: var(--navy-950);
  background: var(--amber-400);
  border-radius: var(--radius);
  font-weight: 900;
}

.wizard {
  color: var(--gray-800);
}

.wizard h3 {
  color: var(--navy-950);
  margin-bottom: 18px;
}

.wizard-progress {
  height: 8px;
  margin-bottom: 24px;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: 999px;
}

.wizard-progress span {
  display: block;
  width: 14%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--amber-400));
  transition: width 0.2s ease;
}

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
}

.choice-grid,
.chip-grid,
.area-grid,
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-grid label,
.chip-grid label {
  flex: 1 1 160px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  font-weight: 800;
}

.step-copy {
  color: var(--gray-600);
  margin-bottom: 16px;
}

.file-input {
  width: 100%;
  padding: 16px;
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
}

.wizard-result {
  margin-top: 20px;
  padding: 18px;
  color: var(--gray-800);
  background: var(--gray-50);
  border-left: 4px solid var(--amber-400);
  border-radius: var(--radius);
}

.wizard-result h4 {
  margin: 0 0 8px;
  color: var(--navy-950);
  font-family: var(--heading);
  font-size: 1.15rem;
}

.wizard-result ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.pricing-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}

.pricing-table th {
  color: var(--navy-950);
  background: var(--gray-100);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.pricing-table td:nth-child(2) {
  color: var(--navy-950);
  font-weight: 900;
  white-space: nowrap;
}

.fine-print {
  margin-top: 16px;
  color: var(--gray-600);
  font-size: 0.94rem;
  font-weight: 750;
}

.calculator {
  display: grid;
  gap: 16px;
}

.calculator output {
  display: block;
  padding: 16px;
  color: var(--navy-950);
  background: var(--gray-50);
  border-radius: var(--radius);
  font-weight: 850;
}

.gallery-grid,
.review-carousel,
.contact-grid {
  display: grid;
  gap: 16px;
}

.gallery-grid figure,
.review-card,
.contact-grid a {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-grid figcaption {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.gallery-grid strong,
.review-card strong,
.contact-grid strong {
  color: var(--navy-950);
  font-weight: 900;
}

.gallery-grid span,
.review-card span,
.contact-grid span {
  color: var(--gray-600);
}

.review-card {
  padding: 20px;
}

.review-card p {
  margin: 14px 0 18px;
  color: var(--gray-800);
  font-size: 1.05rem;
}

.stars {
  color: var(--amber-400);
  letter-spacing: 0.05em;
}

.cta-band {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.cta-content {
  display: grid;
  gap: 20px;
  align-items: center;
}

.cta-content p:not(.eyebrow) {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.area-grid a {
  padding: 12px 14px;
  color: var(--navy-950);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-weight: 850;
}

.form-shell {
  max-width: 980px;
}

.form-heading {
  margin-bottom: 24px;
}

.form-heading h2 {
  color: var(--navy-950);
}

.form-heading p:last-child {
  margin-top: 12px;
  color: var(--gray-600);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.lead-form label,
.new-build-form label,
.wizard label,
.calculator label {
  display: grid;
  gap: 6px;
  color: var(--navy-950);
  font-weight: 850;
}

.check-field {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
}

.check-field input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.stacked {
  margin-top: 16px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

input[type="checkbox"],
input[type="radio"] {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: auto;
  padding: 0;
  accent-color: var(--blue-600);
}

textarea {
  min-height: 130px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(22, 168, 248, 0.22);
  border-color: var(--blue-500);
}

.lead-form .btn,
.price-quote-form .btn,
.new-build-form .btn {
  margin-top: 20px;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--gray-600);
  font-weight: 800;
}

.form-status.is-error {
  color: #b42318;
}

.form-status.is-success {
  color: var(--green-500);
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.faq-list summary {
  color: var(--navy-950);
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin-top: 12px;
  color: var(--gray-600);
}

.contact-band {
  padding-top: 36px;
}

.contact-grid a {
  display: grid;
  gap: 4px;
  padding: 20px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  gap: 30px;
  padding: 56px 0 34px;
}

.footer-brand {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 900;
}

.footer-grid p {
  max-width: 400px;
  margin-top: 16px;
}

.footer-grid h2 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 1rem;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

.footer-grid a:hover {
  color: var(--amber-400);
}

.footer-badges {
  margin-top: 18px;
}

.footer-bottom {
  display: grid;
  gap: 8px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.sticky-call {
  display: grid;
  place-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  min-height: 54px;
  color: var(--navy-950);
  background: var(--amber-400);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 950;
}

@media (min-width: 700px) {
  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-copy {
    font-size: 1.18rem;
  }

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

  .service-grid,
  .gallery-grid,
  .review-carousel,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .span-2 {
    grid-column: span 2;
  }

  .footer-bottom {
    grid-template-columns: 1fr 1.5fr;
    padding-bottom: 30px;
  }
}

@media (min-width: 960px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    justify-content: center;
    gap: 2px;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .main-nav a {
    padding: 9px 10px;
    font-size: 0.88rem;
  }

  .header-actions {
    display: none;
  }

  .hero-home {
    min-height: clamp(640px, calc(100vh - 170px), 780px);
  }

  h1 {
    font-size: 4.65rem;
  }

  h2 {
    font-size: 3.05rem;
  }

  .hero-copy {
    font-size: 1.2rem;
  }

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

  .split-grid,
  .diagnostic-layout,
  .calculator-layout,
  .new-build-layout,
  .price-quote-layout,
  .cta-content {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: start;
  }

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

  .gallery-grid,
  .review-carousel {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.35fr 0.8fr 0.9fr 0.8fr;
  }

  .sticky-call {
    display: none;
  }
}

@media (min-width: 1180px) {
  .header-actions {
    display: flex;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .strip-inner {
    display: grid;
    gap: 3px;
    padding: 8px 0;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    padding: 58px 0 40px;
  }

  .hero-proof span,
  .footer-badges span {
    padding: 7px 9px;
  }

  .hero-compact {
    min-height: auto;
  }

  .hero-actions .btn,
  .center-actions .btn,
  .cta-actions .btn,
  .wizard-actions .btn {
    width: 100%;
  }

  .quote-panel,
  .lead-form,
  .price-quote-form,
  .new-build-form,
  .wizard,
  .calculator {
    padding: 18px;
  }

  .section {
    padding: 48px 0;
  }
}
}

@media (max-width: 360px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.78rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .btn:hover,
  .service-card:hover {
    transform: none;
  }
}
