/* =====================================================
   ROOT VARIABLES & RESET
===================================================== */
:root {
  --primary-color: #D97706;
  --primary-dark: #b45309;
  --accent-gold: #EAAB00;
  --dark-color: #121212;
  --dark-brown: #1a110b;
  --cream-bg: #F9F8F3;
  --page-bg: #F5F3ED;
  --text-muted: #777;
  --text-light: #aaa;
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--page-bg);
  overflow-x: hidden;
  color: #1a1a1a;
}

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

/* =====================================================
    UTILITIES
===================================================== */
.section-padding {
  padding: 80px 0;
}

.section-title h2 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-title span,
.text-accent {
  color: var(--primary-color);
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 50px;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn-order {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-block;
  transition: background var(--transition), transform var(--transition);
}

.btn-order:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: scale(1.05);
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
  padding: 15px 0;
  transition: background 0.4s ease, padding 0.4s ease;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
  color: var(--primary-color) !important;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
  padding: 6px 12px !important;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-color) !important;
}

/* Collapsed mobile menu styling */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(18, 18, 18, 0.97);
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 10px;
  }

  .navbar-nav .nav-item {
    padding: 4px 0;
  }

  .navbar-nav .btn-order {
    margin-top: 8px;
  }
}




/* =====================================================
   HERO
===================================================== */




.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  color: #fff;
  max-width: 650px;
}

.sub-title {
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
  display: block;
}

.hero h1 {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary-color);
}

.hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: #ccc;
  margin-bottom: 30px;
  max-width: 520px;
}

/* Hero mobile centering */
@media (max-width: 991.98px) {

  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .hero-bg-img {
    object-fit: cover;
    object-position: center;
  }

  .hero-overlay {
    background: rgba(0, 0, 0, 0.65);
  }

  .hero-content {
    max-width: 65%;
    position: relative;
    z-index: 2;
  }

  .hero-content h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 15px;
  }

  .hero-content p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;
  }

}

@media (max-width: 575.98px) {

  .hero-content {
    max-width: 72%;
  }

  .hero-content h1 {
    font-size: 34px;
    line-height: 1.15;
  }

  .hero-content p {
    font-size: 14px;
    line-height: 1.6;
  }

  .btn-order {
    padding: 10px 20px;
    font-size: 12px;
  }

}

/* =====================================================
   FEATURE CARDS
===================================================== */
.custom-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid #eee;
}

.custom-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.card-img-wrapper {
  height: 220px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  cursor: zoom-in;
}

.custom-card:hover .card-img-wrapper img {
  transform: scale(1.08);
}

.card-body-custom {
  padding: 24px 28px;
}

.card-body-custom h4 {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 17px;
}

.card-body-custom p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 0;
}
@media (max-width: 991.98px) {

  .custom-card {
    height: 100%;
  }

  .card-img-wrapper img {
    height: 180px;
    object-fit: cover;
  }

  .card-body-custom {
    padding: 18px;
  }

  .card-body-custom h4 {
    font-size: 20px;
  }

  .card-body-custom p {
    font-size: 14px;
    line-height: 1.6;
  }

}

@media (max-width: 575.98px) {

  .row.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

  .card-img-wrapper img {
    height: 200px;
  }

  .card-body-custom h4 {
    font-size: 17px;
  }

  .card-body-custom p {
    font-size: 12px;
  }

}

/* =====================================================
   ABOUT RITUAL
===================================================== */
.about-ritual {
  background-color: var(--cream-bg);
}

.brand-accent {
  color: var(--accent-gold);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 20px;
  font-size: 18px;
}

.ritual-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4.5vw, 52px);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.25;
  max-width: 950px;
  margin: 0 auto 30px;
}

.ritual-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  color: #888;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =====================================================
   POPULAR FLAVORS
===================================================== */
.flavors {
  background-color: var(--page-bg);
}

.flavor-card {
  position: relative;
  background: #111;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
}

.flavor-card:hover {
  transform: translateY(-10px);
}

