/* ========================================
   PT PANGAN MERAH PUTIH - Global Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* === CSS Variables === */
:root {
  --color-primary: #113824;
  /* Deepened Primary */
  --color-primary-dark: #0a2416;
  /* Deepened Dark */
  --color-primary-light: #2d6b4a;
  --color-gold: #d4af37;
  /* More vibrant true gold */
  --color-gold-light: #f3e5ab;
  /* Lighter, clearer gold */
  --color-gold-dark: #997a00;
  /* Dark gold for shadows/borders */
  --color-red: #cc2229;
  --color-white: #ffffff;
  --color-light: #fdfcf9;
  /* Warmer, softer light color */
  --color-grey: #e8e6e0;
  --color-text: #1c1c1c;
  --color-text-muted: #52525b;
  /* Slightly darker muted text for better contrast */
  --color-border: #e4e4e7;
  /* Softer border */

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* Softer, larger diffuse shadow */
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-card: 16px;
  /* slightly more rounded corners */
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  /* Smoother premium easing */

  --container-max: 1200px;
  --container-pad: 24px;
  --nav-height: 80px;
}

/* === Dark Mode === */
[data-theme="dark"] {
  --color-white: #1a1a1a;
  --color-light: #222220;
  --color-grey: #333330;
  --color-text: #e8e6e0;
  --color-text-muted: #a0a0a0;
  --color-border: #3a3a38;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body { background: #141413; color: var(--color-text); }
[data-theme="dark"] .bg-white { background: var(--color-white); }
[data-theme="dark"] .bg-light { background: var(--color-light); }
[data-theme="dark"] .card, [data-theme="dark"] .news-card,
[data-theme="dark"] .sidebar-card, [data-theme="dark"] .revenue-card,
[data-theme="dark"] .advantage-card, [data-theme="dark"] .market-card,
[data-theme="dark"] .grade-price-card, [data-theme="dark"] .challenge-card,
[data-theme="dark"] .solution-card, [data-theme="dark"] .farmer-card,
[data-theme="dark"] .vm-card, [data-theme="dark"] .product-card {
  background: #222220;
  border-color: var(--color-border);
}
[data-theme="dark"] .news-card-body h3,
[data-theme="dark"] .card h3, [data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] h4, [data-theme="dark"] h5 { color: var(--color-text); }
[data-theme="dark"] .badge { background: rgba(212, 175, 55, 0.15); }
[data-theme="dark"] .btn-dark {
  background: var(--color-gold);
  color: #1a1a1a;
}
[data-theme="dark"] .btn-outline {
  border-color: var(--color-gold-light);
  color: var(--color-gold-light);
}
[data-theme="dark"] .bg-dark .btn-outline,
[data-theme="dark"] .hero .btn-outline,
[data-theme="dark"] .page-hero .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
[data-theme="dark"] .page-hero { background: #0e1f16; }
[data-theme="dark"] .page-hero h1 { color: #fff; }
[data-theme="dark"] footer { background: #0e1f16; }
[data-theme="dark"] footer h4, [data-theme="dark"] footer .logo-text { color: #fff; }
[data-theme="dark"] .bg-dark h1, [data-theme="dark"] .bg-dark h2,
[data-theme="dark"] .bg-dark h3, [data-theme="dark"] .bg-dark h4 { color: #fff; }
[data-theme="dark"] .hero-title { color: #fff; }
[data-theme="dark"] .stat-bar h2, [data-theme="dark"] .stat-bar h3 { color: #fff; }
[data-theme="dark"] .empty-state { background: var(--color-light); }
[data-theme="dark"] .filter-tab {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
[data-theme="dark"] .filter-tab.active {
  background: var(--color-gold);
  color: #1a1a1a;
}
[data-theme="dark"] .skeleton, [data-theme="dark"] .skeleton-card {
  background: linear-gradient(90deg, #2a2a28 25%, #333330 50%, #2a2a28 75%);
  background-size: 200% 100%;
}
[data-theme="dark"] .toast { background: #2a2a28; color: var(--color-text); }
[data-theme="dark"] img { opacity: 0.92; }
[data-theme="dark"] .news-card-img { background: #2a2a28; }
[data-theme="dark"] table { border-color: var(--color-border); }
[data-theme="dark"] th { background: #222220; color: var(--color-text); border-color: var(--color-border); }
[data-theme="dark"] td { border-color: var(--color-border); color: var(--color-text); }
[data-theme="dark"] tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
[data-theme="dark"] .stat-bar { background: #0e1f16; }
[data-theme="dark"] .section-header .label { color: var(--color-gold-light); }
[data-theme="dark"] p { color: var(--color-text); }
[data-theme="dark"] .breadcrumb a { color: #f5e6b8; }
[data-theme="dark"] .footer-grid { border-color: var(--color-border); }
[data-theme="dark"] .footer-bottom { border-color: var(--color-border); }
[data-theme="dark"] .about-stats-box { background: #222220; border-color: var(--color-border); }
[data-theme="dark"] .process-step { background: #222220; }
[data-theme="dark"] .stakeholder-box { background: #222220; border-color: var(--color-border); }
[data-theme="dark"] .quality-metrics { background: #222220; }
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select {
  background: #2a2a28; color: var(--color-text); border-color: var(--color-border);
}

/* Badges — dark mode tinted backgrounds */
[data-theme="dark"] .badge-gold { background: rgba(212, 175, 55, 0.15); color: var(--color-gold-light); }
[data-theme="dark"] .badge-green { background: rgba(45, 107, 74, 0.20); color: #6ee7a0; }
[data-theme="dark"] .badge-red { background: rgba(204, 34, 41, 0.18); color: #fca5a5; }

/* Icon boxes — darker gradient tints */
[data-theme="dark"] .icon-box-gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.10));
  box-shadow: 0 4px 14px rgba(201, 147, 42, 0.12);
}
[data-theme="dark"] .icon-box-green {
  background: linear-gradient(135deg, rgba(45, 107, 74, 0.22), rgba(45, 107, 74, 0.12));
  box-shadow: 0 4px 14px rgba(26, 71, 49, 0.08);
}

/* Process flow */
[data-theme="dark"] .process-icon { background: #2a2a28; }

/* News card body text and link */
[data-theme="dark"] .news-card-body p { color: var(--color-text-muted); }
[data-theme="dark"] .news-card { background: #1e1e1c; border-color: var(--color-border); }

/* Pagination */
[data-theme="dark"] .page-btn { background: #2a2a28; border-color: var(--color-border); color: var(--color-text); }
[data-theme="dark"] .page-btn:hover { border-color: var(--color-gold-light); color: var(--color-gold-light); }
[data-theme="dark"] .page-btn.active { background: var(--color-gold); color: #1a1a1a; }

/* Social icons */
[data-theme="dark"] .social-icon-elegant {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}
[data-theme="dark"] .social-icon-elegant:hover { background: rgba(255, 255, 255, 0.12); }

/* Footer text */
[data-theme="dark"] footer a { color: var(--color-text-muted); }
[data-theme="dark"] footer a:hover { color: var(--color-gold-light); }
[data-theme="dark"] footer p, [data-theme="dark"] footer span { color: var(--color-text-muted); }
[data-theme="dark"] .footer-brand .logo-text span { color: var(--color-red); }

/* Links general */
[data-theme="dark"] a:not(.btn) { color: var(--color-gold-light); }
[data-theme="dark"] .btn-primary { color: #1a1a1a; }
[data-theme="dark"] .btn-link { color: var(--color-gold-light); }

/* Section bg overrides for inline bg-white sections */
[data-theme="dark"] .section.bg-white,
[data-theme="dark"] section.bg-white { background: var(--color-white); }
[data-theme="dark"] .section.bg-light,
[data-theme="dark"] section.bg-light { background: var(--color-light); }

/* About gallery caption */
[data-theme="dark"] .gallery-item-overlay { background: rgba(0, 0, 0, 0.7); }
[data-theme="dark"] .gallery-item-caption { color: #e8e6e0; }

/* Gallery item gold frame — subtle in dark mode */
[data-theme="dark"] .gallery-item::after {
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.06);
}

/* Reading progress */
[data-theme="dark"] #reading-progress { background: rgba(20, 20, 19, 0.9); }

/* Market cards */
[data-theme="dark"] .market-card { background: #222220; border-color: var(--color-border); }
[data-theme="dark"] .market-card::after { background: rgba(255, 255, 255, 0.02); }

/* Lightbox dark background overlay */
[data-theme="dark"] .lightbox-overlay { background: rgba(0, 0, 0, 0.92); }

/* About page image wrap */
[data-theme="dark"] .about-image-wrap { border-color: rgba(212, 175, 55, 0.25); }
[data-theme="dark"] .about-gallery { border-color: rgba(212, 175, 55, 0.25); }

/* Product card visual */
[data-theme="dark"] .product-card-visual { background: #1e1e1c; }
[data-theme="dark"] .product-card { background: #222220; border-color: var(--color-border); }

/* CTA section — keep dark look */
[data-theme="dark"] .cta-section { background: #0a1a10; }

/* === Dark mode: ensure ALL text on dark cards is readable === */
[data-theme="dark"] .challenge-card h3,
[data-theme="dark"] .solution-card h3,
[data-theme="dark"] .product-card h3,
[data-theme="dark"] .product-card-body h3,
[data-theme="dark"] .revenue-card h3,
[data-theme="dark"] .farmer-card h3,
[data-theme="dark"] .flow-step h4,
[data-theme="dark"] .process-step h4,
[data-theme="dark"] .timeline-item h4,
[data-theme="dark"] .advantage-card h3,
[data-theme="dark"] .vm-card h3 { color: #fff; }

[data-theme="dark"] .challenge-card p,
[data-theme="dark"] .solution-card p,
[data-theme="dark"] .product-card p,
[data-theme="dark"] .product-card-body p,
[data-theme="dark"] .revenue-card p,
[data-theme="dark"] .revenue-card li,
[data-theme="dark"] .farmer-card p,
[data-theme="dark"] .flow-step p,
[data-theme="dark"] .process-step p,
[data-theme="dark"] .advantage-card p { color: var(--color-text); }

[data-theme="dark"] .badge-gold { color: var(--color-gold-light); }
[data-theme="dark"] .icon-box-gold { color: var(--color-gold-light); }
[data-theme="dark"] .text-gold { color: var(--color-gold-light); }
[data-theme="dark"] .link-gold { color: var(--color-gold-light); }
[data-theme="dark"] .spec-tag::before { color: var(--color-gold-light); }
[data-theme="dark"] .metric-value { color: var(--color-gold-light); }
[data-theme="dark"] .param-box .param-label { color: var(--color-gold-light); }

/* Smooth transition for theme change */
body, .card, .news-card, .sidebar-card, footer, .page-hero, .section,
.badge, .btn, .icon-box, .filter-tab, .page-btn, input, textarea, select {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.72;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* === Typography === */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  /* Tighter tracking for modern display feel */
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 600;
}

p {
  color: var(--color-text-muted);
  margin-bottom: 1.1rem;
  line-height: 1.75;
}

p:last-child {
  margin-bottom: 0;
}

/* === Layout === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: clamp(36px, 6vw, 80px) 0;
}

.section-sm {
  padding: clamp(28px, 4vw, 50px) 0;
}

.section-lg {
  padding: clamp(48px, 8vw, 120px) 0;
}

/* === Section Headers === */
.section-header {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.section-header .label {
  display: inline-block;
  background: rgba(212, 175, 55, 0.1);
  color: #9a7b1e;
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: clamp(0.65rem, 1.2vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: clamp(4px, 0.8vw, 6px) clamp(12px, 2vw, 18px);
  border-radius: 30px;
  margin-bottom: clamp(16px, 2.5vw, 24px);
  backdrop-filter: blur(8px);
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  margin: 14px auto 0;
  border-radius: 2px;
}

/* === Decorative Diverse Section Ornaments === */
.section-ornaments {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.lower-shape {
  position: absolute;
  z-index: 0;
}

/* Shape Color Variations */
.shape-gold {
  color: var(--color-gold);
  opacity: 0.08;
}

.shape-green {
  color: var(--color-primary);
  opacity: 0.04;
}

.shape-green-dark {
  color: var(--color-primary-dark);
  opacity: 0.05;
}

.shape-white {
  color: rgba(255, 255, 255, 1);
  opacity: 0.03;
}

.shape-golden-green {
  color: #c9b358;
  opacity: 0.1;
}

/* === Diverse Animated & Static SVG Shapes === */
.hero-ornament-shape {
  position: absolute;
  opacity: 0.15;
  color: var(--color-gold);
  z-index: 1;
  pointer-events: none;
}

.shape-float {
  animation: float-slow 4s ease-in-out infinite alternate;
}

.shape-rotate {
  animation: rotate-slow 10s linear infinite;
}

.shape-pulse {
  animation: pulse-slow 3s ease-in-out infinite alternate;
}

.shape-fall {
  animation: fall-slow 15s linear infinite;
}

@keyframes float-slow {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-30px);
  }
}

@keyframes rotate-slow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-slow {
  0% {
    transform: scale(1);
    opacity: 0.1;
  }

  100% {
    transform: scale(1.3);
    opacity: 0.25;
  }
}

@keyframes fall-slow {
  0% {
    transform: translateY(-50px) rotate(0deg);
  }

  100% {
    transform: translateY(800px) rotate(360deg);
  }
}

/* Animate existing hero wave ornaments */
.ornament-1 {
  animation: wave-drift 12s ease-in-out infinite alternate;
}

.ornament-2 {
  animation: wave-drift-reverse 15s ease-in-out infinite alternate;
}

@keyframes wave-drift {
  0% {
    transform: translateX(0) scale(1);
  }

  100% {
    transform: translateX(-40px) scale(1.05);
  }
}

@keyframes wave-drift-reverse {
  0% {
    transform: translateX(0) scale(1);
  }

  100% {
    transform: translateX(40px) scale(1.05);
  }
}

/* Drift animations for float-scatter ornaments */
.shape-drift-1 {
  animation: drift-diagonal-1 12s ease-in-out infinite alternate;
}

.shape-drift-2 {
  animation: drift-diagonal-2 14s ease-in-out infinite alternate;
}

.shape-drift-3 {
  animation: drift-circular 16s ease-in-out infinite;
}

.shape-drift-4 {
  animation: drift-sway 10s ease-in-out infinite alternate;
}

@keyframes drift-diagonal-1 {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, -20px) rotate(90deg);
  }
  100% {
    transform: translate(-20px, 15px) rotate(180deg);
  }
}

@keyframes drift-diagonal-2 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(-25px, 25px) rotate(-120deg) scale(1.2);
  }
  100% {
    transform: translate(20px, -10px) rotate(-240deg) scale(0.9);
  }
}

@keyframes drift-circular {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -15px) rotate(90deg);
  }
  50% {
    transform: translate(0, -30px) rotate(180deg);
  }
  75% {
    transform: translate(-20px, -15px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

@keyframes drift-sway {
  0% {
    transform: translateX(0) translateY(0) scale(1);
  }
  33% {
    transform: translateX(15px) translateY(-10px) scale(1.15);
  }
  66% {
    transform: translateX(-15px) translateY(8px) scale(0.9);
  }
  100% {
    transform: translateX(10px) translateY(-5px) scale(1.05);
  }
}

/* === Flowing Cloud Curves === */
.cloud-curve {
  position: absolute;
  width: 140%;
  height: 100%;
  left: -20%;
  top: 0;
  pointer-events: none;
}

.cloud-curve svg {
  width: 100%;
  height: 100%;
}

.cloud-curve svg path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.cloud-curve-1 { animation: cloud-flow-1 18s ease-in-out infinite alternate; }
.cloud-curve-2 { animation: cloud-flow-2 22s ease-in-out infinite alternate; }
.cloud-curve-3 { animation: cloud-flow-3 26s ease-in-out infinite alternate; }
.cloud-curve-4 { animation: cloud-flow-4 20s ease-in-out infinite alternate; }
.cloud-curve-5 { animation: cloud-flow-5 24s ease-in-out infinite alternate; }

@keyframes cloud-flow-1 {
  0% { transform: translateX(0) translateY(0) scaleX(1); }
  50% { transform: translateX(-60px) translateY(-8px) scaleX(1.03); }
  100% { transform: translateX(40px) translateY(5px) scaleX(0.97); }
}
@keyframes cloud-flow-2 {
  0% { transform: translateX(0) translateY(0) scaleX(1); }
  50% { transform: translateX(50px) translateY(6px) scaleX(0.98); }
  100% { transform: translateX(-45px) translateY(-4px) scaleX(1.02); }
}
@keyframes cloud-flow-3 {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-35px) translateY(10px); }
  100% { transform: translateX(55px) translateY(-6px); }
}
@keyframes cloud-flow-4 {
  0% { transform: translateX(0) translateY(0) scaleX(1); }
  50% { transform: translateX(45px) translateY(-12px) scaleX(1.04); }
  100% { transform: translateX(-50px) translateY(8px) scaleX(0.96); }
}
@keyframes cloud-flow-5 {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-40px) translateY(5px); }
  100% { transform: translateX(60px) translateY(-10px); }
}

/* === Luxury Section Ornament Layers === */
.lux-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.lux-particle-gold {
  background: radial-gradient(circle, rgba(201,147,42,0.8) 0%, rgba(201,147,42,0) 70%);
  box-shadow: 0 0 6px 1px rgba(201,147,42,0.3);
  animation: lux-twinkle ease-in-out infinite alternate;
}
.lux-particle-green {
  background: radial-gradient(circle, rgba(26,71,49,0.6) 0%, rgba(26,71,49,0) 70%);
  box-shadow: 0 0 6px 1px rgba(26,71,49,0.2);
  animation: lux-twinkle ease-in-out infinite alternate;
}
.lux-particle-white {
  background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
  box-shadow: 0 0 5px 1px rgba(255,255,255,0.15);
  animation: lux-twinkle ease-in-out infinite alternate;
}
@keyframes lux-twinkle {
  0% { opacity: 0.15; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1.3); }
}

.lux-gradient-curve {
  position: absolute;
  width: 150%;
  height: 100%;
  left: -25%;
  top: 0;
  pointer-events: none;
  z-index: 0;
}
.lux-gradient-curve svg {
  width: 100%;
  height: 100%;
}
.lux-curve-1 { animation: lux-drift-1 20s ease-in-out infinite alternate; }
.lux-curve-2 { animation: lux-drift-2 26s ease-in-out infinite alternate; }
.lux-curve-3 { animation: lux-drift-3 22s ease-in-out infinite alternate; }
.lux-curve-4 { animation: lux-drift-4 28s ease-in-out infinite alternate; }
@keyframes lux-drift-1 {
  0% { transform: translateX(0) translateY(0) scaleX(1); }
  50% { transform: translateX(-50px) translateY(-6px) scaleX(1.04); }
  100% { transform: translateX(40px) translateY(4px) scaleX(0.97); }
}
@keyframes lux-drift-2 {
  0% { transform: translateX(0) translateY(0) scaleX(1); }
  50% { transform: translateX(60px) translateY(8px) scaleX(0.96); }
  100% { transform: translateX(-30px) translateY(-5px) scaleX(1.03); }
}
@keyframes lux-drift-3 {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-40px) translateY(10px); }
  100% { transform: translateX(50px) translateY(-8px); }
}
@keyframes lux-drift-4 {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(35px) translateY(-12px); }
  100% { transform: translateX(-55px) translateY(6px); }
}

.lux-shimmer-line {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.lux-shimmer-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(201,147,42,0.15) 40%, rgba(201,147,42,0.3) 50%, rgba(201,147,42,0.15) 60%, transparent 100%);
  animation: lux-shimmer 4s ease-in-out infinite;
  background-size: 200% 100%;
}
@keyframes lux-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.lux-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}
.lux-orb-gold {
  background: radial-gradient(circle, rgba(201,147,42,0.12) 0%, rgba(201,147,42,0) 70%);
  animation: lux-orb-pulse 8s ease-in-out infinite alternate;
}
.lux-orb-green {
  background: radial-gradient(circle, rgba(26,71,49,0.1) 0%, rgba(26,71,49,0) 70%);
  animation: lux-orb-pulse 10s ease-in-out infinite alternate;
}
@keyframes lux-orb-pulse {
  0% { transform: scale(0.8); opacity: 0.3; }
  100% { transform: scale(1.2); opacity: 0.7; }
}

.lux-flowing-svg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.lux-flowing-svg path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.lux-corner-accent {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
}

/* Dark mode luxury adjustments */
[data-theme="dark"] .lux-particle-gold { box-shadow: 0 0 10px 2px rgba(201,147,42,0.4); }
[data-theme="dark"] .lux-particle-green { box-shadow: 0 0 8px 2px rgba(100,180,130,0.3); background: radial-gradient(circle, rgba(100,180,130,0.6) 0%, rgba(100,180,130,0) 70%); }
[data-theme="dark"] .lux-orb-gold { background: radial-gradient(circle, rgba(201,147,42,0.15) 0%, rgba(201,147,42,0) 70%); }
[data-theme="dark"] .lux-orb-green { background: radial-gradient(circle, rgba(100,180,130,0.1) 0%, rgba(100,180,130,0) 70%); }
[data-theme="dark"] .lux-shimmer-line::after { background: linear-gradient(90deg, transparent 0%, rgba(201,147,42,0.1) 40%, rgba(201,147,42,0.2) 50%, rgba(201,147,42,0.1) 60%, transparent 100%); background-size: 200% 100%; }

@keyframes ornament-breath {
  0% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  100% { transform: scale(1.08) rotate(3deg); opacity: 1; }
}

/* === Elegant Social Media Icons === */
.social-icon-elegant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-elegant:hover {
  color: white;
  background: rgba(255,255,255,0.15);
  border-color: rgba(201,147,42,0.5);
  box-shadow: 0 0 20px rgba(201,147,42,0.15), 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-3px);
}

.social-icon-elegant span {
  width: 17px;
  height: 17px;
  display: inline-flex;
  flex-shrink: 0;
}

/* === Backgrounds === */
.bg-dark {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
  color: #fff;
}

.bg-dark p {
  color: rgba(255, 255, 255, 0.72);
}

.bg-light {
  background: var(--color-light);
}

.bg-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
}

.bg-gold h2,
.bg-gold h3 {
  color: #fff;
}

.bg-gold p {
  color: rgba(255, 255, 255, 0.85);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(10px, 1.5vw, 14px) clamp(20px, 3vw, 32px);
  border-radius: 50px;
  font-weight: 600;
  font-size: clamp(0.82rem, 1.3vw, 0.95rem);
  letter-spacing: 0.02em;
  transition: var(--transition);
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), #eabb4d);
  color: #1a1a1a;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #eabb4d, var(--color-gold-light));
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.btn-dark {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(17, 56, 36, 0.3);
}

.btn-dark:hover {
  background: var(--color-primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(17, 56, 36, 0.4);
}

.btn-sm {
  padding: clamp(8px, 1vw, 10px) clamp(16px, 2vw, 22px);
  font-size: clamp(0.78rem, 1.1vw, 0.85rem);
}

.btn-lg {
  padding: clamp(14px, 2vw, 18px) clamp(28px, 3.5vw, 40px);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
}

/* === Cards === */
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26, 71, 49, 0.14);
}

.card-body {
  padding: clamp(16px, 2.5vw, 28px);
}

.card-body h3 {
  margin-bottom: 10px;
}

/* === Grid Utilities === */
.grid {
  display: grid;
  gap: clamp(16px, 3vw, 32px);
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* === Badge === */
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-gold {
  background: #fef3e2;
  color: #9a7b1e;
}

.badge-green {
  background: #e8f5ee;
  color: var(--color-primary);
}

.badge-red {
  background: #fde8e9;
  color: var(--color-red);
}

/* === Icon Box === */
.icon-box {
  width: clamp(48px, 5vw, 64px);
  height: clamp(48px, 5vw, 64px);
  border-radius: clamp(12px, 1.5vw, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin-bottom: clamp(14px, 2vw, 20px);
  flex-shrink: 0;
  transition: var(--transition);
}

/* SVG icons inside boxes */
.icon-box svg,
.service-icon svg,
.footer-icon svg {
  display: block;
  flex-shrink: 0;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-gold);
}

.logo-icon svg {
  display: block;
}

.icon-box-gold {
  background: linear-gradient(135deg, #fef3e2, #fde8c0);
  color: #9a7b1e;
  box-shadow: 0 4px 14px rgba(201, 147, 42, 0.18);
}

.icon-box-green {
  background: linear-gradient(135deg, #e8f5ee, #c8e9d8);
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(26, 71, 49, 0.12);
}

.icon-box-white {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* === Stat Counter === */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: clamp(24px, 3.5vw, 44px) clamp(12px, 2vw, 24px);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
}

.stat-bar {
  transition: background 0.4s ease;
}

.stat-particles {
  transition: opacity 0.5s ease;
}

.stat-bar:hover .stat-particles {
  opacity: 0.1;
  /* fade out stars when hovering over the stats */
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #f5e6b8;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(201, 147, 42, 0.3);
}

.stat-label {
  font-size: clamp(0.68rem, 1.2vw, 0.85rem);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === Divider === */
.hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 40px 0;
}

/* === Text Utilities === */
.text-center {
  text-align: center;
}

.text-gold {
  color: #9a7b1e;
}

.text-red {
  color: var(--color-red);
}

.text-white {
  color: #fff;
}

.text-muted {
  color: var(--color-text-muted);
}

.fw-bold {
  font-weight: 700;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-8 {
  margin-bottom: 32px;
}

/* === Flex Utilities === */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-gap-2 {
  gap: 8px;
}

.flex-gap-4 {
  gap: 16px;
}

/* === Scroll Animation === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 {
  transition-delay: 0.1s;
}

.animate-delay-2 {
  transition-delay: 0.2s;
}

.animate-delay-3 {
  transition-delay: 0.3s;
}

.animate-delay-4 {
  transition-delay: 0.4s;
}

/* === Footer === */
footer {
  background: linear-gradient(180deg, #0d2419 0%, #0a1d15 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: clamp(36px, 5vw, 70px) 0 0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(20px, 3vw, 40px);
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.footer-brand .logo-text span {
  color: var(--color-red);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer-col h4 {
  color: #f5e6b8;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 700;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: #f5e6b8;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact-item span:first-child {
  color: #f5e6b8;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

/* === Breadcrumb === */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
  padding: clamp(119px, 13.6vw, 153px) 0 clamp(61px, 8.5vw, 109px);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(201,147,42,0.07)"/><circle cx="10" cy="80" r="30" fill="rgba(201,147,42,0.05)"/></svg>') no-repeat;
  background-size: cover;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: #f5e6b8;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.6);
}

/* Page hero responsive */
@media (max-width: 768px) {
  .page-hero {
    padding: clamp(102px, 11.9vw, 136px) 0 clamp(48px, 6.8vw, 82px);
  }

  .page-hero h1 {
    font-size: clamp(1.4rem, 4.5vw, 2rem);
  }

  .breadcrumb {
    font-size: 0.78rem;
    gap: 6px;
    flex-wrap: wrap;
  }

  /* Reduce ornaments in page hero on tablet */
  .page-hero .section-ornaments { opacity: 0.3; }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 95px 0 41px;
  }

  .page-hero h1 {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }

  .breadcrumb {
    font-size: 0.72rem;
  }

  /* Hide ornaments in page hero on mobile — keep it clean */
  .page-hero .section-ornaments { display: none; }
}

@media (max-width: 360px) {
  .page-hero {
    padding: 85px 0 34px;
  }

  .page-hero h1 {
    font-size: 1.15rem;
  }

  .breadcrumb {
    font-size: 0.68rem;
    gap: 4px;
  }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .section {
    padding: clamp(28px, 5vw, 60px) 0;
  }
}

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

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

  /* Cloud ornaments - reduce overflow */
  .cloud-curve {
    width: 120%;
    left: -10%;
  }

  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }

  .gallery-item {
    border-radius: 10px;
  }

  /* Social icons */
  .social-icon-elegant {
    width: 38px;
    height: 38px;
  }

  /* Reduce section header spacing */
  .section-header {
    margin-bottom: clamp(20px, 3vw, 36px);
  }

  h1 { font-size: clamp(1.6rem, 4.5vw, 2.8rem); }
  h2 { font-size: clamp(1.3rem, 3vw, 2rem); }

  /* Section ornaments - reduce on tablet */
  .section-ornaments .lux-particle,
  .section-ornaments .lux-orb { opacity: 0.4; }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 16px;
  }

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

  /* Gallery grid - smaller on phones */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }

  .gallery-item-overlay {
    padding: 8px 10px;
  }

  .gallery-item-caption {
    font-size: 0.7rem;
  }

  /* Cloud ornaments - reduce on phones */
  .cloud-curve {
    opacity: 0.5;
  }

  /* Social icons */
  .social-icon-elegant {
    width: 36px;
    height: 36px;
  }

  .social-icon-elegant span {
    width: 15px;
    height: 15px;
  }

  /* Buttons — touch-friendly */
  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
    min-height: 44px;
  }

  /* Section ornaments — lighter for performance */
  .section-ornaments .lux-shimmer-line,
  .section-ornaments .lux-gradient-curve { display: none; }
  .section-ornaments .lux-particle { opacity: 0.25; }
  .section-ornaments .lux-orb { opacity: 0.2; }

  /* Footer mobile */
  .footer-col h4 {
    font-size: 0.75rem;
    margin-bottom: 14px;
  }

  .footer-col ul li a {
    font-size: 0.82rem;
  }

  .footer-contact-item {
    font-size: 0.82rem;
    gap: 8px;
    margin-bottom: 10px;
  }

  .footer-brand p {
    font-size: 0.82rem;
  }

  .footer-bottom {
    padding: 14px 0;
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  :root {
    --container-pad: 12px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }

  .section {
    padding: 28px 0;
  }

  .section-header .label {
    font-size: 0.6rem;
    padding: 4px 10px;
  }

  /* Hide ornaments on very small screens for performance */
  .section-ornaments { display: none; }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .stat-item {
    padding: 16px 12px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  /* Footer ultra-small */
  .footer-brand .logo-text {
    font-size: 1rem;
  }

  .footer-brand p {
    font-size: 0.78rem;
    margin-top: 8px;
  }

  .footer-col h4 {
    font-size: 0.7rem;
    margin-bottom: 10px;
  }

  .footer-col ul li {
    margin-bottom: 8px;
  }

  .footer-col ul li a {
    font-size: 0.78rem;
  }

  .footer-contact-item {
    font-size: 0.78rem;
  }

  .footer-bottom {
    padding: 12px 0;
    font-size: 0.7rem;
  }
}

/* === Enhanced Section Labels (dark bg override) === */
.bg-dark .section-header .label,
.section.bg-dark .label {
  border-color: rgba(201, 147, 42, 0.55);
  color: var(--color-gold-light);
}

/* === Smooth Image Transitions === */
img {
  transition: transform 0.4s ease;
}

.card:hover img,
.news-card:hover img {
  transform: scale(1.04);
}

/* === Luxury Gold Frame — Shared === */
.luxury-frame,
.gallery-item,
.news-card-img,
.article-thumbnail,
.about-image-wrap,
.about-gallery {
  position: relative;
}

.gallery-item::after,
.news-card-img::after,
.article-thumbnail::after,
.about-image-wrap::after,
.about-gallery::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(212, 175, 55, 0.35);
  box-shadow:
    inset 0 0 18px rgba(212, 175, 55, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.10);
  pointer-events: none;
  z-index: 2;
  transition: all 0.4s ease;
}

.gallery-item:hover::after,
.news-card:hover .news-card-img::after,
.article-thumbnail:hover::after,
.about-image-wrap:hover::after,
.about-gallery:hover::after {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow:
    inset 0 0 24px rgba(212, 175, 55, 0.12),
    0 8px 32px rgba(212, 175, 55, 0.15),
    0 0 0 1px rgba(212, 175, 55, 0.10);
}

/* Corner ornaments for gallery items */
.gallery-item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: calc(var(--radius-card) - 4px);
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.4s ease;
}

.gallery-item:hover::before {
  border-color: rgba(212, 175, 55, 0.35);
}

/* Lightbox luxury frame */
.lightbox-img {
  border: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow:
    0 0 40px rgba(212, 175, 55, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Video luxury frame */
video,
iframe[src*="youtube"] {
  border: 2px solid rgba(212, 175, 55, 0.30);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(212, 175, 55, 0.08);
  border-radius: 16px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

video:hover,
iframe[src*="youtube"]:hover {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow:
    0 8px 32px rgba(212, 175, 55, 0.12),
    0 0 0 1px rgba(212, 175, 55, 0.15);
}

/* === Gallery Grid === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-light);
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.12), 0 4px 16px rgba(0, 0, 0, 0.10);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 71, 49, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

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

.gallery-item-caption {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
}

/* === Gallery Carousel (auto-scroll train) === */
.gallery-carousel {
  display: flex;
  gap: 20px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}

.gallery-carousel .gallery-track {
  display: flex;
  gap: 20px;
  animation: gallery-scroll var(--scroll-duration, 30s) linear infinite;
  will-change: transform;
}

.gallery-carousel:hover .gallery-track {
  animation-play-state: paused;
}

.gallery-carousel .gallery-item {
  flex: 0 0 clamp(220px, 22vw, 300px);
  aspect-ratio: 4/3;
}

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

/* === Lightbox === */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 85vh;
  border-radius: clamp(4px, 1vw, 8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: clamp(10px, 2vw, 20px);
  right: clamp(12px, 2.5vw, 24px);
  color: white;
  font-size: clamp(1.5rem, 3vw, 2rem);
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: white;
  font-size: clamp(1.4rem, 3vw, 2rem);
  padding: clamp(10px, 2vw, 18px) clamp(8px, 1.5vw, 14px);
  cursor: pointer;
  border-radius: 6px;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  z-index: 10;
}
.lightbox-arrow:hover { opacity: 1; background: rgba(0, 0, 0, 0.7); }
.lightbox-prev { left: clamp(8px, 2vw, 24px); }
.lightbox-next { right: clamp(8px, 2vw, 24px); }

/* === Reading Progress Bar === */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
  opacity: 0;
  transition: width 0.08s linear, opacity 0.3s ease;
}

#reading-progress.visible {
  opacity: 1;
}

/* === Subtle Gradient Text for H2 on white sections === */
.gradient-heading {
  background: linear-gradient(135deg, var(--color-primary) 30%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Number Counter === */
.count-up {
  display: inline-block;
}

/* === Hover underline link === */
.link-gold {
  color: #9a7b1e;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

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

/* === WhatsApp Float Pulse Animation === */
#float-wa a {
  position: relative;
}

#float-wa a::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.35);
  animation: wa-pulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.35); opacity: 0; }
}

/* === Loading Skeleton === */
.skeleton {
  background: linear-gradient(90deg, var(--color-light) 25%, #eae8e3 50%, var(--color-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-card);
  min-height: 200px;
}

.skeleton-card {
  background: linear-gradient(90deg, var(--color-light) 25%, #eae8e3 50%, var(--color-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-card);
  min-height: 280px;
}

.skeleton-text {
  background: linear-gradient(90deg, var(--color-light) 25%, #eae8e3 50%, var(--color-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
  height: 1rem;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 60%;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}