/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1E1B2E;
  background: #fff;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

/* ── Hero Pattern & Backgrounds ──────────────────────────── */
.hero-pattern {
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 38px 38px;
}
.bg-pattern-dots {
  background-image: radial-gradient(#C89F3A 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.15;
}

/* ── Gradient Utilities ───────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #C89F3A, #E0C79A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-brand {
  background: linear-gradient(135deg, #2E6A34, #4C8E2C);
}

/* ── Diamond Shapes ───────────────────────────────────────── */
.diamond-mask {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.diamond-corner-tl {
  border-top-left-radius: 0;
  border-bottom-right-radius: 2rem;
  border-top-right-radius: 2rem;
  border-bottom-left-radius: 2rem;
}
.diamond-corner-br {
  border-bottom-right-radius: 0;
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
  border-bottom-left-radius: 2rem;
}

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.reveal-right {
  transform: translateX(-24px);
}
.reveal.reveal-left {
  transform: translateX(24px);
}
.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Custom Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #2E6A34; border-radius: 3px; }

/* ── Focus Ring ───────────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid #C89F3A;
  outline-offset: 2px;
}

/* ── Header scroll state ──────────────────────────────────── */
.header-scrolled {
  box-shadow: 0 4px 20px rgba(13, 40, 24, 0.1);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* ── Mobile nav hidden/visible ────────────────────────────── */
.mobile-nav-hidden { display: none; }

/* ── Gallery masonry ──────────────────────────────────────── */
.gallery-grid {
  columns: 1;
  column-gap: 1rem;
}
@media (min-width: 640px) {
  .gallery-grid { columns: 2; }
}
@media (min-width: 1024px) {
  .gallery-grid { columns: 3; }
}
@media (min-width: 1280px) {
  .gallery-grid { columns: 4; }
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* ── Product video grid (distinct from photo masonry) ───────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: 1.125rem;
}
@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
    gap: 1.5rem;
  }
}
@media (min-width: 1280px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.video-card__frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(145deg, #0d2818 0%, #1a3d24 45%, #0d2818 100%);
  box-shadow:
    0 0 0 1px rgba(46, 106, 52, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 40px -12px rgba(13, 40, 24, 0.35),
    0 4px 12px rgba(13, 40, 24, 0.12);
}
.video-card__video {
  display: block;
  position: relative;
  z-index: 0;
  vertical-align: top;
  opacity: 1;
  transition: opacity 0.35s ease;
}
/* Children default to pointer-events:auto — without this they block native <video controls> */
.video-card__skeleton,
.video-card__skeleton * {
  pointer-events: none;
}
.video-card__skeleton {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}
.video-card--ready .video-card__skeleton {
  opacity: 0;
  visibility: hidden;
}
.video-card__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: video-card-shimmer 1.8s ease-in-out infinite;
}
.video-card__play-hint {
  position: relative;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  color: rgba(255, 255, 255, 0.35);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
@keyframes video-card-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Admin sidebar ────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #0D2818;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 30;
}
.admin-content {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  background: #F9FAFB;
}
@media (max-width: 1023px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
}

/* ── Lightbox ─────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#lightbox.active { display: flex; }

/* ── Loading spinner ──────────────────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; }

/* ── Transition utilities ─────────────────────────────────── */
.scale-x-0 { transform: scaleX(0); }
.group:hover .group-hover\:scale-x-100 { transform: scaleX(1); }
