/* Base LTR styles (default) */

/* RTL override when needed */
.rtl body {
  text-align: right;
  direction: rtl;
}

.rtl .logo,
.rtl nav ul,
.rtl .about-content,
.rtl .contact-info,
.rtl .faq-question,
.rtl .contact-form,
.rtl .footer-col {
  text-align: right;
}

/* Flip flex order or margins if needed */
.rtl .about-content {
  flex-direction: row-reverse;
}

.rtl .contact-grid {
  flex-direction: row-reverse;
}

/* Ensure social icons and inline elements respect RTL */
.rtl .social-icons,
.rtl .contact-info {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* Language switcher active style */
.top-link.active {
  font-weight: bold;
  color: #000;
}

/* ===== BASE STYLES ===== */
    :root {
      /* Color Palette */
      --color-primary: #8B4513;
      --color-secondary: #D2691E;
      --color-bg: #FFF8F0;
      --color-surface: #FFFFFF;
      --color-text: #2D1B10;
      --color-text-secondary: #5A4A42;
      --color-accent: #D4AF37;
      --color-success: #2E8B57;
      
      /* Typography */
      --font-heading: 'Playfair Display', serif;
      --font-body: 'Lato', sans-serif;
      
      /* Spacing */
      --space-xs: 0.5rem;
      --space-sm: 1rem;
      --space-md: 1.5rem;
      --space-lg: 2.5rem;
      --space-xl: 4rem;
      
      /* Breakpoints */
      --breakpoint-tablet: 768px;
      --breakpoint-desktop: 1024px;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-body);
      font-weight: 400;
      font-size: 1rem;
      line-height: 1.6;
      color: var(--color-text);
      background-color: var(--color-bg);
    }

    h1, h2, h3, h4, h5, h6 {
      font-family: var(--font-heading);
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: var(--space-md);
      color: var(--color-primary);
    }

    h1 {
      font-size: clamp(2.25rem, 8vw, 3.5rem);
    }

    h2 {
      font-size: clamp(1.75rem, 6vw, 2.5rem);
      position: relative;
      padding-bottom: var(--space-sm);
    }

    h2::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 3rem;
      height: 3px;
      background: var(--color-accent);
    }

    p {
      margin-bottom: var(--space-md);
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    .container {
      width: min(90%, 1200px);
      margin: 0 auto;
    }

    .section {
      padding: var(--space-xl) 0;
    }

    .btn {
      display: inline-block;
      background: var(--color-primary);
      color: white;
      font-family: var(--font-body);
      font-weight: 700;
      text-decoration: none;
      padding: 0.875rem 1.75rem;
      border-radius: 4px;
      transition: all 0.3s ease;
      border: 2px solid var(--color-primary);
      cursor: pointer;
      font-size: 1.125rem;
      border-radius: 50px;
    }

    .btn:hover,
    .btn:focus {
      background: var(--color-secondary);
      border-color: var(--color-secondary);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
      outline: none;
    }

    /* Download button – clean, understated, professional */
.btn-download {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--color-primary);
  border-radius: 50px;
  transition: all 0.25s ease;
  background: transparent;
  /* Optional: add icon later */
}

.btn-download:hover,
.btn-download:focus {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(139, 69, 19, 0.15);
  outline: none;
}

/* Optional: add a download icon (→) */
.btn-download::after {
  
  opacity: 0.8;
}

    /* ===== TOP BAR ===== */
/* ===== TOP BAR (FIXED) ===== */
.top-bar {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 6px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* Prevent text selection on accidental drag */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  max-width: 1200px; /* Match .container width */
  margin: 0 auto;
  padding: 0 var(--space-sm); /* Add horizontal padding for edge alignment */
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  color: white;
  text-decoration: none;
  font-size: 1.125rem;
  transition: opacity 0.2s;
}

.social-icons a:hover {
  opacity: 0.8;
}

.contact-info {
  display: flex;
  gap: 16px;
}

.top-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.top-link:hover,
.top-link.active {
  color: white;
  text-decoration: underline;
}

.language-switcher {
  display: flex;
  gap: 4px;
}

