/*
Theme Name: Areen Alarab
Theme URI: https://areenalarab.com
Author: Areen Alarab Group
Description: Premium landing page for Areen Alarab International Dining Group
Version: 1.0
Text Domain: areen-alarab
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  --background:        hsl(40, 20%, 98%);
  --foreground:        hsl(220, 10%, 10%);
  --card:              hsl(0, 0%, 100%);
  --card-foreground:   hsl(220, 10%, 10%);
  --primary:           hsl(220, 15%, 15%);
  --primary-foreground:hsl(40, 20%, 98%);
  --secondary:         hsl(40, 30%, 85%);
  --secondary-foreground: hsl(220, 15%, 15%);
  --muted:             hsl(40, 10%, 92%);
  --muted-foreground:  hsl(220, 5%, 40%);
  --accent:            hsl(40, 40%, 75%);
  --accent-foreground: hsl(220, 15%, 15%);
  --border:            hsl(40, 10%, 85%);
  --radius:            0.5rem;
  --shadow-sm:         0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:         0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-xl:         0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
  text-wrap: balance;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   Utility Classes
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ============================================================
   Scroll Animation — fade-up via Intersection Observer
   ============================================================ */
.anim-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.21, 0.47, 0.32, 0.98),
              transform 0.7s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}
.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.35s; }
.anim-delay-4 { transition-delay: 0.5s; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
}
.site-header.scrolled {
  background: hsla(40, 20%, 98%, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo a {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: white;
  transition: color 0.3s;
}
.logo-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.site-header.scrolled .logo-name    { color: var(--foreground); }
.site-header.scrolled .logo-tagline { color: var(--muted-foreground); }

.desktop-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .desktop-nav { display: flex; } }
.desktop-nav a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s;
}
.desktop-nav a:hover { color: var(--accent); }
.site-header.scrolled .desktop-nav a { color: rgba(34,39,54,0.8); }
.site-header.scrolled .desktop-nav a:hover { color: var(--accent); }

/* Mobile hamburger */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0.5rem;
  color: white;
  transition: color 0.3s;
}
@media (min-width: 768px) { .mobile-toggle { display: none; } }
.site-header.scrolled .mobile-toggle { color: var(--foreground); }
.mobile-toggle svg { width: 1.5rem; height: 1.5rem; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
  gap: 1.5rem;
  overflow: hidden;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: "Playfair Display", serif;
  font-size: 1.125rem;
  color: var(--foreground);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--accent); }

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,15,15,0.4) 0%, rgba(15,15,15,0.8) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  margin-top: 4rem;
}
.hero-eyebrow {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s 0.2s cubic-bezier(0.21,0.47,0.32,0.98) forwards;
}
.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s 0.4s cubic-bezier(0.21,0.47,0.32,0.98) forwards;
}
.hero-divider {
  width: 6rem;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 2rem;
  opacity: 0;
  animation: heroFadeUp 1s 0.6s ease forwards;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  max-width: 38rem;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s 0.8s cubic-bezier(0.21,0.47,0.32,0.98) forwards;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: heroFadeUp 1s 1.5s ease forwards;
}
.scroll-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.scroll-line {
  width: 1px;
  height: 3rem;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
  position: relative;
}
.scroll-line::after {
  content: '';
  display: block;
  width: 100%;
  height: 50%;
  background: white;
  animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollDrop {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(100%); }
  100% { transform: translateY(300%); }
}

/* ============================================================
   Brands Section
   ============================================================ */
.brands-section {
  padding: 6rem 0 8rem;
}
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-eyebrow {
  display: block;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
}
.brands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .brands-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .brands-grid .cafe-card:nth-child(2) { transform: translateY(3rem); }
}

/* ============================================================
   Cafe Card
   ============================================================ */
.cafe-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid hsla(40, 10%, 85%, 0.5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.5s ease, transform 0.5s ease;
  height: 100%;
}
@media (min-width: 768px) { .cafe-card { padding: 3rem; } }
.cafe-card:hover { box-shadow: var(--shadow-xl); }

.cafe-logo-wrap {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid hsla(40, 10%, 85%, 0.5);
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(255,120,0,0.25);
  transition: transform 0.5s ease;
}
@media (min-width: 768px) { .cafe-logo-wrap { width: 10rem; height: 10rem; } }
.cafe-card:hover .cafe-logo-wrap { transform: scale(1.05); }

.cafe-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cafe-logo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cafe-logo-placeholder span {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-foreground);
  letter-spacing: -0.05em;
}

.cafe-name {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
.cafe-slogan {
  color: var(--muted-foreground);
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.btn-view-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  border: 1px solid hsla(220, 10%, 15%, 0.2);
  background: transparent;
  color: var(--foreground);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-view-menu:hover {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}
.cafe-card:hover .btn-view-menu { border-color: var(--foreground); }
.btn-view-menu svg { width: 1rem; height: 1rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand-name {
  font-family: "Playfair Display", serif;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.4rem;
}
.footer-brand-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsla(40, 20%, 98%, 0.6);
  display: block;
  margin-bottom: 1.5rem;
}
.footer-desc {
  color: hsla(40, 20%, 98%, 0.8);
  max-width: 26rem;
  line-height: 1.8;
  font-weight: 300;
  font-size: 0.9rem;
}

.footer-col-title {
  font-family: "Playfair Display", serif;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}
.footer-contact-list { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: hsla(40, 20%, 98%, 0.8);
  line-height: 1.5;
}
.footer-contact-item svg { width: 1rem; height: 1rem; opacity: 0.7; margin-top: 0.15rem; flex-shrink: 0; }

.social-links { display: flex; align-items: center; gap: 1rem; }
.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid hsla(40, 20%, 98%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}
.social-link:hover { background: var(--primary-foreground); color: var(--primary); }
.social-link svg { width: 1rem; height: 1rem; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsla(40, 20%, 98%, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 300;
  color: hsla(40, 20%, 98%, 0.6);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-links { display: flex; align-items: center; gap: 1.5rem; }
.footer-links a:hover { color: var(--primary-foreground); }

/* ============================================================
   Menu Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  width: 100%;
  max-width: 56rem;
  height: 85vh;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.21,0.47,0.32,0.98);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: hsla(40, 10%, 92%, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.modal-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--foreground);
  text-align: center;
}
.modal-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--foreground); background: var(--muted); }
.modal-close svg { width: 1.25rem; height: 1.25rem; }

.modal-body {
  flex: 1;
  position: relative;
  background: hsla(40, 10%, 92%, 0.1);
}
.modal-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.modal-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}
