/*
Theme Name: E.Shahin Theme (Clean)
Description: Clean & consolidated. Hero uses variables; logo centered; homepage-only product styles.
Author: E.Shahin
Version: 1.4.0 - Cleaned & Organized
*/

/* ========== CSS Variables ========== */
:root {
  --header-h: 110px;
  --brand-ink: #2c1810;
  --brand: #8B4513;
  --paper: #ffffff;
  --cream: #fbf7f2;
  
  /* Animation variables */
  --lift: 12px;
  --shine-speed: 900ms;
  
  /* Hero variables */
  --hero-min: 65vh;
  --hero-pt: 100px;
  --hero-pb: 60px;
  
  /* 🔥 UNIFIED HIGHLIGHT COLOR VARIABLES - CHANGE COLORS HERE 🔥 */
  --product-highlight-color: #8B4513;  /* Main highlight color - CHANGE THIS */
  --product-highlight-hover: rgba(139, 69, 19, 0.3);  /* Hover shadow - CHANGE THIS */
}

/* ========== Reset & Base ========== */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6; 
  color: #333; 
  background: #fff;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top)); 
}

body.admin-bar { 
  padding-top: calc(var(--header-h) + 46px + env(safe-area-inset-top)); 
}

/* ========== Header ========== */
.header {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.1);
  height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  -webkit-mask-image: linear-gradient(to bottom, black 0, black calc(100% - 15px), transparent 100%);
  mask-image: linear-gradient(to bottom, black 0, black calc(100% - 15px), transparent 100%);
}

body.admin-bar .header { 
  top: 46px; 
}

.nav-container {
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 2rem;
  height: 100%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px;
}

/* Logo */
.site-logo { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin: 0 auto; 
  gap: 10px; 
  width: 100%; 
  text-align: center; 
  position: relative;
  z-index: 10;
}

.custom-logo-link { 
  display: inline-flex; 
}

.custom-logo-link img.custom-logo, 
.site-logo img { 
  display: block; 
  height: var(--header-h); 
  max-height: var(--header-h); 
  width: auto; 
  object-fit: contain; 
}

/* Hide navigation elements for centered logo */
.header .mobile-menu-toggle, 
.header .nav-menu, 
.header .site-title, 
.header .logo::before { 
  display: none !important; 
}

.nav-menu a, 
.nav-menu a::after, 
.nav-menu a::before { 
  text-decoration: none !important; 
  border: none !important; 
  box-shadow: none !important; 
}

.nav-menu a::after { 
  content: none !important; 
}

/* ========== Hero Section ========== */
.hero.hero--custom {
  min-height: var(--hero-min) !important;
  padding-top: var(--hero-pt) !important;
  padding-bottom: var(--hero-pb) !important;
  background: linear-gradient(135deg, #f4f1e8 0%, #e8dcc6 100%);
  display: flex; 
  align-items: center; 
  justify-content: center;
  position: relative; 
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0, #000 80px, #000 calc(100% - 80px), rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0, #000 80px, #000 calc(100% - 80px), rgba(0,0,0,0) 100%);
}

.hero.hero--custom::before {
  content: ''; 
  position: absolute; 
  top: 0; 
  right: -20%; 
  width: 60%; 
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23D2B48C" opacity="0.3"/></svg>') repeat;
  animation: float 20s infinite linear;
}

/* Hero product cards entrance animation */
@keyframes heroProductAppear {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Staggered animation delays for each product card */
.product-card:nth-child(1) { animation-delay: 0.2s; }
.product-card:nth-child(2) { animation-delay: 0.4s; }
.product-card:nth-child(3) { animation-delay: 0.6s; }
.product-card:nth-child(4) { animation-delay: 0.8s; }

/* Enhanced hover effects for hero product cards */
.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

@keyframes float { 
  0% { transform: translateY(0) rotate(0); } 
  100% { transform: translateY(-100px) rotate(360deg); } 
}

/* Hero with video background */
#home.hero.has-video { 
  position: relative; 
  overflow: hidden; 
}

#home.hero.has-video .hero-video-wrap { 
  position: absolute; 
  inset: 0; 
  z-index: 0; 
}

#home.hero.has-video .hero-video { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: 50% 50%; 
}

.hero.hero--custom.has-video::before { 
  display: none !important; 
}

#home.hero.has-video .hero-overlay { 
  position: absolute; 
  inset: 0; 
  z-index: 1; 
  background: rgba(255,255,255,.60); 
}

