/* ==========================================================================
   Lucky Victory Pictures — Landing Page Styles
   Modernized CSS custom properties + animations
   Complements Tailwind CSS CDN for layout / utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --primary: #d6a537;
  --primary-light: #FCF6BA;
  --primary-dark: #8a5f10;
  --gold-start: #BF953F;
  --gold-mid: #FCF6BA;
  --gold-end: #AA771C;

  /* Dark-mode defaults */
  --site-bg: #050505;
  --site-text: #ffffff;
  --site-surface: rgba(255, 255, 255, 0.08);
  --site-surface-hover: rgba(255, 255, 255, 0.12);
  --site-surface-border: rgba(255, 255, 255, 0.15);
  --site-text-muted: #a1a1aa;
  --site-overlay: rgba(0, 0, 0, 0.72);

  /* Radius & transition */
  --site-radius: 24px;
  --site-radius-sm: 14px;
  --site-radius-lg: 30px;
  --site-transition: 0.3s ease;
  --site-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
  --site-shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.36);

  /* Hero fade-in animation properties */
  --hero-fade-duration: 0.8s;
  --hero-fade-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --hero-fade-distance: 30px;
  --hero-stagger-base: 0.15s;
}

/* Light-mode overrides — activated by removing the default `html.dark` */
html:not(.dark) {
  --site-bg: #f8fafc;
  --site-text: #0f172a;
  --site-surface: rgba(0, 0, 0, 0.04);
  --site-surface-hover: rgba(0, 0, 0, 0.07);
  --site-surface-border: rgba(0, 0, 0, 0.1);
  --site-text-muted: #64748b;
  --site-overlay: rgba(255, 255, 255, 0.82);
  --site-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
  --site-shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   2. BASE / RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 75% 0%, rgba(214, 165, 55, 0.16), transparent 34%),
    var(--site-bg);
  color: var(--site-text);
  line-height: 1.65;
  transition: background var(--site-transition), color var(--site-transition);
}

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

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

::selection {
  background: var(--primary);
  color: #080808;
}

/* --------------------------------------------------------------------------
   3. KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */

/* Gold text shine sweep */
@keyframes gold-shine {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* Gold background shimmer */
@keyframes gold-bg-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Ken Burns — slow zoom + drift */
@keyframes ken-burns {
  0%   { transform: scale(1)    translate(0, 0); }
  50%  { transform: scale(1.12) translate(-1.5%, -1%); }
  100% { transform: scale(1)    translate(0, 0); }
}

/* Fade-in-up for reveal */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Subtle pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(214, 165, 55, 0.15); }
  50%      { box-shadow: 0 0 40px rgba(214, 165, 55, 0.35); }
}