.img-box {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.flavor-card:hover .img-box img {
  transform: scale(1.08);
}

.price {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary-color);
  color: #fff;
  padding: 5px 14px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 13px;
  z-index: 2;
}

.flavor-card .content {
  padding: 20px 22px 24px;
}

.flavor-card .content h4 {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 17px;
}

.flavor-card .content p {
  font-size: 14px;
  color: #ccc;
  margin: 0;
}
@media (max-width: 991.98px) {

  .flavor-card {
    border-radius: 20px;
    height: 100%;
  }

  .img-box {
    position: relative;
    margin-bottom: 15px;
  }

  /* .img-box img {
    width: 100%;
    max-width: 140px;
    margin: auto;
    display: block;
  } */

  .price {
    font-size: 14px;
    padding: 6px 12px;
  }

  .content h4 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .content p {
    font-size: 13px;
    line-height: 1.5;
  }

}

@media (max-width: 575.98px) {




  /* .content h4 {
    font-size: 15px;
  } */

  .content p {
    font-size: 11px;
  }

  .price {
    font-size: 12px;
    padding: 5px 10px;
  }

}

/* =====================================================
   JOIN COMMUNITY
===================================================== */
.join-community {
  background-color: var(--dark-brown);
  overflow: hidden;
}

.community-text-side {
  padding: 60px 48px 60px 48px;
}

.img-wrapper-right {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

.main-coffee-img {
  width: 92%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 40px 0 0 40px;
}

@media (max-width: 991.98px) {
  .community-text-side {
    padding: 50px 24px;
    text-align: center;
  }

  .feature-item {
    text-align: left;
  }

  .img-wrapper-right {
    justify-content: center;
  }

  .main-coffee-img {
    width: 100%;
    min-height: 280px;
    border-radius: 0;
  }
}

/* =====================================================
   TESTIMONIALS
===================================================== */
:root {
    --card-bg: #ffffff;
    --section-bg: #f9f8f4; /* خلفية فاتحة جداً لإبراز الكروت البيضاء */
    --star-color: #ffc107;
}

.testimonials {
    background-color: var(--section-bg);
}

.testi-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 25px; /* حواف دائرية زي الصورة */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* ظل خفيف جداً */
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testi-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: var(--star-color);
    margin-bottom: 20px;
    font-size: 14px;
}

.review-text {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.user-info {
    margin-top: auto; /* يخلي بيانات المستخدم دايماً تحت */
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 700;
    font-size: 14px;
    color: #222;
}

/* حركة الإظهار والإخفاء */
.rating-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.rating-details.show {
    max-height: 1000px;
    transition: max-height 0.4s ease-in;
}

.toggle-btn {
    background: none;
    border: none;
    color: #ccc;
    transition: 0.3s;
    cursor: pointer;
}

.toggle-btn.active {
    transform: rotate(180deg);
    color: var(--accent-gold);
}

/* --- Responsive Settings --- */

/* 1. الإعدادات للشاشات الصغيرة (Mobile & Tablet) */
@media (max-width: 991.98px) {
    /* الزرار يظهر */
    .toggle-btn {
        display: block !important;
        background: none;
        border: none;
        color: #ccc;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    /* النص يختفي */
    .rating-details {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease;
    }

    /* حالة الفتح عند الضغط (تفعيل من خلال JS) */
    .rating-details.show {
        max-height: 500px; /* رقم افتراضي كبير */
        opacity: 1;
        margin-bottom: 15px;
    }

    .toggle-btn.active {
        transform: rotate(180deg);
        color: var(--accent-gold);
    }
}

/* 2. الإعدادات للشاشات الكبيرة (Laptop & Desktop) */
@media (min-width: 992px) {
    /* إخفاء الزرار تماماً */
    .toggle-btn {
        display: none !important;
    }

    /* إظهار النص دائماً وإلغاء أي تأثير للـ JS */
    .rating-details {
        max-height: 100% !important;
        opacity: 1 !important;
        overflow: visible !important;
        display: block !important;
    }
}

/* =====================================================
   GALLERY
===================================================== */
.gallery-section {
  background-color: var(--accent-gold);
}

.gallery-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: #1a110b;
}

.gallery-img-box {
  border-radius: 16px;
  width: 100%;
  overflow: hidden;
}

.gallery-img-box img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 18px;
}

