/* ============================================================
   Avika Interior — Custom Styles
   Stack: Tailwind CSS (CDN) + custom component classes
   ============================================================ */

/* ── Root Color Variables for Day Mode (Default) ─────────── */
:root {
  --color-terracotta: #B5533C;
  --color-terracotta-rgb: 181 83 60;
  --color-terra-dark: #8C3B27;
  --color-terra-dark-rgb: 140 59 39;
  --color-gold: #C9A84C;
  --color-gold-rgb: 201 168 76;
  --color-gold-light: #E8C96A;
  --color-gold-light-rgb: 232 201 106;
  --color-charcoal: #2C2C2C;
  --color-charcoal-rgb: 44 44 44;
  --color-muted: #6B6258;
  --color-muted-rgb: 107 98 88;
  --color-warm-white: #FDFAF6;
  --color-warm-white-rgb: 253 250 246;
  --color-cream: #FAF6F1;
  --color-cream-rgb: 250 246 241;
  --color-parchment: #F0E8DC;
  --color-parchment-rgb: 240 232 220;
  --color-sand: #D9C9B3;
  --color-sand-rgb: 217 201 179;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

/* ── Base smooth scroll ─────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ── Selection color ────────────────────────────────────────── */
::selection {
  background-color: var(--color-terracotta);
  color: var(--color-warm-white);
}

/* ── Tailwind custom color safelist ─────────────────────────── */
.fill-terracotta { fill: var(--color-terracotta) !important; }
.text-terracotta svg, svg.text-terracotta { color: var(--color-terracotta); }

/* ── Focus ring ─────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
}

/* ============================================================
   HEADER & NAV
   ============================================================ */

#header.scrolled {
  box-shadow: 0 1px 20px rgba(44, 44, 44, 0.10);
  background-color: rgba(var(--color-warm-white-rgb), 0.97) !important;
}

