/* ============================================================
   STUDIO CAPUTO VELLOTTI — Site styles (v3)
   - Unified button system (white bg + colored border/text/icon → invert on hover)
   - Stronger section contrast
   - Mobile-tuned (passata dedicata)
   - Lightbox with arrow nav
   - Centered sticky bar
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; text-align: inherit; color: inherit; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

.cv-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
}
.cv-section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

/* ── HOVERABLE GENERIC ───────────────────────────────────── */
.cv-hoverable {
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.cv-hoverable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cv-hoverable:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

/* ── HEADER / NAV ───────────────────────────────────────── */
.cv-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-sticky);
  transition: background var(--t-base), border-color var(--t-base), backdrop-filter var(--t-base);
  border-bottom: 1px solid transparent;
}
.cv-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.72);  /* increased transparency */
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: rgba(255,255,255,0.4);
}
.cv-nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px var(--section-pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.cv-nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}
.cv-nav-logo img { width: 44px; height: 44px; object-fit: contain; }
.cv-nav-logo-text { display: flex; flex-direction: column; }
.cv-nav-logo-text .small {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.cv-nav.is-light .cv-nav-logo,
.cv-nav.is-light .cv-nav-links a { color: #fff; }
.cv-nav.is-light .cv-nav-logo-text .small { color: rgba(255,255,255,0.7); }
.cv-nav.is-scrolled.is-light .cv-nav-logo,
.cv-nav.is-scrolled.is-light .cv-nav-links a { color: var(--ink); }
.cv-nav.is-scrolled.is-light .cv-nav-logo-text .small { color: var(--ink-3); }

.cv-nav-links { display: flex; align-items: center; gap: 26px; }
.cv-nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--t-fast);
  position: relative;
  padding: 6px 0;
}
.cv-nav-links a:hover { color: var(--c-primary); }
.cv-nav-links a.is-active { color: var(--c-primary); }
.cv-nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--c-primary); border-radius: 2px;
}

