/* ===== Mapa Studios® — Light/Dark, EN/ES ready ===== */
:root {
  /* Light (default) */
  --bg: #f5f2ed;
  --bg-hero: #0d0d0d;
  --text: #1a1a1a;
  --text-muted: #555;
  --accent: #e85d04;
  --accent-hover: #d54d02;
  --border: rgba(0,0,0,.12);
  --card-bg: #fff;
  --header-bg: rgba(255,255,255,.92);
  --footer-bg: #1a1a1a;
  --footer-text: #eee;
  /* Luxury motion */
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-luxury-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration-luxury: 0.6s;
  --duration-luxury-slow: 0.9s;
}

[data-theme="dark"] {
  --bg: #0d0d0d;
  --bg-hero: #050505;
  --text: #f0f0f0;
  --text-muted: #aaa;
  --accent: #ff6b1a;
  --accent-hover: #ff8533;
  --border: rgba(255,255,255,.12);
  --card-bg: #1a1a1a;
  --header-bg: rgba(13,13,13,.95);
  --footer-bg: #050505;
  --footer-text: #bbb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, .hero-brand, .section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
}

.logo-reg { font-size: 0.75em; vertical-align: super; }

/* ===== CTA pill (fixed) ===== */
.cta-pill {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(232, 93, 4, 0.35);
  transition: transform 0.35s var(--ease-luxury), box-shadow 0.35s var(--ease-luxury);
}
.cta-pill:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(232, 93, 4, 0.45);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.logo-mark {
  height: 1.25rem;
  width: auto;
  flex-shrink: 0;
}
.logo-mark-light { display: none; }
.logo-mark-dark { display: block; }
[data-theme="dark"] .logo-mark-light { display: block; }
[data-theme="dark"] .logo-mark-dark { display: none; }

.logo-icon {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
}
.logo-icon.large { font-size: 3rem; }

.logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.logo-dot.large { width: 12px; height: 12px; }

.logo-text { font-family: 'Space Grotesk', sans-serif; }
.logo-text.small { font-size: 0.85rem; font-weight: 500; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
/* Hamburger → X when menu open (mobile) */
@media (max-width: 768px) {
  .menu-toggle.is-open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .menu-toggle.is-open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
}

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

/* ===== Search bar ===== */
.search-wrap {
  position: relative;
  flex: 0 0 auto;
}
.search-input {
  width: 160px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  transition: width 0.2s, border-color 0.2s;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  width: 200px;
}
.search-input::placeholder { color: var(--text-muted); }

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  padding: 0.5rem 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}
.search-dropdown.is-visible { display: block; }

.search-result {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.search-result:hover,
.search-result:focus {
  background: rgba(232, 93, 4, 0.12);
  color: var(--text);
}
.search-result-title { font-weight: 600; display: block; }
.search-result-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.1rem;
}
.search-result-project .search-result-title { font-size: 0.9rem; }
.search-dropdown-empty {
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 768px) {
  .search-wrap { order: -1; width: 100%; margin-bottom: 0.5rem; }
  .search-input { width: 100%; }
  .search-input:focus { width: 100%; }
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s var(--ease-luxury-out);
}
.nav-link:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 1.25rem;
  border-radius: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: background 0.3s var(--ease-luxury-out), transform 0.2s;
}
.nav-cta:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-switchers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switcher,
.theme-switcher {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
}

.lang-switcher .switcher-btn,
.theme-switcher .switcher-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.lang-switcher .switcher-btn:hover,
.theme-switcher .switcher-btn:hover {
  color: var(--text);
}

.lang-switcher .switcher-btn.is-active,
.theme-switcher .switcher-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.theme-switcher .switcher-btn {
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .site-header .logo,
  .site-header .menu-toggle {
    position: relative;
    z-index: 70;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(280px, 85vw);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 1.5rem 1.5rem;
    background: var(--card-bg);
    border-left: 1px solid var(--border);
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open { transform: translateX(0); }
  .site-header.nav-open { z-index: 65; }
  [data-theme="dark"] .nav {
    background: #1a1a1a;
    box-shadow: -4px 0 24px rgba(0,0,0,0.4);
  }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 55;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease-out, visibility 0.25s;
  }
  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
  }
  .nav-close:hover,
  .nav-close:focus {
    background: var(--border);
    color: var(--text);
  }
  .nav-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .nav-link { font-size: 1rem; padding: 0.35rem 0; }
  .site-header { padding-right: 1rem; }
}

