/* ============ Base ============ */
:root {
  --brown-900: #2c1a10;
  --brown-800: #4a2c1d;
  --brown-700: #5b2e1c;
  --brown-muted: #8a7a6b;
  --gold: #b78a5e;
  --gold-dark: #a3764c;
  --cream: #faf5ec;
  --cream-2: #f4ede3;
  --cream-line: #e7ddd0;
  --tab-line: #e4d7c5;
  --tab-bg: #f8f2e9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  color: var(--brown-900);
  background: #fff;
}

/* RTL Support */
[dir="rtl"] {
  font-family: "Poppins", "Segoe UI", Tahoma, Arial, sans-serif;
}

[dir="rtl"] .hero-headline {
  direction: rtl;
}

[dir="rtl"] .footer-grid {
  direction: rtl;
}

[dir="rtl"] .newsletter-form {
  direction: rtl;
}

[dir="rtl"] .newsletter-form input {
  text-align: right;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Playfair Display", ui-serif, Georgia, serif;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.logo--icon {
  height: 54px;
}

/* ============ Header ============ */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  color: #fff;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.main-nav a {
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #fcd9a3;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Desktop-only header items (Admin link, wishlist/account icons) — hidden
   below 768px and restored by the .hide-mobile override in the desktop
   media query further down. !important matches that override (same
   specificity as .admin-btn/.icon-btn, which are declared later in this
   file and would otherwise win the cascade and keep these visible on
   mobile, crowding the header and causing horizontal overflow). */
.hide-mobile {
  display: none !important;
}

/* Language Toggle Button */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lang-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
  padding: 2px 6px;
  border-radius: 999px;
}

.lang-toggle[data-active-lang="en"] .lang-label[data-lang="en"],
.lang-toggle[data-active-lang="ar"] .lang-label[data-lang="ar"] {
  color: #fff;
  background: var(--gold);
}

/* Admin Button */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  text-decoration: none;
}

.admin-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.icon-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.icon-btn:hover {
  color: #fcd9a3;
}

#menuToggle {
  display: flex;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin: 0 24px 16px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  font-size: 16px;
}

.mobile-nav.open {
  display: flex;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
  .hide-mobile {
    display: flex !important;
  }
  #menuToggle {
    display: none;
  }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #4a3b31;
}

@media (min-width: 768px) {
  .hero {
    min-height: 92vh;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  background: #4a3b31;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}

.hero-cup-wrap {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  max-width: 1280px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 24px 40px;
  pointer-events: none;
}

.hero-cup {
  width: 160px;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.35));
}

@media (min-width: 640px) {
  .hero-cup { width: 220px; }
}
@media (min-width: 768px) {
  .hero-cup { width: 280px; }
}
@media (min-width: 1024px) {
  .hero-cup { width: 320px; }
}

.hero-headline {
  position: absolute;
  inset-inline: 0;
  bottom: 40px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}

.hero-headline h1 {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.35);
  font-size: 42px;
}

.hero-headline-right {
  display: none;
  text-align: right;
}

.hero-welcome {
  margin-top: 8px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 24px;
  color: #fde9c8;
}

.hero-headline-mobile {
  position: absolute;
  bottom: 40px;
  right: 16px;
  z-index: 20;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.35);
  font-size: 42px;
}

@media (min-width: 640px) {
  .hero-headline h1 { font-size: 64px; }
  .hero-headline-right { display: block; }
  .hero-headline-mobile { display: none; }
  .hero-headline { padding: 0 32px; }
}
@media (min-width: 768px) {
  .hero-headline { bottom: 64px; padding: 0 64px; }
  .hero-headline h1 { font-size: 80px; }
  .hero-welcome { font-size: 30px; }
}
@media (min-width: 1024px) {
  .hero-headline h1 { font-size: 96px; }
}

/* ============ Announcement Marquee ============ */
.marquee {
  overflow: hidden;
  background: var(--brown-900);
  border-block: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}

.marquee-item {
  flex: 0 0 auto;
  padding-inline-end: 56px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 15px;
  color: #f0dcc0;
  white-space: nowrap;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

[dir="rtl"] .marquee-track {
  animation-name: marquee-scroll-rtl;
}

@keyframes marquee-scroll-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .marquee {
    overflow-x: auto;
  }
}

@media (min-width: 768px) {
  .marquee-item { font-size: 17px; }
}

