/* ============================================
   José Antonio 88 — Proyecto de Renovación
   Mobile-first responsive stylesheet
   ============================================ */

:root {
  /* Colors */
  --color-primary: #1e3a5f;
  --color-primary-light: #2c5282;
  --color-accent: #3182ce;
  --color-accent-hover: #2b6cb0;
  --color-bg: #f7fafc;
  --color-bg-alt: #edf2f7;
  --color-surface: #ffffff;
  --color-text: #2d3748;
  --color-text-muted: #718096;
  --color-text-light: #a0aec0;
  --color-border: #e2e8f0;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono',
    Menlo, monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Sizing */
  --container-max: 960px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* Hidden content — belt-and-suspenders for auth */
[hidden] {
  display: none !important;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   Access Denied Screen
   ============================================ */
.access-denied {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  z-index: 9999;
}

.access-denied-inner {
  text-align: center;
  padding: var(--space-xl);
  max-width: 400px;
}

.access-denied-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.access-denied h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.access-denied p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.access-denied-es {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-light);
}

/* Noscript fallback */
.noscript-msg {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  z-index: 10000;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
  background: var(--color-primary);
  color: #ffffff;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.breadcrumb .sep {
  font-size: 0.75rem;
}

.breadcrumb-home {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-home:hover {
  color: #ffffff;
  text-decoration: none;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.page-header .subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  max-width: 600px;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: var(--space-2xl) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
}

/* ============================================
   Info Cards
   ============================================ */
.info-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.info-card p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-card ul,
.info-card ol {
  margin: var(--space-sm) 0 var(--space-md) var(--space-lg);
}

.info-card li {
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}

/* ============================================
   Specs Grid
   ============================================ */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.spec-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.spec-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ============================================
   Comparativa Table
   ============================================ */
.comparativa-wrap {
  overflow-x: auto;
  margin-top: var(--space-md);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--color-surface);
}

.comparativa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 560px;
  border: 1px solid black;
}

.comparativa-table th,
.comparativa-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border: 1px solid black;
  vertical-align: top;
}

.comparativa-table thead th {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-text);
  border: 1px solid black;
  font-size: 0.875rem;
}

.comparativa-table tbody th {
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  width: 34%;
  font-size: 0.875rem;
}

/* ============================================
   Photo Gallery
   ============================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.4s ease;
  opacity: 0;
}

.gallery-item img.loaded {
  opacity: 1;
}

/* Per-image loading placeholder */
.gallery-item .img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-bg-alt);
  z-index: 1;
  transition: opacity 0.4s ease;
}

.gallery-item.img-loaded .img-placeholder {
  opacity: 0;
  pointer-events: none;
}

.img-placeholder .placeholder-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.img-placeholder .placeholder-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Shimmer effect on loading items */
.gallery-item:not(.img-loaded)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

.gallery-item.img-loaded::after {
  display: none;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Gallery loading banner */
.gallery-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-lg);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: opacity 0.4s ease;
}

.gallery-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #ffffff;
  font-size: 0.8125rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover figcaption {
  opacity: 1;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-2xl);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 2px dashed var(--color-border);
}

.gallery-empty code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--color-bg-alt);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-caption {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  text-align: center;
  max-width: 80vw;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  line-height: 1;
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0, 163, 224, 0.25);
  color: #00a3e0;
  font-size: 1.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(0, 163, 224, 0.45);
}

.lightbox-prev {
  left: var(--space-lg);
}

.lightbox-next {
  right: var(--space-lg);
}

.lightbox-counter {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
}

/* ============================================
   Video
   ============================================ */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.video-wrapper {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  display: block;
}

.video-caption {
  padding: var(--space-sm) 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ============================================
   Contact Card
   ============================================ */
.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
}