.nav-link {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.875rem; font-weight: 400; color: var(--color-muted);
  text-decoration: none; position: relative; padding-bottom: 2px;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background-color: var(--color-terracotta);
  transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--color-charcoal); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.mobile-nav-link {
  display: block; padding: 0.625rem 0.5rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem; font-weight: 400; color: var(--color-muted);
  text-decoration: none; border-bottom: 1px solid rgba(var(--color-sand-rgb), 0.3);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.mobile-nav-link:hover {
  color: var(--color-terracotta); background-color: rgba(var(--color-sand-rgb), 0.2); padding-left: 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background-color: var(--color-terracotta); color: var(--color-warm-white);
  font-family: "DM Sans", system-ui, sans-serif; font-weight: 500; font-size: 0.875rem;
  border-radius: 2px; border: 1.5px solid transparent; text-decoration: none;
  cursor: pointer; transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.01em; white-space: nowrap;
}
.btn-primary:hover {
  background-color: var(--color-terra-dark);
  box-shadow: 0 4px 16px rgb(var(--color-terracotta-rgb) / 0.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background-color: transparent; color: #F0E8DC;
  font-family: "DM Sans", system-ui, sans-serif; font-weight: 500; font-size: 0.875rem;
  border-radius: 2px; border: 1.5px solid rgba(240, 232, 220, 0.5);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  letter-spacing: 0.01em;
}
.btn-ghost:hover {
  background-color: rgba(240, 232, 220, 0.1);
  border-color: rgba(240, 232, 220, 0.9); color: #FDFAF6;
}

.btn-ghost-light {
  display: inline-flex; align-items: center; justify-content: center;
  background-color: transparent; color: #F0E8DC;
  font-family: "DM Sans", system-ui, sans-serif; font-weight: 500;
  border-radius: 2px; border: 1.5px solid rgba(240, 232, 220, 0.6);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-ghost-light:hover {
  background-color: rgba(255, 255, 255, 0.12); border-color: #F0E8DC;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section-padding { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .section-padding { padding-top: 7rem; padding-bottom: 7rem; } }

.section-header { text-align: center; max-width: 42rem; margin-left: auto; margin-right: auto; }

.section-eyebrow {
  font-family: "DM Sans", system-ui, sans-serif; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-terracotta); margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 600;
  color: var(--color-charcoal); line-height: 1.15; margin-bottom: 1rem;
}
@media (min-width: 640px) { .section-title { font-size: 2.5rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }
.section-subtitle {
  font-family: "DM Sans", system-ui, sans-serif; font-size: 0.9375rem;
  color: var(--color-muted); line-height: 1.75; font-weight: 300;
}

/* ============================================================
   TRUST BAR
   ============================================================ */

.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0.5rem; }
.trust-number {
  font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700;
  color: #FDFAF6; line-height: 1; margin-bottom: 0.25rem;
}
.trust-label {
  font-family: "DM Sans", system-ui, sans-serif; font-size: 0.75rem; font-weight: 500;
  color: rgba(253, 250, 246, 0.75); letter-spacing: 0.04em; text-transform: uppercase;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */

.service-card {
  background-color: var(--color-warm-white); border: 1px solid rgba(var(--color-sand-rgb), 0.5);
  border-radius: 2px; padding: 1.75rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(44, 44, 44, 0.08);
  transform: translateY(-3px); border-color: rgb(var(--color-terracotta-rgb) / 0.3);
}
.service-icon-wrap {
  width: 48px; height: 48px; border-radius: 4px;
  background-color: rgb(var(--color-terracotta-rgb) / 0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; flex-shrink: 0; transition: background-color 0.2s ease;
}
.service-card:hover .service-icon-wrap { background-color: rgb(var(--color-terracotta-rgb) / 0.16); }
.service-title {
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600;
  color: var(--color-charcoal); margin-bottom: 0.5rem; line-height: 1.3;
}
.service-desc {
  font-family: "DM Sans", system-ui, sans-serif; font-size: 0.875rem;
  color: var(--color-muted); line-height: 1.65; font-weight: 300;
}
.service-card-cta {
  background-color: #2C2C2C; border-radius: 2px; padding: 1.75rem;
  display: flex; flex-direction: column; justify-content: center;
  transition: box-shadow 0.25s ease;
}
.service-card-cta:hover { box-shadow: 0 8px 32px rgba(44, 44, 44, 0.2); }

/* ============================================================
   PORTFOLIO
   ============================================================ */

.portfolio-item {
  position: relative; overflow: hidden; border-radius: 2px; cursor: pointer;
  aspect-ratio: 4 / 3; background-color: #D9C9B3;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.portfolio-item.hidden-item { display: none; }
.portfolio-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.portfolio-item:hover .portfolio-img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44, 44, 44, 0.85) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.25rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay,
.portfolio-item:focus-within .portfolio-overlay { opacity: 1; }
.portfolio-cat {
  display: inline-block; font-size: 0.7rem; font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-terracotta); background-color: rgba(253, 250, 246, 0.15);
  border: 1px solid rgb(var(--color-terracotta-rgb) / 0.5); padding: 0.2em 0.6em; border-radius: 2px;
  margin-bottom: 0.4rem; width: fit-content;
}
.portfolio-name {
  font-family: var(--font-heading); font-size: 1.05rem;
  font-weight: 500; color: #FDFAF6; line-height: 1.3;
}
.filter-btn {
  font-family: "DM Sans", system-ui, sans-serif; font-size: 0.8125rem; font-weight: 500;
  color: var(--color-muted); background-color: transparent; border: 1px solid var(--color-sand);
  border-radius: 2px; padding: 0.4rem 1rem; cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.filter-btn:hover { color: var(--color-terracotta); border-color: var(--color-terracotta); }
.filter-btn.active { background-color: var(--color-terracotta); color: var(--color-warm-white); border-color: var(--color-terracotta); }

/* ============================================================
   PROCESS STEPS
   ============================================================ */

.process-step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.process-num {
  width: 3rem; height: 3rem; border-radius: 50%; background-color: var(--color-warm-white);
  border: 2px solid var(--color-sand); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
  color: var(--color-terracotta); margin-bottom: 1rem; flex-shrink: 0; position: relative; z-index: 1;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.process-step:hover .process-num { background-color: var(--color-terracotta); border-color: var(--color-terracotta); color: var(--color-warm-white); }
.process-title {
  font-family: var(--font-heading); font-size: 1.125rem;
  font-weight: 600; color: var(--color-charcoal); margin-bottom: 0.5rem;
}
.process-desc {
  font-family: "DM Sans", system-ui, sans-serif; font-size: 0.8125rem;
  color: var(--color-muted); line-height: 1.65; font-weight: 300; max-width: 14ch; margin: 0 auto;
}
@media (max-width: 1023px) { .process-desc { max-width: 28ch; } }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */

.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-icon {
  width: 40px; height: 40px; border-radius: 4px;
  background-color: rgb(var(--color-terracotta-rgb) / 0.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.why-title { font-family: "DM Sans", system-ui, sans-serif; font-size: 0.9375rem; font-weight: 600; color: var(--color-charcoal); margin-bottom: 0.25rem; }
.why-desc { font-family: "DM Sans", system-ui, sans-serif; font-size: 0.8125rem; color: var(--color-muted); line-height: 1.6; font-weight: 300; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonial-card {
  background-color: var(--color-warm-white); border: 1px solid rgba(var(--color-sand-rgb), 0.5);
  border-radius: 2px; padding: 1.5rem; display: flex; flex-direction: column;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.testimonial-card:hover { box-shadow: 0 6px 24px rgba(44, 44, 44, 0.07); border-color: rgb(var(--color-terracotta-rgb) / 0.2); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.faq-item {
  border: 1px solid rgba(var(--color-sand-rgb), 0.6); border-radius: 2px;
  overflow: hidden; background-color: var(--color-warm-white); transition: border-color 0.2s ease;
}
.faq-item.open { border-color: rgb(var(--color-terracotta-rgb) / 0.3); }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem; font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9375rem; font-weight: 500; color: var(--color-charcoal);
  background: none; border: none; cursor: pointer; text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.faq-trigger:hover { background-color: rgba(var(--color-parchment-rgb), 0.4); }
.faq-item.open .faq-trigger { color: var(--color-terracotta); }
.faq-icon { transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.2s ease; }
.faq-answer:not([hidden]) { padding-bottom: 1.1rem; max-height: 300px; }
.faq-answer p { font-family: "DM Sans", system-ui, sans-serif; font-size: 0.875rem; color: var(--color-muted); line-height: 1.75; font-weight: 300; }
.faq-answer[hidden] { display: block !important; max-height: 0; padding-bottom: 0; overflow: hidden; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-info-card {
  display: flex; gap: 0.875rem; align-items: flex-start; padding: 1rem;
  border: 1px solid rgba(var(--color-sand-rgb), 0.5); border-radius: 2px; background-color: var(--color-warm-white);
}
.contact-info-icon {
  width: 38px; height: 38px; border-radius: 4px;
  background-color: rgb(var(--color-terracotta-rgb) / 0.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { font-family: "DM Sans", system-ui, sans-serif; font-size: 0.8125rem; font-weight: 500; color: var(--color-charcoal); }
.form-input {
  font-family: "DM Sans", system-ui, sans-serif; font-size: 0.875rem; color: var(--color-charcoal);
  background-color: var(--color-cream); border: 1px solid var(--color-sand); border-radius: 2px;
  padding: 0.65rem 0.875rem; width: 100%; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease; -webkit-appearance: none; appearance: none;
}
.form-input:focus { border-color: var(--color-terracotta); box-shadow: 0 0 0 3px rgb(var(--color-terracotta-rgb) / 0.12); background-color: var(--color-warm-white); }
.form-input::placeholder { color: #B0A394; font-weight: 300; }
.form-input.error { border-color: #dc2626; }
.form-error { font-family: "DM Sans", system-ui, sans-serif; font-size: 0.75rem; color: #dc2626; min-height: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer-heading {
  font-family: "DM Sans", system-ui, sans-serif; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(240, 232, 220, 0.8); margin-bottom: 1rem;
}
.footer-link {
  display: inline-block; font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.875rem; color: rgba(240, 232, 220, 0.55); text-decoration: none; transition: color 0.2s ease;
}
.footer-link:hover { color: var(--color-terracotta); }
.social-icon {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(240, 232, 220, 0.15); border-radius: 50%;
  color: rgba(240, 232, 220, 0.5); text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.social-icon:hover { color: #F0E8DC; border-color: rgba(240, 232, 220, 0.4); background-color: rgba(240, 232, 220, 0.08); }

/* ============================================================
   SCROLL-REVEAL ANIMATIONS
   ============================================================ */

.reveal-up, .reveal-left, .reveal-right {
  opacity: 0; transition-property: opacity, transform;
  transition-duration: 0.65s; transition-timing-function: ease;
}
.reveal-up    { transform: translateY(30px); }
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0, 0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */

@media (max-width: 640px) {
  #whatsappFloat {
    bottom: 4.75rem !important;
  }
}
#whatsappFloat::before {
  content: ''; position: absolute; inset: -4px; border-radius: 9999px;
  border: 2px solid rgba(37, 211, 102, 0.5); animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.3); opacity: 0; } }

/* ============================================================
   UTILITY OVERRIDES
   ============================================================ */

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; }
[data-lucide] { vertical-align: middle; }

/* ============================================================
   STICKY MOBILE CTA BAR
   ============================================================ */

.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 49;
  display: grid; grid-template-columns: 1fr 1fr; height: 56px;
  box-shadow: 0 -2px 16px rgba(44, 44, 44, 0.12);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: "DM Sans", system-ui, sans-serif; font-size: 0.9375rem; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: filter 0.15s ease; letter-spacing: 0.01em;
}
.mobile-cta-btn:active { filter: brightness(0.9); }
.mobile-cta-call { background-color: var(--color-terracotta); color: var(--color-warm-white); }
.mobile-cta-call:hover { background-color: var(--color-terra-dark); }
.mobile-cta-whatsapp { background-color: #25D366; color: #fff; }
.mobile-cta-whatsapp:hover { background-color: #1ebe5d; }
@media (max-width: 1023px) {
  footer { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  #whatsappFloat { bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ============================================================
   GOOGLE RATING BADGE
   ============================================================ */

.google-rating-badge {
  background-color: var(--color-warm-white); border: 1px solid rgba(var(--color-sand-rgb), 0.6);
  border-radius: 4px; padding: 1rem 1.5rem; display: inline-flex;
  flex-direction: column; align-items: center; gap: 0;
  box-shadow: 0 2px 12px rgba(44, 44, 44, 0.06); min-width: 220px;
}

/* ============================================================
   BEFORE vs AFTER SLIDER
   ============================================================ */

.ba-slider {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 2px; cursor: col-resize; user-select: none; background: #D9C9B3;
  box-shadow: 0 4px 20px rgba(44, 44, 44, 0.1);
  touch-action: none;
}
.ba-after { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-after img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-before { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(0 50% 0 0); -webkit-clip-path: inset(0 50% 0 0); pointer-events: none; }
.ba-before img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-label {
  position: absolute; top: 12px; font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 2px; pointer-events: none; z-index: 2;
}
.ba-label-left { left: 10px; background: rgba(44, 44, 44, 0.75); color: #FAF6F1; }
.ba-label-right { right: 10px; background: rgb(var(--color-terracotta-rgb) / 0.85); color: var(--color-warm-white); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: rgba(253, 250, 246, 0.9); cursor: col-resize; z-index: 3;
  transform: translateX(-50%); display: flex; align-items: center; justify-content: center;
  touch-action: none;
}
.ba-handle:focus { outline: 2px solid var(--color-terracotta); outline-offset: 2px; }
.ba-handle-circle {
  width: 38px; height: 38px; border-radius: 50%; background: #FDFAF6;
  border: 2px solid rgba(217, 201, 179, 0.5); box-shadow: 0 2px 8px rgba(44, 44, 44, 0.2);
  display: flex; align-items: center; justify-content: center; gap: 2px;
  flex-shrink: 0; pointer-events: none; transition: box-shadow 0.2s ease;
}
.ba-slider:hover .ba-handle-circle { box-shadow: 0 4px 16px rgb(var(--color-terracotta-rgb) / 0.3); }

/* ============================================================
   COST ESTIMATOR
   ============================================================ */

#estResult { animation: fadeInUp 0.4s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   LOCAL AREA CARDS
   ============================================================ */

.area-card {
  background-color: var(--color-warm-white); border: 1px solid rgba(var(--color-sand-rgb), 0.5);
  border-radius: 2px; padding: 1.1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.area-card:hover { box-shadow: 0 4px 16px rgba(44, 44, 44, 0.07); border-color: rgb(var(--color-terracotta-rgb) / 0.25); transform: translateY(-2px); }
.area-title { font-family: "DM Sans", system-ui, sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--color-charcoal); margin-bottom: 0.35rem; }
.area-desc { font-family: "DM Sans", system-ui, sans-serif; font-size: 0.775rem; color: var(--color-muted); line-height: 1.55; font-weight: 300; }
.area-card-cta { background-color: #2C2C2C; border-color: transparent; }
.area-card-cta:hover { border-color: rgb(var(--color-terracotta-rgb) / 0.3); }

/* ============================================================
   VIDEO WALKTHROUGH PLAYLIST
   ============================================================ */
.video-playlist-item {
  cursor: pointer;
  border: 1px solid rgba(217, 201, 179, 0.2);
  border-radius: 8px;
  background-color: rgba(35, 35, 35, 0.7);
  transition: all 0.25s ease;
}
.video-playlist-item:hover {
  background-color: rgba(55, 55, 55, 0.9);
  border-color: rgb(var(--color-terracotta-rgb) / 0.6);
  transform: translateY(-2px);
}
.video-playlist-item.active {
  border-color: var(--color-terracotta);
  background-color: rgb(var(--color-terracotta-rgb) / 0.18);
  box-shadow: 0 0 16px rgb(var(--color-terracotta-rgb) / 0.35);
}

/* ============================================================
   VIDEO SLIDER CONTROLS & CAROUSEL
   ============================================================ */
.video-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(28, 28, 28, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 201, 179, 0.35);
  color: #FDFAF6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.video-slider-btn:hover {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: #FDFAF6;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgb(var(--color-terracotta-rgb) / 0.4);
}
.video-slider-btn:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}
.video-slider-btn.prev {
  left: 14px;
}
.video-slider-btn.next {
  right: 14px;
}
@media (max-width: 640px) {
  .video-slider-btn {
    width: 38px;
    height: 38px;
  }
  .video-slider-btn.prev { left: 8px; }
  .video-slider-btn.next { right: 8px; }
}

.video-carousel-track {
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0.25rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-terracotta) rgba(44, 44, 44, 0.4);
}
.video-carousel-track::-webkit-scrollbar {
  height: 5px;
}
.video-carousel-track::-webkit-scrollbar-track {
  background: rgba(44, 44, 44, 0.5);
  border-radius: 4px;
}
.video-carousel-track::-webkit-scrollbar-thumb {
  background: var(--color-terracotta);
  border-radius: 4px;
}
.video-carousel-track .video-playlist-item {
  flex: 0 0 255px;
  scroll-snap-align: start;
}
@media (min-width: 1024px) {
  .video-carousel-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
  }
  .video-carousel-track .video-playlist-item {
    flex: initial;
  }
}
.video-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  display: inline-block;
  background: rgba(217, 201, 179, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
}
.video-dot:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}
.video-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-terracotta);
}

/* ============================================================
   ART & MURALS SLIDER & LIGHTBOX
   ============================================================ */
.art-slider-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-terracotta) rgba(217, 201, 179, 0.2);
}
.art-slider-track::-webkit-scrollbar {
  height: 6px;
}
.art-slider-track::-webkit-scrollbar-track {
  background: rgba(217, 201, 179, 0.2);
  border-radius: 4px;
}
.art-slider-track::-webkit-scrollbar-thumb {
  background: var(--color-terracotta);
  border-radius: 4px;
}
.art-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: 6px;
  overflow: hidden;
  background-color: #FDFAF6;
  border: 1px solid rgba(217, 201, 179, 0.4);
  box-shadow: 0 4px 15px rgba(44, 44, 44, 0.06);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
@media (min-width: 640px) {
  .art-card { flex: 0 0 290px; }
}
@media (min-width: 1024px) {
  .art-card { flex: 0 0 310px; }
}
.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgb(var(--color-terracotta-rgb) / 0.18);
  border-color: rgb(var(--color-terracotta-rgb) / 0.4);
}
.art-card-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.art-card:hover .art-card-img {
  transform: scale(1.04);
}

/* Lightbox modal */
.art-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.art-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.art-lightbox-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(44, 44, 44, 0.8);
  border: 1px solid rgba(217, 201, 179, 0.3);
  color: #FDFAF6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.art-lightbox-btn:hover {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  transform: scale(1.1);
}

/* ============================================================
   SECTION ANCHOR OFFSET (Ensures fixed header does not obscure headers)
   ============================================================ */
section[id] {
  scroll-margin-top: 80px;
}