#home.hero.has-video .hero-content { 
  position: relative; 
  z-index: 2; 
}

.hero-content {
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 2rem;
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 4rem; 
  align-items: center; 
  z-index: 2; 
  text-align: left;
}

.hero-text h1 { 
  font-size: clamp(2.5rem, 5vw, 4rem); 
  font-weight: 800; 
  color: #2c1810; 
  margin-bottom: 1.5rem; 
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  animation: heroTextSlideUp 1s ease forwards;
  animation-delay: 0.1s;
}

.tagline { 
  font-size: 1.3rem; 
  color: #8B4513; 
  margin-bottom: 2rem; 
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextSlideUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

.hero-text p { 
  font-size: 1.1rem; 
  color: #666; 
  margin-bottom: 2.5rem; 
  max-width: 500px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextSlideUp 0.8s ease forwards;
  animation-delay: 0.5s;
}

.cta-buttons { 
  display: flex; 
  gap: 1rem; 
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextSlideUp 0.8s ease forwards;
  animation-delay: 0.7s;
}

/* Hero text entrance animation */
@keyframes heroTextSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔥 FIXED: UNIFIED PRODUCT NAME HIGHLIGHTS IN HERO TEXT 🔥 */
.hero-text .product-highlight,
.hero-text .product-highlight.tahina,
.hero-text .product-highlight.halawa,
.hero-text .product-highlight.loukoum {
  color: var(--product-highlight-color) !important; /* Uses unified color variable */
  font-weight: 700;
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  animation: productNamePop 0.8s ease forwards;
}

/* Keep the different animation delays for staggered effect */
.hero-text .product-highlight.tahina {
  animation-delay: 0.8s;
}

.hero-text .product-highlight.halawa {
  animation-delay: 1.0s;
}

.hero-text .product-highlight.loukoum {
  animation-delay: 1.2s;
}

/* Product name pop-in animation */
@keyframes productNamePop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  60% {
    transform: translateY(-2px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Unified hover effect for product names */
.hero-text .product-highlight:hover {
  color: var(--product-highlight-color) !important; /* Same color on hover */
  text-shadow: 0 0 8px var(--product-highlight-hover);
  transition: text-shadow 0.3s ease;
}

/* Override any link colors that might interfere */
.hero-text .product-highlight a,
.hero-text .product-highlight a:visited,
.hero-text .product-highlight a:link,
.hero-text .product-highlight a:hover {
  color: inherit !important;
  text-decoration: none;
}

.btn { 
  padding: 1rem 2rem; 
  border: none; 
  border-radius: 50px; 
  font-size: 1rem; 
  font-weight: 600; 
  text-decoration: none; 
  display: inline-flex; 
  align-items: center; 
  gap: .5rem; 
  transition: all .3s ease; 
  cursor: pointer;
  transform: scale(0.95);
  animation: buttonPop 0.6s ease forwards;
}

.btn:nth-child(1) { animation-delay: 0.9s; }
.btn:nth-child(2) { animation-delay: 1.1s; }

/* Button pop-in animation */
@keyframes buttonPop {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(10px);
  }
  70% {
    transform: scale(1.02) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.btn-primary { 
  background: linear-gradient(135deg, #8B4513, #A0522D); 
  color: #fff; 
  box-shadow: 0 4px 15px rgba(139,69,19,.3); 
}

.btn-secondary {
  background: transparent !important;
  color: #8B4513 !important;
  border: 2px solid #8B4513 !important;
}

.btn-secondary:hover {
  background: #f8f6f0 !important;
  color: #8B4513;
  border-color: #8B4513;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139,69,19,.2);
}

.hero-visual { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  position: relative; 
}

.product-showcase { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 1rem; 
  max-width: 400px; 
}

.product-card { 
  background: #fff; 
  padding: 1.5rem; 
  border-radius: 20px; 
  box-shadow: 0 10px 30px rgba(0,0,0,.1); 
  text-align: center; 
  transition: all .4s ease;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  animation: heroProductAppear 0.8s ease forwards;
}

.product-card .icon-photo { 
  width: 100px;
  height: 100px;
  border-radius: 20px; 
  overflow: hidden; 
  margin: 0 auto .75rem; 
  display: flex !important; 
  align-items: center !important; 
  justify-content: center !important;
  background: #fff; 
  box-shadow: 0 8px 20px rgba(0,0,0,.15); 
  text-decoration: none;
  padding: 12px;
  transition: all .35s ease;
}

.product-card .icon-photo img { 
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
  transition: transform .3s ease;
}

.product-card:hover .icon-photo { 
  transform: translateY(-4px) scale(1.05); 
  box-shadow: 0 15px 35px rgba(0,0,0,.25); 
}

.product-card:hover .icon-photo img {
  transform: scale(1.1);
}

/* Hero icon links styling */
#home .product-showcase .product-card a,
#home .product-showcase .product-card h3,
#home .product-showcase .product-card h3 a { 
  text-decoration: none;
  color: var(--brand-ink);
  transition: color .3s ease;
}

#home .product-showcase .product-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  transform: translateY(10px);
  opacity: 0;
  animation: heroTextAppear 0.6s ease forwards;
}

#home .product-showcase .product-card:nth-child(1) h3 { animation-delay: 0.4s; }
#home .product-showcase .product-card:nth-child(2) h3 { animation-delay: 0.6s; }
#home .product-showcase .product-card:nth-child(3) h3 { animation-delay: 0.8s; }
#home .product-showcase .product-card:nth-child(4) h3 { animation-delay: 1.0s; }

@keyframes heroTextAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#home .product-showcase .product-card h3 a:hover,
#home .product-showcase .product-card h3 a:focus {
  color: var(--brand);
}

/* ========== About Section ========== */
.about { 
  padding: 15rem 0; 
  background: #fff; 
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 40px, rgba(0,0,0,0.7) 80px, black 120px, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 40px, rgba(0,0,0,0.7) 80px, black 120px, black 100%);
}

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 2rem; 
}

