/* ============================================
   YUMMY MARKANNI — Luxury Cake Business
   styles.css — Complete Design System
   ============================================ */

/* Google Fonts loaded via <link> in HTML for faster rendering */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-bg: #FFF8F0;
  --color-text: #1A1A1A;
  --color-gold: #C8956C;
  --color-gold-text: #96693F;
  --color-blush: #F2D7D5;
  --color-white: #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --nav-height: 80px;
  --container-max: 1280px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.4s var(--ease-out-expo);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

/* Custom cursor: only hide default cursor when JS activates the custom one */
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}

/* Restore default cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  body, a, button, [data-cursor] { cursor: auto !important; }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  font-family: inherit;
}

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
}

/* ---------- Page Transition Overlay ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: var(--color-bg);
  transform: translateY(-100%);
  will-change: transform;
  pointer-events: none;
}

.page-transition.is-active {
  animation: pageSlideIn 0.6s var(--ease-out-expo) forwards,
             pageSlideOut 0.6s var(--ease-out-expo) 0.6s forwards;
}

@keyframes pageSlideIn {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

@keyframes pageSlideOut {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}

/* ---------- Custom Cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.35s var(--ease-out-expo),
              height 0.35s var(--ease-out-expo),
              border-color 0.35s var(--ease-out-expo),
              background-color 0.35s var(--ease-out-expo);
  will-change: transform;
  mix-blend-mode: difference;
}

.cursor.is-hover {
  width: 56px;
  height: 56px;
  border-color: var(--color-gold);
  background-color: rgba(200, 149, 108, 0.12);
}

@media (hover: none) and (pointer: coarse) {
  .cursor { display: none !important; }
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-text);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0 0 8px 8px;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
  outline: none;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 var(--container-padding);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  transition: background-color 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

.navbar.is-scrolled {
  background-color: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.06);
}

.navbar__logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.navbar__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-gold);
  transition: width 0.4s var(--ease-out-expo);
}

.navbar__link:hover::after,
.navbar__link.is-active::after {
  width: 100%;
}

/* Mobile hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.navbar__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
}

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

.navbar__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile menu backdrop */
.navbar__backdrop {
  display: none;
}

@media (max-width: 768px) {
  .navbar__toggle { display: flex; }

  .navbar__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: rgba(26, 26, 26, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  .navbar__backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background-color: var(--color-bg);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out-expo);
    box-shadow: -4px 0 30px rgba(0,0,0,0.08);
  }

  .navbar__links.is-open {
    transform: translateX(0);
  }

  .navbar__link {
    font-size: 1.125rem;
  }
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 0.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(26, 26, 26, 0.15);
}

.lang-switcher__link {
  padding: 0.2rem 0.35rem;
  color: #999;
  transition: color 0.3s ease;
}

.lang-switcher__link:hover {
  color: var(--color-gold);
}

.lang-switcher__link.is-active {
  color: var(--color-text);
  font-weight: 700;
}

.lang-switcher__sep {
  color: rgba(26, 26, 26, 0.25);
  font-weight: 400;
  user-select: none;
}

@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    justify-content: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color var(--transition-base);
}

.btn--primary {
  color: var(--color-white);
  background-color: var(--color-text);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out-expo);
  z-index: -1;
  border-radius: inherit;
}

.btn--primary:hover::before {
  transform: scaleX(1);
}

.btn--outline {
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}

.btn--outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-text);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out-expo);
  z-index: -1;
  border-radius: inherit;
}

.btn--outline:hover {
  color: var(--color-white);
}

.btn--outline:hover::before {
  transform: scaleX(1);
}

.btn__arrow {
  transition: transform 0.4s var(--ease-out-expo);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---------- Section Shared ---------- */
.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.section__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin-bottom: 1rem;
}

.section__heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.section__text {
  font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
  color: #555;
  max-width: 580px;
  line-height: 1.8;
}

[data-animate] {
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.2s forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__content {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.hero__welcome {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin-bottom: 1.25rem;
}

.hero__heading {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--color-text);
}

.hero__heading .line,
.gallery-hero__heading .line {
  display: block;
  overflow: hidden;
}

.hero__heading .line-inner,
.gallery-hero__heading .line-inner {
  display: block;
  animation: headingReveal 0.8s ease 1s both;
}

@keyframes headingReveal {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

.hero__text {
  font-size: clamp(0.95rem, 1.4vw, 1.0625rem);
  color: #555;
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/5;
}

.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.hero__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(200, 149, 108, 0.15);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }

  .hero__image-wrap {
    max-height: 50vh;
    aspect-ratio: 4/3;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
  }
}

/* ---------- ABOUT ---------- */
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about__image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/5;
}

.about__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.about__image-wrap:hover img {
  transform: scale(1.03);
}

.about__text {
  font-size: clamp(0.95rem, 1.4vw, 1.0625rem);
  color: #555;
  line-height: 1.8;
}

