/*
Theme Name: Dahab Foods WWWO
Theme URI: https://dahabgroupco.com
Author: Dahab Foods
Description: Pixel-perfect clone of the Dahab Foods React site. Layout, design, spacing, typography, colors, and responsiveness match the React project exactly.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dahab-foods-wwwo
Tags: custom-logo, custom-menu, featured-images, full-site-editing, responsive-design, block-styles, wide-blocks
*/

/* ========== Google Fonts ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

/* ========== Design tokens (from React globals.css) ========== */
:root {
  --color-navy: #080343;
  --color-accent: #01A805;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Outfit", sans-serif;
}

/* ========== Base ========== */
body {
  font-family: var(--font-sans);
  background-color: #fff;
  color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ========== Utility classes (React components) ========== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(8, 3, 67, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.container-custom {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .container-custom {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.writing-vertical-rl {
  writing-mode: vertical-rl;
}

/* Line clamp helpers */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Flex layout for main */
body.dahab-wwwo {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex-grow: 1;
}

/* Products dropdown & mobile menu styles are in header-fixes.css (loads after main) */

/* Hero scroll indicator bounce (match React) */
@keyframes dahab-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}
.animate-bounce {
  animation: dahab-bounce 1.5s ease-in-out infinite;
}

/* ========== React-matching entrance animations ========== */
@keyframes dahab-fade-up {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes dahab-fade-up-sm {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes dahab-fade-left {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}

.dahab-animate-hero-main {
  animation: dahab-fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.dahab-animate-hero-label {
  animation: dahab-fade-left 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.dahab-animate-hero-p {
  animation: dahab-fade-up-sm 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.dahab-animate-hero-cta {
  animation: dahab-fade-up-sm 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .dahab-animate-hero-main,
  .dahab-animate-hero-label,
  .dahab-animate-hero-p,
  .dahab-animate-hero-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Section in-view (React whileInView style) */
.dahab-in-view .dahab-animate-on-scroll {
  animation: dahab-fade-up-sm 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.dahab-section-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.dahab-section-reveal.dahab-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Card stagger (Featured Products etc.) */
.dahab-card-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.dahab-card-reveal.dahab-in-view {
  opacity: 1;
  transform: translateY(0);
}
.dahab-card-reveal.dahab-in-view:nth-child(1) { transition-delay: 0s; }
.dahab-card-reveal.dahab-in-view:nth-child(2) { transition-delay: 0.05s; }
.dahab-card-reveal.dahab-in-view:nth-child(3) { transition-delay: 0.1s; }
.dahab-card-reveal.dahab-in-view:nth-child(4) { transition-delay: 0.15s; }
.dahab-card-reveal.dahab-in-view:nth-child(5) { transition-delay: 0.2s; }
.dahab-card-reveal.dahab-in-view:nth-child(6) { transition-delay: 0.25s; }
.dahab-card-reveal.dahab-in-view:nth-child(n+7) { transition-delay: 0.3s; }