.section-header { 
  text-align: center; 
  margin-bottom: 4rem; 
}

.section-header h2 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  color: #2c1810; 
  font-weight: 800; 
  letter-spacing: .2px; 
  margin: 0 0 12px;
}

.section-header p { 
  font-size: 1.2rem; 
  color: #666; 
  max-width: 600px; 
  margin: 0 auto; 
}

.about-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 4rem; 
  align-items: center; 
}

.about-text h3 { 
  font-size: 1.8rem; 
  color: #8B4513; 
  margin-bottom: 1.5rem; 
  font-weight: 600; 
}

.about-text p { 
  margin-bottom: 1.5rem; 
  font-size: 1.1rem; 
  line-height: 1.7; 
}

.heritage-stats { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 2rem; 
  margin-top: 3rem; 
}

.stat { 
  text-align: center; 
  padding: 2rem; 
  background: #f8f6f0; 
  border-radius: 15px; 
}

.stat-number { 
  font-size: 2.5rem; 
  font-weight: 800; 
  color: #8B4513; 
  display: block; 
  font-variant-numeric: tabular-nums; 
  will-change: contents; 
}

.stat-label { 
  color: #666; 
  font-weight: 500; 
  margin-top: .5rem; 
}

/* About with video background */
.about.has-video { 
  position: relative; 
  overflow: hidden; 
  background: transparent; 
}

.about-video-wrap { 
  position: absolute; 
  inset: 0; 
  z-index: 0; 
}

.about.has-video .about-video {
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%;
  object-fit: cover; 
  object-position: center; 
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 80px, black calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, black 80px, black calc(100% - 40px), transparent 100%);
}

.about.has-video .about-overlay {
  position: absolute; 
  inset: 0; 
  z-index: 1;
  background: linear-gradient(to bottom, #e8dcc6 0, rgba(232,220,198,.85) 20px, rgba(232,220,198,.40) 90px, rgba(232,220,198,0) 160px), radial-gradient(80% 60% at 50% 40%, rgba(255,255,255,.40) 0%, rgba(255,255,255,.82) 100%);
  pointer-events: none;
}

.about.has-video .container { 
  position: relative; 
  z-index: 2; 
}

/* ========== Products Section (Homepage Only) ========== */
body.home section#products {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8f6f0 0%, #f4f1e8 100%);
}

body.home section#products .products-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem; 
  margin-top: 3rem; 
  align-items: stretch;
}

body.home section#products .product-item {
  background: #fff; 
  border-radius: 20px; 
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,.08);
  transition: all .3s ease;
  margin: 0 auto; 
  display: flex; 
  flex-direction: column; 
  height: 100%; 
  max-width: 400px;
  opacity: 0; 
  transform: translateY(26px);
  transform-style: preserve-3d; 
  will-change: transform, opacity;
}

