/* ============================================================
   GESA Platten GmbH — Design System
   Swiss-Industrial Elite · Navy + Bronze + Midnight
   ============================================================ */

/* ------------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------------ */
:root {
  /* Brand Colors */
  --navy:             #040053;
  --navy-container:   #1b1b6b;
  --on-navy:          #ffffff;
  --bronze:           #775a19;
  --bronze-container: #fed488;
  --on-bronze:        #ffffff;
  --midnight:         #0e0f32;
  --midnight-mid:     #232448;
  --on-midnight:      #ffffff;

  /* Surfaces */
  --bg:               #f9f9fc;
  --surface:          #ffffff;
  --surface-low:      #f3f3f6;
  --surface-mid:      #edeef1;
  --surface-high:     #e8e8eb;

  /* Text */
  --text:             #1a1c1e;
  --text-muted:       #464651;
  --text-subtle:      #777682;

  /* Borders */
  --border:           #c7c5d3;
  --border-light:     #e2e2e5;

  /* Radius */
  --r-xs:  2px;
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;

  /* Typography */
  --font: 'Montserrat', Arial, sans-serif;

  /* Spacing scale (8px base) */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* Layout */
  --container:   1280px;
  --gutter:      24px;
  --margin-mob:  16px;
  --margin-desk: 48px;
  --nav-h:       96px;

  /* Shadows */
  --shadow-card: 0 1px 4px rgba(4,0,83,.07), 0 4px 16px rgba(4,0,83,.05);
  --shadow-nav:  0 1px 0 rgba(4,0,83,.08);

  /* Transitions */
  --t-fast: 150ms ease-out;
  --t-med:  250ms ease-out;
  --t-slow: 400ms ease-out;
}

/* ------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
ul, ol { list-style: none; }

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

::selection {
  background: var(--bronze-container);
  color: var(--midnight);
}

/* ------------------------------------------------------------
   3. Typography Scale
   ------------------------------------------------------------ */
.t-display {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.t-h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.t-h2 {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.t-h3 {
  font-size: clamp(1.125rem, 1.75vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
}

.t-body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
}

.t-body {
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
}

.t-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.t-muted  { color: var(--text-muted); }
.t-subtle { color: var(--text-subtle); }

/* ------------------------------------------------------------
   4. Layout Utilities
   ------------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--margin-mob);
  padding-right: var(--margin-mob);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--margin-desk);
    padding-right: var(--margin-desk);
  }
}

.section {
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-12);
}

@media (min-width: 768px) {
  .section { padding-top: var(--sp-16); padding-bottom: var(--sp-16); }
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.section-header .overline {
  display: inline-block;
  color: var(--bronze);
  margin-bottom: var(--sp-1);
}

.section-header h2 { margin-bottom: var(--sp-2); }

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
}

.divider {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--bronze);
  margin: var(--sp-2) auto 0;
}

.divider--left { margin-left: 0; }

/* Grids */
.grid-3 {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* Flex helpers */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 14px 28px;
  min-height: 44px;
  border-radius: var(--r-xs);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--on-navy);
  border: 2px solid var(--navy);
}
.btn-primary:hover {
  background: var(--navy-container);
  border-color: var(--navy-container);
}
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--on-navy); }

.btn-bronze {
  background: var(--bronze);
  color: var(--on-bronze);
  border: 2px solid var(--bronze);
}
.btn-bronze:hover { background: #6a500f; border-color: #6a500f; }

.btn-ghost-light {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }

.btn .material-symbols-outlined { font-size: 1.125rem; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-xs);
  transition: all var(--t-fast);
}

/* ------------------------------------------------------------
   6. Navigation
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--t-fast);
}

.nav.scrolled { box-shadow: var(--shadow-nav); }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.nav__logo img {
  height: 76px;
  width: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--sp-4);
}

@media (min-width: 768px) { .nav__links { display: flex; } }

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t-fast);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav__link:hover { color: var(--text); }
.nav__link.active { color: var(--navy); border-color: var(--bronze); font-weight: 600; }

.nav__cta { display: none; }
@media (min-width: 768px) { .nav__cta { display: inline-flex; } }

.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
}

@media (min-width: 768px) { .nav__hamburger { display: none; } }

.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--t-med);
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  padding: var(--sp-3) var(--margin-mob);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-med), opacity var(--t-fast);
  z-index: 99;
}

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

.nav__mobile a {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__mobile a.active { color: var(--navy); }
.nav__mobile .btn { width: 100%; justify-content: center; margin-top: var(--sp-1); }

/* Page offset for fixed nav */
main { padding-top: var(--nav-h); }

/* ------------------------------------------------------------
   7. Hero Section
   ------------------------------------------------------------ */
.hero {
  min-height: calc(90dvh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: brightness(0.6);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(4,0,83,.97) 25%, rgba(4,0,83,.82) 48%, rgba(4,0,83,.18) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--sp-12) 0;
  max-width: 680px;
}

