:root {
  --white: #ffffff;
  --black: #000000;
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --surface: #1a1a1a;
  --surface-hover: #222222;
  --dark: #000000;
  --dark-muted: #0d0d0d;
  --text: #f2f2f2;
  --text-muted: #999999;
  --border: #2a2a2a;
  --accent: #e31837;
  --accent-dark: #c41230;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --wide: 1080px;
  --radius: 6px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}

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

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

ul {
  list-style: none;
}

.container-wide {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.eyebrow-light {
  color: #f87171;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.5rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 4.75rem;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

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

.btn-ghost:hover {
  border-color: var(--white);
}

.btn-nav {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--white) !important;
  border-color: var(--accent);
}

.btn-nav:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-light {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-light:hover {
  background: #e5e5e5;
  border-color: #e5e5e5;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  border-color: var(--white);
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--black);
  scroll-snap-align: start;
}

.hero-inner {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.hero-text {
  max-width: 36rem;
  flex: 1 1 22rem;
}


.hero-text .eyebrow {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 14ch;
  margin-bottom: 1rem;
}

.hero-lead {
  color: var(--text-muted);
  max-width: 38ch;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

main {
  scroll-snap-type: y proximity;
}

/* Sections */
.section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 5vh, 5rem) 0;
  box-sizing: border-box;
  scroll-snap-align: start;
}

.section > .container-wide {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-sub {
  color: var(--text-muted);
  max-width: 42ch;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 2rem;
}

.service-card-accent {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--border);
}

.service-card-accent .service-num {
  color: var(--accent);
}

.service-card-accent p {
  color: var(--text-muted);
}

.service-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  max-width: 36ch;
}

/* Pricing */
.pricing-calculator {
  display: grid;
  gap: 1.5rem;
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.price-card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.price-card:hover {
  border-color: #444;
}

.price-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--bg-alt);
}

.price-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.price-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.price-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.price-extras-heading,
.price-summary-label,
.quote-form-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.price-extras {
  display: grid;
  gap: 0;
}

.extra-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.extra-option {
  position: relative;
  display: block;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.extra-option:hover {
  border-color: #444;
}

.extra-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--bg-alt);
}

.extra-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.extra-option-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.extra-option-name {
  color: var(--text);
}

.extra-option strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text-muted);
}

.extra-option:has(input:checked) .extra-option-name {
  color: var(--white);
}

.extra-option:has(input:checked) strong {
  color: var(--accent);
}

.price-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.price-summary-label {
  margin-bottom: 0.75rem;
}

.price-summary-list {
  margin-bottom: 1rem;
}

.price-summary-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.price-summary-list li:last-child {
  border-bottom: none;
}

.price-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-summary-total strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.quote-form-heading {
  margin-bottom: 0.75rem;
}

.quote-field {
  display: block;
  margin-bottom: 0.75rem;
}

.quote-field span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.quote-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 1rem; /* must be ≥16px to prevent iOS auto-zoom */
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quote-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.quote-field input::placeholder {
  color: #666;
}

.quote-form-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  min-height: 1.25rem;
}

.quote-form-status.is-success {
  color: #4ade80;
}

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

.quote-form.is-submitting [data-quote-submit] {
  opacity: 0.7;
  pointer-events: none;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* Gallery slider */
.gallery-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 5vh, 5rem) 0;
  box-sizing: border-box;
  scroll-snap-align: start;
}

.gallery-section > .container-wide {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  flex: 1;
  min-height: 0;
}

.gallery-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.gallery-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  aspect-ratio: unset;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--black);
  cursor: default;
  touch-action: pan-y;
  user-select: none;
  outline: none;
}

.gallery-viewport:focus-visible {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--accent);
}

.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-img-before {
  z-index: 2;
  filter: saturate(0.45) brightness(0.82) contrast(0.9);
  clip-path: inset(0 50% 0 0);
}

.gallery-item--real-before .gallery-img-before {
  filter: none;
}

.gallery-img-after {
  z-index: 1;
}

.gallery-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2.75rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.gallery-divider-knob {
  position: relative;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--white);
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  cursor: ew-resize;
  touch-action: none;
  pointer-events: auto;
}

.gallery-side-label {
  position: absolute;
  top: 0.75rem;
  z-index: 4;
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  border-radius: 3px;
  pointer-events: none;
}

.gallery-side-before {
  left: 0.75rem;
}

.gallery-side-after {
  right: 0.75rem;
}

.gallery-item figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Contact */
.contact {
  background: var(--black);
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.contact-text p {
  color: var(--text-muted);
}

.contact-location {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.quote-field-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.footer {
  background: var(--bg-alt);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-info,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links {
  align-items: flex-end;
  text-align: right;
}

.footer-details a:hover,
.footer-links a:hover {
  color: var(--white);
}

.footer-brand {
  font-weight: 600;
  color: var(--white);
}

.quote-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
}

.quote-consent input {
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--accent);
}

.quote-consent a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quote-consent a:hover {
  color: var(--white);
}

.legal-page {
  padding: clamp(3rem, 6vh, 5rem) 0;
}

.legal-content {
  max-width: 42rem;
}

.legal-header {
  margin-bottom: 2.5rem;
}

.legal-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-content section {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.65rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-content p + p {
  margin-top: 0.75rem;
}

.legal-list {
  margin: 0.75rem 0 0 1.1rem;
  list-style: disc;
}

.legal-list li + li {
  margin-top: 0.35rem;
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--white);
}

.legal-back {
  margin-top: 2.5rem;
}

/* Responsive — tablet */
@media (max-width: 900px) {
  .price-cards {
    grid-template-columns: 1fr;
  }

  .extra-options {
    grid-template-columns: 1fr;
  }

  .price-summary {
    grid-template-columns: 1fr;
  }

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

  /* Single-column gallery: use aspect-ratio instead of flex-fill */
  .gallery-section > .container-wide {
    flex: unset;
  }

  .gallery-grid {
    flex: unset;
  }

  .gallery-item {
    flex: unset;
  }

  .gallery-viewport {
    flex: unset;
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

/* Responsive — mobile */
@media (max-width: 640px) {
  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 5.5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.65rem 0;
  }

  .btn-nav {
    text-align: center;
    margin-top: 0.5rem;
  }

  /* Hero */
  .hero-inner {
    padding: 3rem 0 2.5rem;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }


  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .hero-lead {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  /* Sections */
  .section {
    padding: 2.5rem 0;
    /* allow taller content to scroll naturally on mobile */
    min-height: unset;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  /* Gallery */
  .gallery-section {
    min-height: unset;
    padding: 2.5rem 0;
  }

  .gallery-grid {
    gap: 1.25rem;
  }

  .gallery-viewport {
    aspect-ratio: 3 / 4;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.5rem;
  }

  /* Pricing */
  .price-card {
    padding: 1.25rem 1rem;
  }

  .price-value {
    font-size: 1.15rem;
  }

  .extra-option {
    padding: 1rem;
  }

  .price-summary {
    padding: 1.25rem;
  }

  /* Contact */
  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-actions {
    flex-direction: column;
    width: 100%;
  }

  .contact-actions .btn {
    width: 100%;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
    text-align: left;
  }
}