/* Nav icon CTAs (right side) — round, no label */
.cv-nav-ctas { display: flex; align-items: center; gap: 8px; }
.cv-nav-icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--c-primary);
  background: #fff;
  color: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.cv-nav-icon-btn:hover { background: var(--c-primary); color: #fff; transform: translateY(-1px); }
.cv-nav-icon-btn--prenota {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.cv-nav-icon-btn--prenota:hover { background: var(--c-primary); color: #fff; }
.cv-nav-icon-btn--map {
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.cv-nav-icon-btn--map:hover { background: var(--c-accent); color: #fff; }
.cv-nav-icon-btn--whatsapp {
  border-color: #25D366;
  color: #25D366;
}
.cv-nav-icon-btn--whatsapp:hover { background: #25D366; color: #fff; }
.cv-nav-icon-btn--phone {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.cv-nav-burger { display: none; }
.cv-nav-links-mobile-toggle { display: none; }

@media (max-width: 1080px) {
  .cv-nav-links { display: none; }
}
@media (max-width: 900px) {
  .cv-nav-ctas .cv-nav-icon-btn--phone,
  .cv-nav-ctas .cv-nav-icon-btn--map { display: none; } /* keep prenota + whatsapp on small screens */
  .cv-nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    border: 2px solid var(--ink); color: var(--ink); background: #fff;
  }
  .cv-nav.is-light .cv-nav-burger { color: #fff; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
  .cv-nav.is-scrolled.is-light .cv-nav-burger { color: var(--ink); background: #fff; border-color: var(--ink); }
}

/* Mobile menu drawer */
.cv-mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: var(--surface);
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform var(--t-base);
  overflow-y: auto;
}
.cv-mobile-menu.is-open { transform: translateY(0); }
.cv-mobile-menu-head { padding: 16px var(--section-pad-x); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.cv-mobile-menu-links { display: flex; flex-direction: column; padding: 24px var(--section-pad-x); gap: 4px; }
.cv-mobile-menu-links a { padding: 14px 0; font-size: 1.25rem; font-family: var(--font-display); font-weight: 500; border-bottom: 1px solid var(--line); color: var(--ink); }
.cv-mobile-menu-foot { margin-top: auto; padding: 24px var(--section-pad-x); display: grid; gap: 10px; border-top: 1px solid var(--line); }

/* ── BUTTONS — UNIFIED INVERSION SYSTEM ─────────────────── */
/*
   All buttons: white bg + colored border/text/icon at rest,
   invert to colored bg + white text/icon on hover.
   Variants are color-only.
*/
.cv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #fff;
  border: 2px solid var(--ink);
  color: var(--ink);
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  line-height: 1;
}
.cv-btn i { transition: color var(--t-fast); }
.cv-btn:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.cv-btn:active { transform: translateY(1px); }

/* "Indicazioni stradali" / primary CTA — filled by default, hover inverts to outline */
.cv-btn--filled-primary {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.cv-btn--filled-primary i { color: #fff; }
.cv-btn--filled-primary:hover {
  background: #fff;
  border-color: var(--c-primary);
  color: var(--c-primary);
  box-shadow: var(--shadow-md);
}
.cv-btn--filled-primary:hover i { color: var(--c-primary); }

.cv-btn--primary {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.cv-btn--primary:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.cv-btn--accent {
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.cv-btn--accent:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

/* WhatsApp solid */
.cv-btn--solid {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.cv-btn--solid i { color: #fff; }
.cv-btn--solid:hover {
  background: #fff;
  border-color: var(--c-primary);
  color: var(--c-primary);
  box-shadow: var(--shadow-md);
}
.cv-btn--solid:hover i { color: var(--c-primary); }

.cv-btn--whatsapp {
  border-color: #25D366;
  color: #128C7E;
}
.cv-btn--whatsapp i { color: #25D366; }
.cv-btn--whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }
.cv-btn--whatsapp:hover i { color: #fff; }

.cv-btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.cv-btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* On dark backgrounds: invert (transparent bg + white border/text → white bg + dark text on hover) */
.cv-btn--on-dark {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.cv-btn--on-dark:hover { background: #fff; border-color: #fff; color: var(--ink); }
.cv-btn--on-dark.cv-btn--primary { border-color: #fff; color: #fff; }
.cv-btn--on-dark.cv-btn--primary:hover { background: #fff; color: var(--c-primary-deep); }

.cv-btn--lg { padding: 14px 26px; font-size: 1rem; }
.cv-btn--sm { padding: 7px 14px; font-size: 0.8125rem; }
.cv-btn--block { display: flex; width: 100%; }
.cv-btn--icon-only {
  width: 44px; height: 44px;
  padding: 0; border-radius: 50%;
}

/* ── EYEBROW / TAG ──────────────────────────────────────── */
.cv-tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px; gap: 6px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: var(--r-pill);
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
}
.cv-tag--accent { background: var(--c-accent-soft); color: var(--c-accent-deep); }
.cv-tag--ink { background: var(--surface-3); color: var(--ink); }

/* ── HERO ───────────────────────────────────────────────── */
.cv-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cv-hero--full {
  min-height: clamp(560px, 80vh, 760px);
  display: flex; align-items: center;
  color: #fff;
}
.cv-hero--full::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--hero-img);
  background-size: cover; background-position: center 35%;
}
.cv-hero--full::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,34,54,0.55) 0%, rgba(14,34,54,0.35) 50%, rgba(14,34,54,0.65) 100%);
}
.cv-hero-content {
  max-width: 820px;
  padding: 80px 0;
  position: relative;
}
.cv-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw + 0.5rem, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 20px;
  color: #fff;
  text-wrap: balance;
}
.cv-hero-title .small {
  display: block;
  font-size: clamp(0.875rem, 0.8vw + 0.5rem, 1.0625rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}
.cv-hero-sub {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  max-width: 600px;
  margin: 0 0 28px;
}
.cv-hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: stretch;
}
.cv-hero-actions .cv-btn {
  min-width: 240px;  /* matched width for both primary CTAs */
  justify-content: center;
}
.cv-hero-trust {
  margin-top: 32px;
  display: flex; flex-wrap: nowrap;
  gap: 24px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.85);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.cv-hero-trust::-webkit-scrollbar { display: none; }
.cv-hero-trust-item {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cv-hero-trust-item i { color: var(--c-accent); }

/* Hero — split variant */
.cv-hero--split {
  padding-top: 110px;
  padding-bottom: clamp(32px, 5vw, 56px);
  background: var(--surface-2);
}
.cv-hero-split-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.cv-hero-split-col {
  display: flex; align-items: center;
  min-width: 0;  /* let grid track honor the 0.85fr/1.35fr ratio instead of stretching to content */
}
.cv-hero-split-col--text { padding: 16px 0; }
.cv-hero-split-col--text > div { min-width: 0; width: 100%; }
.cv-hero-split-grid .cv-hero-title { color: var(--ink); }
.cv-hero-split-grid .cv-hero-title .small { color: var(--c-primary); }
.cv-hero-split-grid .cv-hero-sub { color: var(--ink-2); }
.cv-hero-split-grid .cv-hero-trust { color: var(--ink-3); }
.cv-hero-split-grid .cv-hero-trust-item i { color: var(--c-accent); }

/* Trust row pulled OUT of the narrow text column → spans the full container width
   so chips run from left to right under both columns instead of getting clipped by the image. */
.cv-hero-trust--below {
  color: var(--ink-3);
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;        /* allow wrap on narrow viewports */
  gap: 18px 28px;
  overflow-x: visible;    /* no horizontal scroll on desktop */
  justify-content: flex-start;
}
.cv-hero-trust--below .cv-hero-trust-item i { color: var(--c-accent); }
@media (max-width: 900px) {
  .cv-hero-trust--below { flex-wrap: nowrap; overflow-x: auto; gap: 18px; }
}

.cv-hero-split-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2; /* S2 fix: hero image decoupled from text (team photo 1599x1066 = 3:2) */
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background: var(--surface-3);
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.cv-hero-split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform var(--t-paint);
  display: block;
}
.cv-hero-split-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(14,34,54,0.5));
  pointer-events: none;
}
.cv-hero-split-img:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.cv-hero-split-img:hover img { transform: scale(1.04); }
.cv-hero-split-cta {
  position: absolute; right: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-size: 0.8125rem; font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.cv-hero-split-badge {
  position: absolute; left: -16px; bottom: 24px;
  background: var(--surface);
  padding: 16px 20px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  display: flex; gap: 14px; align-items: center;
  max-width: 280px;
  z-index: 2;
}
.cv-hero-split-badge i { color: var(--c-accent); font-size: 1.5rem; }
.cv-hero-split-badge strong { display: block; font-size: 0.875rem; }
.cv-hero-split-badge span { font-size: 0.8125rem; color: var(--ink-3); }

@media (max-width: 900px) {
  .cv-hero-split-grid { grid-template-columns: 1fr; gap: 28px; }
  .cv-hero-split-img { min-height: clamp(260px, 60vw, 400px); }
  .cv-hero-actions { flex-direction: column; }
  .cv-hero-actions .cv-btn { width: 100%; min-width: 0; }
  .cv-hero-split-cta { right: 12px; bottom: 12px; padding: 8px 12px; font-size: 0.75rem; }
  .cv-hero-split-badge { left: 12px; padding: 12px 16px; }
  .cv-hero-trust { font-size: 0.75rem; gap: 18px; }
}
@media (max-width: 600px) {
  .cv-hero-title { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .cv-hero-sub { font-size: 1rem; }
}

/* ── SECTION HEAD ───────────────────────────────────────── */
.cv-section-head {
  max-width: 760px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.cv-section-head--left { text-align: left; margin-left: 0; }
.cv-section-head .cv-eyebrow { margin-bottom: 14px; }
.cv-section-head .cv-h2 { margin: 0 0 16px; color: var(--ink); }
.cv-section-head .cv-lead { margin: 0; }

/* Section background variants for stronger contrast */
.cv-bg-page    { background: var(--surface-2); }
.cv-bg-card    { background: var(--surface); }
.cv-bg-alt     { background: var(--surface-3); }
.cv-bg-soft    { background: var(--c-primary-soft); }
.cv-bg-accent-soft { background: var(--c-accent-soft); }
.cv-bg-ivory   { background: #ECE3D2; }   /* deep warm sand — stronger contrast vs ivory page bg */
.cv-bg-dark    { background: var(--surface-dark); color: #fff; }

/* ── STATS / METRICS ROW ────────────────────────────────── */
.cv-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  background: var(--c-primary-soft);
  border-radius: var(--r-xl);
  padding: 8px;
}
.cv-stat {
  background: var(--surface);
  padding: 24px 18px;
  border-radius: var(--r-lg);
  text-align: center;
}
.cv-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2vw + 0.5rem, 2.5rem);
  font-weight: 500;
  color: var(--c-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 6px;
}
.cv-stat:nth-child(even) .cv-stat-num { color: var(--c-accent); }
.cv-stat-label {
  font-size: 0.8125rem;
  color: var(--ink-3);
  line-height: 1.4;
}

/* ── SERVICE CARDS ──────────────────────────────────────── */
.cv-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.cv-service-card {
  display: flex; flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: left;
  width: 100%;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.cv-service-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: background var(--t-base), color var(--t-base);
}
.cv-service-card:nth-child(even) .cv-service-card-icon {
  background: var(--c-accent-soft); color: var(--c-accent);
}
.cv-service-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.cv-service-card-desc {
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0 0 20px;
  flex: 1;
}
.cv-service-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 600;
  color: var(--c-primary);
  transition: gap var(--t-fast);
}
.cv-service-card:hover .cv-service-card-link { gap: 12px; }

/* Photo card variant */
.cv-service-card--photo {
  padding: 0;
  min-height: 360px;
}
.cv-service-card--photo .cv-service-card-photo {
  aspect-ratio: 16/11;
  overflow: hidden;
  background: var(--surface-3);
}
.cv-service-card--photo .cv-service-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 8%;
  transition: transform var(--t-paint);
}
.cv-service-card--photo:hover .cv-service-card-photo img { transform: scale(1.05); }
.cv-service-card--photo .cv-service-card-body { padding: 24px 28px 28px; }

/* ── STAFF CARDS ────────────────────────────────────────── */
.cv-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.cv-staff-card {
  display: block;
  width: 100%;
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  text-align: left;
}
.cv-staff-photo {
  aspect-ratio: 3/4;
  background: var(--surface-3);
  overflow: hidden;
  position: relative;
}
.cv-staff-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 8%;
  transition: transform var(--t-paint);
}
.cv-staff-card:hover .cv-staff-photo img,
.cv-staff-card-feat:hover .cv-staff-photo img { transform: scale(1.04); }
.cv-staff-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14,34,54,0.45));
  pointer-events: none;
}
.cv-staff-photo-tag {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cv-staff-body {
  padding: 16px 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.cv-staff-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.cv-staff-role {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0;
}

/* Featured (Caputo + Vellotti) */
.cv-staff-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 48px;
}
.cv-staff-card-feat {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  text-align: left;
  width: 100%;
}
.cv-staff-card-feat .cv-staff-photo {
  aspect-ratio: auto;
  height: 100%;
  min-height: 360px;
}
.cv-staff-card-feat .cv-staff-photo::after { display: none; }
.cv-staff-card-feat .cv-staff-body { padding: 28px; }
.cv-staff-feat-list { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; }
.cv-staff-feat-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.8125rem; color: var(--ink-2); line-height: 1.55;
}
.cv-staff-feat-list li i { color: var(--c-accent); margin-top: 7px; font-size: 0.3125rem; }
.cv-staff-card-feat:nth-child(2) .cv-staff-feat-list li i { color: var(--c-primary); }
.cv-staff-cta-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 600;
  transition: gap var(--t-fast);
  margin-top: auto;
}
.cv-staff-card-feat:hover .cv-staff-cta-link { gap: 12px; }

@media (max-width: 900px) {
  .cv-staff-featured { grid-template-columns: 1fr; gap: 20px; }
  .cv-staff-card-feat { grid-template-columns: 1fr; }
  .cv-staff-card-feat .cv-staff-photo { aspect-ratio: 5/4; min-height: 0; }
  .cv-staff-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .cv-staff-grid { grid-template-columns: 1fr; }
}

/* ── TECHNOLOGY ─────────────────────────────────────────── */
.cv-tech-section { background: var(--surface); }
.cv-tech-section--dark { background: var(--surface-dark); color: #fff; }
.cv-tech-section--dark .cv-section-head .cv-h2 { color: #fff; }
.cv-tech-section--dark .cv-section-head .cv-lead { color: rgba(255,255,255,0.75); }
.cv-tech-section--dark .cv-eyebrow { color: var(--c-accent); }

.cv-tech-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(48px, 8vw, 96px);
  text-align: left;
  width: 100%;
  padding: clamp(16px, 2vw, 24px);
  border-radius: var(--r-xl);
}
.cv-tech-feature:last-child { margin-bottom: 0; }
.cv-tech-feature:nth-child(even) .cv-tech-feature-img { order: 2; }
.cv-tech-feature-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
  background: var(--surface-3);
}
.cv-tech-feature-img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 25%;
  transition: transform var(--t-paint);
}
.cv-tech-feature:hover .cv-tech-feature-img img { transform: scale(1.04); }
.cv-tech-section--dark .cv-tech-feature-img { box-shadow: var(--shadow-xl); }
.cv-tech-section--dark .cv-tech-feature-body h3 { color: #fff; }
.cv-tech-section--dark .cv-tech-feature-body p { color: rgba(255,255,255,0.78); }
.cv-tech-feature-body .cv-overline { color: var(--c-primary); }
.cv-tech-section--dark .cv-tech-feature-body .cv-overline { color: var(--c-accent); }
.cv-tech-feature-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
  margin: 12px 0 16px;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}
.cv-tech-feature-body p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 16px;
}
.cv-tech-feature-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.cv-tech-section--dark .cv-tech-feature-meta { color: rgba(255,255,255,0.6); }
.cv-tech-feature-meta strong {
  display: block; color: var(--ink); margin-bottom: 4px;
  font-size: 0.9375rem; font-weight: 600;
}
.cv-tech-section--dark .cv-tech-feature-meta strong { color: #fff; }
.cv-tech-feature-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 600;
  color: var(--c-primary);
  margin-top: 20px;
  transition: gap var(--t-fast);
}
.cv-tech-section--dark .cv-tech-feature-link { color: var(--c-accent); }
.cv-tech-feature:hover .cv-tech-feature-link { gap: 12px; }

@media (max-width: 800px) {
  .cv-tech-feature { grid-template-columns: 1fr; padding: 0; margin-bottom: 56px; }
  .cv-tech-feature:nth-child(even) .cv-tech-feature-img { order: 0; }
}

/* ── BOOKING FORM ───────────────────────────────────────── */
.cv-form-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--surface);
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.cv-form-side {
  background: var(--c-primary-deep);
  color: #fff;
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 22px;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, var(--c-primary-deep) 0%, var(--c-primary) 100%);
}
.cv-form-side h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2.125rem);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #fff;
  line-height: 1.1;
}
.cv-form-side p { font-size: 1rem; line-height: 1.65; color: rgba(255,255,255,0.88); margin: 0; }

