:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-muted: #eef2f7;
  --text: #0f172a;
  --muted: #334155;
  --primary: #123e68;
  --primary-dark: #0d2f4f;
  --accent: #b45309;
  --accent-dark: #b45309;
  --border: #cbd5e1;
  --focus: #f59e0b;
  --success: #166534;
  --shadow-soft: 0 10px 30px -22px rgb(15 23 42 / 0.5);
  --radius-sm: 0.45rem;
  --radius-md: 0.7rem;
  --radius-lg: 1rem;
  --section-space: clamp(2.5rem, 5vw, 4.5rem);
  --max-width: 70rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(to bottom, #f7f9fc, #eef2f6 16rem, var(--bg) 24rem);
  line-height: 1.55;
}

a {
  color: var(--primary-dark);
  text-underline-offset: 0.14em;
}

a:hover {
  color: var(--primary);
}

a:focus-visible {
  color: var(--primary-dark);
}

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

img[width][height] {
  height: auto;
}

.service-area-map {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: 0;
  z-index: 2000;
  background: var(--text);
  color: #fff;
  padding: 0.8rem 1rem;
  border-bottom-right-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 0;
}

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

.layout-container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(8px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: clamp(9.5rem, 20vw, 12rem);
  height: auto;
}

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

.menu-toggle {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.55rem 0.75rem;
  color: var(--text);
  font-weight: 600;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  top: calc(100% + 1px);
  right: 1rem;
  left: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

body.menu-open {
  overflow: hidden;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.9rem;
  display: grid;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: block;
  padding: 0.5rem 0.6rem;
  background: #fff;
}

.site-nav a:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  background: rgb(18 62 104 / 0.1);
  color: var(--primary);
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-block: 0;
  background-color: var(--primary);
  background-image:
    linear-gradient(
      135deg,
      rgba(12, 43, 72, 0.82),
      rgba(18, 62, 104, 0.74) 50%,
      rgba(28, 88, 142, 0.70)
    ),
    url("../images/gallery/hero_bkgrd_1.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center center, center center;
  background-size: cover, cover;
  background-attachment: scroll, scroll;
}

.page-hero .layout-container {
  position: relative;
  z-index: 1;
  min-height: clamp(20rem, 44vw, 23rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.65rem, 1.1vw, 0.85rem);
}


@media (max-width: 64rem) {
  .page-hero .layout-container {
    min-height: clamp(18rem, 52vw, 22rem);
  }
}

@media (max-width: 48rem) {
  .page-hero .layout-container {
    min-height: clamp(17rem, 58vw, 20rem);
  }
}

.page-hero h1 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  line-height: 1.2;
}

.page-hero p {
  margin: 0;
  color: rgb(241 245 249 / 0.97);
  max-width: 60ch;
  font-size: clamp(1rem, 1.1vw, 1.05rem);
  line-height: 1.55;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: clamp(0.75rem, 0.9vw, 0.8rem);
  line-height: 1.35;
  font-weight: 700;
  color: rgb(252 211 77 / 0.95);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero-actions-equal .button-equal {
  flex: 1 1 11rem;
}

.button {
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  min-height: 2.75rem;
  padding: 0.7rem 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
  cursor: pointer;
}

.button-primary {
  border-color: rgb(255 255 255 / 0.3);
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  border-color: rgb(255 255 255 / 0.45);
  background: var(--accent-dark);
  color: #fff;
}

.button-secondary {
  border-color: rgb(18 62 104 / 0.65);
  color: var(--primary);
  background: #fff;
}

.button-secondary:hover {
  border-color: rgb(18 62 104 / 0.6);
  background: #f1f5f9;
}

.content-section .button-secondary {
  color: var(--primary);
  border-color: rgb(18 62 104 / 0.55);
  background: #fff;
}

.content-section .button-secondary:hover {
  background: var(--surface-muted);
}

.trust-strip {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.trust-strip-inner {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 0;
}

.trust-line {
  margin: 0;
  color: var(--primary);
  font-weight: 700;
}

.review-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.content-section {
  padding: var(--section-space) 0 0;
}

.content-section:last-of-type {
  padding-bottom: var(--section-space);
}

.field-error {
  margin: 0.35rem 0 0;
  color: #991b1b;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.is-invalid {
  border-color: #dc2626 !important;
}

.form-alert {
  margin: 1rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid #dc2626;
  background: #fef2f2;
  color: #7f1d1d;
  font-weight: 600;
}

.form-alert ul {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
}

.form-alert li + li {
  margin-top: 0.3rem;
}

.form-alert a {
  color: #7f1d1d;
}

.form-alert a:hover {
  color: #991b1b;
}

.form-alert-success {
  border-color: #15803d;
  background: #f0fdf4;
  color: #14532d;
}

@supports not (display: grid) {
  .card-grid,
  .before-after-grid,
  .gallery-grid,
  .footer-grid,
  .form-grid,
  .internal-link-grid,
  .review-grid,
  .service-area-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .card-grid > *,
  .before-after-grid > *,
  .gallery-grid > *,
  .footer-grid > *,
  .form-grid > *,
  .internal-link-grid > *,
  .review-grid > *,
  .service-area-layout > * {
    flex: 1 1 18rem;
  }

  .form-grid > .form-full {
    flex-basis: 100%;
  }
}

.content-section h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.content-section p {
  max-width: 70ch;
  color: var(--muted);
}

.card-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 0.45rem;
}

.card p {
  margin: 0;
}

.internal-link-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.internal-link-grid .card {
  text-decoration: none;
}

.internal-link-grid .card:hover h3 {
  color: var(--primary);
}

.before-after-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.proof-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.proof-card h3 {
  margin: 0 0 0.6rem;
}

.proof-card figure {
  margin: 0 0 0.65rem;
}

.proof-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 0.2rem);
}