/* Hide close button on desktop (nav is inline) */
.nav-close { display: none; }

/* ===== Main — clear fixed header (no overlap) ===== */
:root {
  --header-offset: 3.625rem;
}
main,
#main-content {
  padding-top: var(--header-offset);
}
main.page-home {
  padding-top: 0;
}
main.page-home #site-breadcrumb {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  min-height: 0;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
  background: var(--bg-hero);
  color: #fff;
}

.hero-gallery-bgs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-gallery-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s var(--ease-luxury-out);
}

.hero-gallery-bg.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-gallery-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(135deg, transparent 0%, rgba(232, 93, 4, 0.03) 50%, transparent 100%),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.02) 60px, rgba(255,255,255,0.02) 61px),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(255,255,255,0.02) 80px, rgba(255,255,255,0.02) 81px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-left { max-width: 600px; }

.hero-brand {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
  color: #fff;
}

.hero-tagline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
}

.hero-logo-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero-logo-img {
  height: 3rem;
  width: auto;
}
.hero-logo-mark .logo-text.small { color: rgba(255,255,255,0.85); }

.hero-locations-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  text-align: right;
}
.badge-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
}
.badge-name { font-size: 0.85rem; color: #fff; }

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-right { justify-content: center; }
  .hero-locations-badge { top: auto; bottom: 1.5rem; right: 1rem; }
}

/* ===== Homepage hero — luxury first impression ===== */
.hero-home {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 7rem 2rem 5rem;
}
.hero-home .hero-bg {
  background:
    radial-gradient(ellipse 120% 80% at 50% 20%, rgba(232, 93, 4, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 100%),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(255,255,255,0.015) 48px, rgba(255,255,255,0.015) 49px),
    repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(255,255,255,0.015) 48px, rgba(255,255,255,0.015) 49px);
}
.hero-accent-line {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 93, 4, 0.5) 20%, rgba(232, 93, 4, 0.8) 50%, rgba(232, 93, 4, 0.5) 80%, transparent 100%);
  pointer-events: none;
  opacity: 0.9;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin: 0 0 1.25rem;
}
.hero-home .hero-brand {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  letter-spacing: 0.2em;
  margin: 0 0 0.75rem;
  color: rgba(255,255,255,0.9);
}
.hero-home .hero-tagline {
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 60px rgba(0,0,0,0.2);
}
.hero-sub {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
  margin: 1.5rem 0 0;
}
.hero-home .hero-content {
  max-width: 1100px;
  animation: heroReveal var(--duration-luxury-slow) var(--ease-luxury-out) forwards;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-home .hero-content { animation: none; opacity: 1; transform: none; }
}

/* ===== Luxury scroll reveal (site-wide) ===== */
.luxury-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-luxury) var(--ease-luxury-out), transform var(--duration-luxury) var(--ease-luxury-out);
}
.luxury-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.luxury-reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-luxury) var(--ease-luxury-out), transform var(--duration-luxury) var(--ease-luxury-out);
}
.luxury-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.luxury-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.luxury-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.luxury-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.luxury-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.luxury-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
.luxury-reveal-stagger.is-visible > *:nth-child(n+7) { transition-delay: 0.45s; }
.luxury-reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .luxury-reveal,
  .luxury-reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero-home .hero-logo-img {
  height: 3.5rem;
}
.hero-home .hero-logo-mark .logo-text.small {
  letter-spacing: 0.15em;
  font-size: 0.8rem;
}
@media (max-width: 768px) {
  .hero-home { padding: 6rem 1.5rem 4rem; min-height: 90vh; }
  .hero-home .hero-eyebrow { margin-bottom: 1rem; }
  .hero-home .hero-sub { margin-top: 1.25rem; }
}