.gallery-img-box img:hover {
  transform: scale(1.05);
}

/* تعديل الارتفاع للموبايل عشان الصور متبقاش رفيعة وطويلة زيادة */
@media (max-width: 767.98px) {
  .gallery-img-box img {
    height: 120px; 
  }
  .gallery-title {
    font-size: 24px;
    margin-bottom: 30px !important;
  }
}
/* =====================================================
   CTA SECTION
===================================================== */
.join-cta {
  background-color: var(--dark-brown);
  color: #fff;
  padding: 100px 0;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
}

.cta-title span {
  color: var(--accent-gold);
  font-style: italic;
  display: block;
  margin-top: 6px;
}

.btn-join {
  background-color: var(--accent-gold);
  color: #1a110b;
  padding: 12px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), color var(--transition);
}

.btn-join:hover {
  background-color: #fff;
  color: #1a110b;
  transform: translateY(-3px);
}

/* =====================================================
   FOOTER
===================================================== */
.footer-section {
  background-color: var(--dark-brown);
  color: #fff;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  color: var(--accent-gold);
  font-size: 30px;
  margin-bottom: 18px;
}

.brand-desc {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 24px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.social-link:hover {
  background: var(--accent-gold);
  color: #1a110b;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

/* First item in each list = category heading */
.footer-heading-link {
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  pointer-events: none;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 50px 0 28px;
}

.footer-copy {
  font-size: 13px;
}
@media (max-width: 991.98px) {
  .footer-links {
    padding-left: 0;
  }
}
@media (max-width: 767.98px) {
  .footer-section {
    text-align: center;
    /* تقليل البادنج العلوي في الموبايل عشان المساحة */
    padding: 50px 0 30px; 
  }

  .social-icons {
    justify-content: center;
    margin-bottom: 30px; /* مسافة بسيطة قبل القوائم */
  }

  /* تصغير حجم الخط للقوائم في الموبايل عشان يكفوا جنب بعض */
  .footer-links a {
    font-size: 12px; 
  }

  .footer-heading-link {
    font-size: 14px;
    margin-bottom: 8px;
    display: block; /* عشان يضمن التباعد */
  }

  .footer-links li {
    margin-bottom: 8px; /* تقليل المسافة الرأسية بين اللينكات */
  }

  .footer-links a:hover {
    padding-left: 0;
  }
}
/* =====================================================
   LIGHTBOX
===================================================== */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 9999;
}

.image-lightbox.show {
  opacity: 1;
  visibility: visible;
}

.image-lightbox img {
  width: min(860px, 90vw);
  height: min(580px, 80vh);
  object-fit: contain;
  background: #111;
  padding: 10px;
  border-radius: 14px;
  animation: lbZoomIn 0.35s ease;
}

@keyframes lbZoomIn {
  from { transform: scale(0.75); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.close-lightbox {
  position: absolute;
  top: 24px;
  right: 36px;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color var(--transition), transform var(--transition);
}

.close-lightbox:hover {
  color: var(--accent-gold);
  transform: scale(1.1);
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .nav-item { font-size: 0.82rem; }
}

@media (max-width: 767.98px) {
  :root { --navbar-h: 108px; }
  .hamburger-btn { display: block; }
  .footer-description { width: 100% !important; }
}


/* التنسيق العادي للروابط */
.nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 6px 12px !important;
    transition: color var(--transition);
}

/* التنسيق عند الوقوف بالماوس أو عندما يكون الرابط نشطاً */
.nav-link:hover,
.nav-link:focus,
.nav-link.active { /* إضافة الـ .nav-link.active هنا */
    color: var(--primary-color) !important;
    font-weight: 600; /* اختياريا: جعل الخط أسمك قليلاً للتميز */
}