/* =====================================================
   D&K AutoCARE — style.css
   Mobile-first, modern automotive dark theme.
   ===================================================== */

/* ---------- Brand variables ---------- */
:root {
  --bg: #06070a;
  --bg-alt: #0a0c11;
  --surface: #10131a;
  --surface-2: #151922;
  --border: #232833;

  --blue: #1e6fff;
  --blue-light: #4fa3ff;
  --blue-glow: rgba(30, 111, 255, 0.45);

  --silver: #c7ccd6;
  --silver-light: #eef1f6;

  --text: #f2f4f8;
  --muted: #9aa2b1;

  --radius: 14px;
  --radius-sm: 8px;

  --font-display: 'Montserrat', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --header-h: 72px;
  --mobile-bar-h: 68px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--mobile-bar-h);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.02em; }
p { margin: 0; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.accent { color: var(--blue-light); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #0d4fd1);
  color: #fff;
  box-shadow: 0 6px 20px var(--blue-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--blue-glow); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--blue-light); color: var(--blue-light); transform: translateY(-2px); }

.btn-lg { padding: 15px 28px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(6, 7, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(6, 7, 10, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
}
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
@media (min-width: 480px) {
  .brand-logo { height: 44px; }
}
@media (min-width: 900px) {
  .brand-logo { height: 50px; }
}
.brand-mark {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--silver-light);
  text-shadow: 0 0 18px var(--blue-glow);
}
.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav ul {
  display: flex;
  gap: 26px;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 6px 2px;
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue-light);
  box-shadow: 0 0 8px var(--blue-glow);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-cta { display: none; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--silver-light);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  /* The inline header nav (.main-nav / .nav-link / .nav-cta) is desktop-only
     content. On mobile it is replaced entirely by the standalone
     #mobile-menu overlay below, so just hide it here - simpler and safer
     than trying to repurpose it as an overlay (that approach is what broke
     in v0.2/v0.21). */
  .main-nav {
    display: none;
  }
}

@media (min-width: 900px) {
  .hamburger { display: none; }
  .nav-cta { display: inline-flex; }
}

/* While the mobile menu is open, lock background scrolling
   (class toggled on <body> by js/script.js). */
body.nav-open {
  overflow: hidden;
}

/* ---------- Mobile menu (v0.22 rebuild) ----------
   A fullscreen overlay that lives OUTSIDE .site-header in the DOM (see
   index.html), so it is never affected by the header's backdrop-filter
   (which creates its own containing block for position:fixed descendants
   and was the root cause of the v0.21 bug). This overlay's containing
   block is always the viewport. Desktop is completely unaffected: the
   whole block below is inside a max-width:899px query. */
@media (max-width: 899px) {
  .mobile-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: var(--bg); /* fully solid - no alpha, no blur */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu[hidden] {
    display: flex; /* keep display:flex so the closing transition can run */
  }
  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    flex-shrink: 0;
  }
  .mobile-menu-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-display);
  }

  .mobile-menu-close {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--silver-light);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
  }
  .mobile-menu-close:hover { border-color: var(--blue-light); color: var(--blue-light); }

  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    gap: 28px;
    padding: 24px 4px;
  }
  .mobile-menu-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-nav-link {
    display: block;
    padding: 16px 4px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
  }
  .mobile-nav-link:hover,
  .mobile-nav-link:focus-visible { color: var(--blue-light); }

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

@media (min-width: 900px) {
  /* Overlay is mobile-only; keep it fully out of the way on desktop
     regardless of any open/hidden state. */
  .mobile-menu {
    display: none !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0 90px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 50% -10%, #0d1420 0%, var(--bg) 55%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.hero-glow-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  top: -140px; right: -80px;
}
.hero-glow-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #0b3ea3 0%, transparent 70%);
  bottom: -160px; left: -100px;
  opacity: 0.4;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 75%);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 10px var(--blue-glow);
}
.hero-title {
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 1.05;
  color: var(--silver-light);
  text-shadow: 0 0 40px var(--blue-glow);
  margin-bottom: 14px;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.hero-services-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 10px;
  column-gap: 10px;
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 36px;
}
.hero-service-item {
  white-space: nowrap; /* keep each service name on one line while the list itself wraps */
}
.hero-service-dot {
  color: var(--blue-light);
}

