/* ==========================================================================
   CSS Variables & Theme Tokens
   ========================================================================== */
:root {
  /* Brand Colors - Premium Minimalist Palette */
  --bg-color: #F5F3F0;
  --bg-light: #FFFFFF;
  --bg-dark: #1A1A1A;
  --bg-darker: #0D0D0D;

  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-light: #F0F0F0;

  --accent-gold: #C9A96E;
  --accent-gray: #D5D0CA;

  --wa-green: #25D366;
  --wa-green-hover: #128C7E;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', sans-serif;

  /* Spacings */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* UI Elements */
  --border-radius: 6px;
  --border-radius-lg: 12px;
  --thin-stroke: 1px solid rgba(0, 0, 0, 0.08);
  --thin-stroke-light: 1px solid rgba(255, 255, 255, 0.1);

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);

  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.25, 1);
  --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.25, 1);

  /* Header height for offset */
  --header-height: 90px;
  --header-height-scrolled: 70px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* Typography Classes */
.font-heading {
  font-family: var(--font-heading);
}

.font-light {
  font-weight: 300;
}

.font-medium {
  font-weight: 500;
}

.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-light {
  color: var(--text-light);
}

.text-accent {
  color: var(--accent-gold);
}

/* Backgrounds */
.bg-light {
  background-color: var(--bg-light);
}

.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.bg-darker {
  background-color: var(--bg-darker);
  color: var(--text-light);
}

/* Structural */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.w-full {
  width: 100%;
}

.block {
  display: block;
}

.object-cover {
  object-fit: cover;
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-family: var(--font-heading);
  font-weight: 300;
  margin-bottom: var(--space-xs);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Page title (subpages) — offset for fixed header */
.page-hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 3rem;
}

/* Geometric Divider (Logo Motif) */
.geometric-divider {
  height: 1px;
  width: 60px;
  background: var(--text-primary);
  margin: var(--space-sm) auto var(--space-md);
  position: relative;
}

.geometric-divider::before,
.geometric-divider::after {
  content: '';
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--text-primary);
  background: transparent;
}

.geometric-divider::before {
  left: -10px;
}

.geometric-divider::after {
  right: -10px;
}

.geometric-divider.sm {
  margin-bottom: var(--space-sm);
}

.geometric-divider.light {
  background: rgba(255, 255, 255, 0.3);
}

.geometric-divider.light::before,
.geometric-divider.light::after {
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Components: Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-light);
  border-color: var(--text-primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-primary);
}

.btn-outline {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-color);
}

.btn-whatsapp {
  background: var(--wa-green);
  color: #fff;
  border-color: var(--wa-green);
}