body.home section#products .product-item.is-visible { 
  opacity: 1; 
  transform: translateY(0); 
}

body.home section#products .pi-image {
  background: transparent; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  position: relative; 
  overflow: hidden; 
  transition: all .35s ease; 
  cursor: pointer;
  aspect-ratio: 4 / 3; 
  height: auto; 
  min-height: 280px;
}

body.home section#products .pi-image::before {
  content: ''; 
  position: absolute; 
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,.1));
  transition: all .35s ease;
}

body.home section#products .pi-image img {
  width: 100%; 
  height: 100%; 
  object-fit: contain;
  z-index: 2; 
  position: relative; 
  transition: transform .25s ease; 
  transform: translateZ(0);
}

/* Hover effects */
body.home section#products .product-item:hover,
body.home section#products .product-item.is-hovered {
  transform: translateY(calc(-1 * var(--lift)));
  box-shadow: 0 28px 60px rgba(44,24,16,.18);
  border-color: rgba(139,69,19,.18);
}

body.home section#products .product-item:hover .pi-image,
body.home section#products .product-item.is-hovered .pi-image {
  background: radial-gradient(80% 60% at 60% 30%, rgba(139,69,19,.10), rgba(139,69,19,0) 62%), linear-gradient(180deg, var(--paper), var(--cream));
  box-shadow: inset 0 0 0 1px rgba(139,69,19,.14), 0 12px 24px rgba(44,24,16,.08);
}

body.home section#products .product-item:hover .pi-image img,
body.home section#products .product-item.is-hovered .pi-image img {
  transform: translateZ(30px) scale(1.04);
}

/* Shine effect */
body.home section#products .pi-image::after {
  content: "";
  position: absolute; 
  inset: -20%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 45%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 55%);
  transform: translateX(-120%);
  pointer-events: none;
}

body.home section#products .product-item:hover .pi-image::after,
body.home section#products .product-item.is-hovered .pi-image::after {
  animation: shine var(--shine-speed) linear forwards;
}

@keyframes shine { 
  to { transform: translateX(120%); } 
}

/* Product info */
body.home section#products .product-info { 
  padding: 2rem; 
  flex: 1 1 auto; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  text-align: center; 
  align-items: center; 
  gap: .75rem; 
}

body.home section#products .product-info h3 {
  margin: .25rem 0; 
  font-size: 2rem; 
  font-weight: 700; 
  line-height: 1.25; 
  letter-spacing: .2px; 
  color: #2c1810;
  position: relative;
}

body.home section#products .product-info h3::after {
  content: ""; 
  position: absolute; 
  left: 50%; 
  bottom: -6px;
  width: 0; 
  height: 3px; 
  background: #8B4513; 
  border-radius: 3px;
  transform: translateX(-50%); 
  transition: width .25s ease;
}

body.home section#products .product-item:hover .product-info h3::after,
body.home section#products .product-item.is-hovered .product-info h3::after {
  width: 60%;
}

body.home section#products .product-info p { 
  margin: 0 0 .75rem; 
  color: #666; 
  max-width: 28ch; 
}

body.home section#products .product-features { 
  display: flex; 
  gap: .5rem; 
  flex-wrap: wrap; 
}

body.home section#products .feature-tag { 
  background: #8B4513; 
  color: #fff; 
  padding: .3rem .8rem; 
  border-radius: 20px; 
  font-size: .8rem; 
  font-weight: 500; 
}

/* Button effects */
body.home section#products .btn.btn-primary {
  position: relative; 
  overflow: hidden; 
  transform: translateZ(0);
  transition: transform .2s ease;
}

body.home section#products .btn.btn-primary:after {
  content: ""; 
  position: absolute; 
  left: var(--rx, 50%); 
  top: var(--ry, 50%);
  width: 10px; 
  height: 10px; 
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none; 
  opacity: 0;
  transition: transform .6s ease, opacity .6s ease;
}

body.home section#products .btn.btn-primary.is-rippling:after {
  transform: translate(-50%, -50%) scale(18); 
  opacity: 0;
}

/* Touch device animations */
@media (hover: none) {
  @keyframes floaty { 
    0% { transform: translateY(0); } 
    50% { transform: translateY(-4px); } 
    100% { transform: translateY(0); } 
  }
  
  body.home section#products .pi-image img { 
    animation: floaty 4s ease-in-out infinite; 
  }
}

/* ========== Product Single Page ========== */
.product-single-wrap { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 80px 16px; 
}

