/* ============================================
   MaveraCoffee - تنسيقات الموقع
   ============================================ */

:root {
  --coffee-dark: #2d1b12;
  --coffee-brown: #59371f;
  --coffee-mid: #8b5a2b;
  --coffee-tan: #c8a27a;
  --coffee-cream: #f5ece1;
  --coffee-beige: #ead9c0;
  --coffee-white: #fdfaf5;
  --whatsapp: #25d366;
  --instagram: #e1306c;
  --facebook: #1877f2;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: "Segoe UI", Tahoma, "Arial", sans-serif;
  background: var(--coffee-white);
  color: var(--coffee-dark);
  overflow-x: hidden;
}

/* ---------- شريط التنقل ---------- */
.mavera-navbar {
  background: rgba(253, 250, 245, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(45, 27, 18, 0.08);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.mavera-navbar .navbar-brand {
  font-weight: 800;
  color: var(--coffee-brown);
  font-size: 1.3rem;
}

.mavera-navbar .navbar-brand i {
  color: var(--coffee-mid);
}

.mavera-navbar .nav-link {
  color: var(--coffee-dark);
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.mavera-navbar .nav-link:hover {
  color: var(--coffee-mid);
  background: var(--coffee-beige);
}

@media (min-width: 992px) {
  .mavera-navbar .nav-link.active {
    color: var(--coffee-mid);
  }
}

/* ---------- تبديل اللغة ---------- */
.language-switcher .dropdown-toggle::after {
  display: none;
}

.language-switcher .dropdown-menu {
  min-width: 170px;
  border: none;
  border-radius: 0.9rem;
  box-shadow: 0 10px 30px rgba(45, 27, 18, 0.15);
  padding: 0.4rem;
}

.language-switcher .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 0.6rem;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  color: var(--coffee-dark);
  cursor: pointer;
  transition: background 0.2s;
}

.language-switcher .dropdown-item:hover {
  background: var(--coffee-cream);
}

.language-switcher .dropdown-item.active,
.language-switcher .dropdown-item:active {
  background: var(--coffee-beige);
  color: var(--coffee-brown);
}

.flag {
  width: 22px;
  height: 15px;
  display: inline-block;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.flag.ar {
  background-image: linear-gradient(to bottom,
    #ffffff 0%, #ffffff 33%,
    #006c35 33%, #006c35 66%,
    #000000 66%, #000000 100%);
}

.flag.en {
  background-image: linear-gradient(to bottom,
    #00247d 0%, #00247d 33%,
    #ffffff 33%, #ffffff 66%,
    #cf142b 66%, #cf142b 100%);
}

.flag.tr {
  background: linear-gradient(to bottom, #e30a17, #c8102e);
}

.language-code {
  font-weight: 700;
  font-size: 0.8rem;
}

.toast-container {
  z-index: 2000;
}

/* ---------- قسم البطل ---------- */
.hero {
  min-height: 100vh;
  padding-top: 4.5rem;
  background: linear-gradient(135deg, var(--coffee-dark) 0%, var(--coffee-brown) 55%, var(--coffee-mid) 100%);
  color: var(--coffee-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 162, 122, 0.25) 0%, transparent 70%);
  top: -150px;
  left: -150px;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(245, 236, 225, 0.15);
  border: 1px solid rgba(200, 162, 122, 0.5);
  color: var(--coffee-tan);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
  }
}

.hero-sub {
  color: rgba(245, 236, 225, 0.85);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 1.8rem;
}

@media (min-width: 992px) {
  .hero-sub {
    margin-inline-start: 0;
  }
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

@media (min-width: 992px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.btn-mavera {
  background: var(--coffee-mid);
  border: none;
  color: var(--coffee-white);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-mavera:hover {
  background: var(--coffee-tan);
  color: var(--coffee-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
  border-radius: 2rem;
  padding: 0.75rem 2rem;
  font-weight: 700;
}

/* ============================================
   فنجان القهوة المتحرك مع البخار
   ============================================ */
.steam-cup {
  position: relative;
  width: 260px;
  height: 300px;
  margin: 0 auto;
  animation: cupFloat 6s ease-in-out infinite;
}

@keyframes cupFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.steam {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 160px;
  height: 110px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}

.steam-line {
  position: absolute;
  bottom: 0;
  width: 3px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(to top, rgba(255, 244, 230, 0.9), rgba(255, 244, 230, 0));
  opacity: 0;
  filter: blur(1.5px);
  animation: steamRise 3.6s ease-in-out infinite;
}

.steam-line.s1 { left: 12%; animation-delay: 0s; }
.steam-line.s2 { left: 42%; animation-delay: 1.2s; }
.steam-line.s3 { left: 66%; animation-delay: 2s; }
.steam-line.s4 { left: 88%; animation-delay: 0.6s; width: 2px; height: 34px; }

@keyframes steamRise {
  0%   { transform: translateY(0) scale(0.7); opacity: 0; }
  25%  { opacity: 0.75; }
  100% { transform: translateY(-90px) scale(1.5); opacity: 0; }
}

.cup {
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 112px;
  background: linear-gradient(to bottom, #f7f0e4, #e8d9c2);
  border-radius: 6px 6px 46px 46px;
  box-shadow: inset 0 -8px 12px rgba(89, 55, 31, 0.12);
  overflow: visible;
}

.cup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 5px;
  border-radius: 50%;
  background: rgba(89, 55, 31, 0.35);
}

.cup-body {
  position: absolute;
  top: 10px;
  left: 8px;
  right: 8px;
  bottom: 6px;
  border-radius: 40px;
  overflow: hidden;
  background: linear-gradient(to bottom, #6b3f1d, #4a2a12);
}

.coffee-fill {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, #8a5a2e, #5a3418);
  border-top: 2px solid rgba(200, 162, 122, 0.5);
}

.coffee-fill::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #8f5f2f 0%, #5a3418 75%);
}

.cup-handle {
  position: absolute;
  right: -30px;
  top: 18px;
  width: 44px;
  height: 52px;
  border: 9px solid #e8d9c2;
  border-left: none;
  border-radius: 0 26px 26px 0;
}

[dir="ltr"] .cup-handle {
  right: auto;
  left: -30px;
  border-left: 9px solid #e8d9c2;
  border-right: none;
  border-radius: 26px 0 0 26px;
}

.saucer {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #f2e8d6, #dcc7a8);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.cup-shadow {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45), transparent 70%);
  filter: blur(4px);
}

@media (max-width: 1199px) {
  .steam-cup { transform: scale(0.85); }
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* ---------- الأقسام العامة ---------- */
.section {
  padding: 4rem 0;
}

@media (min-width: 992px) {
  .section {
    padding: 6rem 0;
  }
}

.section-tag {
  display: inline-block;
  background: var(--coffee-beige);
  color: var(--coffee-brown);
  padding: 0.35rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-title {
  font-weight: 800;
  color: var(--coffee-dark);
  margin-bottom: 1rem;
}

.section-text {
  color: #7a6a5a;
  line-height: 1.8;
}

.about-section {
  background: var(--coffee-white);
}

.about-image {
  width: 240px;
  height: 240px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--coffee-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--coffee-mid);
  box-shadow: 0 12px 40px rgba(89, 55, 31, 0.15);
}

@media (min-width: 768px) {
  .about-image {
    width: 320px;
    height: 320px;
    font-size: 8rem;
  }
}

.feature-box {
  background: var(--coffee-cream);
  border: 1px solid var(--coffee-beige);
  border-radius: 1rem;
  padding: 1.2rem;
  height: 100%;
  text-align: center;
  transition: transform 0.2s;
}

.feature-box:hover {
  transform: translateY(-4px);
}

.feature-box i {
  font-size: 1.8rem;
  color: var(--coffee-mid);
  margin-bottom: 0.6rem;
}

.feature-box h6 {
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.feature-box p {
  font-size: 0.85rem;
  color: #7a6a5a;
  margin: 0;
}

/* ---------- قسم المشروبات ---------- */
.menu-section {
  background: var(--coffee-cream);
}

.menu-card {
  border: none;
  border-radius: 1.2rem;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 30px rgba(89, 55, 31, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
  background: var(--coffee-white);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(89, 55, 31, 0.15);
}

.menu-icon {
  background: linear-gradient(135deg, var(--coffee-brown), var(--coffee-mid));
  color: var(--coffee-tan);
  font-size: 2.2rem;
  padding: 2.2rem 0;
}

.menu-card .card-title {
  font-weight: 800;
  color: var(--coffee-dark);
}

.menu-card .card-text {
  color: #7a6a5a;
  font-size: 0.95rem;
}

.price {
  display: inline-block;
  background: var(--coffee-beige);
  color: var(--coffee-brown);
  font-weight: 800;
  padding: 0.35rem 1.4rem;
  border-radius: 2rem;
  margin-top: 0.5rem;
}

/* ---------- قسم التواصل ---------- */
.contact-section {
  background: var(--coffee-white);
}

.contact-card {
  display: block;
  text-align: center;
  background: var(--coffee-white);
  border: 2px solid var(--coffee-beige);
  border-radius: 1.2rem;
  padding: 2rem 1.2rem;
  color: var(--coffee-dark);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(89, 55, 31, 0.15);
  color: var(--coffee-dark);
}

.contact-card i {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  display: block;
}

.contact-card h5 {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: #7a6a5a;
  margin: 0;
  word-break: break-all;
}

.contact-whatsapp i { color: var(--whatsapp); }
.contact-whatsapp:hover { border-color: var(--whatsapp); }
.contact-instagram i { color: var(--instagram); }
.contact-instagram:hover { border-color: var(--instagram); }
.contact-facebook i { color: var(--facebook); }
.contact-facebook:hover { border-color: var(--facebook); }
.contact-email i { color: var(--coffee-mid); }
.contact-email:hover { border-color: var(--coffee-mid); }

/* ---------- زر الواتساب العائم ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.2rem;
  left: 1.2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 1050;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

/* ---------- التذييل ---------- */
.mavera-footer {
  background: var(--coffee-dark);
  color: var(--coffee-cream);
  padding: 3.5rem 0 1.5rem;
}

.mavera-footer h5 {
  color: var(--coffee-tan);
  font-weight: 700;
}

.mavera-footer p {
  color: rgba(234, 217, 192, 0.75);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(234, 217, 192, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--coffee-tan);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(234, 217, 192, 0.1);
  border: 1px solid rgba(200, 162, 122, 0.4);
  color: var(--coffee-tan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.2s;
}

.footer-social a:hover {
  background: var(--coffee-mid);
  color: var(--coffee-white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(200, 162, 122, 0.2);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(234, 217, 192, 0.6);
  font-size: 0.9rem;
}