/* sabrina.css - Premium Beverage Theme Stylesheet (Almond Cream, Emerald Green & Gold) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
  --bg-primary: #FAF6F0; /* Creamy Almond Milk White */
  --bg-secondary: #f4edd9; /* Soft Almond Tone */
  --bg-tertiary: #ebdcb9; /* Warm Gold Tone */
  --card-bg: #ffffff;
  --border-color: rgba(27, 67, 32, 0.06);
  --text-primary: #1c2d1d; /* Deep forest green */
  --text-secondary: #536854; /* Slate green */
  
  /* Brand colors */
  --accent-green: #1b4320; /* Leaf Emerald Green */
  --accent-green-hover: #102b14;
  --accent-green-light: rgba(27, 67, 32, 0.04);
  
  --accent-gold: #c29a4a; /* Champagne Gold */
  --accent-gold-hover: #a58039;
  --accent-gold-light: rgba(194, 154, 74, 0.08);
  
  --font-en: 'Outfit', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  
  /* Modern styling defaults */
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 12px rgba(27, 67, 32, 0.02);
  --shadow-md: 0 16px 36px -8px rgba(27, 67, 32, 0.05);
  --shadow-lg: 0 32px 64px -12px rgba(27, 67, 32, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

body.rtl {
  font-family: var(--font-ar);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #c3cfc4;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green);
}

/* Leaf Glow backdrops */
.leaf-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.glow-left {
  background: var(--accent-green);
  top: 15%;
  left: -8%;
}
.glow-right {
  background: var(--accent-gold);
  bottom: 25%;
  right: -8%;
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 8%;
  background: rgba(250, 246, 240, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-green);
  text-decoration: none;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text span {
  color: var(--accent-gold);
  position: relative;
}

.logo-text span::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-green);
}

.lang-switch {
  padding: 8px 22px;
  border: 1px solid rgba(27, 67, 32, 0.15);
  background: transparent;
  color: var(--accent-green);
  border-radius: 30px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.lang-switch:hover {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: white;
  box-shadow: 0 4px 15px rgba(27, 67, 32, 0.2);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 150px 8% 110px;
  text-align: center;
  background: radial-gradient(circle at center, #ffffff 0%, #f4edd9 100%);
  overflow: hidden;
}

/* Wave overlay at the bottom */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: var(--bg-primary);
  clip-path: ellipse(60% 80% at 50% 100%);
}

.hero-content {
  max-width: 800px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  max-width: 360px;
  width: 75%;
  margin-bottom: 30px;
  filter: drop-shadow(0 10px 22px rgba(27, 67, 32, 0.1));
  transition: transform 0.5s ease;
}
.hero-logo:hover {
  transform: scale(1.02);
}

.hero h2 {
  font-size: 20px;
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.btn-container {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-green);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-green-hover);
  box-shadow: 0 8px 24px rgba(27, 67, 32, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(27, 67, 32, 0.2);
  background: transparent;
  color: var(--accent-green);
}
.btn-secondary:hover {
  background: var(--accent-gold-light);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Sections */
.section {
  position: relative;
  padding: 120px 8%;
  z-index: 10;
}

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

.section-title h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 20px;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-gold);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

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

/* Gourmet Cards (Ingredients/Values) */
.gourmet-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 45px 35px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.gourmet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.gourmet-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(194, 154, 74, 0.2);
}

.gourmet-card:hover::before {
  transform: scaleX(1);
}

.card-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-gold);
  display: inline-block;
  margin-bottom: 20px;
  background: var(--accent-gold-light);
  padding: 4px 14px;
  border-radius: 30px;
}

.gourmet-card h3 {
  font-size: 21px;
  color: var(--accent-green);
  margin-bottom: 16px;
  font-weight: 700;
}

.gourmet-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* Spotlight Card (Product Ranges) */
.spotlight-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.spotlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 67, 32, 0.15);
}

.spotlight-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}
.spotlight-card:hover .spotlight-img {
  transform: scale(1.02);
}

.spotlight-body {
  padding: 35px;
}

.spotlight-body h3 {
  font-size: 22px;
  color: var(--accent-green);
  margin-bottom: 14px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.spotlight-body h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
}

.spotlight-body p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* Slider Section */
.slider-wrapper {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.slider-container {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-lg);
  background: #e4decb;
}

.slider-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.slider-container img.active {
  opacity: 1;
  z-index: 2;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250, 246, 240, 0.9);
  border: 1px solid var(--border-color);
  color: var(--accent-green);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  font-size: 18px;
  user-select: none;
  box-shadow: 0 4px 12px rgba(27, 67, 32, 0.05);
}
.slider-nav:hover {
  background: var(--accent-green);
  color: white;
  border-color: var(--accent-green);
  box-shadow: 0 6px 18px rgba(27, 67, 32, 0.25);
}
.slider-prev {
  left: 24px;
}
.slider-next {
  right: 24px;
}

/* Corporate Backlink section */
.backlink-banner {
  background: linear-gradient(135deg, #f3ece0 0%, #FAF6F0 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.backlink-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gold);
}

.backlink-banner h3 {
  font-size: 26px;
  color: var(--accent-green);
  margin-bottom: 20px;
  font-weight: 800;
}

.backlink-banner p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 650px;
  margin: 0 auto 35px;
  line-height: 1.8;
}

/* Contact Form */
.contact-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input, .textarea {
  width: 100%;
  padding: 14px 20px;
  background: white;
  border: 1px solid rgba(27, 67, 32, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(27, 67, 32, 0.08);
}

.textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.info-icon {
  background: white;
  border: 1px solid var(--border-color);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  font-size: 18px;
}

.contact-info-item h4 {
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 700;
}

.contact-info-item p, .contact-info-item a {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}
.contact-info-item a:hover {
  color: var(--accent-green);
}

/* Footer */
footer {
  padding: 50px 8%;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* RTL Layout fixes */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .logo-text span::after {
  left: auto;
  right: 0;
}

body.rtl .slider-prev {
  left: auto;
  right: 24px;
}
body.rtl .slider-next {
  right: auto;
  left: 24px;
}

body.rtl .gourmet-card::before {
  left: auto;
  right: 0;
  transform-origin: right;
}

body.rtl .backlink-banner::before {
  left: auto;
  right: 0;
}

body.rtl .spotlight-body h3::after {
  left: auto;
  right: 0;
}

/* Image Load / Error Resilience styles */
img {
  transition: opacity 0.5s ease;
}
img.loading-fade {
  opacity: 0;
}
img.loaded-fade {
  opacity: 1;
}

/* Handle layout changes when images fail and are hidden */
.spotlight-card:has(.spotlight-img[style*="display: none"]) .spotlight-img,
.spotlight-card:has(.spotlight-img:not([src])) .spotlight-img {
  display: none;
}
.spotlight-card:has(.spotlight-img[style*="display: none"]) .spotlight-body,
.spotlight-card:has(.spotlight-img:not([src])) .spotlight-body {
  text-align: center;
  padding: 60px 40px;
}
.spotlight-card:has(.spotlight-img[style*="display: none"]) .spotlight-body h3::after,
.spotlight-card:has(.spotlight-img:not([src])) .spotlight-body h3::after {
  left: 50% !important;
  transform: translateX(-50%);
}
body.rtl .spotlight-card:has(.spotlight-img[style*="display: none"]) .spotlight-body h3::after,
body.rtl .spotlight-card:has(.spotlight-img:not([src])) .spotlight-body h3::after {
  right: 50% !important;
  transform: translateX(50%);
}

/* Responsive Design */
@media (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .backlink-banner {
    padding: 50px 30px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}
