/* ============================================
   DB EXCAVATIONS — DESIGN TOKENS & STYLES
   
   Art direction: rugged, earthy, industrial.
   Warm soil browns, forest greens, steel grays.
   Clean and professional — not flashy.
   ============================================ */

/* ── TYPE SCALE ─────────────────────────────── */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* ── SPACING ────────────────────────────── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── RADIUS ─────────────────────────────── */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ── TRANSITIONS ────────────────────────── */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ── CONTENT WIDTHS ─────────────────────── */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* ── FONTS ──────────────────────────────── */
  --font-display: 'Cabinet Grotesk', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', 'Inter', 'Helvetica Neue', sans-serif;
}


/* ── LIGHT MODE (default) ─────────────────── */
:root, [data-theme="light"] {
  /* Surfaces — warm gray/stone */
  --color-bg:              #f5f3ef;
  --color-surface:         #fbfaf8;
  --color-surface-2:       #ffffff;
  --color-surface-offset:  #eae7e1;
  --color-surface-dynamic: #ddd9d2;
  --color-divider:         #d0ccc4;
  --color-border:          #c5c0b8;

  /* Text */
  --color-text:            #1a1814;
  --color-text-muted:      #6b6560;
  --color-text-faint:      #a09a93;
  --color-text-inverse:    #f5f3ef;

  /* Primary — earthy amber/brown */
  --color-primary:         #a0622a;
  --color-primary-hover:   #8a5322;
  --color-primary-active:  #6e421a;

  /* Accent — forest green */
  --color-accent:          #3d6b4f;
  --color-accent-hover:    #2e5a3e;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 60 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 60 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 60 / 0.12);
}

/* ── DARK MODE ────────────────────────────── */
[data-theme="dark"] {
  --color-bg:              #141210;
  --color-surface:         #1c1a17;
  --color-surface-2:       #232019;
  --color-surface-offset:  #1e1c18;
  --color-surface-dynamic: #2a2722;
  --color-divider:         #302d27;
  --color-border:          #3d3a33;

  --color-text:            #d8d4ce;
  --color-text-muted:      #8a857e;
  --color-text-faint:      #5c5751;
  --color-text-inverse:    #1a1814;

  --color-primary:         #c88548;
  --color-primary-hover:   #d9973b;
  --color-primary-active:  #e5a84e;

  --color-accent:          #5fa577;
  --color-accent-hover:    #72b88a;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:              #141210;
    --color-surface:         #1c1a17;
    --color-surface-2:       #232019;
    --color-surface-offset:  #1e1c18;
    --color-surface-dynamic: #2a2722;
    --color-divider:         #302d27;
    --color-border:          #3d3a33;
    --color-text:            #d8d4ce;
    --color-text-muted:      #8a857e;
    --color-text-faint:      #5c5751;
    --color-text-inverse:    #1a1814;
    --color-primary:         #c88548;
    --color-primary-hover:   #d9973b;
    --color-primary-active:  #e5a84e;
    --color-accent:          #5fa577;
    --color-accent-hover:    #72b88a;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}


/* ── HEADER / NAV ─────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}
.nav-logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.theme-toggle {
  padding: var(--space-2);
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: #fff;
  background-image: url('./assets/logo.jpg');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu-links {
  position: absolute;
  /* Position in the top-right white area of the logo */
  top: 10%;
  right: 4%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
  padding: 0;
  background: none;
}
.mobile-menu-links a {
  text-shadow: none;
  font-size: var(--text-lg);
}
@media (max-width: 400px) {
  .mobile-menu-links {
    top: 8%;
    right: 3%;
    gap: var(--space-2);
  }
  .mobile-menu-links a {
    font-size: var(--text-base);
  }
}
[data-theme="dark"] .mobile-menu {
  background-color: #1a1a1a;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}
.mobile-menu a:hover {
  color: var(--color-primary);
}
.mobile-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-2);
  color: var(--color-text);
  z-index: 2;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}