.contact-card p {
  margin-bottom: var(--space-sm);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Index — Hero
   ============================================ */
/* ============================================
   Language Switcher
   ============================================ */
/* ============================================
   Burger Menu / Navigation Panel
   ============================================ */
.burger-btn {
  position: fixed;
  bottom: var(--space-xl);
  left: var(--space-lg);
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  z-index: 9996;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* WhatsApp floating button */
.wa-fab {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  background: #25D366;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9996;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.wa-fab svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.burger-btn:hover,
.burger-btn:active {
  background: var(--color-primary-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* When scrolled past header, keep visible */
.burger-btn.is-open {
  background: var(--color-primary);
}

.burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animate to X when open */
.burger-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Slide-out panel */
.nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--color-surface);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 9998;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.nav-panel.open {
  transform: translateX(0);
}

/* Panel header with photo */
.nav-panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  background: var(--color-primary);
  color: #ffffff;
  flex-shrink: 0;
}

.nav-panel-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.nav-panel-info {
  flex: 1;
  min-width: 0;
}

.nav-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.nav-panel-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.nav-close {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.nav-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Nav user greeting */
.nav-user {
  padding: var(--space-md) var(--space-xl);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.nav-user strong {
  color: var(--color-text);
}

/* Nav links */
.nav-links {
  flex: 1;
  padding: var(--space-sm) 0;
  overflow-y: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  color: var(--color-text);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  border-left: 3px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.nav-link:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
  text-decoration: none;
}

.nav-link:active {
  background: var(--color-border);
}

.nav-link.active {
  color: var(--color-accent);
  font-weight: 600;
  border-left-color: var(--color-accent);
  background: rgba(49, 130, 206, 0.06);
}

.nav-link-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
}

.nav-link.active .nav-link-dot {
  background: var(--color-accent);
}

/* Nav footer */
.nav-footer {
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-text-light);
  flex-shrink: 0;
}

/* Bilingual content blocks — toggle based on <html lang="…"> */
html[lang="gl"] .lang-es { display: none; }
html[lang="es"] .lang-gl { display: none; }

.lang-switch {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 600px) {
  .lang-switch {
    position: relative;
    top: auto;
    right: auto;
    display: block;
    margin: 0 auto var(--space-sm);
    width: fit-content;
  }
}

.page-header .container,
.project-hero .container {
  position: relative; /* for lang-switch positioning */
}

/* ============================================
   Index — Hero
   ============================================ */
.project-hero {
  background: var(--color-primary);
  color: #ffffff;
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
}

.project-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.hero-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: var(--space-md) auto;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.project-hero .lead {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================
   Index — Section Cards
   ============================================ */
.section-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.section-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.section-card:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 175, 0.18);
  transform: translateY(-4px);
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 100%);
  border-color: var(--color-primary, #2563af);
}

a.section-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.section-card:hover {
  text-decoration: none;
}

.section-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
  transition: color 0.3s ease;
}

.section-card:hover h3 {
  color: var(--color-primary, #2563af);
}

.section-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================
   Index — Building Info Grid
   ============================================ */
.building-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.building-info-item {
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.building-info-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.building-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-xs);
}

/* ============================================
   Footer
   ============================================ */
.page-footer {
  padding: var(--space-xl) 0;
  padding-bottom: calc(var(--space-xl) + 60px);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ============================================
   Content reveal animation
   ============================================ */
.app-content.revealed {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Responsive breakpoints
   ============================================ */
@media (min-width: 480px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .page-header {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }

  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-hero h1 {
    font-size: 2.5rem;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   Print
   ============================================ */
@media print {
  .page-header,
  .project-hero {
    background: none !important;
    color: var(--color-text) !important;
    padding: var(--space-md) 0;
    border-bottom: 2px solid var(--color-text);
  }

  .breadcrumb,
  .page-header .subtitle,
  .project-hero .lead {
    color: var(--color-text-muted) !important;
  }

  .section-alt {
    background: none;
  }

  .gallery-item {
    break-inside: avoid;
  }

  .lightbox,
  .access-denied,
  .noscript-msg,
  .burger-btn,
  .wa-fab,
  .nav-panel,
  .nav-overlay {
    display: none !important;
  }

  .page-footer {
    border-top: 1px solid var(--color-text-muted);
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: var(--color-text-muted);
  }
}