@media (max-width: 640px) {
  /* Let the list wrap into comfortable 2-3 centered lines instead of
     shrinking the font to force everything onto one line. */
  .hero-services-line {
    font-size: 0.92rem;
    row-gap: 12px;
    column-gap: 8px;
    padding: 0 8px;
  }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 999px;
  z-index: 1;
}
.scroll-indicator span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--blue-light);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Section shared ---------- */
section { padding: 90px 0; position: relative; }
.section-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 10px;
  font-weight: 600;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--silver-light);
  margin-bottom: 14px;
}
.section-lead {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.02rem;
  margin-bottom: 44px;
}

/* reveal-on-scroll
   NOTE: elements are visible by default (progressive enhancement).
   JS adds ".reveal-init" only once it has attached an IntersectionObserver,
   so content never disappears if JavaScript is slow, blocked, or disabled. */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.reveal-init {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.reveal-init.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  /* 8 cards sit evenly as 4x2 on wide desktop screens */
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 163, 255, 0.5);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(79,163,255,0.12);
}

.service-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(30,111,255,0.18), rgba(30,111,255,0.04));
  border: 1px solid rgba(79,163,255,0.25);
  color: var(--blue-light);
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.service-card p { color: var(--muted); font-size: 0.95rem; }
.service-price {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--blue-light);
  font-weight: 500;
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .about-inner { grid-template-columns: 1.1fr 0.9fr; }
}

.about-lead {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 36px;
  max-width: 560px;
}

.about-list { display: flex; flex-direction: column; gap: 24px; }
.about-list li { display: flex; gap: 16px; align-items: flex-start; }
.about-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30,111,255,0.15);
  border: 1px solid rgba(79,163,255,0.35);
  color: var(--blue-light);
  font-weight: 700;
  font-size: 0.9rem;
}
.about-list h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 4px;
}
.about-list p { color: var(--muted); font-size: 0.93rem; }

.about-visual { display: flex; justify-content: center; }
.about-card {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px;
  background: radial-gradient(circle at 30% 20%, rgba(30,111,255,0.25), var(--surface) 60%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card), inset 0 0 60px rgba(30,111,255,0.08);
}
.about-card-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 220px;
  max-height: 160px;
  object-fit: contain; /* preserves aspect ratio - never stretched or cropped */
}

/* ---------- Gallery ---------- */
.gallery { background: var(--bg-alt); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Real before/after photos read best at max 2 columns, even on wide
   desktop screens - a 3rd column made the comparison images too small
   to judge. With 6 cards (5 before/after + Diagnostika) the 2-column
   grid now fills evenly in 3 full rows, so no special-casing of the
   last item is needed any more. */

.gallery-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform var(--transition), border-color var(--transition);
}
.gallery-card:hover { transform: translateY(-4px); border-color: rgba(79,163,255,0.4); }

.gallery-media {
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #101826, #0a0d13);
}
.gallery-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Diagnostika screenshot keeps its own (wider) ratio so nothing gets
   cropped out of the software window. */
.diagnostika-card .gallery-media { aspect-ratio: 800 / 483; }
/* Same idea for the oil/filter change photo - keeps its own ratio instead
   of the standard 4:3 crop so nothing important is cut off. */
.olej-card .gallery-media { aspect-ratio: 1400 / 934; }

.gallery-card figcaption {
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  border-top: 1px solid var(--border);
}

/* ---------- Before / After comparison slider ----------
   Structure: .ba-frame holds the "after" photo full-size, then an
   absolutely-positioned .ba-before-clip with the "before" photo, clipped
   with clip-path so it never gets squeezed/deformed. .ba-frame itself is
   the interactive surface: pointer events (see script.js) compute the
   position relative to its own getBoundingClientRect(), so the slider
   never jumps regardless of scroll position or page layout. */
.ba-card { cursor: default; }
.ba-card:hover { transform: none; } /* the lift-on-hover from .gallery-card would fight with dragging */

.ba-slider {
  position: relative;
  --pos: 50%;
}