.product-footer { 
  margin-top: 60px; 
  text-align: center; 
}

.product-title { 
  font-family: "Georgia", serif; 
  font-size: 2.2rem; 
  font-weight: 700; 
  color: #8B4513; 
  text-align: center; 
  margin-bottom: 30px; 
}

/* ========== Split Promo & Image Slider ========== */
.split-slider-section { 
  background: linear-gradient(135deg, #f8f6f0 0%, #f4f1e8 100%); 
  padding: 48px 0 40px; 
}

.split-slider { 
  display: grid; 
  grid-template-columns: 1.05fr 1.35fr; 
  gap: 36px; 
  align-items: center; 
}

.ss-text { 
  max-width: 560px; 
}

.ss-text h2 { 
  font-size: clamp(2rem, 3.6vw, 2.6rem); 
  color: #2c1810; 
  margin: 0 0 12px; 
  font-weight: 800; 
  letter-spacing: .2px; 
}

.ss-text p { 
  color: #4b4038; 
  margin: 0 0 12px; 
}

.ss-bullets { 
  margin: 8px 0 16px 1.2em; 
  color: #4b4038; 
}

.ss-bullets li { 
  margin: 6px 0; 
}

.ss-closing { 
  margin-top: 8px; 
  font-weight: 600; 
  color: #2c1810; 
}

.ss-viewport { 
  position: relative; 
  overflow: hidden; 
  border-radius: 16px; 
  box-shadow: 0 15px 35px rgba(0,0,0,.08); 
  background: #fff; 
  height: clamp(260px, 42vw, 520px); 
}

.ss-track { 
  display: flex; 
  height: 100%; 
  transition: transform .5s ease; 
}

.ss-slide { 
  min-width: 100%; 
  height: 100%; 
  background: #fff; 
}

.ss-slide img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.ss-dots { 
  position: absolute; 
  left: 50%; 
  transform: translateX(-50%); 
  bottom: 12px; 
  display: flex; 
  gap: 8px; 
  z-index: 3; 
}

.ss-dots button { 
  width: 10px; 
  height: 10px; 
  border-radius: 50%; 
  border: 0; 
  cursor: pointer; 
  background: rgba(44,24,16,.35); 
}

.ss-dots button.active { 
  background: #8B4513; 
}

/* ========== Contact Section ========== */
.contact { 
  padding: 6rem 0; 
  background: #2c1810; 
  color: #fff; 
}

.contact-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 2rem; 
  align-items: start; 
}

.contact h2 { 
  color: #F5DEB3; 
  margin-bottom: 2rem; 
}

.contact-items-wrapper { 
  margin-top: 2rem; 
}

.contact-item {
  display: flex; 
  align-items: center; 
  gap: 1rem; 
  padding: 1.5rem;
  background: rgba(245,222,179,.1); 
  border-radius: 15px; 
  backdrop-filter: blur(10px);
  margin-bottom: 2rem; 
  border: 1px solid rgba(245,222,179,.2); 
  transition: all .3s ease;
}

.contact-item:hover { 
  background: rgba(245,222,179,.15); 
  transform: translateY(-2px); 
}

.contact-item:last-child { 
  margin-bottom: 0; 
}

.contact-item .icon {
  font-size: 1.5rem; 
  color: #F5DEB3; 
  width: 50px; 
  text-align: center; 
  flex-shrink: 0;
  position: relative; 
  transform-origin: center;
}

.contact-details h3 { 
  color: #F5DEB3; 
  margin-bottom: .5rem; 
  font-size: 1.1rem; 
  font-weight: 600; 
}

.contact-details p { 
  color: rgba(245,222,179,.8); 
  margin: 0; 
  line-height: 1.4; 
}

.contact-form { 
  background: rgba(245,222,179,.1); 
  padding: 2rem; 
  border-radius: 20px; 
  backdrop-filter: blur(10px); 
  border: 1px solid rgba(245,222,179,.2); 
}

.form-group { 
  margin-bottom: 1.5rem; 
}

.form-group label { 
  display: block; 
  margin-bottom: .5rem; 
  color: #F5DEB3; 
  font-weight: 500; 
}

.form-group input, 
.form-group textarea {
  width: 100%; 
  padding: 1rem; 
  border: 1px solid rgba(245,222,179,.3);
  border-radius: 10px; 
  background: rgba(255,255,255,.1); 
  color: #fff; 
  font-size: 1rem;
}