.about__text + .about__text {
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .about .container {
    grid-template-columns: 1fr;
  }

  .about__image-wrap {
    aspect-ratio: 4/3;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ---------- SERVICES ---------- */
.services {
  background-color: var(--color-white);
}

.services .container {
  text-align: center;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.service-card {
  background-color: var(--color-bg);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: 0 0 3px 3px;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(26, 26, 26, 0.06);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.service-card__text {
  font-size: 0.9375rem;
  color: #666;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- PROCESS / HOW TO ORDER ---------- */
.process .container {
  text-align: center;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}

/* Connecting line (desktop only) */
.process__steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 1rem);
  right: calc(16.67% + 1rem);
  height: 1px;
  background-color: var(--color-gold);
  opacity: 0.35;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gold-text);
  background-color: var(--color-bg);
  position: relative;
  z-index: 1;
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.process-step__text {
  font-size: 0.9375rem;
  color: #666;
  line-height: 1.7;
  max-width: 340px;
  margin: 0 auto;
}

.process-step__text a {
  color: var(--color-gold-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

.process-step__text a:hover {
  color: var(--color-gold);
}

.process__cta {
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .process__steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .process-step__text {
    max-width: 100%;
  }

  .process__steps::before { display: none; }
}

/* ---------- INSTAGRAM CTA ---------- */
.instagram-cta {
  background-color: var(--color-blush);
  text-align: center;
}

.instagram-cta .section__heading {
  color: var(--color-text);
}

.instagram-cta .section__text {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* ---------- MARQUEE TICKER ---------- */
.marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  background-color: var(--color-bg);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__content {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee__item {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  padding: 0 1.5rem;
  color: var(--color-text);
}

.marquee__separator {
  color: var(--color-gold);
  font-size: 0.75em;
  padding: 0 0.5rem;
}

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

/* ---------- FOOTER ---------- */
.footer {
  padding: 2.5rem 0;
  text-align: center;
  background-color: var(--color-bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer__contact {
  font-size: 0.875rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__contact a {
  transition: color 0.3s ease;
}

.footer__contact a:hover {
  color: var(--color-gold);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__social a[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.35rem 0.65rem;
  background-color: var(--color-text);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.footer__social a[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.footer__social a[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-text);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.footer__social a[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(26,26,26,0.12);
  transition: border-color 0.3s ease, background-color 0.3s ease;
  position: relative;
}

.footer__social a:hover {
  border-color: var(--color-gold);
  background-color: rgba(200,149,108,0.08);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__copy {
  font-size: 0.8125rem;
  color: #aaa;
}

/* ---------- GALLERY HERO ---------- */
.gallery-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: clamp(2rem, 5vw, 5rem);
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
}

.gallery-hero__heading {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1.25rem;
  line-height: 1.1;
  color: var(--color-text);
}

.gallery-hero__text {
  font-size: clamp(0.95rem, 1.4vw, 1.0625rem);
  color: #555;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------- GALLERY FILTER ---------- */
.gallery-section {
  padding-top: 0;
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

.gallery-filters-wrap {
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  background-color: var(--color-bg);
  margin-bottom: 3rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 0;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  border: 1.5px solid rgba(26, 26, 26, 0.15);
  background: transparent;
  color: var(--color-text);
  transition: all 0.35s var(--ease-out-expo);
}

.filter-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.filter-btn.is-active {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

/* ---------- GALLERY GRID ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1/1;
  content-visibility: auto;
  contain-intrinsic-size: 300px;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

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

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-item__overlay,
.gallery-item:focus-visible .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__category {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-filters-wrap::before,
  .gallery-filters-wrap::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 102;
    pointer-events: none;
    font-size: 0.65rem;
    color: var(--color-gold);
    opacity: 0.7;
    line-height: 1;
  }

  .gallery-filters-wrap::before {
    content: '\25C0';
    left: 0.25rem;
  }

  .gallery-filters-wrap::after {
    content: '\25B6';
    right: 0.25rem;
  }

  .gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0.75rem 1.25rem 0.75rem 1.25rem;
    margin: 0 1rem;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
  }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background-color: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.4s ease;
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
  opacity: 1;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 1.5rem;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.lightbox__close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.lightbox__prev { left: 1.5rem; }
.lightbox__next { right: 1.5rem; }

.lightbox__prev:hover,
.lightbox__next:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

/* ---------- Preloader / Initial Reveal ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  animation: preloaderAutoHide 0.4s ease 0.8s forwards;
}

@keyframes preloaderAutoHide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-gold);
  opacity: 0;
  animation: preloaderPulse 1.2s ease infinite;
}

@keyframes preloaderPulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* ---------- Scrollbar ---------- */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) var(--color-bg);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 10px;
}

/* ---------- Selection ---------- */
::selection {
  background-color: var(--color-gold);
  color: var(--color-white);
}

/* ---------- 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;
  }

  .marquee__track { animation: none; }
  .preloader { display: none; }
  [data-animate] { opacity: 1; }
  .hero__heading .line-inner { transform: none; }
}

/* ---------- No-JS Fallback ---------- */
.no-js .preloader { display: none; }
.no-js [data-animate] { opacity: 1; }
.no-js .hero__heading .line-inner { transform: none; }

/* ---------- Lightbox Focus Trap ---------- */
.lightbox:focus-visible { outline: none; }

.lightbox__close:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}