.ba-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #05060a;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  touch-action: pan-y; /* horizontal drag controls the slider, vertical page scroll still works */
  -webkit-tap-highlight-color: transparent;
}
.ba-frame:focus-visible { outline: 2px solid var(--blue-light); outline-offset: -2px; }
.ba-frame.dragging { cursor: grabbing; }

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills the frame without distorting the aspect ratio */
  display: block;
  pointer-events: none; /* clicks/drags always go to .ba-frame, never the <img> itself */
  -webkit-user-drag: none;
  user-drag: none;
}

.ba-before-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-before-clip .ba-img { position: absolute; inset: 0; }

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: linear-gradient(180deg, rgba(79,163,255,0.9), rgba(30,111,255,0.6));
  box-shadow: 0 0 12px rgba(79,163,255,0.6);
  pointer-events: none;
  z-index: 3;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid rgba(255,255,255,0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 0 6px rgba(30,111,255,0.18);
}
.ba-handle svg { width: 20px; height: 20px; }

.ba-tag {
  position: absolute;
  top: 12px;
  z-index: 3;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border-radius: 999px;
  color: #fff;
  background: rgba(6,7,10,0.72);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(3px);
  pointer-events: none;
}
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; }

/* ---------- Gallery lightbox (prepared for real photos) ---------- */
.gallery-card.has-photo { cursor: pointer; }
.gallery-card.has-photo .gallery-media { position: relative; }
.gallery-card.has-photo:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.9);
  backdrop-filter: blur(4px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(900px, 92vw);
  max-height: 88vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.lightbox-image {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #000;
}

.lightbox-caption {
  padding: 14px 20px;
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(6,7,10,0.8);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: border-color var(--transition), color var(--transition);
}
.lightbox-close:hover { border-color: var(--blue-light); color: var(--blue-light); }

/* ---------- Cenník / Pricing ---------- */
.pricing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pricing-inner .section-lead { text-align: center; }

.pricing-figure {
  position: relative;
  display: block;
  width: 100%;
  max-width: 420px; /* keeps the portrait chart from dominating the page on desktop */
  margin: 8px 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition);
}
.pricing-figure:hover,
.pricing-figure:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(79, 163, 255, 0.45);
  outline: none;
}

.pricing-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.pricing-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 7, 10, 0.75);
  border: 1px solid rgba(79, 163, 255, 0.4);
  color: var(--blue-light);
  backdrop-filter: blur(2px);
}
.pricing-zoom-hint svg { width: 19px; height: 19px; }

.pricing-caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Reuse the same lightbox visual language as the gallery lightbox, with a
   taller max-height since the pricing chart is a tall portrait image. */
.pricing-lightbox-dialog {
  max-width: min(560px, 92vw);
}
.pricing-lightbox-image {
  max-height: 84vh;
}

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .contact-inner { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 32px;
}
.contact-list li,
.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--text);
}
.contact-list a { transition: color var(--transition); }
.contact-list a:hover { color: var(--blue-light); }

.contact-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(30,111,255,0.12);
  border: 1px solid rgba(79,163,255,0.3);
  color: var(--blue-light);
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-map {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.map-embed {
  flex: 1;
  width: 100%;
  min-height: 220px;
  display: block;
  /* Dark-mode the light Google Maps basemap to match the site's dark theme
     (invert + hue-rotate is the standard trick to keep map colors natural) */
  filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}

.map-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.map-card-text {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.map-card-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(30,111,255,0.12);
  border: 1px solid rgba(79,163,255,0.3);
  color: var(--blue-light);
}
.map-card-icon svg { width: 20px; height: 20px; }
.map-card-text div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.map-card-text strong { color: var(--text); font-size: 0.95rem; }
.map-card-text span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-top: 48px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 36px;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
}
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
}
.footer-info p { color: var(--muted); font-size: 0.93rem; margin-bottom: 6px; }
.footer-info a:hover { color: var(--blue-light); }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: var(--muted); font-size: 0.93rem; }
.footer-nav a:hover { color: var(--blue-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Mobile fixed contact bar ---------- */
.mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--mobile-bar-h);
  display: flex;
  z-index: 90;
  background: rgba(8, 10, 14, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.mobile-bar-btn svg { width: 19px; height: 19px; }
.mobile-bar-call {
  background: linear-gradient(135deg, var(--blue), #0d4fd1);
  color: #fff;
}
.mobile-bar-contact { color: var(--silver); }

@media (min-width: 900px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}