.form-group input::placeholder, 
.form-group textarea::placeholder { 
  color: rgba(245,222,179,.7); 
}

/* Contact icon animations */
.icon.animate { 
  animation-play-state: running; 
}

.icon--pin.animate { 
  animation: pin-bounce 1.6s ease-in-out infinite; 
}

.icon--pin.animate::after {
  content: ""; 
  position: absolute; 
  left: 50%; 
  bottom: 6px; 
  width: 28px; 
  height: 6px;
  background: currentColor; 
  opacity: .18; 
  filter: blur(2px); 
  border-radius: 50%;
  transform: translateX(-50%); 
  animation: pin-shadow 1.6s ease-in-out infinite;
}

@keyframes pin-bounce {
  0%, 20%, 53%, 100% { transform: translateY(0); }
  40%, 43% { transform: translateY(-6px); }
  70% { transform: translateY(-3px); }
  90% { transform: translateY(-1px); }
}

@keyframes pin-shadow {
  0%, 20%, 53%, 100% { transform: translateX(-50%) scaleX(1); opacity: .18; }
  40%, 43% { transform: translateX(-50%) scaleX(1.18); opacity: .10; }
  70% { transform: translateX(-50%) scaleX(1.08); opacity: .14; }
  90% { transform: translateX(-50%) scaleX(1.04); opacity: .16; }
}

.icon--phone.animate { 
  animation: phone-wiggle 1.6s ease-in-out infinite; 
}

.icon--phone.animate::before,
.icon--phone.animate::after {
  content: ""; 
  position: absolute; 
  left: 50%; 
  top: 50%; 
  width: 12px; 
  height: 12px;
  border: 2px solid currentColor; 
  border-radius: 50%; 
  opacity: .35;
  transform: translate(-50%,-50%) scale(.4); 
  animation: phone-ripple 1.8s ease-out infinite; 
  pointer-events: none;
}

.icon--phone.animate::after { 
  animation-delay: .5s; 
}

@keyframes phone-wiggle {
  0%, 100% { transform: rotate(0); }
  10% { transform: rotate(12deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(8deg); }
  40% { transform: rotate(-6deg); }
  50% { transform: rotate(4deg); }
  60% { transform: rotate(-2deg); }
}

@keyframes phone-ripple {
  0% { opacity: .35; transform: translate(-50%,-50%) scale(.4); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.9); }
}

.icon--mail.animate { 
  animation: mail-pop 2s ease-in-out infinite; 
}

@keyframes mail-pop {
  0% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-2px) scale(1.06); }
  50% { transform: translateY(0) scale(1); }
  100% { transform: translateY(0) scale(1); }
}

/* ========== Google Map ========== */
.map-section { 
  padding: 0; 
  margin: 0; 
  background: #2c1810; 
}

.map-container { 
  max-width: 1200px; 
  margin: 0 auto; 
  overflow: hidden; 
  border-radius: 12px; 
  box-shadow: 0 8px 20px rgba(0,0,0,.15); 
}

.map-container iframe { 
  display: block; 
  width: 100%; 
  height: 450px; 
  border: none; 
}

body.home .map-section { 
  padding: 32px 0 40px; 
}

/* ========== Footer ========== */
.footer { 
  background: #1a0f08; 
  color: #F5DEB3; 
  padding: 14px 0 16px; 
  text-align: center; 
}

.footer-content { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 0; 
  margin-bottom: 0; 
  text-align: left; 
}

.footer-section h3 { 
  color: #F5DEB3; 
  margin-bottom: 1rem; 
  font-weight: 600; 
}

.footer-section ul { 
  list-style: none; 
}

.footer-section ul li { 
  margin-bottom: .5rem; 
}

.footer-section ul li a { 
  color: rgba(245,222,179,.8); 
  text-decoration: none; 
  transition: .3s; 
}

.footer-section ul li a:hover { 
  color: #F5DEB3; 
}

.footer-bottom { 
  border-top: 1px solid rgba(245,222,179,.2); 
  padding-top: 1rem; 
  text-align: center; 
  color: rgba(245,222,179,.6); 
}

.footer-social {
  margin: 20px 0; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  gap: 14px; 
  flex-wrap: wrap;
}

.footer-social__label { 
  color: #F5DEB3; 
  opacity: .9; 
  font-weight: 600; 
  letter-spacing: .2px; 
  margin-right: 6px; 
}