/* ===== Trust strip ===== */
.trust-strip {
  padding: 1.25rem 1.5rem;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
.trust-strip-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-icon {
  color: var(--accent);
  font-size: 0.5em;
  vertical-align: middle;
  margin-right: 0.25rem;
}
.trust-sep {
  opacity: 0.5;
  font-weight: 300;
}

/* ===== Why Mapa / MAPA Standard ===== */
.why-mapa-section {
  padding: 4rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.why-mapa-sub {
  margin: -0.25rem auto 2.5rem;
  max-width: 36ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.why-mapa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  text-align: center;
}
.why-mapa-card {
  padding: 1.5rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.why-mapa-card:hover {
  border-color: rgba(232, 93, 4, 0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.why-mapa-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.12), rgba(232, 93, 4, 0.06));
  border-radius: 14px;
  font-size: 1.75rem;
  color: var(--accent);
}
.why-mapa-icon img { display: block; }
.why-mapa-icon-fallback { display: none; }
.why-mapa-heading {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.why-mapa-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ===== Locations section ===== */
.locations-section {
  padding: 4rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.locations-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
  color: var(--text);
}

.section-num {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
}

.locations-desc {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.locations-tagline {
  margin: 0 0 2rem;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.location-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.location-card {
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.location-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
[data-theme="dark"] .location-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.3); }

.location-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--text);
}

.location-address {
  margin: 0 0 0.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.location-sub {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.location-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.location-card-link:hover .btn { background: var(--accent); color: #fff; }

@media (max-width: 600px) {
  .location-cards { grid-template-columns: 1fr; }
}

/* ===== Homepage — luxury locations & CTA ===== */
.page-home .locations-section {
  padding: 5rem 2rem 6rem;
  max-width: 1000px;
}
.page-home .locations-head {
  margin-bottom: 1.25rem;
}
.page-home .section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.page-home .locations-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.page-home .locations-tagline {
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}
.page-home .location-card {
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease-luxury), box-shadow 0.4s var(--ease-luxury), border-color 0.25s var(--ease-luxury-out);
}
.page-home .location-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border-color: rgba(232, 93, 4, 0.25);
}
[data-theme="dark"] .page-home .location-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.page-home .location-card h3 {
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}

.location-cards-home {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}
.location-card-home {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid rgba(232, 93, 4, 0.25);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.location-card-home:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
[data-theme="dark"] .location-card-home {
  border-color: rgba(232, 93, 4, 0.35);
}
[data-theme="dark"] .location-card-home:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.location-card-image {
  height: 100px;
  background-size: cover;
  background-position: center;
  background-color: var(--border);
}
.location-card-image-madrid {
  background-image: linear-gradient(135deg, rgba(232, 93, 4, 0.08) 0%, rgba(0,0,0,0.03) 100%);
}
.location-card-image-miami {
  background-image: linear-gradient(135deg, rgba(232, 93, 4, 0.12) 0%, rgba(0,0,0,0.04) 100%);
}
.location-card-content {
  padding: 1.75rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.location-card-home h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.location-card-home .location-address {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}
.location-card-home .location-sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.15rem;
}
.btn-explore {
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}
.location-card-miami .btn-explore {
  background: var(--accent);
  color: #fff;
  border: none;
}
.location-card-miami .btn-explore:hover {
  background: var(--accent-hover);
  color: #fff;
}
@media (max-width: 600px) {
  .location-cards-home { grid-template-columns: 1fr; max-width: 100%; }
}

/* ===== Map (Leaflet) ===== */
.map-section {
  margin-top: 2.5rem;
  width: 100%;
}
.map-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text);
}
.map-section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.map-container {
  height: 320px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--border);
}
.page-home .map-container { height: 280px; }
.location-hub .map-section { margin-top: 1.5rem; }
.location-hub .map-container { height: 280px; }
.map-pin {
  background: none;
  border: none;
}
.map-pin-dot {
  display: block;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.leaflet-popup-content { margin: 0.5rem 0.75rem; }
.map-popup-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.map-popup-link:hover { text-decoration: underline; }

.page-home .section-num {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.85rem;
}
.page-home .cta-section {
  padding: 5rem 2rem 6rem;
  max-width: 520px;
}
.page-home .cta-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.page-home .cta-section .btn-large {
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 3rem;
}
.page-home .newsletter-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== Our Spaces (gallery preview) ===== */
.our-spaces-section {
  padding: 4rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.our-spaces-sub {
  margin: -0.25rem auto 2rem;
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.our-spaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.our-spaces-tile {
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--border);
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  transition: transform 0.45s var(--ease-luxury);
}
.our-spaces-tile:hover {
  transform: scale(1.02);
}
.our-spaces-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 50%);
  pointer-events: none;
}
.our-spaces-tile-label {
  position: relative;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.our-spaces-tile-1 {
  background-image: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}
.our-spaces-tile-2 {
  background-image: linear-gradient(135deg, #3d2d1a 0%, #2a1f12 100%);
}
.our-spaces-tile-3 {
  background-image: linear-gradient(135deg, #1a2d2d 0%, #0f1f1f 100%);
}
.our-spaces-cta {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
}
@media (max-width: 640px) {
  .our-spaces-grid { grid-template-columns: 1fr; }
}

/* ===== Hero compact (when used with location choose) ===== */
.hero-compact { min-height: 55vh; padding: 5rem 1.5rem 3rem; }

/* ===== Location hubs (drill-down: about, team, studios) ===== */
[hidden] { display: none !important; }

.location-hub {
  padding: 2rem 1.5rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hub-back {
  margin-bottom: 1.5rem;
}
.hub-back .back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.hub-back .back-link:hover { color: var(--accent); }

.hub-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.hub-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.hub-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}
.hub-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.25rem;
}
.hub-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}
.hub-hero-rebel .hub-title { margin-top: 0; }

.block {
  margin-bottom: 2.5rem;
}
.block-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.block-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.hub-desc {
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 1rem;
}
.hub-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.hub-meta p { margin: 0 0 0.35rem; }
.hub-meta-link {
  color: var(--accent);
  text-decoration: none;
}
.hub-meta-link:hover { text-decoration: underline; }
.hub-booking-cta { margin: 1rem 0 0; }
.hub-booking-cta .btn { display: inline-block; }
.hub-booking-policy {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}
.hub-cta { margin-top: 2rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.team-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.team-card-body {
  padding: 1.25rem 1.5rem;
}
.team-card .team-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.team-card:not(.team-card-has-photo) .team-card-body { padding-top: 1.5rem; }
.team-role {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.team-bio {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}
.team-learn-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.team-learn-more:hover { color: var(--accent-hover); }

/* ===== Team member page ===== */
.team-member-page {
  padding: 2rem 1.5rem 4rem;
  max-width: 720px;
  margin: 0 auto;
}
.team-member-back {
  margin-bottom: 1.5rem;
}
.team-member-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.team-member-photo-wrap {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.team-member-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.team-member-body {
  padding: 1.5rem 1.75rem;
}
.team-member-name {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.team-member-role {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 1rem;
}
.team-member-bio {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}
.team-member-not-found {
  padding: 4rem 1.5rem;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.team-member-not-found h1 {
  margin: 0 0 1rem;
}
@media (min-width: 640px) {
  .team-member-card { flex-direction: row; }
  .team-member-photo-wrap { max-width: 280px; flex-shrink: 0; margin: 0; }
}

.studios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.studio-card {
  display: block;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.studio-card-with-img {
  padding: 0;
  overflow: hidden;
}
.studio-card-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-hero) 0%, var(--text-muted) 100%);
  background-color: var(--bg-hero);
  overflow: hidden;
}
.studio-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.studio-card-with-img .studio-card-name,
.studio-card-with-img .studio-card-capacity,
.studio-card-with-img .studio-card-price,
.studio-card-with-img .studio-card-link {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}
.studio-card-with-img .studio-card-name { margin-top: 1rem; }
.studio-card-with-img .studio-card-capacity { margin-bottom: 0.25rem; }
.studio-card-with-img .studio-card-price { margin-bottom: 0.35rem; }
.studio-card-with-img .studio-card-link { margin-bottom: 1rem; display: inline-block; }
.studio-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}
.studio-card:hover .studio-card-img {
  transform: scale(1.03);
  transition: transform 0.35s ease;
}
.studio-card .studio-card-img { transition: transform 0.35s ease; }
[data-theme="dark"] .studio-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
.studio-card-name {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.studio-card-capacity {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.studio-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.studio-card-price {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.35rem;
}
.studio-card-bookable .studio-card-price { color: var(--accent); }

/* ===== Studio detail (drill-down single studio) ===== */
.studio-detail {
  padding: 2rem 1.5rem 4rem;
  max-width: 720px;
  margin: 0 auto;
}
.studio-detail-inner {
  padding-top: 0.5rem;
}
.studio-detail-location {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.studio-detail-name {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}
.studio-detail-desc {
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 1rem;
}
.studio-detail-capacity {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.studio-detail-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1.25rem;
}
.studio-detail-specs {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--text);
  line-height: 1.7;
}
.studio-detail-specs li { margin-bottom: 0.35rem; }

.studio-detail-block { margin: 2rem 0; }
.studio-detail-h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.studio-detail-block p,
.studio-detail-spec-intro { margin: 0 0 0.5rem; color: var(--text); line-height: 1.6; }
.studio-detail-spec-intro { margin-bottom: 0.75rem; font-size: 0.95rem; color: var(--text-muted); }

.studio-booking-embed {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.studio-booking-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}
.studio-booking-iframe {
  width: 100%;
  min-height: 700px;
  border: none;
  overflow: hidden;
  display: block;
}

/* ===== Breadcrumb bar (sits below header, never overlapped) ===== */
#site-breadcrumb {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.5rem;
  margin: 0;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
}

/* ===== Breadcrumb nav ===== */
#site-breadcrumb .breadcrumb-nav,
.breadcrumb-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  width: 100%;
}
.breadcrumb-nav li {
  display: inline;
}
.breadcrumb-nav li:not(:last-child)::after {
  content: '›';
  margin: 0 0.45rem;
  color: var(--text-muted);
  opacity: 0.6;
  font-weight: 400;
}
.breadcrumb-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.breadcrumb-nav a:hover {
  text-decoration: underline;
}
.breadcrumb-nav .breadcrumb-current,
.breadcrumb-nav li:last-child > span[itemprop="name"] {
  color: var(--text);
  font-weight: 600;
}

/* ===== Nav breadcrumb ===== */
.nav-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.nav-breadcrumb .breadcrumb-link {
  color: var(--accent);
  text-decoration: none;
}
.nav-breadcrumb .breadcrumb-link:hover { text-decoration: underline; }
.nav-breadcrumb .breadcrumb-sep { margin: 0 0.35rem; opacity: 0.7; }

/* ===== Location detail (legacy, kept for ref) ===== */
.location-detail {
  padding: 3rem 1.5rem;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
}

.location-detail-inner {
  max-width: 800px;
  margin: 0 auto;
}

.location-detail h2 {
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
  color: var(--text);
}

.location-detail-desc {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.location-meta p { margin: 0 0 0.75rem; color: var(--text); }
.location-meta .btn { margin-top: 0.5rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.35s var(--ease-luxury-out), color 0.35s var(--ease-luxury-out), transform 0.35s var(--ease-luxury), border-color 0.35s var(--ease-luxury-out);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-large { padding: 0.9rem 1.75rem; font-size: 0.95rem; }

/* ===== Artists ticker ===== */
.artists-section {
  padding: 4rem 0;
  overflow: hidden;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
  padding: 0 1.5rem;
}

.section-sublabel {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 2rem;
  padding: 0 1.5rem;
  color: var(--text);
}

.artists-ticker-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.artists-ticker {
  display: flex;
  width: max-content;
  animation: ticker 180s linear infinite;
}
.artists-ticker-2 { animation-direction: reverse; animation-duration: 160s; }

.artists-list {
  display: flex;
  gap: 0.5rem;
  padding: 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.artists-list span { margin: 0 0.25rem; }
.artists-list span::after { content: ' –'; color: var(--text-muted); }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Projects grid ===== */
.projects-section {
  padding: 4rem 1.5rem;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
}

.projects-filter-wrap {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
}
.projects-filter-input {
  width: 100%;
  max-width: 400px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}
.projects-filter-input:focus {
  outline: none;
  border-color: var(--accent);
}
.projects-filter-input::placeholder { color: var(--text-muted); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  display: block;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
[data-theme="dark"] .project-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.25); }

.project-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.project-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Project detail page ===== */
.project-detail-page {
  padding: 0 1.5rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}
.project-detail-placeholder {
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.project-detail-hero {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: var(--border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.project-detail-body { margin-top: 0; }
.project-detail-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
}
.project-detail-artist {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.project-detail-description {
  margin: 0 0 1.5rem;
  line-height: 1.65;
}
.project-detail-back { display: inline-block; margin-top: 0.5rem; }
.project-detail-page .hidden { display: none !important; }

/* ===== CTA + Newsletter ===== */
.cta-section {
  padding: 4rem 1.5rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1.5rem;
  color: var(--text);
}

.cta-section .btn-large { margin-bottom: 2.5rem; }

.newsletter-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
  color: var(--text);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto 0.5rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.form-status.success { color: #0a7c42; }
.form-status.error { color: #c53030; }

/* ===== Contact page ===== */
.contact-page {
  padding: 6rem 1.5rem 4rem;
  max-width: 960px;
  margin: 0 auto;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .contact-inner { grid-template-columns: 1fr 1.2fr; gap: 3rem; }
}
.contact-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}
.contact-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
.contact-locations-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-location-item {
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.contact-location-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text);
}
.contact-location-item p {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contact-location-item a { color: var(--accent); }
.contact-location-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.contact-location-link:hover { text-decoration: underline; }
.contact-form-wrap {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.contact-form-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--text);
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-group { margin-bottom: 1rem; }
.contact-form .btn-large {
  width: 100%;
  margin-top: 0.5rem;
}

/* ===== Skip to content (a11y) ===== */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== FAQ ===== */
.faq-section {
  padding: 4rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.faq-inner { padding-top: 0.5rem; }

.faq-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}

.faq-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  line-height: 1.5;
}

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--card-bg);
}

.faq-question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after { content: '−'; }

.faq-answer {
  margin: 0;
  padding: 0.25rem 1.25rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.faq-question:hover { color: var(--accent); }

/* ===== Gallery (SenseBS) — hero slider + grid + lightbox ===== */
.gallery-hero-slider {
  position: relative;
  width: 100%;
  min-height: 42vh;
  max-height: 70vh;
  margin-top: 0;
  overflow: hidden;
}

.gallery-slider-bgs {
  position: absolute;
  inset: 0;
}

.gallery-slider-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.gallery-slider-bg.is-active {
  opacity: 1;
  z-index: 1;
}

.gallery-slider-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slider-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 42vh;
  max-height: 70vh;
  padding: 4rem 1.5rem 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 40%);
  color: #fff;
}

.gallery-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.gallery-hero-subtitle {
  margin: 0;
  font-size: 1rem;
  opacity: 0.95;
}

.gallery-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
}

.gallery-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.gallery-slider-dot:hover {
  background: rgba(255,255,255,0.5);
}

.gallery-slider-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.gallery-page-section {
  padding: 3rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-page-inner {
  width: 100%;
}

.gallery-section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1.5rem;
}

.gallery-empty {
  color: var(--text-muted);
  margin: 0;
}

.sensebs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.sensebs-gallery-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.4s var(--ease-luxury), box-shadow 0.4s var(--ease-luxury);
}

.sensebs-gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.sensebs-gallery-card-thumb {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--border);
}

.sensebs-gallery-card-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sensebs-gallery-card-thumb-audio {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 0.75rem;
}

.sensebs-gallery-card-thumb-audio audio {
  width: 100%;
  max-width: 100%;
}

.sensebs-gallery-card-text {
  padding: 1rem;
}

.sensebs-gallery-card-text h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.sensebs-gallery-card-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Lightbox */
.sensebs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.sensebs-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sensebs-lightbox-inner img,
.sensebs-lightbox-inner video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.sensebs-lightbox-caption {
  margin: 0.75rem 0 0;
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  max-width: 480px;
}

.sensebs-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.sensebs-lightbox-close:hover {
  background: rgba(255,255,255,0.35);
}

/* ===== Legal pages ===== */
.legal-page {
  padding: 3rem 1.5rem 4rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}
.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.25rem;
}
.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}
.legal-page h2 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}
.legal-page p {
  margin: 0 0 0.75rem;
  color: var(--text);
}
.legal-page a { color: var(--accent); }
.cardonfile-page { max-width: 720px; }
.cardonfile-intro { color: var(--text-muted); margin: 0 0 1.5rem; }
.cardonfile-embed {
  width: 100%;
  min-height: 861px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card-bg);
}
.cardonfile-embed iframe { display: block; min-height: 861px; }
.legal-related { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.95rem; }
.sitemap-page .sitemap-intro { margin-bottom: 1.5rem; color: var(--text-muted); }
.sitemap-section-title { font-size: 1.1rem; margin: 1.5rem 0 0.75rem; color: var(--text); }
.sitemap-list { list-style: none; padding: 0; margin: 0; }
.sitemap-list li { margin-bottom: 0.5rem; }
.sitemap-list a { color: var(--accent); text-decoration: none; }
.sitemap-list a:hover { text-decoration: underline; }
.sitemap-url { font-size: 0.85rem; color: var(--text-muted); margin-left: 0.5rem; }
.sitemap-xml-note { margin-top: 2rem; font-size: 0.9rem; color: var(--text-muted); }
.sitemap-xml-note code { background: var(--border); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85em; }

