/* ============================================================
   BREW & CO — Bilingual (AR/EN) + Dark/Light Theme Stylesheet
   ============================================================ */

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

/* ══════════════════════════════════════════════════════════════
   CSS VARIABLES — Light Theme (default)
══════════════════════════════════════════════════════════════ */
:root {
  --primary: #6f4e37;
  --primary-light: #8b6249;
  --secondary: #c4a484;
  --accent: #d4af37;
  --accent-glow: rgba(212, 175, 55, 0.35);

  /* Light theme surfaces */
  --bg: #f5f1eb;
  --bg-alt: #ede8e0;
  --surface: #ffffff;
  --surface-2: #faf7f3;
  --border: rgba(111, 78, 55, 0.12);

  /* Light theme text */
  --text: #2b2b2b;
  --text-mid: #5a4a3a;
  --text-light: #7a6a5a;
  --text-muted: #a89a8a;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(111, 78, 55, 0.1);
  --shadow-md: 0 6px 28px rgba(111, 78, 55, 0.16);
  --shadow-lg: 0 16px 48px rgba(111, 78, 55, 0.22);

  /* Layout */
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Features section (dark bg) */
  --feat-bg: var(--primary);
  --feat-card-bg: rgba(255, 255, 255, 0.06);
  --feat-card-border: rgba(196, 164, 132, 0.2);
  --feat-title: #ffffff;
  --feat-desc: rgba(255, 255, 255, 0.62);
  --feat-sub: rgba(255, 255, 255, 0.65);
  --feat-icon-bg: rgba(212, 175, 55, 0.15);

  /* Footer (always dark) */
  --footer-bg: #1a0e07;
  --footer-text: rgba(255, 255, 255, 0.65);
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-social: rgba(255, 255, 255, 0.6);
  --footer-sborder: rgba(255, 255, 255, 0.15);
}

/* ══════════════════════════════════════════════════════════════
   CSS VARIABLES — Dark Theme
══════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg: #1a1108;
  --bg-alt: #231610;
  --surface: #2a1c10;
  --surface-2: #321f12;
  --border: rgba(196, 164, 132, 0.15);

  --text: #f0e8dc;
  --text-mid: #d4c5b0;
  --text-light: #b09a82;
  --text-muted: #8a7060;

  --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 52px rgba(0, 0, 0, 0.6);

  --feat-bg: #110a04;
  --feat-card-bg: rgba(196, 164, 132, 0.06);
  --feat-card-border: rgba(196, 164, 132, 0.12);

  --footer-bg: #0d0702;
}

/* ══════════════════════════════════════════════════════════════
   FONTS — Arabic vs English
══════════════════════════════════════════════════════════════ */
[data-lang="en"] body {
  font-family: "Poppins", sans-serif;
}
[data-lang="ar"] body {
  font-family: "Tajawal", sans-serif;
  font-size: 1.04rem;
}
[data-lang="ar"] .section-title,
[data-lang="ar"] .hero-title,
[data-lang="ar"] .nav-logo,
[data-lang="ar"] .footer-logo,
[data-lang="ar"] .menu-card-name,
[data-lang="ar"] .feature-title,
[data-lang="ar"] .testimonial-name {
  font-family: "Amiri", serif;
}
[data-lang="ar"] .section-title em,
[data-lang="ar"] .hero-title em {
  font-style: normal;
}

/* ══════════════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* Theme transition on all key elements */
nav,
section,
footer,
.menu-card,
.testimonial-card,
.contact-form,
.feature-card,
.info-icon {
  transition:
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

/* ── Utility ────────────────────────────── */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
[data-lang="ar"] .section-tag {
  letter-spacing: 0;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--primary);
  line-height: 1.2;
}
[data-theme="dark"] .section-title {
  color: var(--secondary);
}

.section-sub {
  margin-top: 0.8rem;
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 520px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    padding var(--transition);
}
#navbar.scrolled {
  background: var(--bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 0;
}
[data-theme="dark"] #navbar.scrolled {
  background: rgba(26, 17, 8, 0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  flex-shrink: 0;
}
.nav-logo span {
  color: var(--accent);
}
#navbar.scrolled .nav-logo {
  color: var(--primary);
}
[data-theme="dark"] #navbar.scrolled .nav-logo {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
}
[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
#navbar.scrolled .nav-links a {
  color: var(--text);
}
#navbar.scrolled .nav-links a:hover {
  color: var(--primary);
}
[data-theme="dark"] #navbar.scrolled .nav-links a {
  color: var(--text);
}

.nav-reserve {
  background: var(--accent) !important;
  color: var(--primary) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 50px;
  font-weight: 600 !important;
}
.nav-reserve::after {
  display: none !important;
}
.nav-reserve:hover {
  opacity: 0.88;
}