/* Responsive: Stack on mobile */
@media (max-width: 767px) {
  .top-bar-content {
    flex-direction: column;
    gap: 8px;
  }

 .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    
  }
  .contact-info,
  .language-switcher {
    gap: 12px;
    
  }
    .contact-info .top-link {
    text-align: center;
  }
}

    /* ===== HEADER ===== */
  
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 36px; /* Height of top bar (6px padding * 2 + line height ≈ 36px) */
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .header-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: var(--space-sm) 0;
    }

    .logo {
      font-family: var(--font-heading);
      font-size: 1.75rem;
      color: var(--color-primary);
      text-decoration: none;
      font-weight: 700;
    }

    .logo span {
      color: var(--color-accent);
    }

    nav ul {
      display: flex;
      list-style: none;
      gap: var(--space-md);
    }

    nav a {
      text-decoration: none;
      color: var(--color-text);
      font-weight: 700;
      transition: color 0.2s;
    }

    nav a:hover {
      color: var(--color-primary);
    }

    .contact-cta {
      background: var(--color-primary);
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 30px;
      font-weight: 700;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .contact-cta:hover {
      background: var(--color-secondary);
    }

    .mobile-menu-btn {
      display: none;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--color-primary);
    }

    /* ===== HERO ===== */
    .hero {
      height: 100vh;
      min-height: 700px;
      display: flex;
      align-items: center;
      background: linear-gradient(rgba(45, 27, 16, 0.7), rgba(45, 27, 16, 0.7)), 
                  url('img/hero.jpg') center/cover no-repeat;
      color: white;
      text-align: center;
      padding: 0 var(--space-md);
    }

    .hero-content {
      max-width: 800px;
      margin: 0 auto;
    }

    .hero h1 {
      color: white;
      margin-bottom: var(--space-sm);
      text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    .hero p {
      font-size: 1.25rem;
      margin-bottom: var(--space-lg);
      color: rgba(255, 255, 255, 0.9);
    }

    .hero-cta {
      background: var(--color-accent);
      color: var(--color-text);
      border-radius: 50px;
    }

    .hero-cta:hover {
      background: #c19d2a;
    }

    /* ALTERNATE HERO 1 (PRODUCT FOCUS) - UNCOMMENT TO USE */
    /*
    .hero {
      background: linear-gradient(rgba(45, 27, 16, 0.8), rgba(45, 27, 16, 0.8)), 
                  url('https://images.unsplash.com/photo-1626082927389-6c9e3a4c9c3d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    }
    */

    /* ALTERNATE HERO 2 (HERITAGE FOCUS) - UNCOMMENT TO USE */
    /*
    .hero {
      background: linear-gradient(rgba(45, 27, 16, 0.8), rgba(45, 27, 16, 0.8)), 
                  url('https://images.unsplash.com/photo-1599732174116-2d8b8a6f5e5e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    }
    */

    /* ===== ABOUT SECTION ===== */
    .about-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--space-lg);
      align-items: center;
    }

    .about-text h2::after {
      background: var(--color-secondary);
    }

    /* ===== VARIETIES SECTION ===== */
    .varieties-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: var(--space-lg);
      margin-top: var(--space-md);
    }

    .variety-card {
      background: var(--color-surface);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      transition: transform 0.3s ease;
    }

    .variety-card:hover {
      transform: translateY(-8px);
    }

    .variety-img {
      height: 200px;
      background: #f5f5f5;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--color-text-secondary);
    }

    .variety-info {
      padding: var(--space-md);
    }

    .variety-info h3 {
      margin-bottom: var(--space-xs);
      font-size: 1.25rem;
    }


    /* ===== RANGE OF SERVICES SECTION ===== */
.range-services {
  background: var(--color-surface);
}