/* Ripple expand */
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* Toast slide-in */
@keyframes toast-in {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* Hero slide cross-fade helper */
@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero fade-in-up with staggered delays */
@keyframes hero-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(var(--hero-fade-distance));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-fade-in {
  opacity: 0;
  animation: hero-fade-in-up var(--hero-fade-duration) var(--hero-fade-easing) forwards;
}

.hero-fade-in-delay-1 {
  opacity: 0;
  animation: hero-fade-in-up var(--hero-fade-duration) var(--hero-fade-easing) calc(var(--hero-stagger-base) * 1) forwards;
}

.hero-fade-in-delay-2 {
  opacity: 0;
  animation: hero-fade-in-up var(--hero-fade-duration) var(--hero-fade-easing) calc(var(--hero-stagger-base) * 2) forwards;
}

.hero-fade-in-delay-3 {
  opacity: 0;
  animation: hero-fade-in-up var(--hero-fade-duration) var(--hero-fade-easing) calc(var(--hero-stagger-base) * 3) forwards;
}

/* Rotating conic gradient for value-card border */
@keyframes rotate-conic-border {
  0%   { --conic-angle: 0deg; }
  100% { --conic-angle: 360deg; }
}

/* --------------------------------------------------------------------------
   4. GOLD TEXT & BACKGROUND UTILITIES
   -------------------------------------------------------------------------- */

/* Animated gold gradient text with shine sweep */
.gold-text-gradient {
  background: linear-gradient(
    90deg,
    var(--gold-start),
    var(--gold-mid),
    var(--gold-end),
    var(--gold-mid),
    var(--gold-start)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shine 4s linear infinite;
}

/* Gold background gradient with hover shift */
.gold-bg-gradient {
  background: linear-gradient(
    135deg,
    var(--gold-start),
    var(--gold-mid),
    var(--gold-end)
  );
  background-size: 200% 200%;
  animation: gold-bg-shimmer 6s ease infinite;
  transition: background-position 0.6s ease;
}

.gold-bg-gradient:hover {
  background-position: 100% 50%;
}

/* Static gold gradient (no animation, lighter weight) */
.gold-bg-static {
  background: linear-gradient(135deg, var(--gold-start), var(--gold-mid), var(--gold-end));
}

/* --------------------------------------------------------------------------
   5. GLASS PANEL / GLASSMORPHISM
   -------------------------------------------------------------------------- */
.glass-panel {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--site-surface-border);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  transition: background var(--site-transition), border-color var(--site-transition), box-shadow var(--site-transition);
}

html:not(.dark) .glass-panel {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* --------------------------------------------------------------------------
   6. REVEAL-ON-SCROLL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Staggered children — add .reveal-stagger to parent */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.30s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 0.40s; }

/* Stagger group — independent stagger class for broader use */
.stagger-group > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-group.in-view > * {
  opacity: 1;
  transform: none;
}

.stagger-group > *:nth-child(1)  { transition-delay: 0.00s; }
.stagger-group > *:nth-child(2)  { transition-delay: 0.05s; }
.stagger-group > *:nth-child(3)  { transition-delay: 0.10s; }
.stagger-group > *:nth-child(4)  { transition-delay: 0.15s; }
.stagger-group > *:nth-child(5)  { transition-delay: 0.20s; }
.stagger-group > *:nth-child(6)  { transition-delay: 0.25s; }
.stagger-group > *:nth-child(7)  { transition-delay: 0.30s; }
.stagger-group > *:nth-child(8)  { transition-delay: 0.35s; }
.stagger-group > *:nth-child(9)  { transition-delay: 0.40s; }
.stagger-group > *:nth-child(10) { transition-delay: 0.45s; }
.stagger-group > *:nth-child(11) { transition-delay: 0.50s; }
.stagger-group > *:nth-child(12) { transition-delay: 0.55s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .stagger-group > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-fade-in,
  .hero-fade-in-delay-1,
  .hero-fade-in-delay-2,
  .hero-fade-in-delay-3 {
    animation: none;
    opacity: 1;
  }
}

/* Full animation disable switch */
.no-animation * {
  animation: none !important;
  transition: none !important;
}

.no-animation .reveal,
.no-animation .stagger-group > * {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   7. KEN BURNS HERO ANIMATION
   -------------------------------------------------------------------------- */
.animate-ken-burns {
  animation: ken-burns 20s ease-in-out infinite;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   8. NETFLIX-STYLE HORIZONTAL SCROLL
   -------------------------------------------------------------------------- */
.netflix-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;          /* Firefox */
}

.netflix-row::-webkit-scrollbar {
  display: none;                  /* Chrome / Safari */
}

/* Enhanced scrollbar styling — override when .netflix-row-scroll-visible is applied */
.netflix-row-scroll-visible {
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 165, 55, 0.3) transparent;
}

.netflix-row-scroll-visible::-webkit-scrollbar {
  display: block;
  height: 6px;
}

.netflix-row-scroll-visible::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.netflix-row-scroll-visible::-webkit-scrollbar-thumb {
  background: rgba(214, 165, 55, 0.3);
  border-radius: 3px;
  transition: background 0.2s;
}

.netflix-row-scroll-visible::-webkit-scrollbar-thumb:hover {
  background: rgba(214, 165, 55, 0.55);
}

html:not(.dark) .netflix-row-scroll-visible {
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

html:not(.dark) .netflix-row-scroll-visible::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

html:not(.dark) .netflix-row-scroll-visible::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.netflix-row > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* Netflix-style card inside the row */
.netflix-row .card {
  min-width: 260px;
  max-width: 320px;
}

/* --------------------------------------------------------------------------
   9. 3D TEAM CARD HOVER
   -------------------------------------------------------------------------- */
.perspective-container {
  perspective: 800px;
}

.photo-3d {
  transition: transform 0.45s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.photo-3d:hover {
  transform: rotateY(6deg) rotateX(-4deg) scale(1.03);
}

/* --------------------------------------------------------------------------
   10. BUTTON — RIPPLE EFFECT
   -------------------------------------------------------------------------- */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: scale(0);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}

.ripple-btn:active::after {
  animation: ripple 0.5s ease-out;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   11. CUSTOM CURSOR (desktop only)
   -------------------------------------------------------------------------- */
@media (pointer: fine) {
  .custom-cursor {
    cursor: none;
  }

  .custom-cursor * {
    cursor: none !important;
  }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s;
  }

  .cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
  }

  .cursor-ring {
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary);
    opacity: 0.5;
    transition: width 0.2s, height 0.2s, opacity 0.2s;
  }

  .cursor-ring.hover {
    width: 56px;
    height: 56px;
    opacity: 0.25;
  }
}

/* --------------------------------------------------------------------------
   12. SITE HEADER — Sticky with blur backdrop
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: var(--site-overlay);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s, box-shadow 0.25s;
}

html:not(.dark) .site-header {
  background: rgba(248, 250, 252, 0.82);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

html:not(.dark) .site-header.scrolled {
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
}

/* Brand */
.brand a,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img,
.footer-brand img {
  width: auto;
  max-height: 42px;
  object-fit: contain;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 9px;
  border: 1px solid rgba(214, 165, 55, 0.72);
  border-radius: 14px;
  color: #050505;
  background: linear-gradient(135deg, #8a5f10, #fff3a5, #bf8c22, #58370a);
  box-shadow: 0 0 34px rgba(214, 165, 55, 0.22);
}

.brand b {
  font-size: 14px;
  color: #fff;
}

html:not(.dark) .brand b {
  color: var(--site-text);
}

/* Navigation */
.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--site-text-muted);
  font-size: 14px;
  border: 1px solid transparent;
  transition: var(--site-transition);
}

.site-nav a:hover,
.site-nav .lang-switch {
  background: var(--site-surface);
  border-color: rgba(214, 165, 55, 0.18);
  color: var(--primary);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  border-radius: 14px;
  padding: 10px 13px;
  cursor: pointer;
  font-size: 18px;
  transition: var(--site-transition);
}

html:not(.dark) .menu-toggle {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

/* --------------------------------------------------------------------------
   13. HERO SLIDER
   -------------------------------------------------------------------------- */
.hero-slider {
  height: min(820px, 92vh);
  position: relative;
  background: #000;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  display: grid;
  align-items: center;
  padding: clamp(24px, 6vw, 80px);
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  animation: hero-fade-in 0.9s ease;
}

/* Ken Burns on the background image (applied via class in JS or markup) */
.hero-slide.animate-ken-burns {
  animation: ken-burns 20s ease-in-out infinite, hero-fade-in 0.9s ease;
}

.hero-copy {
  max-width: 820px;
}

/* Eyebrow / type badge */
.hero-slide span,
.eyebrow,
.type {
  color: var(--primary);
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-slide h1 {
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.98;
  margin: 18px 0;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.hero-slide p {
  font-size: clamp(16px, 2vw, 23px);
  color: #e6e6e6;
  max-width: 720px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   14. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--site-surface);
  border: 1px solid var(--site-surface-border);
  color: var(--site-text);
  font-weight: 850;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 165, 55, 0.55);
}

.btn.primary {
  background: linear-gradient(135deg, #946415, var(--primary), #fff2a6, #b88120);
  color: #070707;
  border: 0;
  box-shadow: 0 12px 34px rgba(214, 165, 55, 0.28);
}

.btn.primary:hover {
  box-shadow: 0 16px 44px rgba(214, 165, 55, 0.42);
  transform: translateY(-3px);
}

.btn.ghost {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --------------------------------------------------------------------------
   15. SECTIONS
   -------------------------------------------------------------------------- */
.section {
  padding: 76px clamp(16px, 4vw, 56px);
}

.section.compact {
  padding-top: 44px;
  padding-bottom: 44px;
}

.section.alt {
  background: linear-gradient(
    180deg,
    var(--site-surface),
    rgba(255, 255, 255, 0.018)
  );
}

html:not(.dark) .section.alt {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.005)
  );
}

.section-head {
  max-width: 830px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2,
.archive-head h1 {
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.04;
  margin: 12px 0;
}

.section-head p {
  color: var(--site-text-muted);
}

.section-link {
  color: var(--primary);
  font-weight: 850;
}

/* --------------------------------------------------------------------------
   16. CARD GRID & CARDS
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 22px;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1220px;
  margin: auto;
}

.card {
  background: linear-gradient(180deg, var(--site-surface), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--site-surface-border);
  border-radius: var(--site-radius);
  overflow: hidden;
  transition: transform 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  box-shadow: var(--site-shadow);
}

html:not(.dark) .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
  border-color: rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-7px) scale(1.01);
  border-color: rgba(214, 165, 55, 0.55);
  box-shadow: var(--site-shadow-lg);
}

/* Thumbnail */
.thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}

html:not(.dark) .thumb {
  background: #e2e8f0;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .thumb img {
  transform: scale(1.05);
}

.thumb-empty {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 54px;
}

/* Card body */
.card-body {
  padding: 22px;
}

.card h3 {
  margin: 8px 0;
  font-size: 22px;
  line-height: 1.18;
}

.card p {
  color: var(--site-text-muted);
  margin-bottom: 16px;
}

.readmore {
  color: var(--primary);
  font-weight: 850;
  transition: var(--site-transition);
}

.readmore:hover {
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   16b. SERVICE ICON CIRCLE
   -------------------------------------------------------------------------- */
.service-icon-circle {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--site-surface);
  border: 1px solid var(--site-surface-border);
  color: var(--primary);
  font-size: 24px;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
  flex-shrink: 0;
}

html:not(.dark) .service-icon-circle {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--primary-dark);
}

.card:hover .service-icon-circle,
.core-item-card:hover .service-icon-circle {
  background: linear-gradient(135deg, var(--gold-start), var(--gold-mid), var(--gold-end));
  border-color: transparent;
  color: #070707;
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(214, 165, 55, 0.35);
}

/* --------------------------------------------------------------------------
   16c. VALUE CARD — Rotating conic-gradient border glow on hover
   -------------------------------------------------------------------------- */
.value-card {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--site-radius);
  background: var(--site-surface);
  border: 1px solid var(--site-surface-border);
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
}

html:not(.dark) .value-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

.value-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--site-radius) + 2px);
  background: conic-gradient(
    from var(--conic-angle, 0deg),
    transparent 0%,
    var(--gold-start) 10%,
    var(--gold-mid) 20%,
    transparent 30%
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  animation: rotate-conic-border 4s linear infinite paused;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(214, 165, 55, 0.2);
}

.value-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}

.value-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--site-radius) - 2px);
  background: var(--site-surface);
  z-index: -1;
}

html:not(.dark) .value-card::after {
  background: rgba(255, 255, 255, 0.85);
}

.value-card h3,
.value-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 850;
}

.value-card p {
  color: var(--site-text-muted);
  font-size: 14px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   16d. GALLERY CARD — Square aspect ratio with hover-reveal title overlay
   -------------------------------------------------------------------------- */
.gallery-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--site-radius);
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

html:not(.dark) .gallery-card {
  background: #e2e8f0;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card .gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-card .gallery-overlay h3,
.gallery-card .gallery-overlay h4 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 4px;
  transform: translateY(10px);
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-overlay h3,
.gallery-card:hover .gallery-overlay h4 {
  transform: translateY(0);
}

.gallery-card .gallery-overlay p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  margin: 0;
  transform: translateY(10px);
  transition: transform 0.35s ease 0.05s;
}

.gallery-card:hover .gallery-overlay p {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   16e. CORE ITEM CARD — Light mode team/service cards with white background
   -------------------------------------------------------------------------- */
.core-item-card {
  background: var(--site-surface);
  border: 1px solid var(--site-surface-border);
  border-radius: var(--site-radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

html:not(.dark) .core-item-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.core-item-card:hover {
  transform: translateY(-5px);
  border-color: rgba(214, 165, 55, 0.5);
  box-shadow: 0 12px 36px rgba(214, 165, 55, 0.15);
}

html:not(.dark) .core-item-card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.core-item-card h3,
.core-item-card h4 {
  margin: 16px 0 6px;
  font-size: 18px;
  font-weight: 850;
}

.core-item-card p {
  color: var(--site-text-muted);
  font-size: 14px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   17. CINEMA STRIP (about / philosophy section)
   -------------------------------------------------------------------------- */
.cinema-strip {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(214, 165, 55, 0.12),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(214, 165, 55, 0.2);
  border-radius: var(--site-radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.03);
}

html:not(.dark) .cinema-strip {
  background: linear-gradient(135deg, rgba(214, 165, 55, 0.08), rgba(255, 255, 255, 0.5));
  border-color: rgba(214, 165, 55, 0.18);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.02);
}

.cinema-strip h2 {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
}

.cinema-strip p {
  color: var(--site-text-muted);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.value-grid span {
  padding: 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--site-surface-border);
  font-weight: 850;
  color: var(--site-text);
  text-align: center;
  transition: border-color var(--site-transition), background var(--site-transition);
}

html:not(.dark) .value-grid span {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
}

.value-grid span:hover {
  border-color: rgba(214, 165, 55, 0.5);
  background: rgba(214, 165, 55, 0.08);
}

/* --------------------------------------------------------------------------
   18. PAGE WRAP (content + sidebar)
   -------------------------------------------------------------------------- */
.page-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  padding: 58px clamp(16px, 4vw, 56px);
  max-width: 1280px;
  margin: auto;
}

.layout-left-sidebar .page-wrap {
  grid-template-columns: 330px minmax(0, 1fr);
}

.layout-left-sidebar aside {
  order: -1;
}

.layout-no-sidebar .page-wrap {
  grid-template-columns: 1fr;
}

.layout-no-sidebar aside {
  display: none;
}

.content-area {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   19. ARCHIVE PAGE
   -------------------------------------------------------------------------- */
.archive-head {
  text-align: left;
  margin-bottom: 24px;
}

.archive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   20. SINGLE ARTICLE PAGE
   -------------------------------------------------------------------------- */
.single .content-area {
  background: linear-gradient(180deg, var(--site-surface), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--site-surface-border);
  border-radius: var(--site-radius-lg);
  padding: clamp(20px, 4vw, 46px);
}

html:not(.dark) .single .content-area {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5));
  border-color: rgba(0, 0, 0, 0.08);
}

.single h1 {
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.04;
  margin: 14px 0;
}

.featured {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: var(--site-radius);
  margin-bottom: 24px;
}

.meta,
.cats {
  color: var(--site-text-muted);
  font-size: 14px;
}

.meta a {
  color: var(--primary);
}

.cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 24px;
}

.cats a {
  background: rgba(214, 165, 55, 0.14);
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 999px;
  transition: background var(--site-transition);
}

.cats a:hover {
  background: rgba(214, 165, 55, 0.28);
}

.article-body {
  font-size: 18px;
  color: var(--site-text);
  line-height: 1.75;
}

html:not(.dark) .article-body {
  color: #334155;
}

