@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-gold: #16A34A;
  /* Forest Green */
  --color-gold-light: #F3FFE6;
  --color-deep-charcoal: #0F172A;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-100: #f1f5f9;
  --color-cream: #FFFBF0;
  --color-brand-red: #DC2626;
  /* Vibrant Red */
  --color-brand-red-light: #FEF2F2;
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
}

/* Global Reset & Base */
html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: #fdfdfd;
  color: var(--color-slate-900);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Gold Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #b8922a;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) #f1f5f9;
}

/* ── Scroll Buttons (Bottom Right) ── */
.scroll-fab-group {
  position: fixed;
  bottom: 90px;
  right: 16px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  width: 48px;
}

.scroll-fab-group.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-fab {
  width: 48px;
  height: 48px;
  background: var(--color-gold);
  color: var(--color-slate-900);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-fab:hover {
  background: var(--color-slate-900);
  color: var(--color-gold);
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

@media (min-width: 992px) {
  .scroll-fab-group {
    bottom: 32px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-font {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Premium Typography Utilities */
.text-gold {
  color: var(--color-gold);
}

.text-italic {
  font-style: italic;
}

.tracking-tight {
  letter-spacing: -0.03em;
}

/* Navbar Overhaul */
.navbar-glass {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 1rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand .brand-pmp {
  color: var(--color-brand-red);
  font-weight: 900;
  font-family: var(--font-body);
}

.nav-link {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem !important;
  color: var(--color-slate-700) !important;
  padding: 0.5rem 1.5rem !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 30px;
}

/* Cinematic Hero Slider */
.hero-slider-v2 {
  position: relative;
  height: 90vh;
  min-height: 600px;
  background: var(--color-slate-900);
  overflow: hidden;
}

.hero-slide-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 15px;
}

/* Navbar Dropdown Refinements */
.dropdown-menu.show {
  animation: fadeUpDropdown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUpDropdown {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.dropdown-item:active {
  background-color: var(--color-gold);
  color: var(--color-slate-900);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9));
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.1);
  animation: zoomSlow 20s linear infinite alternate;
}

@keyframes zoomSlow {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.15);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.hero-subtitle {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  color: var(--color-gold);
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: block;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Premium Card (Uniform Design Level) */
.premium-card {
  background: white;
  border-radius: 2.5rem;
  padding: 2rem;
  border: 1px solid var(--color-slate-100);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.15);
}

.card-img-container {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 1.5rem;
  margin-bottom: 2rem;
  background: var(--color-cream);
}

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

.premium-card:hover .card-img-container img {
  transform: scale(1.1);
}

/* Magazine Grid (Blog) */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.journal-card {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  background: var(--color-slate-900);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  /* Fixed height instead of aspect-ratio so content area is predictable */
  height: 400px;
}

.journal-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.journal-card:hover .journal-card-img {
  opacity: 0.75;
  transform: scale(1.06);
}

/* Full-card dark gradient from bottom – ensures text is always readable */
.journal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 15, 30, 0.97) 0%,
      rgba(10, 15, 30, 0.7) 45%,
      rgba(10, 15, 30, 0.1) 100%);
  pointer-events: none;
  z-index: 1;
}

.journal-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.75rem 2rem;
  color: white;
  z-index: 2;
  /* Remove the old gradient -- now handled by ::after */
  background: none;
}

.journal-date {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: 0.6rem;
  display: block;
}

.journal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  /* Clamp to 3 lines max */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Journal excerpt */
.journal-card-content p {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .journal-card {
    height: 320px;
  }

  .journal-title {
    font-size: 1.1rem;
  }
}


/* Buttons */
.btn-premium {
  padding: 0.85rem 2.25rem;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
}

.btn-premium-gold {
  background: var(--color-gold);
  color: var(--color-slate-900);
  border: none;
}