.footer-social .social {
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  padding: 8px 12px;
  color: #F5DEB3; 
  text-decoration: none; 
  background: rgba(245,222,179,.08);
  border: 1px solid rgba(245,222,179,.22); 
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.footer-social .social:hover { 
  transform: translateY(-2px); 
  background: rgba(245,222,179,.16); 
  border-color: rgba(245,222,179,.35); 
}

.footer-social .social svg { 
  width: 20px; 
  height: 20px; 
  display: block; 
  color: #fff; 
}

.footer-social .social__text { 
  font-weight: 600; 
  letter-spacing: .2px; 
}

/* ========== Reveal Animations ========== */
.reveal { 
  opacity: 0; 
  transform: translateY(28px); 
  transition: opacity .6s ease, transform .6s ease; 
  transition-delay: var(--d, 0s); 
  will-change: opacity, transform; 
}

.reveal.is-visible { 
  opacity: 1; 
  transform: none; 
}

.reveal-left { 
  transform: translateX(-28px); 
}

.reveal-right { 
  transform: translateX(28px); 
}

.reveal-zoom { 
  transform: scale(.98); 
}

.ss-text strong.reveal,
.about-text strong.reveal {
  display: inline-block; 
  opacity: 0; 
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease; 
  transition-delay: var(--d, 0s);
}

.ss-text strong.reveal.is-visible,
.about-text strong.reveal.is-visible { 
  opacity: 1; 
  transform: none; 
}

/* ========== Modal ========== */
.recipe-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  padding: calc(var(--header-h, 110px) + 16px) 20px 20px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.8) !important;
  isolation: isolate;
}

.recipe-modal-content {
  position: relative !important;
  z-index: 1000000 !important;
  width: min(900px, 100%) !important;
  max-height: none !important;
  margin: 0 auto 24px !important;
  overflow: visible !important;
  background: #fff !important;
}

.recipe-modal-close {
  top: 12px;
  z-index: 1000001 !important;
}

.recipe-background-video {
  pointer-events: none;
  -webkit-user-select: none;
}

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

body.modal-open .header,
body.modal-open .hero,
body.modal-open .split-slider-section,
body.modal-open .contact,
body.modal-open .contact-form,
body.modal-open .map-section,
body.modal-open .footer {
  position: relative;
  z-index: 0 !important;
  pointer-events: none !important;
}


/* ========== Products Page Styles ========== */
.products-page .hero {
  background: linear-gradient(rgba(139, 69, 19, 0.8), rgba(160, 82, 45, 0.8)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sesame" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="%23f4e4c1" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23sesame)"/></svg>');
  color: white;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.products-page .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(205, 133, 63, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.products-page .hero-content {
  position: relative;
  z-index: 2;
}

.products-page .hero h1 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  letter-spacing: 2px;
}

.products-page .hero p {
  font-size: 1.4rem;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.95;
}

.heritage-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 15px 30px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  font-weight: bold;
  font-size: 1.1rem;
}

.products-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8f6f0 0%, #ffffff 100%);
}

.products-section .section-header h2::after {
  content: none !important;
  display: none !important;
}

.products-section .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.products-section .product-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.products-section .product-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.products-section .product-card img {
  width: 200px;
  height: 250px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 25px;
  transition: transform 0.3s ease;
  border-radius: 10px;
}

.products-section .product-card:hover img {
  transform: scale(1.05);
}

.product-name {
  font-size: 1.8rem;
  font-weight: bold;
  color: #8b4513;
  margin-bottom: 15px;
}