.hero__overline {
  color: var(--bronze-container);
  margin-bottom: var(--sp-2);
}

.hero__title {
  color: #fff;
  margin-bottom: var(--sp-3);
}

.hero__title .accent { color: var(--bronze-container); }

.hero__body {
  color: rgba(255,255,255,.8);
  max-width: 520px;
  margin-bottom: var(--sp-5);
  font-size: 1.0625rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* USP Bar */
.usp-bar {
  background: var(--midnight);
  border-top: 3px solid var(--bronze);
}

.usp-bar__inner {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.08);
}

@media (min-width: 768px) {
  .usp-bar__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.usp-bar__item {
  padding: var(--sp-4) var(--sp-3);
  background: var(--midnight);
  text-align: center;
}

.usp-bar__item .value {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: var(--bronze-container);
  line-height: 1.2;
  display: block;
  margin-bottom: 4px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.usp-bar__item .label { color: rgba(255,255,255,.55); }

/* ------------------------------------------------------------
   8. Service Cards
   ------------------------------------------------------------ */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: var(--sp-5);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--border); }
.service-card:hover::before { transform: scaleX(1); }

.service-card--featured {
  border: 2px solid var(--bronze);
  box-shadow: 0 4px 24px rgba(119,90,25,.12);
}

.service-card--featured::before { transform: scaleX(1); }

.service-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--bronze);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--surface-low);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
  transition: background var(--t-med);
}

.service-card__icon .material-symbols-outlined {
  font-size: 1.75rem;
  color: var(--navy);
}

.service-card:hover .service-card__icon { background: var(--navy); }
.service-card:hover .service-card__icon .material-symbols-outlined { color: #fff; }
.service-card--featured .service-card__icon { background: var(--bronze); }
.service-card--featured .service-card__icon .material-symbols-outlined { color: #fff; }

.service-card h3 { color: var(--navy); margin-bottom: var(--sp-2); }
.service-card p { color: var(--text-muted); margin-bottom: var(--sp-3); }

.service-card__list { display: flex; flex-direction: column; gap: 10px; }

.service-card__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--text);
}

.service-card__list li .material-symbols-outlined {
  font-size: 1rem;
  color: var(--bronze);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   9. Before / After Slider
   ------------------------------------------------------------ */
.ba-section { background: var(--surface-low); }

.ba-layout {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .ba-layout { grid-template-columns: 5fr 7fr; }
}

.ba-text__heading { margin-bottom: var(--sp-3); }
.ba-text__body { color: var(--text-muted); margin-bottom: var(--sp-4); }

.ba-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-light);
}

.ba-stats__item .val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bronze);
  display: block;
}

.ba-stats__item .desc {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
}

/* Slider widget */
.ba-slider {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--r-xs);
  cursor: ew-resize;
  box-shadow: 0 8px 40px rgba(4,0,83,.15);
  user-select: none;
}

.ba-slider__after,
.ba-slider__before-wrap { position: absolute; inset: 0; }

.ba-slider__after img,
.ba-slider__before-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider__before-wrap {
  overflow: hidden;
  width: 50%;
  border-right: 2px solid rgba(255,255,255,.6);
}

.ba-slider__before-wrap img { width: 200%; }

.ba-label {
  position: absolute;
  top: var(--sp-2);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--r-xs);
}

.ba-label--before { left: var(--sp-2); background: rgba(4,0,83,.75); }
.ba-label--after  { right: var(--sp-2); background: rgba(119,90,25,.85); }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.ba-handle__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
}

.ba-handle__circle {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  z-index: 1;
}

.ba-handle__circle .material-symbols-outlined {
  font-size: 1.125rem;
  color: var(--navy);
}

/* ------------------------------------------------------------
   10. Process Section
   ------------------------------------------------------------ */
.process-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.process-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.process-section .section-header h2 { color: #fff; }
.process-section .section-header p { color: rgba(255,255,255,.65); }

.process-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  position: relative;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
  }
  .process-grid::before {
    content: '';
    position: absolute;
    top: 56px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: rgba(255,255,255,.15);
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
}

.process-step__icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--bronze);
  background: var(--midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-med);
  flex-shrink: 0;
}

.process-step:hover .process-step__icon { transform: scale(1.05); }

.process-step__icon .material-symbols-outlined {
  font-size: 2rem;
  color: var(--bronze-container);
}

.process-step h3 { color: var(--bronze-container); }
.process-step p { color: rgba(255,255,255,.65); max-width: 260px; }

/* ------------------------------------------------------------
   11. CTA Banner
   ------------------------------------------------------------ */
.cta-banner {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
}

.cta-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.cta-banner h2 { margin-bottom: var(--sp-2); }
.cta-banner p { color: var(--text-muted); margin-bottom: var(--sp-5); }

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
}

