/* ===== CSS VARIABLES ===== */
:root {
  --color-primary: #d88b6c;
  --color-primary-dark: #b56a4a;
  --color-bg: #fcf7f2;
  --color-text: #2e2a28;
  --color-text-light: #5e4b3f;
  --color-white: #ffffff;
  --shadow-sm: 0 8px 20px rgba(200, 120, 80, 0.15);
  --shadow-md: 0 12px 30px -8px rgba(90, 60, 40, 0.12);
  --shadow-lg: 0 24px 48px -14px rgba(140, 90, 60, 0.2);
  --radius-sm: 16px;
  --radius-md: 30px;
  --radius-lg: 60px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1400px;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== RTL Support ===== */
body[dir="rtl"] {
  font-family: 'Noto Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.8;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  width: 100%;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.lang-switcher[dir="rtl"] {
  justify-content: flex-start;
}

.lang-switcher[dir="ltr"] {
  justify-content: flex-end;
}

.lang-switcher a {
  color: #7a6559;
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  transition: var(--transition);
  font-weight: 500;
}

.lang-switcher a:hover {
  background: #f0e3da;
  color: var(--color-primary-dark);
}

.lang-switcher a.active {
  background: var(--color-primary);
  color: white;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  padding: clamp(0.7rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2.8rem);
  border-radius: 60px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  min-height: 48px;
  min-width: 120px;
  touch-action: manipulation;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: scale(0.96);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-white:hover {
  background: #f5ede8;
  transform: translateY(-3px);
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  padding: 0.75rem 0 1.25rem;
  border-bottom: 2px solid #f0e3da;
}

.logo {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.logo span {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  font-weight: 500;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-light);
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}

/* ===== HERO ===== */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: clamp(1.5rem, 4vw, 3.5rem) 0;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
  background-image: url('https://images.unsplash.com/photo-1501443762994-82bd5dace89a?w=1600&q=80');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg) var(--radius-md) var(--radius-lg) var(--radius-md);
  position: relative;
  isolation: isolate;
  min-height: clamp(320px, 50vh, 560px);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(252, 247, 242, 0.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: inherit;
  z-index: -1;
}

.hero-text {
  flex: 1 1 300px;
  z-index: 1;
  max-width: 650px;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #2a1f1a;
}

.hero-text h1 .highlight {
  background: linear-gradient(135deg, #e4a788, #cb7e5a);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-text p {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  margin: 1.2rem 0 1.8rem;
  color: #3d2f27;
  max-width: 480px;
  font-weight: 500;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
}

.hero-buttons .btn {
  flex: 0 1 auto;
  min-width: 120px;
  max-width: 100%;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin: clamp(2rem, 5vw, 4rem) 0 clamp(1.2rem, 2vw, 2rem);
  letter-spacing: -0.01em;
  color: #2a1f1a;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.section-title small {
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  font-weight: 400;
  color: #7a6559;
}

/* ===== FLAVOUR GRID ===== */
.flavour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
}

.flavour-card {
  background: var(--color-white);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid #f3e7df;
  display: flex;
  flex-direction: column;
}

.flavour-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #e9d4c6;
}

.flavour-card img {
  width: 100%;
  height: clamp(160px, 25vw, 220px);
  object-fit: cover;
  display: block;
  background: #f0e3da;
}

.flavour-card-content {
  padding: clamp(1rem, 2vw, 1.8rem);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flavour-card-content h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: #2e241f;
}

.flavour-card-content p {
  color: var(--color-text-light);
  font-size: clamp(0.85rem, 1vw, 1rem);
  margin: 0.3rem 0 0.6rem;
  opacity: 0.85;
}

.badge {
  display: inline-block;
  background: #f1e1d7;
  padding: 0.2rem 1rem;
  border-radius: 40px;
  font-size: clamp(0.65rem, 0.8vw, 0.75rem);
  font-weight: 600;
  color: #6f4f3b;
  margin-top: 0.4rem;
  letter-spacing: 0.3px;
  align-self: center;
}

/* ===== PROMO BANNER ===== */
.promo-banner {
  background-image: url('https://images.unsplash.com/photo-1576502200916-3808e07386a5?w=1600&q=80');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg) var(--radius-md) var(--radius-lg) var(--radius-md);
  padding: clamp(1.8rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  margin: clamp(2rem, 5vw, 4rem) 0;
  position: relative;
  isolation: isolate;
  min-height: clamp(200px, 30vh, 320px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 15, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: inherit;
  z-index: -1;
}

.promo-banner-content {
  flex: 1 1 280px;
}

.promo-banner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--color-white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.promo-banner p {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: #f5ede8;
  max-width: 480px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-top: 0.3rem;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: auto;
  border-top: 1px solid #e8dbd2;
  padding: 2rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: #5b4a3e;
  font-size: clamp(0.85rem, 1vw, 1rem);
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer a {
  color: #7a5f4f;
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--color-primary-dark);
}

.footer .legal {
  opacity: 0.7;
  font-size: 0.85em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container {
    padding: 0.8rem 1.2rem;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .hero-text {
    text-align: center;
    max-width: 100%;
  }

  .hero-text p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
    width: 100%;
  }

  .promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .promo-banner-content {
    text-align: center;
  }

  .section-title {
    justify-content: center;
    text-align: center;
  }

  .flavour-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 1rem;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .footer-links {
    justify-content: center;
  }

  .lang-switcher[dir="ltr"],
  .lang-switcher[dir="rtl"] {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.6rem 0.8rem;
  }

  .hero {
    padding: 1.5rem 1rem;
    min-height: 260px;
    border-radius: var(--radius-sm);
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 0.95rem;
    margin: 0.8rem 0 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.6rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    min-width: unset;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    min-height: 48px;
    white-space: normal;
    word-break: break-word;
  }

  .flavour-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .flavour-card img {
    height: 130px;
  }

  .flavour-card-content {
    padding: 0.8rem 0.6rem;
  }

  .flavour-card-content h3 {
    font-size: 1rem;
  }

  .flavour-card-content p {
    font-size: 0.75rem;
  }

  .promo-banner {
    padding: 1.5rem 1rem;
    min-height: 180px;
  }

  .promo-banner h2 {
    font-size: 1.4rem;
  }

  .promo-banner p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
  }
}

/* ===== TV / LARGE SCREENS ===== */
@media (min-width: 1920px) {
  :root {
    --container-max: 1600px;
  }

  .container {
    padding: 2rem 4rem;
  }

  .hero {
    min-height: 600px;
    padding: 4rem 5rem;
  }

  .hero-text h1 {
    font-size: 5rem;
  }

  .hero-text p {
    font-size: 1.5rem;
    max-width: 600px;
  }

  .flavour-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 3rem;
  }

  .flavour-card img {
    height: 280px;
  }

  .promo-banner {
    min-height: 400px;
    padding: 4rem 5rem;
  }

  .btn {
    font-size: 1.3rem;
    padding: 1.2rem 3.5rem;
    min-height: 64px;
  }
}