/* ── HERO ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0.1 0.02 60 / 0.92) 0%,
    oklch(0.1 0.02 60 / 0.6) 40%,
    oklch(0.1 0.02 60 / 0.2) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-16) var(--space-4) var(--space-12);
  width: 100%;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #f5f3ef;
  max-width: 14ch;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}
.hero-content p {
  font-size: var(--text-base);
  color: oklch(0.85 0.01 60);
  max-width: 48ch;
  margin-bottom: var(--space-6);
  line-height: 1.7;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  letter-spacing: 0.01em;
}
.hero-cta:hover {
  background: var(--color-primary-hover);
}

@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .hero-content { padding: var(--space-12) var(--space-4) var(--space-8); }
}


/* ── SECTIONS ─────────────────────────────── */
.section {
  padding: clamp(var(--space-12), 6vw, var(--space-24)) var(--space-4);
}
.section-container {
  max-width: var(--content-wide);
  margin-inline: auto;
}
.section-header {
  margin-bottom: var(--space-10);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.section-header p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.section-alt {
  background: var(--color-surface-offset);
}


/* ── SERVICES GRID ────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-4);
}
.service-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card .card-icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}


/* ── GALLERY ──────────────────────────────── */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.filter-btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-full);
  cursor: pointer;
}
.filter-btn:hover {
  color: var(--color-text);
  border-color: oklch(from var(--color-text) l c h / 0.15);
}
.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-4);
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--color-surface-offset);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-item img[data-rotation="90"],
.gallery-item img[data-rotation="270"] {
  transform: rotate(var(--rotation)) scale(1.35);
}
.gallery-item img[data-rotation="180"] {
  transform: rotate(180deg);
}
.gallery-item:hover img[data-rotation="90"],
.gallery-item:hover img[data-rotation="270"] {
  transform: rotate(var(--rotation)) scale(1.4);
}
.gallery-item:hover img[data-rotation="180"] {
  transform: rotate(180deg) scale(1.04);
}
.gallery-item .caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6) var(--space-4) var(--space-3);
  background: linear-gradient(to top, oklch(0.1 0 0 / 0.75), transparent);
  color: #f5f3ef;
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .caption-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: oklch(0.08 0 0 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.lightbox-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  color: #fff;
  padding: var(--space-2);
  font-size: 1.5rem;
}
.lightbox-caption {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  color: oklch(0.9 0 0);
  font-size: var(--text-sm);
  text-align: center;
  max-width: 60ch;
}


/* ── EQUIPMENT ────────────────────────────── */
.equipment-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.equip-tab {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-full);
}
.equip-tab:hover {
  color: var(--color-text);
}
.equip-tab.active {
  background: var(--color-text);
  color: var(--color-text-inverse);
  border-color: var(--color-text);
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--space-4);
}
.equipment-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.equipment-card:hover {
  box-shadow: var(--shadow-md);
}
.equipment-card-img {
  aspect-ratio: 16/10;
  background: var(--color-surface-offset);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.equipment-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.equipment-card-img .placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--color-text-faint);
}
.equipment-card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.equipment-card-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.equipment-card-body .specs {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-3);
  letter-spacing: 0.02em;
}
.equipment-card-body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  flex: 1;
}
.equipment-type-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}


/* ── CALCULATOR ───────────────────────────── */
.calc-container {
  max-width: 640px;
}
.calc-intro {
  margin-bottom: var(--space-8);
}
.calc-intro p {
  color: var(--color-text-muted);
}

.calc-form {
  background: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.form-group {
  margin-bottom: var(--space-5);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.form-group input,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.calc-btn {
  width: 100%;
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  margin-top: var(--space-2);
}
.calc-btn:hover {
  background: var(--color-primary-hover);
}

.calc-result {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  display: none;
}
.calc-result.visible {
  display: block;
}
.calc-result h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 480px) {
  .result-grid { grid-template-columns: 1fr; }
}
.result-item {
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-md);
}
.result-item .label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.result-item .value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}
.calc-disclaimer {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
}


/* ── PAGE HERO (interior pages) ───────────── */
.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero .hero-overlay {
  background: linear-gradient(
    to top,
    oklch(0.1 0.02 60 / 0.88) 0%,
    oklch(0.1 0.02 60 / 0.4) 100%
  );
}
.page-hero .hero-content {
  padding: var(--space-10) var(--space-4) var(--space-8);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #f5f3ef;
  letter-spacing: -0.03em;
}
.page-hero p {
  color: oklch(0.8 0.01 60);
  font-size: var(--text-base);
  margin-top: var(--space-2);
}

@media (max-width: 768px) {
  .page-hero { min-height: 30vh; }
}


/* ── FOOTER ───────────────────────────────── */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  padding: var(--space-10) var(--space-4) var(--space-6);
}
.footer-container {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.footer-brand svg {
  width: 28px;
  height: 28px;
}
.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
}
.footer-brand span {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}
.footer-location {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer-nav {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}
.footer-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--color-text);
}
.footer-bottom {
  max-width: var(--content-wide);
  margin-inline: auto;
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-bottom span,
.footer-bottom a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-bottom a {
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-nav {
    flex-direction: column;
    gap: var(--space-3);
  }
}


/* ── SCROLL ANIMATIONS ────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* Video gallery items */
.gallery-video { position: relative; cursor: pointer; }
.video-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; opacity: 0.9; transition: opacity 0.2s ease; }
.gallery-video:hover .video-play-icon { opacity: 1; }
.gallery-video:hover .video-play-icon circle { fill: rgba(0,0,0,0.7); }

/* ── Before/After Gallery Pairs ── */
.gallery-ba-pair {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-ba-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-ba-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
}

.ba-label {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.ba-before {
  background: rgba(220, 60, 60, 0.85);
  color: #fff;
}

.ba-after {
  background: rgba(40, 160, 70, 0.85);
  color: #fff;
}

.gallery-ba-item .caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: var(--text-xs);
}

@media (max-width: 600px) {
  .gallery-ba-pair {
    grid-template-columns: 1fr;
  }
}

/* ── Driveway Calculator cost breakdown rows ── */
.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.cost-row span:first-child {
  color: var(--color-text-muted);
  font-weight: 500;
}
.cost-row span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
}