.range-services h2::after {
  background: var(--color-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.service-card {
  background: var(--color-bg);
  border-radius: 12px;
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.service-card h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.service-card p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.service-link {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.service-link:hover {
  color: var(--color-secondary);
}

/* Maintain existing hover-grow behavior */
.hover-grow {
  transition: transform 0.2s ease;
}

.hover-grow:hover {
  transform: translateY(-6px);
}


/* ===== RANGE OF SERVICES WITH HOVER-TO-IMAGE ===== */
.range-services {
  background: var(--color-surface);
}

.range-services h2::after {
  background: var(--color-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.service-card {
  height: 380px; /* Fixed height for smooth transition */
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.service-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-front {
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
}

.card-back {
  background: white;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.service-card h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.service-card p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.service-link {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.service-link:hover {
  color: var(--color-secondary);
}
/* Style for the small icon image on card front */
.service-icon-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 100px;
  margin-bottom: var(--space-md);
  background: var(--color-bg);
  border: 1px solid rgba(0,0,0,0.05);
}



    /* ===== CERTIFICATIONS ===== */
    .certifications {
      background: var(--color-surface);
    }

    .cert-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: var(--space-md);
      text-align: center;
    }

    .cert-item {
      padding: var(--space-md);
    }

    .cert-icon {
      width: 60px;
      height: 60px;
      background: var(--color-bg);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto var(--space-sm);
      color: var(--color-success);
      font-size: 1.5rem;
    }

    .pdf-link {
  text-decoration: none;
  transition: transform 0.2s;
}

.pdf-link:hover {
  transform: scale(1.1);
}
    /* ===== PACKAGING ===== */
    .packaging-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: var(--space-lg);
    }

    .package-card {
      text-align: center;
      padding: var(--space-md);
    }

    .package-icon {
      font-size: 3rem;
      color: var(--color-primary);
      margin-bottom: var(--space-sm);
    }

    /* ===== TESTIMONIALS ===== */
    .testimonials {
      background: var(--color-surface);
    }

    .testimonial-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: var(--space-lg);
    }

    .testimonial-card {
      padding: var(--space-md);
      border-left: 3px solid var(--color-accent);
    }

    .testimonial-text {
      font-style: italic;
      margin-bottom: var(--space-sm);
    }

    .testimonial-author {
      font-weight: 700;
      color: var(--color-primary);
    }

    .press-logos {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: var(--space-lg);
      margin-top: var(--space-xl);
      opacity: 0.7;
    }

    .press-logo {
      height: 40px;
      filter: grayscale(100%);
      transition: filter 0.3s;
    }

    .press-logo:hover {
      filter: grayscale(0%);
    }

    /* ===== FAQ ===== */
    .faq-item {
      margin-bottom: var(--space-md);
      border-bottom: 1px solid #eee;
      padding-bottom: var(--space-md);
    }

    .faq-question {
      font-weight: 700;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .faq-answer {
      margin-top: var(--space-sm);
      display: none;
    }

    .faq-item.active .faq-answer {
      display: block;
    }

    /* ===== FOOTER ===== */
    footer {
      background: var(--color-text);
      color: white;
      padding: var(--space-xl) 0;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: var(--space-lg);
    }

    

    .footer-col h3::after {
      display: none;
    }

    .social-links {
      display: flex;
      gap: var(--space-sm);
      margin-top: var(--space-md);
    }

    .social-links a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      background: rgba(255,255,255,0.1);
      border-radius: 50%;
      color: white;
      text-decoration: none;
      transition: background 0.3s;
    }

    .social-links a:hover {
      background: var(--color-accent);
    }

    .copyright {
      text-align: center;
      padding-top: var(--space-lg);
      margin-top: var(--space-lg);
      border-top: 1px solid rgba(255,255,255,0.1);
      font-size: 0.875rem;
      color: rgba(255,255,255,0.7);
    }

    /* ===== CONTACT SECTION ===== */
#contact .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

#contact h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

#contact .section-subhead,
#contact .section-response {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.15);
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.form-hint {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.form-hint a {
  color: var(--color-primary);
  text-decoration: underline;
}

.form-hint a:hover {
  color: var(--color-secondary);
}

.contact-sidebar .card {
  margin-bottom: 12px;
}

.contact-sidebar .card:last-child {
  margin-bottom: 0;
}

.card-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.card-text {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  margin-top: 0;
}

.contact-info-item {
  margin-top: 12px;
}

.contact-label {
  font-weight: 800;
  color: var(--color-text);
}

.contact-detail {
  color: var(--color-text-secondary);
}


/* Custom social buttons (mimics Aria Foods) */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.2s;
  margin-right: 8px;
}

.social-btn:hover {
  background: white;
  color: var(--color-primary);
  border-color: white;
  transform: translateY(-2px);
}

.developer-credit {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.developer-credit a {
  color: var(--color-accent);
  text-decoration: underline;
}

.developer-credit a:hover {
  color: white;
}

/* On very small screens */
@media (max-width: 480px) {
  .social-btn {
    width: 32px;
    height: 32px;
    margin-right: 6px;
  }
}

    /* ===== RESPONSIVE ===== */
    @media (max-width: 767px) {
      .mobile-menu-btn {
        display: block;
      }

      nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
      }

      nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
      }

      nav ul {
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
      }

      .about-content {
        grid-template-columns: 1fr;
      }

      .hero {
        min-height: 600px;
      }

      .contact-grid {
    grid-template-columns: 1fr;
  }

  #contact .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
    }

    @media (min-width: 768px) {
      .mobile-menu-btn {
        display: none;
      }
    }

    /* ===== MICRO-INTERACTIONS ===== */
    .hover-grow {
      transition: transform 0.2s ease;
    }

    .hover-grow:hover {
      transform: scale(1.03);
    }

    /* Focus styles for accessibility */
    a:focus, 
    button:focus, 
    .btn:focus {
      outline: 2px solid var(--color-accent);
      outline-offset: 2px;
    }

    /* Reduced motion preference */
    @media (prefers-reduced-motion: reduce) {
      * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }