@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

[dir='rtl'] body { font-family: 'IBM Plex Sans Arabic', 'Nunito', sans-serif; }
[dir='rtl'] h1,[dir='rtl'] h2,[dir='rtl'] h3,[dir='rtl'] h4 { font-family: 'IBM Plex Sans Arabic', 'Nunito', sans-serif; font-weight: 700; }
[dir='rtl'] .navbar .container { flex-direction: row-reverse; }
[dir='rtl'] .footer-grid { direction: rtl; text-align: right; }
[dir='rtl'] .hero-text-left { text-align: right; }
[dir='rtl'] .hero-badge-pill,[dir='rtl'] .hero-main-desc { text-align: right; }
[dir='rtl'] .btn svg,[dir='rtl'] .flavor-cta svg { transform: scaleX(-1); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; width: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-white);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > footer,
.footer {
  margin-top: auto;
}

img { display: block; max-width: 100%; height: auto; }

.hero-img-full,
img[src*='hero-main'],
img[src*='products-hero'],
img[src*='crackers-hero'],
img[src*='find-qpop-header'] {
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
}

[dir='rtl'] h1,
[dir='rtl'] h2,
[dir='rtl'] h3,
[dir='rtl'] h4,
[dir='rtl'] p,
[dir='rtl'] li,
[dir='rtl'] a,
[dir='rtl'] button,
[dir='rtl'] span,
[dir='rtl'] label,
[dir='rtl'] .section-label,
[dir='rtl'] .btn,
[dir='rtl'] .hero-main-title,
[dir='rtl'] .hero-main-desc,
[dir='rtl'] .hero-pill,
[dir='rtl'] .strip-item,
[dir='rtl'] .back-home-link,
[dir='rtl'] .policy-note {
  unicode-bidi: plaintext;
}

.hero-image-block,
.hero-strip,
.hero-text-block,
.hero-wave,
footer {
  margin: 0;
}
.nav-logo, .footer-logo { background:#fff; padding:8px 14px; border-radius:14px; box-shadow:0 6px 20px rgba(0,0,0,0.06); display:inline-flex; align-items:center; justify-content:center; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* === Typography — Nunito rounded like Lay's === */
h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  text-align: center;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-heading);
  text-align: center;
}
h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-heading);
  text-align: center;
}
h4 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; color: var(--text-heading); }
p  { font-size: 1rem; line-height: 1.75; color: var(--text-body); }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

/* Sections */
.section     { padding: var(--section-py) 0; }
.section--white  { background: var(--bg-white); }
.section--warm   { background: var(--bg-warm); }
.section--light  { background: var(--bg-light); }
.section--pale   { background: var(--bg-section); }
.section--accent { background: var(--accent); color: #fff; }

/* === Buttons — bold rounded like Lay's === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover  { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(216,90,48,0.32);
}
.btn--primary:hover { background: var(--accent2); box-shadow: 0 8px 28px rgba(216,90,48,0.42); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2.5px solid var(--accent);
}
.btn--outline:hover { background: var(--accent); color: #fff; }

.btn--white {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.btn--white:hover { background: var(--bg-warm); }

/* Section label */
.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 10px;
  display: block;
  text-align: center;
}

/* Divider */
.divider-line {
  width: 52px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 14px auto 28px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.badge--accent  { background: var(--accent-pale); color: var(--accent); border: 1.5px solid rgba(216,90,48,0.25); }
.badge--white   { background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }

/* Animations */
@keyframes fadeUp   { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes floatY   { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-16px);} }
@keyframes spin     { to { transform:rotate(360deg); } }
@keyframes pulse    { 0%,100%{opacity:1;} 50%{opacity:0.6;} }
@keyframes waveIn   { from{clip-path:ellipse(0% 100% at 50% 100%);} to{clip-path:ellipse(150% 100% at 50% 100%);} }

.animate-fadeup { animation: fadeUp 0.75s var(--ease-out) both; }
.animate-fadein { animation: fadeIn 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.50s; }
.delay-5 { animation-delay: 0.65s; }

/* Icon helper */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent);
  flex-shrink: 0;
}
.icon svg { width: 22px; height: 22px; }
.icon--sm { width: 36px; height: 36px; }
.icon--sm svg { width: 17px; height: 17px; }

/* Responsive */
@media (max-width: 767px) {
  :root { --section-py: 60px; }
  .hide-mobile  { display: none !important; }
}
@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}


.back-home-link {
  font-size: 0.85rem;
  color: var(--accent2);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back-home-link::before { content: "←"; }
[dir="rtl"] .back-home-link::before { content: ""; }
[dir="rtl"] .back-home-link::after { content: "→"; }
