/* ====================== LOCAL FONTS ====================== */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-v40-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ====================== COLOR VARIABLES ====================== */
:root {
  --gold: #fbbf24;
  --gold-hover: #f59e0b;
  --gold-text: #fbbf24;
}

/* ====================== OPTIMIZATIONS ====================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ====================== BASE STYLES ====================== */
body {
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

/* ====================== COMPONENTS ====================== */
.btn-gold {
  background-color: var(--gold);
  color: #1f2937;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background-color: var(--gold-hover);
}

.gold {
  color: var(--gold-text);
}

/* ====================== FILTER BUTTONS ====================== */
.filter-btn {
  background-color: #27272a;
  color: #e4e4e7;
  border: 1px solid #52525b;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: var(--gold);
  color: #1f2937;
  border-color: var(--gold);
}

.filter-btn.active {
  background-color: var(--gold) !important;
  color: #1f2937 !important;
  border-color: var(--gold);
  font-weight: 600;
}

/* ====================== GALLERY & LIGHTBOX ====================== */
.gallery-img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#lightbox {
  transition: opacity 0.3s ease;
}

#lightbox img {
  transition: transform 0.4s ease;
}

#lightbox:hover img {
  transform: scale(1.02);
}

/* ====================== SWIPER PAGINATION ====================== */
.swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  margin-top: 50px !important;
}

.swiper-pagination-bullet {
  background-color: #374151;
  width: 10px;
  height: 10px;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: var(--gold);
  width: 14px;
  height: 14px;
}

/* ====================== BACK TO TOP BUTTON ====================== */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--gold);
  color: #1f2937;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.3s ease;
}

#back-to-top:hover {
  background-color: var(--gold-hover);
  transform: scale(1.05);
}

/* ====================== PRELOADER ====================== */
#preloader {
  transition: opacity 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ====================== SWIPER ARROWS ====================== */
.swiper-button-prev:after,
.swiper-button-next:after {
  content: "" !important;
  font-size: 0 !important;
}

.swiper-button-prev,
.swiper-button-next {
  font-size: 60px !important;
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 300;
  line-height: 1;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  color: var(--gold) !important;
  opacity: 1 !important;
}

.swiper-button-prev:after {
  content: "‹" !important;
}

.swiper-button-next:after {
  content: "›" !important;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  top: 46% !important;
}

.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
  top: 50% !important;
  font-size: 60px !important;
}

/* ====================== ACCESSIBILITY ====================== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ====================== OLD BROWSER FALLBACK ====================== */
@supports not (display: grid) {
  .grid,
  .md\:grid-cols-2,
  .lg\:grid-cols-4 {
    display: block !important;
  }

  .gap-8 > * {
    margin-bottom: 2rem;
  }
}

/* ==================== LIGHTBOX CLOSE BUTTON ==================== */
#lightbox button[aria-label="Close lightbox"] {
  outline: none;
}