/* ------------------------------------------------------------
   12. Contact Form
   ------------------------------------------------------------ */
.contact-layout {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 7fr 5fr; }
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--bronze);
  padding: var(--sp-5);
  border-radius: var(--r-xs);
}

@media (min-width: 640px) { .form-card { padding: var(--sp-6); } }

.form-row {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-3); }
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group label .req { color: var(--bronze); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(4,0,83,.08), 0 2px 0 0 var(--bronze);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ba1a1a;
}

.form-group .error-msg {
  font-size: 0.8125rem;
  color: #ba1a1a;
  display: none;
}

.form-group.has-error .error-msg { display: block; }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-hint { font-size: 0.8125rem; color: var(--text-subtle); margin-top: 4px; }

/* Info sidebar */
.contact-sidebar { display: flex; flex-direction: column; gap: var(--gutter); }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: var(--sp-4);
}

.info-card--whatsapp {
  background: linear-gradient(135deg, var(--bronze-container) 0%, #fff4d6 100%);
  border-color: var(--bronze);
  border-top: 4px solid var(--bronze);
}

.info-card__icon {
  width: 40px;
  height: 40px;
  background: var(--surface-low);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card__icon .material-symbols-outlined { font-size: 1.25rem; color: var(--navy); }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-item:last-child { border-bottom: none; }

.contact-item__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 2px;
}

.contact-item a { color: var(--navy); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }

/* Coverage list */
.coverage-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: var(--sp-3);
}

.coverage-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
}

.coverage-list li .material-symbols-outlined {
  font-size: 1rem;
  color: var(--bronze);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   13. Gallery Grid (Projekte)
   ------------------------------------------------------------ */
.gallery-grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: var(--surface-high);
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.gallery-card:hover img { transform: scale(1.04); }

.gallery-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,0,83,.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-3);
}

.gallery-card:hover .gallery-card__overlay { opacity: 1; }

.gallery-card__info h3 { color: #fff; font-size: 1rem; }
.gallery-card__info span { color: rgba(255,255,255,.7); font-size: 0.8125rem; }

/* Placeholder gallery card */
.gallery-card--placeholder {
  border: 2px dashed var(--border);
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  text-align: center;
  padding: var(--sp-4);
}

.gallery-card--placeholder .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--border);
}

.gallery-card--placeholder p { color: var(--text-subtle); font-size: 0.875rem; }

/* ------------------------------------------------------------
   14. Page Hero (compact, for inner pages)
   ------------------------------------------------------------ */
.page-hero {
  background: var(--midnight);
  padding: var(--sp-10) 0;
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(14,15,50,.95) 40%, rgba(14,15,50,.6));
}

.page-hero__content { position: relative; z-index: 1; max-width: 700px; }
.page-hero__content .overline { color: var(--bronze-container); margin-bottom: var(--sp-1); }
.page-hero h1 { color: #fff; margin-bottom: var(--sp-2); }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.0625rem; }

/* ------------------------------------------------------------
   15. Table
   ------------------------------------------------------------ */
.data-table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table thead tr { background: var(--navy); color: #fff; }
.data-table thead th { padding: 14px 20px; font-weight: 600; font-size: 0.875rem; }

.data-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--t-fast);
}

.data-table tbody tr:hover { background: var(--surface-low); }
.data-table tbody td { padding: 14px 20px; font-size: 0.9375rem; color: var(--text-muted); }
.data-table tbody td:first-child { color: var(--navy); font-weight: 600; }

.dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bronze);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   16. FAQ Accordion
   ------------------------------------------------------------ */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-1); }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  overflow: hidden;
  background: var(--surface);
}

.faq-item__trigger {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background var(--t-fast);
}

.faq-item__trigger:hover { background: var(--surface-low); }
.faq-item.open .faq-item__trigger { background: var(--surface-low); }

.faq-item__trigger .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--text-subtle);
  transition: transform var(--t-med);
}

.faq-item.open .faq-item__trigger .material-symbols-outlined {
  transform: rotate(180deg);
  color: var(--navy);
}

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}

.faq-item__body p {
  padding: var(--sp-2) var(--sp-4) var(--sp-4);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   17. Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--midnight);
  border-top: 4px solid var(--bronze);
  color: var(--on-midnight);
}

.footer__main {
  padding: var(--sp-12) 0;
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .footer__main { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer__main { grid-template-columns: 2fr 1fr 1fr 2fr; gap: var(--sp-8); }
}

.footer__brand img { height: 40px; width: auto; margin-bottom: var(--sp-3); }

.footer__brand p {
  color: rgba(255,255,255,.55);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze-container);
  margin-bottom: var(--sp-3);
}

.footer__nav { display: flex; flex-direction: column; gap: var(--sp-1); }