.article-body h2 {
  font-size: 32px;
  margin-top: 34px;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 22px;
  background: var(--site-surface);
  border-radius: 12px;
  margin: 24px 0;
}

.article-body img {
  border-radius: var(--site-radius-sm);
  margin: 20px 0;
}

/* --------------------------------------------------------------------------
   21. WIDGET AREAS
   -------------------------------------------------------------------------- */
.widget {
  background: var(--site-surface);
  border: 1px solid var(--site-surface-border);
  border-radius: 22px;
  padding: 21px;
  margin-bottom: 18px;
  transition: border-color var(--site-transition);
}

.widget:hover {
  border-color: rgba(214, 165, 55, 0.3);
}

.widget h3,
.widget h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 850;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--site-surface-border);
  font-size: 14px;
}

.widget li:last-child {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   22. COMMENTS
   -------------------------------------------------------------------------- */
.comments {
  margin-top: 28px;
  background: var(--site-surface);
  border: 1px solid var(--site-surface-border);
  border-radius: var(--site-radius);
  padding: 24px;
}

.comments h3 {
  margin: 0 0 16px;
}

.comment {
  padding: 12px 0;
  border-bottom: 1px solid var(--site-surface-border);
}

.comment:last-of-type {
  border-bottom: none;
}

.comment b {
  color: var(--primary);
}

.comment p {
  margin: 4px 0 0;
  color: var(--site-text-muted);
  font-size: 14px;
}

/* Comment form */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   23. RATING BOX
   -------------------------------------------------------------------------- */
.rating-box {
  margin-top: 28px;
  background: var(--site-surface);
  border: 1px solid var(--site-surface-border);
  border-radius: var(--site-radius);
  padding: 24px;
}

.rating-box h3 {
  margin: 0 0 8px;
}

.rating-box form {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Star rating visual helper */
.star-rating {
  display: inline-flex;
  gap: 4px;
  font-size: 22px;
}

.star-rating .star {
  color: #333;
  cursor: pointer;
  transition: color 0.15s;
}

.star-rating .star.filled,
.star-rating .star:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   24. PUBLIC FORMS (contact, custom forms)
   -------------------------------------------------------------------------- */
.public-form {
  margin-top: 28px;
  background: var(--site-surface);
  border: 1px solid var(--site-surface-border);
  border-radius: var(--site-radius);
  padding: 24px;
}

.public-form h3 {
  margin: 0 0 8px;
}

.public-form p {
  color: var(--site-text-muted);
  margin: 0 0 16px;
}

.public-form label {
  display: block;
  margin: 11px 0;
}

.public-form label span {
  display: block;
  margin-bottom: 6px;
  font-weight: 850;
  font-size: 14px;
}

/* Shared form inputs */
input,
textarea,
select {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--site-text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--site-radius-sm);
  padding: 13px 14px;
  outline: none;
  font-size: 15px;
  transition: border-color var(--site-transition), box-shadow var(--site-transition);
}

html:not(.dark) input,
html:not(.dark) textarea,
html:not(.dark) select {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--site-text);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(214, 165, 55, 0.13);
}

input::placeholder,
textarea::placeholder {
  color: var(--site-text-muted);
}

label {
  display: block;
  margin: 11px 0;
}

label span {
  display: block;
  margin-bottom: 6px;
  font-weight: 850;
}

/* --------------------------------------------------------------------------
   25. CONTACT GRID
   -------------------------------------------------------------------------- */
.contact-grid {
  max-width: 1080px;
  margin: auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
}

.contact-card {
  margin: 0;
  background: var(--site-surface);
  border: 1px solid var(--site-surface-border);
  border-radius: var(--site-radius);
  padding: 24px;
}

html:not(.dark) .contact-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.contact-card h3 {
  margin: 0 0 12px;
}

.contact-card p {
  color: var(--site-text-muted);
  margin: 4px 0;
}

.contact-card b {
  color: var(--primary);
}

/* Make public-form inside contact-grid flush */
.contact-grid .public-form {
  margin: 0;
}