.btn-premium-gold:hover {
  background: white;
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Section Dividers */
.section-title-outer {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  display: block;
}

.section-title {
  font-size: 2.8rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60px;
  height: 4px;
  background: var(--color-gold);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }

  .journal-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-slider-v2 {
    height: 70vh;
  }

  .navbar-glass {
    padding: 0.5rem 0;
  }
}

/* Related Post Cards */
.related-post-card {
  background: white;
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid var(--color-slate-100);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: block;
  text-decoration: none;
  height: 100%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.related-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(5, 150, 105, 0.15);
  border-color: var(--color-gold);
}

.related-post-img-wrapper {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.related-post-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.related-post-card:hover .related-post-img-wrapper img {
  transform: scale(1.08);
}

.related-post-body {
  padding: 1.75rem;
}

.related-post-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  display: block;
}

.related-post-title {
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--color-slate-900);
  font-weight: 700;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .related-post-title {
    font-size: 1.1rem;
  }
}

/* ── Marketing Sections Redesign ── */

/* Product Mini Card (Shop Super Rice & Best Seller) */
.product-mini-card {
  background: #fff;
  padding: 2rem;
  border-radius: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.product-mini-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.1);
}

.badge-sale {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #FF4D4D;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 5;
}

.mini-img-wrapper {
  aspect-ratio: 1/1.2;
  background: #f8f9fa;
  border-radius: 1.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mini-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-mini-card:hover .mini-img-wrapper img {
  transform: scale(1.1);
}

.mini-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.product-mini-card:hover .mini-actions {
  opacity: 1;
  transform: translateY(0);
}

.btn-wishlist {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-wishlist:hover {
  background: var(--color-gold);
  color: white;
}

.btn-gold-outline {
  border: 2px solid var(--color-gold);
  color: var(--color-slate-900);
  font-weight: 800;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

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

/* Category Block */
.category-block {
  height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.category-block:hover {
  filter: brightness(1.08);
}

.cat-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: transform 0.8s ease;
}

.category-block:hover .cat-bg-img {
  transform: scale(1.08);
}

.cat-color-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cat-product-img {
  position: absolute;
  right: -20px;
  bottom: 0;
  height: 85%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-block:hover .cat-product-img {
  transform: translateX(-10px) scale(1.05);
}

.cat-product-img img {
  height: 100%;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.cat-rice-icon {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.3);
}

.cat-content {
  position: relative;
  z-index: 3;
  color: white;
  max-width: 55%;
}

.cat-brand {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: block;
  opacity: 0.8;
}

.cat-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.btn-cat-shop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  text-decoration: none;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.btn-cat-shop:hover {
  background: white;
  color: #333;
  border-color: white;
}

@media (max-width: 768px) {
  .cat-title {
    font-size: 2.2rem;
  }

  .category-block {
    height: 350px;
    padding: 1.5rem;
  }

  .cat-product-img {
    height: 60%;
    right: -10px;
  }

  .cat-product-img img {
    max-width: 120px;
  }
}

/* Stats Cards */
.stats-card {
  padding: 3rem 2rem;
  border-radius: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.stats-card:hover {
  rotate: -2deg;
  transform: scale(1.05);
}

.stats-card h3 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.stats-card p {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0;
}

.stats-yellow {
  background: #FFF9E5;
  color: #D4AF37;
}

.stats-pink {
  background: #FDE8E8;
  color: #E02424;
}

.stats-green {
  background: #E1F8E1;
  color: #059669;
}

/* Video Section */
.video-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0F172A;
}

.video-fallback-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(15, 23, 42, 0.65) 100%);
  z-index: 2;
}

.video-invite-text {
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
}

.video-sub-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
}

/* Testimonials */
.testimonial-card {
  background: #f8f9fa;
  padding: 3rem;
  border-radius: 2.5rem;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.testimonial-card:hover {
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--color-gold-light);
}

.testi-avatar {
  width: 60px;
  height: 60px;
  background: var(--color-gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
}

@media (max-width: 768px) {
  .cat-title {
    font-size: 2.5rem;
  }

  .category-block {
    height: 350px;
    padding: 2rem;
  }
}