.footer__nav a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,.55);
  transition: color var(--t-fast);
  padding: 4px 0;
}

.footer__nav a:hover { color: #fff; }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}

.footer__contact-item .material-symbols-outlined {
  font-size: 1rem;
  color: var(--bronze-container);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__contact-item span { color: rgba(255,255,255,.65); font-size: 0.9375rem; line-height: 1.5; }

.footer__bottom {
  padding: var(--sp-3) 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.footer__bottom span { font-size: 0.8125rem; color: rgba(255,255,255,.35); }
.footer__bottom a { color: rgba(255,255,255,.4); font-size: 0.8125rem; transition: color var(--t-fast); }
.footer__bottom a:hover { color: rgba(255,255,255,.7); }

.footer__legal { display: flex; gap: var(--sp-3); }

/* ------------------------------------------------------------
   18. Mobile Sticky CTA
   ------------------------------------------------------------ */
.mobile-cta {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  padding: var(--sp-2) var(--margin-mob);
  gap: 10px;
  box-shadow: 0 -4px 24px rgba(4,0,83,.1);
}

@media (min-width: 768px) { .mobile-cta { display: none; } }

.mobile-cta .btn { flex: 1; justify-content: center; font-size: 0.8125rem; padding: 12px; }

/* Account for mobile CTA bar */
@media (max-width: 767px) { main { padding-bottom: 76px; } }

/* ------------------------------------------------------------
   19. Scroll Reveal Animations
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--t-slow), transform var(--t-slow);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal--delay-1 { transition-delay: 100ms; }
  .reveal--delay-2 { transition-delay: 200ms; }
  .reveal--delay-3 { transition-delay: 300ms; }
  .reveal--delay-4 { transition-delay: 400ms; }
}

/* ------------------------------------------------------------
   20. Image Placeholders (CSS backgrounds for dev/demo)
   ------------------------------------------------------------ */
.img-placeholder-hero {
  background: linear-gradient(135deg, #0a0a2e 0%, #1a1a5e 40%, #2a2a8e 100%);
}

.img-placeholder-tile-before {
  background: linear-gradient(135deg, #2a2520 0%, #3d342c 50%, #4a3f35 100%);
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 1px, transparent 1px, transparent 40px),
    linear-gradient(135deg, #2a2520 0%, #3d342c 50%, #4a3f35 100%);
}

.img-placeholder-tile-after {
  background: linear-gradient(135deg, #d4cfc8 0%, #e8e4de 50%, #f0ece6 100%);
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0px, rgba(0,0,0,.08) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0px, rgba(0,0,0,.08) 1px, transparent 1px, transparent 60px),
    linear-gradient(135deg, #d4cfc8 0%, #e8e4de 50%, #f0ece6 100%);
}

.img-placeholder-gallery {
  background: linear-gradient(135deg, var(--surface-high) 0%, var(--surface-mid) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-subtle);
  font-size: 0.8125rem;
  text-align: center;
  padding: 16px;
}

/* ------------------------------------------------------------
   21. Print & Misc
   ------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  .nav, .mobile-cta, .footer { display: none !important; }
  main { padding-top: 0 !important; }
}

/* ------------------------------------------------------------
   22. SVG Logo sizing
   ------------------------------------------------------------ */
.nav__logo svg,
.nav__logo img {
  height: 76px;
  width: auto;
  display: block;
}

@media (max-width: 767px) {
  .nav__logo svg,
  .nav__logo img { height: 52px; }
}

.footer__brand svg,
.footer__brand img {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: var(--sp-3);
}

/* ------------------------------------------------------------
   23. Before/After slider — placeholder backgrounds
   ------------------------------------------------------------ */

/* Light tile grid (after = renovated, clean stone) */
.ba-slider__after {
  background-color: #e8e4de;
  background-image:
    repeating-linear-gradient(0deg,  rgba(0,0,0,.06) 0px, rgba(0,0,0,.06) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0px, rgba(0,0,0,.06) 1px, transparent 1px, transparent 60px);
}

/* Dark aged tile grid (before = old worn tiles) */
.ba-slider__before-wrap {
  background-color: #3a3530;
  background-image:
    repeating-linear-gradient(0deg,  rgba(255,255,255,.06) 0px, rgba(255,255,255,.06) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0px, rgba(255,255,255,.06) 1px, transparent 1px, transparent 40px);
}

/* Hide broken image icon when img fails to load — applies universally */
img.img-broken {
  visibility: hidden;
}

/* ------------------------------------------------------------
   24. Hero / page-hero — subtle dot-grid texture (no photo needed)
   ------------------------------------------------------------ */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.page-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Bento featured card fallback (used when service photo is absent) */
.bento-featured__bg {
  background: linear-gradient(145deg, #040053 0%, #1a1a6e 60%, #0e0f32 100%);
}
