:root {
  --navy: #0c1f33;
  --navy-deep: #081525;
  --blue: #1d4e89;
  --blue-hover: #163e6d;
  --charcoal: #1b1d21;
  --muted: #5b6570;
  --gray: #f3f4f6;
  --line: #e4e7eb;
  --white: #ffffff;
  --header-h: 76px;
  --mobile-cta-h: 64px;
  --shadow: 0 12px 40px rgba(12, 31, 51, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--white);
  padding: 8px 12px;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  color: var(--navy);
}

h3 {
  font-size: 1.35rem;
  color: var(--navy);
}

.lede {
  color: var(--muted);
  max-width: 640px;
  margin: 16px 0 0;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--gray);
}

.section-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 10px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--navy);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 2px;
  background: var(--blue);
  color: var(--white);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--blue-hover);
}

.btn.ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn.linkish {
  background: none;
  color: var(--blue);
  padding: 0;
  min-height: 0;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.95rem;
}

.btn.linkish:hover {
  background: none;
  color: var(--blue-hover);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy-deep);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(8, 21, 37, 0.25), rgba(8, 21, 37, 0.72)),
    repeating-linear-gradient(
      135deg,
      #0c1f33 0 28px,
      #10263d 28px 56px
    );
}

.hero-media.has-photo .hero-fallback {
  display: none;
}

.hero-media:not(.has-photo) img {
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 21, 37, 0.82) 0%, rgba(8, 21, 37, 0.45) 55%, rgba(8, 21, 37, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 40px));
  padding: 80px 0;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  max-width: 12ch;
}

.hero p {
  max-width: 560px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
}

.badge {
  display: inline-block;
  margin: 18px 0 28px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Trust */
.trust {
  background: var(--navy);
  color: var(--white);
  padding: 28px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.trust h3 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* About */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.photo-slot {
  min-height: 420px;
  background: #d9dee4;
  color: var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot.has-photo .photo-slot-label {
  display: none;
}

.photo-slot-label {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  max-width: 240px;
}

.fine-print {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
}

/* Services */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-media {
  height: 180px;
  background: #d7dde3;
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card p {
  color: var(--muted);
  margin: 0 0 auto;
  font-size: 1rem;
}

.icon-row {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
}

/* Work */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 24px;
}

.filter {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 600;
}

.filter.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  min-height: 260px;
  background: #cfd6dd;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: left;
  color: var(--white);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item figcaption,
.gallery-item .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(8, 21, 37, 0.8));
  font-size: 0.95rem;
}

.gallery-item.hidden {
  display: none;
}

.before-after {
  margin-top: 48px;
}

.ba-frame {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: #c5ccd3;
  user-select: none;
}

.ba-layer {
  position: absolute;
  inset: 0;
}

.ba-layer.after {
  width: 50%;
  overflow: hidden;
  border-right: 2px solid var(--white);
}

.ba-layer img,
.ba-layer .fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-layer.after img,
.ba-layer.after .fill {
  width: 100vw;
  max-width: none;
  min-width: 1140px;
}

.ba-layer .fill {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #d5dbe1;
}

.ba-layer.after .fill {
  background: #bcc5ce;
  color: var(--navy);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.ba-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Areas */
.map-wrap {
  min-height: 420px;
  background: #d9dee4;
  overflow: hidden;
  margin-top: 32px;
}

.map-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

/* Quote */
.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 40px;
}

.contact-card {
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--white);
}

.contact-card span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card a,
.contact-card strong {
  color: var(--navy);
  font-size: 1.15rem;
}

.quote-form {
  display: grid;
  gap: 16px;
  background: var(--white);
  padding: 28px;
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--gray);
  padding: 12px 14px;
  color: var(--charcoal);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}

.success {
  display: none;
  padding: 28px;
  background: var(--gray);
  border-left: 4px solid var(--blue);
}

.success.show {
  display: block;
}

.quote-form.sent {
  display: none;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .logo {
  color: var(--white);
}

.footer-nav {
  display: grid;
  gap: 8px;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

.footer-bottom {
  padding-top: 18px;
  font-size: 0.88rem;
}

/* Mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--navy);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 8px;
}

.mobile-cta .btn {
  flex: 1;
}

.mobile-cta .btn.call {
  background: var(--white);
  color: var(--navy);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 21, 37, 0.92);
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
}

.lightbox.open {
  display: grid;
}

.lightbox-inner {
  width: min(900px, 100%);
  color: var(--white);
}

.lightbox-stage {
  min-height: 360px;
  background: #1a2a3c;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.lightbox-stage img {
  max-height: 70vh;
  width: 100%;
  object-fit: contain;
}

.thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thumbs button {
  width: 72px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #2a3b4d;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.close-lb {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 20px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav .btn {
    width: 100%;
  }

  .trust-grid,
  .cards,
  .gallery,
  .contact-options,
  .two-col,
  .form-row,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .mobile-cta {
    display: flex;
  }

  body {
    padding-bottom: var(--mobile-cta-h);
  }

  .section {
    padding: 64px 0;
  }
}