.cv-form-side .contact-line {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 0.9375rem;
  text-decoration: none;
  color: #fff;
  transition: transform var(--t-fast);
}
.cv-form-side .contact-line:hover { transform: translateX(2px); }
.cv-form-side .contact-line i {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.16);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
  transition: background var(--t-fast);
}
.cv-form-side .contact-line:hover i { background: rgba(255,255,255,0.28); }
.cv-form-side .contact-line strong { display: block; color: #fff; }
.cv-form-side .contact-line span { color: rgba(255,255,255,0.78); font-size: 0.8125rem; }

.cv-form-body { padding: clamp(28px, 4vw, 48px); }
.cv-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.cv-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.cv-field label .req { color: var(--c-primary); }
.cv-input, .cv-textarea, .cv-select {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.cv-input:focus, .cv-textarea:focus, .cv-select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: var(--shadow-ring-primary);
}
.cv-textarea { resize: vertical; min-height: 100px; }
.cv-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-form-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.cv-form-foot .cv-btn { width: 100%; }
.cv-checkbox { display: flex; gap: 10px; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.45; align-items: flex-start; }
.cv-checkbox input { margin-top: 3px; flex-shrink: 0; }

@media (max-width: 800px) {
  .cv-form-shell { grid-template-columns: 1fr; }
  .cv-field-row { grid-template-columns: 1fr; }
}

/* ── FOOTER ─────────────────────────────────────────────── */
.cv-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: 100px; /* room for sticky bar overlap */
}
.cv-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cv-footer-brand img { width: 60px; height: 60px; object-fit: contain; background: #fff; border-radius: var(--r-md); padding: 4px; margin-bottom: 16px; }
.cv-footer-brand h4 { font-family: var(--font-display); color: #fff; font-size: 1.125rem; margin: 0 0 8px; font-weight: 500; }
.cv-footer-brand p { font-size: 0.875rem; max-width: 320px; line-height: 1.6; margin: 0 0 20px; }
.cv-footer-socials { display: flex; gap: 8px; }
.cv-footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; transition: background var(--t-fast);
}
.cv-footer-socials a:hover { background: var(--c-primary); }
.cv-footer-col h5 { color: #fff; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; font-weight: 600; }
.cv-footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cv-footer-col ul a { font-size: 0.9375rem; transition: color var(--t-fast); }
.cv-footer-col ul a:hover { color: #fff; }
.cv-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 12px;
}

@media (max-width: 900px) {
  .cv-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cv-footer-grid { grid-template-columns: 1fr; }
}

/* ── STICKY ACTION BAR — centered, icon + label, mobile-prio ── */
.cv-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 12px var(--section-pad-x);
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 -6px 24px rgba(14,34,54,0.06);
}
.cv-sticky-bar .cv-btn { min-width: 0; }
@media (max-width: 700px) {
  .cv-sticky-bar { padding: 10px 12px; }
  .cv-sticky-bar .cv-btn { flex: 1; padding: 11px 8px; font-size: 0.75rem; gap: 6px; }
  .cv-sticky-bar .cv-btn .cv-sticky-label { display: none; }  /* icon-only on tiny */
  .cv-sticky-bar .cv-btn i { font-size: 1rem; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .cv-sticky-bar .cv-btn .cv-sticky-label { display: inline; }
}

/* Make .info-line work as a clickable button (map trigger) */
.cv-info-line-btn {
  width: 100%;
  background: none; border: 0;
  font: inherit; color: inherit; text-align: inherit;
  cursor: pointer; padding: 0;
  display: flex; gap: 14px; align-items: flex-start;
  transition: transform var(--t-fast);
}
.cv-info-line-btn:hover { transform: translateX(2px); }
.cv-info-line-btn:hover i { background: var(--c-primary); color: #fff; }

/* Footer link button (looks like an <a>) */
.cv-footer-link-btn {
  background: none; border: 0;
  font: inherit; color: inherit;
  cursor: pointer; padding: 0; text-align: inherit;
  transition: color var(--t-fast);
}
.cv-footer-link-btn:hover { color: #fff; }

/* ── HOURS / MAP CARD ───────────────────────────────────── */
.cv-map-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
}
.cv-map-card .map { background: var(--surface-3); position: relative; }
.cv-map-card .map iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 440px; }
.cv-map-card .info { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.cv-map-card .info h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0; font-weight: 500; letter-spacing: -0.01em; }
.cv-map-card .info-line {
  display: flex; gap: 14px; align-items: flex-start;
  color: inherit;
  text-decoration: none;
  transition: transform var(--t-fast);
}
a.cv-map-card-info-line:hover,
.cv-map-card .info-line:hover { transform: translateX(2px); }
.cv-map-card .info-line i {
  width: 38px; height: 38px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background var(--t-fast);
}
.cv-map-card .info-line:hover i { background: var(--c-primary); color: #fff; }
.cv-map-card .info-line strong { display: block; font-size: 0.9375rem; color: var(--ink); }
.cv-map-card .info-line span { font-size: 0.875rem; color: var(--ink-3); line-height: 1.55; }

@media (max-width: 800px) {
  .cv-map-card { grid-template-columns: 1fr; min-height: 0; }
  .cv-map-card .map iframe { min-height: 260px; height: 260px; }
}

.cv-hours {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 32px);
}
.cv-hours h3 { font-family: var(--font-display); font-size: 1.375rem; margin: 0 0 16px; font-weight: 500; letter-spacing: -0.01em; }
.cv-hours-row {
  display: flex; justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.cv-hours-row:last-of-type { border-bottom: 0; }
.cv-hours-row.is-today { font-weight: 600; color: var(--c-accent); }
.cv-hours-row .closed { color: var(--ink-4); }
.cv-hours-notice {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--c-accent-soft);
  color: var(--c-accent-deep);
  border-radius: var(--r-md);
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.5;
}
.cv-hours-notice i { color: var(--c-accent); margin-top: 2px; }

/* ── MODAL ──────────────────────────────────────────────── */
.cv-modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(14,34,54,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.cv-modal.is-open { display: flex; }
.cv-modal-content {
  background: var(--surface);
  border-radius: var(--r-xl);
  max-width: 640px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.cv-modal-content--wide { max-width: 920px; }
.cv-modal-staff-grid { display: grid; grid-template-columns: 1fr 1.2fr; }
.cv-modal-staff-photo { background: var(--surface-3); overflow: hidden; min-height: 520px; }
.cv-modal-staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }
.cv-modal-staff-body { padding: 36px; }
@media (max-width: 800px) {
  .cv-modal-staff-grid { grid-template-columns: 1fr; }
  .cv-modal-staff-photo { min-height: 0; aspect-ratio: 5/4; }
  .cv-modal-staff-body { padding: 24px; }
}
.cv-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(14,34,54,0.06);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background var(--t-fast);
  z-index: 2;
}
.cv-modal-close:hover { background: rgba(14,34,54,0.12); }
.cv-modal-staff-grid .cv-modal-close { background: rgba(255,255,255,0.92); }
.cv-modal-hero { aspect-ratio: 16/10; background: var(--surface-3); overflow: hidden; }
.cv-modal-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }
.cv-modal-body { padding: 28px; }
.cv-modal-body h3 { font-family: var(--font-display); font-size: 1.625rem; margin: 0 0 12px; font-weight: 500; letter-spacing: -0.01em; }
.cv-modal-body p { color: var(--ink-2); line-height: 1.65; margin: 0 0 16px; }
.cv-modal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cv-modal-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.55; }
.cv-modal-list li i { color: var(--c-accent); margin-top: 4px; }