/* --------------------------------------------------------------------------
   26. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 46px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--site-surface-border);
  background: rgba(0, 0, 0, 0.5);
}

html:not(.dark) .site-footer {
  background: rgba(0, 0, 0, 0.03);
}

.footer-brand {
  max-width: 820px;
  margin: 0 auto 28px;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
}

.footer-brand p {
  width: 100%;
  color: var(--site-text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto 28px;
}

.copyright {
  text-align: center;
  color: var(--site-text-muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   27. EMPTY STATE
   -------------------------------------------------------------------------- */
.empty-state {
  max-width: 760px;
  margin: 24px auto;
  padding: 36px;
  text-align: center;
  border: 1px dashed rgba(214, 165, 55, 0.4);
  border-radius: 26px;
  background: rgba(214, 165, 55, 0.055);
}

.empty-icon {
  font-size: 54px;
}

.empty-state h3 {
  font-size: 26px;
  margin: 8px 0;
}

.empty-state p {
  color: var(--site-text-muted);
}

/* --------------------------------------------------------------------------
   28. TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  right: 18px;
  top: 82px;
  z-index: 100;
  background: rgba(16, 16, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
  animation: toast-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--site-text);
  font-size: 14px;
  max-width: 360px;
}

html:not(.dark) .toast {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.toast.success {
  border-left-color: #22c55e;
}

.toast.error {
  border-left-color: #ef4444;
}

/* --------------------------------------------------------------------------
   29. PAGINATION
   -------------------------------------------------------------------------- */
.pager {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   30. THEME TRANSITION — smooth switching
   -------------------------------------------------------------------------- */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background 0.45s ease,
              color 0.45s ease,
              border-color 0.45s ease,
              box-shadow 0.45s ease,
              background-color 0.45s ease !important;
}

/* --------------------------------------------------------------------------
   31. RESPONSIVE — Tablet (<= 980px)
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  /* Mobile nav */
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 74px;
    background: rgba(8, 8, 8, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  html:not(.dark) .site-nav {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(0, 0, 0, 0.1);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px;
  }

  .brand b {
    display: none;
  }

  /* Grid collapses */
  .cards,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .page-wrap,
  .layout-left-sidebar .page-wrap {
    grid-template-columns: 1fr;
  }

  .layout-left-sidebar aside {
    order: 0;
  }

  .footer-grid,
  .contact-grid,
  .cinema-strip {
    grid-template-columns: 1fr;
  }

  /* Header */
  .site-header {
    padding: 12px 14px;
  }

  /* Hero */
  .hero-slider {
    height: 84vh;
  }

  .hero-slide {
    padding: 22px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   32. RESPONSIVE — Small mobile (<= 520px)
   -------------------------------------------------------------------------- */
@media (max-width: 520px) {
  .hero-slide h1 {
    font-size: 42px;
  }

  .section {
    padding: 54px 14px;
  }

  .page-wrap {
    padding: 34px 14px;
  }

  .card-body {
    padding: 18px;
  }

  .single .content-area {
    padding: 18px;
    border-radius: 22px;
  }

  .footer-grid {
    gap: 12px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: auto;
  }

  .empty-state {
    padding: 26px 16px;
  }

  /* Contact grid stacking on small mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-card {
    padding: 18px;
  }

  /* Gallery cards 2-column on small mobile */
  .gallery-card {
    aspect-ratio: 1 / 1;
  }

  /* Core item card compact padding */
  .core-item-card {
    padding: 20px 16px;
  }
}

/* --------------------------------------------------------------------------
   33. UTILITY — Hidden on breakpoint
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* UpdateX public polish */
.light-mode{background:#f8fafc;color:#0f172a}.light-mode .glass-panel{background:rgba(255,255,255,.88)!important;color:#0f172a!important}.light-mode .article-body{color:#334155!important}.embed-wrap iframe{border:0}.single-layout-profile .featured{max-width:520px;margin-inline:auto}.shortcode-grid .flex-none{width:auto!important}