/* Nav Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  backdrop-filter: blur(6px);
  font-family: inherit;
}
#navbar.scrolled .ctrl-btn {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}
.ctrl-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  transform: scale(1.08);
}
.lang-btn {
  width: auto;
  padding: 0 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
}

/* Theme icon swap */
.icon-moon {
  display: none;
}
[data-theme="dark"] .icon-sun {
  display: none;
}
[data-theme="dark"] .icon-moon {
  display: block;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
#navbar.scrolled .hamburger span {
  background: var(--text);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: background 0.35s;
}
[data-theme="dark"] .mobile-menu {
  background: #0d0500;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-size: 1.7rem;
  color: #fff;
  font-weight: 600;
  transition: color var(--transition);
}
[data-lang="ar"] .mobile-menu a {
  font-family: "Amiri", serif;
  font-size: 2rem;
}
.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.8rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color var(--transition);
}
[dir="rtl"] .mobile-close {
  right: auto;
  left: 1.8rem;
}
.mobile-close:hover {
  color: #fff;
}

.mobile-controls {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.mobile-controls .ctrl-btn {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      160deg,
      rgba(30, 15, 5, 0.78) 0%,
      rgba(111, 78, 55, 0.58) 100%
    ),
    url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1800&q=80")
      center/cover no-repeat;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 8rem 5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.4rem;
}
[data-lang="ar"] .hero-badge {
  letter-spacing: 0;
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: #fff;
  line-height: 1.15;
  max-width: 700px;
  margin-bottom: 1.4rem;
}
[data-lang="ar"] .hero-title {
  line-height: 1.4;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin-bottom: 2.4rem;
  line-height: 1.85;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
[data-lang="ar"] .hero-scroll {
  letter-spacing: 0;
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.1);
  }
}

/* ══════════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════════ */
#about {
  padding-block: 7rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
[dir="rtl"] .about-grid {
  direction: rtl;
}

.about-img-wrap {
  position: relative;
}
.about-img-main {
  border-radius: var(--radius);
  height: 500px;
  box-shadow: var(--shadow-lg);
}
.about-img-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 200px;
  height: 200px;
  border-radius: var(--radius);
  border: 5px solid var(--bg);
  box-shadow: var(--shadow-md);
}
[dir="rtl"] .about-img-accent {
  right: auto;
  left: -2rem;
}
.about-badge {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 90px;
  height: 90px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  text-align: center;
  line-height: 1.2;
}
[dir="rtl"] .about-badge {
  right: auto;
  left: -1rem;
}
.about-badge strong {
  font-size: 1.4rem;
}
.about-badge small {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
[data-lang="ar"] .about-badge small {
  letter-spacing: 0;
}

.about-text .section-sub {
  max-width: 100%;
}
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}
[data-theme="dark"] .stat-item strong {
  color: var(--secondary);
}
.stat-item span {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
}
[data-lang="ar"] .stat-item span {
  text-transform: none;
}