/* Map modal — wider, no body padding for map */
.cv-modal-content--map { max-width: 1080px; padding: 0; }
.cv-modal-map-frame { width: 100%; height: 70vh; min-height: 480px; border: 0; display: block; }
.cv-modal-map-header {
  padding: 20px 28px; display: flex; align-items: center; gap: 14px; justify-content: space-between;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.cv-modal-map-header h3 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.cv-modal-map-header span { font-size: 0.875rem; color: var(--ink-3); }
@media (max-width: 700px) {
  .cv-modal-map-frame { height: 60vh; min-height: 360px; }
  .cv-modal-map-header { padding: 16px 20px; }
}

/* ── GALLERY ────────────────────────────────────────────── */
.cv-gallery-item {
  display: block;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--surface-3);
  width: 100%;
  margin: 0;
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.cv-gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cv-gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 15%;
  transition: transform var(--t-paint);
}
.cv-gallery-item:hover img { transform: scale(1.05); }
/* No figcaption — captions removed per design */

/* ── IMAGE LIGHTBOX with arrows ────────────────────────── */
.cv-lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(14,34,54,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.cv-lightbox.is-open { display: flex; }
.cv-lightbox-img-wrap {
  position: relative;
  max-width: 92vw; max-height: 88vh;
}
.cv-lightbox img {
  max-width: 92vw; max-height: 80vh;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  display: block;
}
.cv-lightbox-close,
.cv-lightbox-nav {
  position: absolute;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  transition: background var(--t-fast), transform var(--t-fast);
  z-index: 2;
}
.cv-lightbox-close { top: 24px; right: 24px; }
.cv-lightbox-nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.cv-lightbox-nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
.cv-lightbox-close:hover { background: rgba(255,255,255,0.3); }
.cv-lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.cv-lightbox-nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.cv-lightbox-nav--next:hover { transform: translateY(-50%) translateX(3px); }
.cv-lightbox-caption {
  position: absolute; bottom: -56px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.9375rem;
  background: rgba(0,0,0,0.4);
  padding: 8px 16px; border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}
.cv-lightbox-counter {
  position: absolute; top: 24px; left: 24px;
  color: rgba(255,255,255,0.75);
  font-size: 0.8125rem; font-family: var(--font-mono);
  background: rgba(0,0,0,0.4);
  padding: 6px 12px; border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (max-width: 700px) {
  .cv-lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
  .cv-lightbox-nav--prev { left: 8px; }
  .cv-lightbox-nav--next { right: 8px; }
  .cv-lightbox-close { top: 14px; right: 14px; }
  .cv-lightbox-counter { top: 14px; left: 14px; }
}

/* ── HELPERS ────────────────────────────────────────────── */
.cv-divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.cv-pad-content-bottom { padding-bottom: 90px; }  /* room above sticky bar */

.cv-fade-in {
  opacity: 0; transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.cv-fade-in.in-view { opacity: 1; transform: translateY(0); }
