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

/* Persian Brand Font (Karim) */
@font-face {
  font-family: 'Karim';
  src: url('../fonts/BKarim.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Karim';
  src: url('../fonts/BKarimBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* English Brand Font (EK03Plain) */
@font-face {
  font-family: 'EK03Plain';
  src: url('../fonts/EK2003Plain-L.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EK03Plain';
  src: url('../fonts/EK03Plain-M.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EK03Plain';
  src: url('../fonts/EK03Plain-B.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Vazirmatn Fallback Font */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand Book Color Palette (MSA017 V7) */
  --gold-brand: #86764e; /* Gold Plate / PANTONE 871 C (Primary Brand Color) */
  --gold-light: #f5eedb; /* Warm light gold cream */
  
  /* Primary Dark & Light Backgrounds */
  --bg-main: #FAF9F6; /* Premium Alabaster / Chalk Cream */
  --bg-alt: #FFFFFF; /* Pure White */
  --bg-dark: #3d3834; /* PANTONE Black 7 C (Dark Charcoal / Brownish Black) */
  --text-primary: #3d3834; /* PANTONE Black 7 C (Charcoal) as main text */
  --text-secondary: #55565a; /* PANTONE Cool Grey 11 C */
  --text-muted: #85868a; /* Cool Grey */
  --text-light: #FAF9F6;
  
  /* Brand Book Secondary Colors */
  --brand-red: #cf202e; /* PANTONE 186 C */
  --brand-magenta: #cb187c; /* PANTONE 233 C */
  --brand-plum: #8e1d58; /* PANTONE 228 C */
  --brand-purple: #702877; /* PANTONE 259 C */
  --brand-blue: #005f85; /* PANTONE 7469 C */
  --brand-turquoise: #109aa9; /* PANTONE 320 C (Firoozei) */
  --brand-green: #6a823a; /* PANTONE 575 C */
  --brand-grey: #55565a; /* PANTONE Cool Grey 11 C */
  
  /* Mapping for backwards compatibility and general styling - Accent Firoozei */
  --gold-base: var(--gold-brand);
  --gold-dark: #6e603d; /* Darkened gold for hover/contrast */
  --green-base: var(--brand-turquoise); /* Mapped to Firoozei */
  --green-dark: #0d7b87; /* Darker Firoozei for hover/contrast */
  --green-light: #eef7f9; /* Light Firoozei background tint */
  --bg-dark-rgb: 61, 56, 52;
  
  /* Glassmorphism & Shadow Depth */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(134, 118, 78, 0.15);
  --glass-shadow: 0 10px 40px -10px rgba(61, 56, 52, 0.05);
  --glass-blur: 20px;
  
  /* Typography */
  --font-en-sans: 'EK03Plain', 'Outfit', sans-serif;
  --font-en-serif: 'EK03Plain', 'Playfair Display', serif;
  --font-fa: 'Vazirmatn', Tahoma, sans-serif;
  --font-fa-display: 'Karim', 'Vazirmatn', Tahoma, sans-serif;

  /* Spacing & Transitions */
  --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --container-width: 1400px;
  
  /* Backward Compatibility Mappings */
  --crimson-dark: #8e1d58;
  --crimson-base: #cf202e;
  --crimson-light: #fbebee;
}

/* Repeating Eastern Geometric Lattice Pattern */
.bg-lattice {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 0 L40 20 L20 40 L0 20 Z' fill='none' stroke='%2386764e' stroke-width='0.5' stroke-opacity='0.12'/%3E%3Crect x='18' y='18' width='4' height='4' fill='%2386764e' fill-opacity='0.08' transform='rotate(45 20 20)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Eastern Arch and Dome Styling */
.dome-frame {
  border-radius: 160px 160px 24px 24px;
  overflow: hidden;
  border: 1.5px solid rgba(134, 118, 78, 0.25);
  box-shadow: 0 20px 45px rgba(61, 56, 52, 0.06);
  transition: var(--transition-smooth);
}

.eastern-arch {
  border-top-left-radius: 50% 30%;
  border-top-right-radius: 50% 30%;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(134, 118, 78, 0.15);
}


/* Custom Scrollbar for Luxury Feeling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-base);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--green-base);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-fa);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: normal;
}

body[dir="ltr"] {
  font-family: var(--font-en-sans);
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Typography Utilities */
.font-serif {
  font-family: var(--font-en-serif);
}
.font-sans {
  font-family: var(--font-en-sans);
}
.text-gold {
  color: var(--gold-base);
}
.text-green {
  color: var(--green-base);
}
.text-muted {
  color: var(--text-muted);
}

h1, h2, h3, h4, h5, h6, .title, .hero-title {
  font-family: var(--font-fa-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

body[dir="ltr"] h1, 
body[dir="ltr"] h2,
body[dir="ltr"] h3,
body[dir="ltr"] h4,
body[dir="ltr"] h5,
body[dir="ltr"] h6,
body[dir="ltr"] .title, 
body[dir="ltr"] .hero-title {
  font-family: var(--font-en-serif);
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 3rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Glassmorphism / Luxury Panels */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(197, 160, 89, 0.25);
  box-shadow: 0 20px 50px -15px rgba(19, 58, 27, 0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  gap: 12px;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-base), var(--gold-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.15);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(197, 160, 89, 0.35);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  border-color: var(--green-base);
  color: var(--green-base);
}

.btn-outline:hover {
  background: var(--green-base);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(19, 58, 27, 0.15);
}

/* Luxury Floating Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled,
.site-header.force-scrolled {
  padding: 16px 0;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(19, 58, 27, 0.04);
  box-shadow: var(--glass-shadow);
}

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

/* Brand Logo: transparent gold is styled to be white on dark/green backgrounds, reverting to original gold on scroll */
.site-header .logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.site-header .logo img {
  height: 60px;
  display: block;
  filter: brightness(0) invert(1); /* Pure white on transparent/dark header */
  transition: var(--transition-smooth);
}

.site-header .logo:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

/* On scrolled state, logo merges seamlessly into the light cream header background */
.site-header.scrolled .logo img,
.site-header.force-scrolled .logo img {
  height: 50px; /* slightly more compact when scrolled */
  filter: none; /* Reverts to original gold color on scrolled light background */
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

/* Link colors adapt dynamically to hero (transparent header) or scrolled header */
.site-header .nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9); /* White text on dark hero overlay */
  position: relative;
  padding: 8px 0;
  transition: var(--transition-fast);
}

.site-header .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-light); /* Highly visible light gold cream on green background */
  transition: var(--transition-fast);
}

.site-header .nav-links a:hover, 
.site-header .nav-links a.active {
  color: var(--gold-light); /* High contrast light gold on green/teal */
}

.site-header .nav-links a:hover::after, 
.site-header .nav-links a.active::after {
  width: 100%;
}

/* Scrolled link states */
.site-header.scrolled .nav-links a,
.site-header.force-scrolled .nav-links a {
  color: var(--text-primary);
}

.site-header.scrolled .nav-links a:hover, 
.site-header.scrolled .nav-links a.active,
.site-header.force-scrolled .nav-links a:hover,
.site-header.force-scrolled .nav-links a.active {
  color: var(--gold-base); /* Reverts to Pantone Gold on scrolled light cream background */
}

.site-header.scrolled .nav-links a::after,
.site-header.force-scrolled .nav-links a::after {
  background: var(--gold-base);
}

/* Language toggle adapters */
.site-header .lang-switch {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 30px;
  display: flex;
  gap: 8px;
  font-weight: 600;
}

.site-header .lang-switch a {
  transition: var(--transition-fast);
  color: rgba(255, 255, 255, 0.7);
}

.site-header .lang-switch a:hover {
  color: var(--gold-light); /* Changed to gold-light for high visibility */
}

.site-header .lang-switch a.active {
  color: var(--gold-light); /* Changed to gold-light for high visibility */
}

/* Scrolled language switcher states */
.site-header.scrolled .lang-switch,
.site-header.force-scrolled .lang-switch {
  color: var(--text-muted);
  border-color: rgba(19, 58, 27, 0.1);
}

.site-header.scrolled .lang-switch a,
.site-header.force-scrolled .lang-switch a {
  color: var(--text-muted);
}

.site-header.scrolled .lang-switch a:hover,
.site-header.force-scrolled .lang-switch a:hover {
  color: var(--green-base);
}

.site-header.scrolled .lang-switch a.active,
.site-header.force-scrolled .lang-switch a.active {
  color: var(--gold-dark);
}

/* Sections & Spacing */
.section-padding {
  padding: 140px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.subtitle {
  font-size: 0.85rem;
  color: var(--gold-base);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 15px;
  display: block;
  font-weight: 700;
}

.title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--green-base);
  letter-spacing: -0.02em;
}

/* Premium Article Content Styling */
.article-body-content {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 2.2;
}

.article-body-content p {
  margin-bottom: 30px;
  text-align: justify;
}

.article-body-content strong {
  color: var(--green-dark);
  font-weight: 700;
}

.article-body-content h2, 
.article-body-content h3 {
  color: var(--green-base);
  margin: 50px 0 25px;
  font-size: 1.7rem;
  font-weight: 700;
}

.article-body-content figure {
  margin: 50px 0;
  text-align: center;
}

.article-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(19, 58, 27, 0.08);
  border: 1px solid rgba(19, 58, 27, 0.04);
  transition: var(--transition-smooth);
}

.article-body-content img:hover {
  transform: scale(1.01);
  box-shadow: 0 25px 60px rgba(19, 58, 27, 0.12);
}

.article-body-content blockquote {
  margin: 40px 0;
  padding: 20px 40px;
  border-right: 4px solid var(--gold-base);
  background: var(--gold-light);
  font-style: italic;
  border-radius: 8px;
}

body[dir="ltr"] .article-body-content blockquote {
  border-right: none;
  border-left: 4px solid var(--gold-base);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Section */
.site-footer {
  background: linear-gradient(rgba(61, 56, 52, 0.96), rgba(61, 56, 52, 0.98)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 0 L40 20 L20 40 L0 20 Z' fill='none' stroke='%2386764e' stroke-width='0.5' stroke-opacity='0.15'/%3E%3Crect x='18' y='18' width='4' height='4' fill='%2386764e' fill-opacity='0.1' transform='rotate(45 20 20)'/%3E%3C/svg%3E");
  color: #fff;
  padding: 100px 0 40px;
  border-top: 1px solid rgba(134, 118, 78, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.footer-brand h3 {
  font-size: 1.8rem;
  color: var(--gold-base);
  margin-bottom: 25px;
  font-weight: 700;
}

.footer-brand p {
  color: #d5d6d0;
  max-width: 380px;
  margin-bottom: 30px;
  line-height: 1.9;
}

.footer-links h4 {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 16px;
}

.footer-links ul li a {
  color: #b5b6b0;
  font-weight: 500;
  transition: var(--transition-fast);
}

.footer-links ul li a:hover {
  color: var(--gold-base);
  padding-right: 5px;
}

body[dir="ltr"] .footer-links ul li a:hover {
  padding-right: 0;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #85868a;
  font-size: 0.9rem;
}

/* Responsiveness overrides */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* Mobile Toggle Hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: #FFFFFF; /* High contrast white bars on transparent dark hero header */
  transition: var(--transition-fast);
  transform-origin: left center;
}

.site-header.scrolled .mobile-menu-toggle span,
.site-header.force-scrolled .mobile-menu-toggle span {
  background-color: var(--text-primary); /* Dark cocoa bars on scrolled header */
}

.mobile-menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(2px, -2px);
  background-color: var(--green-base);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(1px, 2px);
  background-color: var(--green-base);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    box-shadow: 15px 0 40px rgba(19, 58, 27, 0.08);
    flex-direction: column;
    padding: 120px 40px;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
  }
  
  body[dir="rtl"] .nav-links {
    left: auto;
    right: -100%;
    border-right: none;
    border-left: 1px solid var(--glass-border);
    box-shadow: -15px 0 40px rgba(19, 58, 27, 0.08);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  /* Link alignment inside mobile drawer */
  .nav-links a {
    color: var(--text-primary) !important; /* Ensure it is dark and readable inside drawer */
  }
  
  .nav-links a:hover, 
  .nav-links a.active {
    color: var(--green-base) !important;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  body[dir="rtl"] .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    font-size: 1.2rem;
    display: block;
    width: 100%;
  }
}

/* RTL Persian Typography Overrides to preserve cursive connections */
body[dir="rtl"],
body[dir="rtl"] .subtitle,
body[dir="rtl"] .title,
body[dir="rtl"] .footer-links h4,
body[dir="rtl"] .nav-links a {
  letter-spacing: normal !important;
}

/* Responsive Grid for Product Details Page */
.product-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Responsive Specs Grid on Product Details Page */
.product-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* Responsive Image Container on Product Details Page */
.product-image-container {
  padding: 60px;
  text-align: center;
  background: var(--bg-alt);
}

/* Responsive Catalog Grid on Products Listing Page */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

/* Mobile Media Queries for Layouts */
@media (max-width: 991px) {
  .product-details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .product-image-container {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .product-specs-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* Global Responsive Grid Layout Classes */
.tales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 991px) {
  .tales-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}
@media (max-width: 768px) {
  .tales-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  /* Remove margin-top on mobile since they stack vertically */
  .tales-grid > .glass-panel {
    margin-top: 0 !important;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 991px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Guide Page Layout Styles */
.guide-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.guide-sidebar {
  position: sticky;
  top: 110px;
  background: var(--bg-alt);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  padding: 24px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.guide-sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-sidebar-menu li a {
  display: block;
  padding: 14px 20px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  white-space: normal;
  line-height: 1.4;
}

body[dir="rtl"] .guide-sidebar-menu li a {
  font-family: var(--font-fa);
}

.guide-sidebar-menu li a:hover {
  background: var(--gold-light);
  color: var(--gold-brand);
}

.guide-sidebar-menu li a.active {
  background: var(--gold-brand);
  color: #fff;
  border-color: var(--gold-dark);
  box-shadow: 0 4px 15px rgba(134, 118, 78, 0.25);
}

.guide-content {
  background: var(--bg-alt);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  padding: 50px;
  min-height: 600px;
}

.guide-chapter {
  display: none;
}

.guide-chapter.active {
  display: block;
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-chapter h2 {
  font-size: 2.2rem;
  color: var(--gold-brand);
  margin-bottom: 25px;
  border-bottom: 2px solid var(--gold-light);
  padding-bottom: 15px;
  font-weight: 700;
}

body[dir="rtl"] .guide-chapter h2 {
  font-family: var(--font-fa);
}

.guide-chapter p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 24px;
  text-align: justify;
}

.guide-chapter strong {
  color: var(--text-primary);
  font-weight: 700;
}

.guide-chapter blockquote {
  background: var(--gold-light);
  border-right: 4px solid var(--gold-base);
  border-radius: 12px;
  padding: 24px 30px;
  margin: 35px 0;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.8;
}

body[dir="ltr"] .guide-chapter blockquote {
  border-right: none;
  border-left: 4px solid var(--gold-base);
}

/* Call-to-action banner for products within guide */
.guide-product-callout {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 25px;
  align-items: center;
  background: var(--bg-main);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 25px 35px;
  margin-top: 50px;
  transition: var(--transition-fast);
}

.guide-product-callout:hover {
  border-color: var(--gold-brand);
  box-shadow: 0 10px 30px rgba(134, 118, 78, 0.12);
}

.guide-product-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(61,56,52,0.15));
  transition: var(--transition-fast);
}

.guide-product-callout:hover .guide-product-img {
  transform: scale(1.05);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Overrides for Guide Page */
@media (max-width: 991px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .guide-sidebar {
    position: static;
    max-height: none;
    padding: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    border-radius: 16px;
    -webkit-overflow-scrolling: touch;
  }
  
  .guide-sidebar-menu {
    flex-direction: row;
    gap: 12px;
  }
  
  .guide-sidebar-menu li {
    display: inline-block;
  }
  
  .guide-sidebar-menu li a {
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  .guide-content {
    padding: 35px 24px;
  }
  
  .guide-product-callout {
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .guide-product-callout .btn {
    grid-column: span 2;
    margin-top: 10px;
    width: 100%;
  }
}

/* Navigation Dropdown Styles */
.nav-links li {
  position: relative;
}

.nav-links li.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--bg-alt);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  list-style: none;
  padding: 10px 0;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

body[dir="rtl"] .dropdown-menu {
  text-align: right;
}

body[dir="ltr"] .dropdown-menu {
  text-align: left;
}

.dropdown-menu li {
  width: 100%;
}

.site-header .nav-links .dropdown-menu a {
  display: block;
  padding: 12px 24px;
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  border-radius: 0;
  border: none !important;
  font-weight: 600;
  text-decoration: none;
}

.site-header .nav-links .dropdown-menu a::after {
  display: none !important;
}

.site-header .nav-links .dropdown-menu a:hover,
.site-header .nav-links .dropdown-menu a.active {
  background: var(--gold-light) !important;
  color: var(--gold-brand) !important;
}

/* Dropdown Menu Mobile Styling */
@media (max-width: 991px) {
  .nav-links {
    overflow-y: auto;
  }
  
  .nav-links li.has-dropdown {
    width: 100%;
    text-align: center;
  }
  
  .nav-links li.has-dropdown.open .dropdown-menu {
    max-height: 500px;
    padding: 10px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(134, 118, 78, 0.1);
    border-bottom: 1px solid rgba(134, 118, 78, 0.1);
  }
  
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: rgba(134, 118, 78, 0.04);
    border-radius: 10px;
    padding: 0;
    margin-top: 0;
    width: 100%;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: none;
  }
  
  .nav-links li.has-dropdown > a {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .dropdown-menu li a {
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* --- Home Page Redesign Styles --- */

/* Responsive Grid System (Mobile-First) */
.home-grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.home-grid-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.home-grid-4col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 577px) {
  .home-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .home-grid-2col {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }
  .home-grid-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  .home-grid-4col {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
}

/* Hero enhancements */
.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 992px) {
  .home-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Essence Section */
.home-essence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 992px) {
  .home-essence-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
  }
}

body[dir="ltr"] .home-essence-grid {
  @media (min-width: 992px) {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* Featured Products Section */
.featured-product-card {
  position: relative;
  background: var(--bg-alt);
  border: 1.5px solid rgba(134, 118, 78, 0.12);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  transition: var(--transition-smooth);
}
.featured-product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(134, 118, 78, 0.3);
  box-shadow: 0 15px 40px rgba(61, 56, 52, 0.08);
}
.featured-product-img-wrapper {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}
.featured-product-card:hover .featured-product-img-wrapper {
  transform: scale(1.05);
}
.featured-product-img-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.featured-product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  border-top: 1px solid rgba(134, 118, 78, 0.1);
  padding-top: 12px;
}
.featured-product-origin {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Brewing Interactive Dashboard */
.brewing-dashboard {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.brewing-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.brewing-tab-btn {
  background: rgba(134, 118, 78, 0.06);
  border: 1px solid rgba(134, 118, 78, 0.15);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.95rem;
  font-family: inherit;
}
.brewing-tab-btn:hover {
  background: rgba(134, 118, 78, 0.12);
  color: var(--gold-brand);
}
.brewing-tab-btn.active {
  background: var(--gold-brand);
  color: #fff;
  border-color: var(--gold-brand);
  box-shadow: 0 4px 15px rgba(134, 118, 78, 0.25);
}
.brewing-display {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 992px) {
  .brewing-display {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.brewing-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.brewing-stat-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(134, 118, 78, 0.1);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: var(--transition-fast);
}
.brewing-stat-box i {
  font-size: 1.8rem;
  color: var(--brand-turquoise);
  margin-bottom: 10px;
}
.brewing-stat-val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.brewing-stat-lbl {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Tales of Rendezvous Slider */
.tales-slider-wrapper {
  position: relative;
  overflow: hidden;
  padding: 10px;
  width: 100%;
}
.tales-slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}
.tales-slide {
  flex: 0 0 100%;
  padding: 0 15px;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .tales-slide {
    flex: 0 0 50%;
  }
}
@media (min-width: 1200px) {
  .tales-slide {
    flex: 0 0 33.333%;
  }
}
.tales-slide-card {
  height: 100%;
  background: var(--bg-alt);
  padding: 30px;
  border-radius: 24px;
  border: 1.5px solid rgba(134, 118, 78, 0.15);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}
.tales-slide-card:hover {
  transform: translateY(-5px);
  border-color: rgba(134, 118, 78, 0.3);
  box-shadow: 0 15px 35px rgba(61, 56, 52, 0.08);
}
.tales-slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
}
.tales-slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1.5px solid rgba(134, 118, 78, 0.2);
  color: var(--gold-brand);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.tales-slider-btn:hover {
  background: var(--gold-brand);
  color: #fff;
  border-color: var(--gold-brand);
}
.tales-slider-dots {
  display: flex;
  gap: 8px;
}
.tales-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(134, 118, 78, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}
.tales-slider-dot.active {
  background: var(--gold-brand);
  width: 25px;
  border-radius: 10px;
}

/* --- Redesigned Hero Section CSS --- */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Premium radial gradient shifting from deep Firoozei to charcoal/dark teal */
  background: radial-gradient(circle at 50% 30%, #15afbe 0%, #109aa9 45%, #0a6f7a 75%, #053b41 110%);
  padding-top: 100px;
}

.hero-bg-glow-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(0,0,0,0) 70%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-bg-glow-2 {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(134, 118, 78, 0.12) 0%, rgba(0,0,0,0) 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-text-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

body[dir="ltr"] .hero-text-col {
  text-align: left;
}

.hero-subtitle {
  color: var(--gold-light);
  font-size: 0.95rem;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: normal;
}

body[dir="ltr"] .hero-subtitle {
  letter-spacing: 4px;
}

.hero-title {
  font-size: 4.2rem;
  margin: 15px 0 25px;
  font-weight: 800;
  line-height: 1.35;
  background: linear-gradient(to bottom, #FFFFFF 40%, #f5eedb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(10, 115, 127, 0.35);
  text-align: right;
  width: 100%;
}

body[dir="ltr"] .hero-title {
  text-align: left;
  font-family: var(--font-en-serif);
}

.hero-title .editorial-italic {
  font-family: 'Karim', inherit;
  font-weight: 700;
  font-style: italic;
  display: inline-block;
}

body[dir="ltr"] .hero-title .editorial-italic {
  font-family: var(--font-en-serif);
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 650px;
  margin: 0 0 40px;
  line-height: 2.1;
  font-weight: 400;
  text-align: right;
}

body[dir="ltr"] .hero-desc {
  text-align: left;
}

.hero-actions {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Glassmorphic Outline Button for Hero */
.btn-hero-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.btn-hero-outline:hover {
  background: #ffffff;
  color: var(--text-primary);
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Hero visual collage elements */
.hero-glow-backdrop {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(0,0,0,0) 75%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

.hero-arch-path {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-leaf {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.floating-leaf.leaf-1 {
  top: 12%;
  left: 15%;
  width: 35px;
  height: 35px;
  opacity: 0.7;
  transform: rotate(15deg);
}

.floating-leaf.leaf-2 {
  bottom: 18%;
  right: 18%;
  width: 25px;
  height: 25px;
  opacity: 0.6;
  transform: rotate(-45deg);
}

/* Responsive Grid overrides and collage styling */
.hero-visual-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  width: 100%;
}

.floating-pack {
  position: absolute;
  transition: var(--transition-smooth);
  pointer-events: auto;
}

.floating-pack img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.pack-main {
  z-index: 4;
  width: 220px;
  filter: drop-shadow(0 20px 35px rgba(0,0,0,0.35));
  animation: float-main 6s ease-in-out infinite;
}

.pack-right {
  z-index: 3;
  right: 8%;
  top: 12%;
  width: 170px;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
  opacity: 0.95;
  animation: float-right 7s ease-in-out infinite;
}

.pack-left {
  z-index: 5;
  left: 8%;
  bottom: 8%;
  width: 180px;
  filter: drop-shadow(0 25px 30px rgba(0,0,0,0.35));
  animation: float-left 8s ease-in-out infinite;
}

/* Responsive adjustments for hero layout */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 991px) {
  .hero-section {
    padding-top: 140px;
    min-height: auto;
    padding-bottom: 80px;
  }
  .hero-title {
    font-size: 2.8rem;
    text-align: center;
  }
  .hero-subtitle {
    text-align: center;
    width: 100%;
    margin-bottom: 5px;
  }
  .hero-desc {
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: center;
    max-width: 100%;
    margin-bottom: 30px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-text-col {
    align-items: center;
  }
  .hero-visual-col {
    height: 400px;
    margin-top: 20px;
  }
  .pack-main {
    width: 160px;
  }
  .pack-right {
    width: 120px;
    right: 5%;
    top: 15%;
  }
  .pack-left {
    width: 130px;
    left: 5%;
    bottom: 10%;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .hero-title {
    font-size: 2.1rem;
    line-height: 1.4;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-visual-col {
    height: 320px;
  }
  .pack-main {
    width: 130px;
  }
  .pack-right {
    width: 95px;
    right: 8%;
    top: 10%;
  }
  .pack-left {
    width: 105px;
    left: 8%;
    bottom: 8%;
  }
}