/* ============ Menu Section ============ */
.menu-section {
  background: #fff;
  padding: 80px 24px;
}

.menu-heading h2 {
  font-weight: 900;
  font-size: 36px;
  color: var(--brown-800);
}

.menu-tagline {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
}

@media (min-width: 768px) {
  .menu-heading h2 { font-size: 48px; }
}

.menu-heading {
  margin-bottom: 40px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.tab-btn {
  border-radius: 999px;
  border: 1px solid var(--tab-line);
  background: var(--tab-bg);
  color: #8a6a4b;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tab-btn:hover {
  background: #f0e3d1;
}

.tab-btn.active {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}

.active-tagline {
  font-size: 14px;
  color: var(--brown-muted);
  margin-bottom: 24px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 640px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
}

.menu-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--cream-line);
  background: var(--cream-2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}

.menu-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.menu-card-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: #fff;
  padding: 16px;
}

.menu-card-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.menu-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
}

.menu-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--brown-800);
}

.menu-card-desc {
  font-size: 12px;
  color: var(--brown-muted);
}

.menu-card-price {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  color: var(--brown-800);
}

.variant-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  background: rgba(255,255,255,0.7);
  padding: 6px 10px;
  font-size: 12px;
  transition: background 0.15s, box-shadow 0.15s;
}

.variant-row[data-image] {
  cursor: pointer;
}

.variant-row[data-image]:hover {
  background: rgba(255,255,255,0.95);
}

.variant-row[data-image].active {
  background: #fff;
  box-shadow: 0 0 0 1.5px var(--gold) inset;
}

.variant-row .label {
  font-weight: 600;
  color: var(--brown-800);
}

.variant-row .price {
  font-weight: 600;
  color: var(--brown-muted);
}

.more-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.more-wrap.hidden {
  display: none;
}

.btn-primary {
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 12px 40px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--gold-dark);
}

/* ============ Promo ============ */
.promo {
  background: #f3c9c9;
  overflow: hidden;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
  padding: 64px 24px;
}

@media (min-width: 768px) {
  .promo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.promo-title {
  font-weight: 900;
  line-height: 1;
  font-size: 48px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.promo-title-italic {
  margin-left: 8px;
  font-weight: 400;
  font-style: italic;
  font-size: 24px;
  color: var(--brown-700);
}

.promo-title-dark {
  color: var(--brown-700);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .promo-title { font-size: 60px; }
}

.promo-drink-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--brown-700);
}

.promo-desc {
  margin-top: 8px;
  max-width: 380px;
  font-size: 14px;
  line-height: 1.6;
  color: #7a5a48;
}

.promo-stats {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.promo-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--brown-700);
}

.promo-old-price {
  font-size: 14px;
  color: #a97b6a;
  text-decoration: line-through;
}

.promo-stat-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--brown-700);
}

.promo-stat-sub {
  font-size: 12px;
  color: #7a5a48;
}

.btn-dark {
  display: inline-block;
  margin-top: 32px;
  border-radius: 999px;
  background: var(--brown-700);
  color: #fff;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: background 0.2s;
}

.btn-dark:hover {
  background: #432113;
}

.promo-image-wrap {
  display: flex;
  justify-content: center;
}

.promo-image {
  max-height: 420px;
  width: auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--brown-900);
  color: #e6d8c8;
  padding: 56px 24px;
}

.footer-grid {
  display: grid;
  /* minmax(0, 1fr) instead of plain 1fr: a plain 1fr track's implicit
     minimum size is its content's min-content width, so a wide child
     (the newsletter form, below) was forcing every column — and the
     whole page — wider than the viewport on narrow phones. minmax(0, …)
     lets the track actually shrink to fit. */
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.logo--footer {
  height: 56px;
  object-fit: contain;
}

.footer-desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #c3ac96;
}

.footer-social {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.social-btn {
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  padding: 8px;
  display: flex;
  color: #e6d8c8;
  transition: background 0.2s;
}

.social-btn:hover {
  background: rgba(255,255,255,0.2);
}

.footer-heading {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #c3ac96;
}

.footer-list a:hover {
  color: #fff;
}

.footer-contact li {
  line-height: 1.5;
}

.newsletter-form {
  margin-top: 12px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  color: #fff;
  font-family: inherit;
}

.newsletter-form input::placeholder {
  color: #a68a71;
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form button {
  border: none;
  background: var(--gold);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #a68a71;
}