.btn-whatsapp:hover {
  background: var(--wa-green-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Floating WA */
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--wa-green);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.wa-float:hover {
  transform: scale(1.1);
  color: white;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.wa-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* When cookie banner is visible, shift WA float up */
body.cookie-visible .wa-float {
  bottom: 160px;
}

/* ==========================================================================
   Components: Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(245, 243, 240, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: all var(--transition-smooth);
  border-bottom: var(--thin-stroke);
}

.site-header.scrolled {
  background: rgba(245, 243, 240, 0.98);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  transition: height var(--transition-smooth);
}

.site-header.scrolled .header-inner {
  height: var(--header-height-scrolled);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 100px;
  transition: height var(--transition-smooth);
}

.site-header.scrolled .logo-img {
  height: 48px;
}

.logo-text-fallback {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: none;
}

.main-nav {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a:not(.btn) {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a.active:not(.btn)::after,
.nav-links a:hover:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text-primary);
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--text-primary);
  margin-bottom: 6px;
  transition: var(--transition-smooth);
  transform-origin: center;
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-color);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a:not(.btn) {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.mobile-nav.active a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav.active a:nth-child(1) {
  transition-delay: 0.05s;
}

.mobile-nav.active a:nth-child(2) {
  transition-delay: 0.1s;
}

.mobile-nav.active a:nth-child(3) {
  transition-delay: 0.15s;
}

.mobile-nav.active a:nth-child(4) {
  transition-delay: 0.2s;
}

.mobile-nav.active a:nth-child(5) {
  transition-delay: 0.25s;
}

.mobile-nav.active .btn {
  transition-delay: 0.3s;
}

/* ==========================================================================
   Home Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-height) + 2rem);
  display: flex;
  align-items: center;
  position: relative;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 700px;
  z-index: 2;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-contact-line {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Hero Images Grid */
.hero-images {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 700px;
}

.hero-img-box {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-img-box:hover img {
  transform: scale(1.04);
}

.split-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  border-radius: var(--border-radius);
}

@media (min-width: 1024px) {
  .hero {
    text-align: left;
  }

  .hero-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero-content {
    text-align: left;
    margin: 0;
    width: 48%;
    max-width: none;
  }

  .hero-ctas {
    justify-content: flex-start;
  }

  .hero-images {
    width: 48%;
    max-width: none;
    gap: 1.5rem;
  }

  .hero-img-box:first-child {
    transform: translateY(2rem);
  }
}

/* ==========================================================================
   Components: Cards & Services
   ========================================================================== */
.service-card {
  background: var(--bg-light);
  padding: 2.5rem 2rem;
  border: var(--thin-stroke);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-smooth);
  height: 100%;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  transition: all var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--text-primary);
  color: var(--bg-light);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Project Card */
.card {
  display: flex;
  flex-direction: column;
  background: transparent;
  height: 100%;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card-img-wrapper {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  border-radius: var(--border-radius-lg);
  margin-bottom: 1.2rem;
  background: var(--accent-gray);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-tags {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 400;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  flex-grow: 1;
  line-height: 1.6;
}

.card-action {
  margin-top: auto;
}

.card-cta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.card-cta .arrow {
  transition: transform var(--transition-fast);
}

.card:hover .card-cta .arrow {
  transform: translateX(5px);
}

/* Hover Interactions */
.hover-lift {
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* Desktop hide / mobile hide utilities */
.hide-mobile {
  display: none !important;
}

.hide-desktop {
  display: inherit;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: inherit !important;
  }

  .hide-desktop {
    display: none !important;
  }
}

/* ==========================================================================
   Timeline / Como Trabajamos
   ========================================================================== */
.timeline-step {
  position: relative;
  padding: 2rem 1.5rem;
}

.timeline-dot {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
  margin-bottom: 1rem;
}

.timeline-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  font-weight: 500;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-accordion {
  border-top: var(--thin-stroke);
}

.faq-item {
  border-bottom: var(--thin-stroke);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform var(--transition-smooth);
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-gold);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-smooth);
}

.faq-answer-inner {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-answer-inner {
  padding-bottom: 1.5rem;
  padding-right: 2rem;
}

/* FAQ Two-Column Grid */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

.faq-column {
  min-width: 0;
}

/* Footer headings */
.footer-heading {
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ==========================================================================
   Contact Forms & Layouts
   ========================================================================== */
.contact-card-wa {
  background: var(--bg-light);
  padding: 3rem 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: var(--thin-stroke);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wa-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(37, 211, 102, 0.1);
  color: var(--wa-green-hover);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-card-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-card-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.contact-card-meta {
  margin-top: auto;
  border-top: var(--thin-stroke);
  padding-top: 2rem;
  text-align: left;
}

.meta-item {
  margin-bottom: 1.2rem;
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 500;
}

.meta-value.link:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--border-radius);
  background: #fff;
  transition: border var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.form-errors {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.form-errors ul {
  margin-left: 1rem;
  list-style: disc;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.checkbox-group input {
  margin-top: 0.3rem;
  width: 16px;
  height: 16px;
  accent-color: var(--text-primary);
}

.checkbox-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.checkbox-label a {
  text-decoration: underline;
  color: var(--text-primary);
}

.success-banner {
  border-top: 3px solid var(--accent-gold);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-darker);
  color: var(--text-light);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links-list li {
  margin-bottom: 0.7rem;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--text-light);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
  color: var(--text-light);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   CTA Band
   ========================================================================== */
.cta-band {
  background: var(--bg-darker);
  color: var(--text-light);
  padding: 6rem 0;
  border-top: var(--thin-stroke-light);
}

.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1.5rem;
  color: #fff;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 200;
  cursor: pointer;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.lightbox-close:hover {
  transform: rotate(90deg);
}

/* ==========================================================================
   Cookie Banner & Preferences Modal
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 9998;
  background: var(--bg-light);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
  border: var(--thin-stroke);
  display: none;
  max-width: 480px;
}

.cookie-banner.active {
  display: block;
  animation: cookieSlideUp 0.5s cubic-bezier(0.25, 1, 0.25, 1);
}

@keyframes cookieSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.cookie-banner p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.cookie-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-btns .btn {
  flex: 1;
  padding: 0.6rem 0.8rem;
  font-size: 0.7rem;
  min-width: 100px;
}

@media (max-width: 520px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* Cookie Preferences Modal */
.cookie-prefs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.cookie-prefs-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cookie-prefs-modal {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-prefs-modal h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.cookie-pref-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: var(--thin-stroke);
}

.cookie-pref-item:last-of-type {
  border-bottom: none;
}

.cookie-pref-label {
  font-weight: 500;
  font-size: 0.95rem;
}

.cookie-pref-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--wa-green);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(22px);
}

/* ==========================================================================
   Animations Trigger
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.reveal--in {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Project Detail Page
   ========================================================================== */
.project-cover-img {
  border-radius: var(--border-radius-lg);
}

.project-body-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* Gallery items */
.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: var(--border-radius-lg);
  background: var(--accent-gray);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* ==========================================================================
   Prose (Legal Pages)
   ========================================================================== */
.prose {
  line-height: 1.8;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Admin Styles (Scoped)
   ========================================================================== */
.admin-body {
  background: #f4f4f4;
  padding: 2rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background: #fafafa;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.admin-table img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

/* Image Picker Grid */
.img-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding: 1rem;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
}

.img-picker-item {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.img-picker-item:hover {
  border-color: var(--accent-gold);
}

.img-picker-item.selected {
  border-color: var(--wa-green);
}

.img-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-picker-item .check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: var(--wa-green);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.img-picker-item.selected .check {
  display: flex;
}