.product-weight {
  display: inline-block;
  background: linear-gradient(135deg, #cd853f, #daa520);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: bold;
  margin-bottom: 20px;
}

.product-description {
  color: #666;
  line-height: 1.8;
  margin-bottom: 25px;
}

.features-section {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  color: white;
  padding: 80px 0;
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

.feature {
  text-align: center;
  padding: 30px;
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature p {
  opacity: 0.9;
  line-height: 1.7;
}

.uses-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f6f0 100%);
}

.uses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.use-item {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  border-left: 4px solid #cd853f;
}

.use-item:hover {
  transform: translateY(-5px);
}

.use-item h4 {
  color: #8b4513;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.use-item p {
  color: #666;
  line-height: 1.7;
}

.cta-section {
  background: linear-gradient(135deg, #cd853f 0%, #daa520 100%);
  color: white;
  text-align: center;
  padding: 60px 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
  .hero-content { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 2rem; 
  }
}

@media (max-width: 980px) {
  .split-slider { 
    grid-template-columns: 1fr; 
    gap: 18px; 
  }
  
  .ss-text { 
    max-width: none; 
    text-align: center; 
  }
}

@media (max-width: 768px) {
  .header {
    -webkit-mask-image: linear-gradient(to bottom, black 0, black calc(100% - 10px), transparent 100%);
    mask-image: linear-gradient(to bottom, black 0, black calc(100% - 10px), transparent 100%);
  }

  .hero.hero--custom {
    min-height: calc(var(--hero-min) * 0.85);
    padding-top: calc(var(--hero-pt) * 0.75);
    padding-bottom: calc(var(--hero-pb) * 0.8);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0, #000 50px, #000 calc(100% - 50px), rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0, #000 50px, #000 calc(100% - 50px), rgba(0,0,0,0) 100%);
  }
  
  .about.has-video .about-video { 
    object-position: 0% 50% !important; 
  }
  
  #home.hero.has-video .hero-video {
    object-position: 50% 50% !important;
  }

  .about-grid, 
  .contact-grid { 
    grid-template-columns: 1fr; 
  }
  
  .heritage-stats { 
    grid-template-columns: 1fr; 
  }
  
  body.home section#products .products-grid { 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  }
  
  body.home section#products .product-item { 
    max-width: 100%; 
  }

  .products-page .hero h1 {
    font-size: 2.5rem;
  }
  
  .products-page .hero p {
    font-size: 1.1rem;
  }
  
  .products-section .products-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .features-grid,
  .uses-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-social { 
    justify-content: center; 
    gap: 10px 12px; 
    flex-wrap: wrap; 
  }
  
  .footer-social__label { 
    flex: 0 0 100%; 
    text-align: center; 
    margin: 0 0 6px; 
  }
  
  .footer-social .social { 
    flex: 0 0 calc(50% - 12px); 
    justify-content: center; 
    padding: 10px 12px; 
  }
}

/* ========== Accessibility & Performance ========== */
@media (prefers-reduced-motion: reduce) {
  .reveal { 
    opacity: 1; 
    transform: none; 
    transition: none; 
  }
  
  .product-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
  
  .hero-text h1,
  .tagline,
  .hero-text p,
  .cta-buttons,
  .btn {
    opacity: 1;
    transform: none;
    animation: none;
  }
  
  .hero-text .product-highlight {
    opacity: 1;
    transform: none;
    animation: none;
  }
  
  #home .product-showcase .product-card h3 {
    opacity: 1;
    transform: none;
    animation: none;
  }
  
  .contact-item .icon, 
  .contact-item .icon::before, 
  .contact-item .icon::after { 
    animation: none !important; 
  }
  
  body.home section#products .pi-image img { 
    animation: none !important; 
  }
  
  .hero.hero--custom::before {
    animation: none !important;
  }
}

/* ========== Strong modal stacking fix ========== */
/*
   The contact section creates its own stacking layer and can appear above
   the recipe modal. Hide all lower page sections while the modal is open.
*/
body.modal-open .contact,
body.modal-open .map-section,
body.modal-open .footer {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Keep the modal and its contents visible above every page section. */
body.modal-open .recipe-modal {
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
}

body.modal-open .recipe-modal-content {
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 2147483647 !important;
}

/* ========== Modal stacking fix without body.modal-open dependency ========== */
/*
   Your JavaScript opens the modal without adding the modal-open class to <body>.
   Use :has() to detect the visible modal directly.
*/
body:has(.recipe-modal[style*="display: block"]) .contact,
body:has(.recipe-modal[style*="display:block"]) .contact,
body:has(.recipe-modal[style*="display: block"]) .map-section,
body:has(.recipe-modal[style*="display:block"]) .map-section,
body:has(.recipe-modal[style*="display: block"]) .footer,
body:has(.recipe-modal[style*="display:block"]) .footer {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body:has(.recipe-modal[style*="display: block"]),
body:has(.recipe-modal[style*="display:block"]) {
  overflow: hidden !important;
}

.recipe-modal[style*="display: block"],
.recipe-modal[style*="display:block"] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  overflow-y: auto !important;
  background: rgba(0, 0, 0, 0.82) !important;
}

.recipe-modal[style*="display: block"] .recipe-modal-content,
.recipe-modal[style*="display:block"] .recipe-modal-content {
  position: relative !important;
  z-index: 2147483647 !important;
}