/* ===== Blog (SenseBS) ===== */
.blog-page.legal-page { max-width: 960px; }
.blog-intro { color: var(--text-muted); margin: 0 0 1.5rem; }
.blog-empty { color: var(--text-muted); margin: 0; }
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.4s var(--ease-luxury), transform 0.4s var(--ease-luxury);
}
.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
[data-theme="dark"] .blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.blog-card-image {
  display: block;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--border);
}
.blog-card-content { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.blog-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.blog-card-title a {
  color: var(--text);
  text-decoration: none;
}
.blog-card-title a:hover { color: var(--accent); }
.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  flex: 1;
}
.blog-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.blog-card-link:hover { text-decoration: underline; }

/* Blog post (single) */
.blog-post-page.legal-page { max-width: 720px; }
.blog-post-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}
.blog-post-back:hover { text-decoration: underline; }
.blog-post-title { font-size: clamp(1.5rem, 4vw, 2.25rem); margin: 0 0 0.5rem; }
.blog-post-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.blog-post-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
}
.blog-post-body :first-child { margin-top: 0; }
.blog-post-body p { margin: 0 0 1rem; }
.blog-post-body h2 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.blog-post-body img { max-width: 100%; height: auto; border-radius: 8px; }
.blog-post-featured {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}
.blog-post-featured img { width: 100%; height: auto; display: block; }
.blog-post-featured video { width: 100%; height: auto; display: block; }
.blog-post-loading, .blog-post-error { color: var(--text-muted); margin: 1rem 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.footer-brand { margin: 0; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--footer-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.footer-logo:hover { color: #fff; }

.footer-logo svg,
.footer-logo .footer-logo-mark {
  height: 1.1rem;
  width: auto;
  flex-shrink: 0;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.4;
  max-width: 22ch;
}

.footer-nav-title,
.footer-locations-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 0.75rem;
}

.footer-nav ul,
.footer-locations ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li,
.footer-locations li { margin: 0; }

.footer-nav a,
.footer-locations a {
  display: block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-locations a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Legacy: simple footer when no .footer-inner */
.site-footer > p {
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer > p + p { padding-top: 0; }