/* ══════════════════════════════════════════════════════════════
   MENU
══════════════════════════════════════════════════════════════ */
#menu {
  padding-block: 7rem;
  background: var(--bg-alt);
}
.menu-header {
  text-align: center;
  margin-bottom: 1rem;
}
.menu-filters {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1.5px solid var(--secondary);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.8rem;
}
.menu-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    background 0.35s;
  transform-style: preserve-3d;
  cursor: pointer;
}
.menu-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
}
.menu-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.menu-card-img img {
  height: 100%;
  transition: transform 0.5s ease;
}
.menu-card:hover .menu-card-img img {
  transform: scale(1.08);
}
.menu-card-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}
[dir="rtl"] .menu-card-badge {
  right: auto;
  left: 0.8rem;
}
[data-lang="ar"] .menu-card-badge {
  letter-spacing: 0;
}
.menu-card-body {
  padding: 1.3rem 1.5rem 1.5rem;
}
.menu-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
[data-theme="dark"] .menu-card-name {
  color: var(--secondary);
}
.menu-card-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}
[data-theme="dark"] .menu-price {
  color: var(--accent);
}
.menu-order-btn {
  width: 36px;
  height: 36px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--primary);
  transition: var(--transition);
}
.menu-order-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════════════════ */
#features {
  padding-block: 7rem;
  background: var(--feat-bg);
  position: relative;
  overflow: hidden;
}
#features::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C4A484' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.features-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}
.features-header .section-title {
  color: #fff;
}
.features-header .section-sub {
  color: var(--feat-sub);
  margin-inline: auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.feature-card {
  background: var(--feat-card-bg);
  border: 1px solid var(--feat-card-border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: var(--transition);
}
[dir="rtl"] .feature-card {
  text-align: center;
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
}
.feature-icon {
  width: 68px;
  height: 68px;
  background: var(--feat-icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.3rem;
  font-size: 1.7rem;
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--accent);
}
.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--feat-title);
  margin-bottom: 0.6rem;
}
.feature-desc {
  font-size: 0.83rem;
  color: var(--feat-desc);
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════════════════ */
#gallery {
  padding-block: 7rem;
}
.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item:first-child {
  grid-row: span 2;
}
.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(111, 78, 55, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-overlay span {
  font-size: 1.7rem;
  color: #fff;
}
.gallery-item:hover img {
  transform: scale(1.07);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox.open {
  display: flex;
}
#lightboxImg {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  cursor: default;
}
#lightboxClose {
  position: absolute;
  top: 1.5rem;
  right: 1.8rem;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
[dir="rtl"] #lightboxClose {
  right: auto;
  left: 1.8rem;
}
#lightboxClose:hover {
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════════════ */
#testimonials {
  padding-block: 7rem;
  background: var(--bg-alt);
}
.testimonials-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.testimonial-quote {
  font-size: 3rem;
  color: var(--accent);
  line-height: 0.7;
  margin-bottom: 1rem;
}
[dir="rtl"] .testimonial-quote {
  text-align: right;
}
.testimonial-text {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  font-style: italic;
}
[dir="rtl"] .testimonial-text {
  font-style: normal;
  text-align: right;
}
.testimonial-author {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}
.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-light);
}
.stars {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════════ */
#contact {
  padding-block: 7rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-info .section-sub {
  max-width: 100%;
  margin-bottom: 2.5rem;
}
.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
  align-items: flex-start;
}
.info-icon {
  width: 44px;
  height: 44px;
  background: rgba(111, 78, 55, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}
[data-theme="dark"] .info-icon {
  background: rgba(196, 164, 132, 0.1);
  color: var(--secondary);
}
.info-item:hover .info-icon {
  background: var(--primary);
  color: #fff;
}
.info-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.info-text span {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.6;
}
.contact-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 1.4rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}
[data-lang="ar"] .form-group label {
  letter-spacing: 0;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.87rem;
  color: var(--text);
  background: var(--bg);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background 0.35s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(196, 164, 132, 0.2);
  background: var(--surface);
}
.form-group textarea {
  min-height: 130px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-submit {
  width: 100%;
  padding: 0.95rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.form-submit:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.form-success {
  display: none;
  text-align: center;
  padding: 1.2rem;
  background: rgba(111, 78, 55, 0.07);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 1rem;
}
[data-theme="dark"] .form-success {
  background: rgba(196, 164, 132, 0.1);
  color: var(--secondary);
}
.form-success.show {
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-block: 4rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--footer-border);
  margin-bottom: 2rem;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-logo span {
  color: var(--accent);
}
.footer-about {
  font-size: 0.82rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.social-links {
  display: flex;
  gap: 0.7rem;
}
[dir="rtl"] .social-links {
  justify-content: flex-start;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--footer-sborder);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--footer-social);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}
.footer-col h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer-col ul li {
  margin-bottom: 0.65rem;
}
.footer-col ul a,
.footer-col ul span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}
.footer-col ul a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a {
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   RTL OVERRIDES
══════════════════════════════════════════════════════════════ */
[dir="rtl"] body {
  text-align: right;
}
[dir="rtl"] .section-tag {
  letter-spacing: 0;
}
[dir="rtl"] .about-stats {
  direction: rtl;
}
[dir="rtl"] .hero-cta {
  direction: rtl;
}
[dir="rtl"] .info-item {
  direction: rtl;
}
[dir="rtl"] .testimonial-author {
  direction: rtl;
}
[dir="rtl"] .footer-grid {
  direction: rtl;
}
[dir="rtl"] .footer-bottom {
  direction: rtl;
  flex-direction: row-reverse;
}
[dir="rtl"] .menu-filters {
  direction: rtl;
}
[dir="rtl"] .features-grid {
  direction: rtl;
}
[dir="rtl"] .contact-grid {
  direction: rtl;
}
[dir="rtl"] .form-row {
  direction: rtl;
}
[dir="rtl"] .nav-links {
  direction: rtl;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .nav-links {
    gap: 1.2rem;
  }
  .nav-links .nav-reserve {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item:first-child {
    grid-row: span 1;
  }
  .about-img-accent {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item {
    height: 220px;
  }
  .about-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }
  .btn {
    text-align: center;
    justify-content: center;
  }
  .about-img-accent {
    display: none;
  }
  .about-badge {
    top: 0.5rem;
    right: 0.5rem;
    width: 70px;
    height: 70px;
  }
  [dir="rtl"] .about-badge {
    right: auto;
    left: 0.5rem;
  }
  .about-badge strong {
    font-size: 1.1rem;
  }
}