.process-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.process-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.process-list h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.process-list p {
  margin: 0;
}

.cta-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.cta-panel h2,
.cta-panel p {
  margin-top: 0;
}

.service-area-layout {
  display: grid;
  gap: 1rem;
}

.service-area-figure {
  margin: 0;
}

.service-area-figure img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cta-panel-dark {
  color: #fff;
  background: linear-gradient(145deg, #0d2f4f, #123e68);
  border-color: rgb(255 255 255 / 0.16);
}

.cta-panel-dark p {
  color: rgb(241 245 249 / 0.95);
}

.cta-panel-dark .button-secondary {
  border-color: rgb(255 255 255 / 0.75);
  color: #fff;
  background: #1c588e;
}

.cta-panel-dark .button-secondary:hover {
  background: #174a79;
}

.stacked-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1rem, 3.5vw, 1.5rem);
  box-shadow: var(--shadow-soft);
}

.form-note {
  margin-top: 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  padding: 0.55rem 0.65rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

input::file-selector-button {
  border: 0;
  background: var(--surface-muted);
  color: var(--text);
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
  margin-right: 0.55rem;
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgb(255 255 255 / 0.97);
  box-shadow: 0 -10px 25px -20px rgb(15 23 42 / 0.6);
}

.mobile-cta .button {
  width: 100%;
}

.mobile-cta .button-secondary {
  color: var(--primary);
  border-color: rgb(18 62 104 / 0.55);
}

.mobile-cta .button-secondary:hover {
  background: rgb(18 62 104 / 0.07);
}

body.has-mobile-cta {
  padding-bottom: 5.2rem;
}

.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: 2.3rem 0 2rem;
  background: #0b1b2d;
  color: #dce5f3;
}

.site-footer h2 {
  margin: 0 0 0.5rem;
  color: #f8fafc;
  font-size: 1.1rem;
}

.footer-grid {
  display: grid;
  gap: 1.15rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-grid a {
  color: #dce5f3;
}

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

@media (min-width: 40rem) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .service-area-list {
    columns: 2;
    gap: 1.5rem;
  }
}

@media (min-width: 52rem) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    flex: 1 1 auto;
  }

  .site-nav ul {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    justify-content: flex-end;
  }

  .site-nav a {
    padding: 0.4rem 0.7rem;
  }

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

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

  .service-area-layout {
    grid-template-columns: 1.15fr minmax(0, 0.85fr);
    align-items: center;
  }

  .mobile-cta {
    display: none;
  }

  body.has-mobile-cta {
    padding-bottom: 0;
  }

  .page-hero .hero-actions {
    flex-wrap: nowrap;
  }

  .page-hero .hero-actions-equal .button-equal {
    flex: 1 1 0;
  }
}

.service-decision-grid,
.finish-choice-grid,
.gallery-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.service-detail-card,
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.service-detail-card h3,
.gallery-card h3 {
  margin: 0;
}

.service-outcome {
  margin: 0.55rem 0 0;
  color: var(--text);
  font-weight: 600;
}

.service-detail-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.service-area-list-wrap {
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.service-area-list-intro {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.service-area-list {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  columns: 1;
  gap: 1rem;
}

.service-area-list li {
  margin: 0.2rem 0;
  color: var(--muted);
}

.gallery-filter-controls {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-filter-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  min-height: 2.2rem;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
}

.gallery-filter-button.is-active,
.gallery-filter-button:hover {
  border-color: var(--primary);
  background: rgb(18 62 104 / 0.09);
  color: var(--primary);
}

.gallery-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.gallery-tag {
  border-radius: 999px;
  background: rgb(18 62 104 / 0.12);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
}

.before-after-pair {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.7rem;
  align-items: start;
}

.before-after-pair figure {
  margin: 0;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.before-after-pair img,
.image-placeholder--media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--radius-md) - 0.2rem);
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.gallery-card {
  display: grid;
  align-content: start;
}

.gallery-media-frame {
  margin-top: 0.8rem;
}

.gallery-media-frame figure {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.gallery-static-fallback figure {
  margin: 0;
}

.gallery-media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 0.2rem);
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.before-after-pair figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.image-placeholder {
  border-radius: calc(var(--radius-md) - 0.2rem);
  border: 1px dashed var(--border);
  background: var(--surface-muted);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 8rem;
  display: grid;
  place-items: center;
}

.image-placeholder--media {
  display: grid;
  place-items: center;
}

.gallery-results-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

@media (min-width: 40rem) {
  .service-decision-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 52rem) {
  .service-decision-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

.review-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.review-quote {
  margin: 0;
  color: var(--text);
}

.review-meta {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.form-step {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 0 0 1rem;
}

.form-step legend {
  font-weight: 700;
  padding: 0 0.35rem;
}

.estimate-result {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  padding: 0.9rem;
  margin: 0 0 1rem;
  color: var(--text);
  font-weight: 600;
}

.service-reminder {
  margin-top: 1rem;
  color: var(--muted);
}

@media (min-width: 40rem) {
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 52rem) {
  .review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
