/*!
 * Barbaariye — Brand Identity Layer
 * Additive only. Loads AFTER design-tokens.css / components.css and
 * re-points the existing --bz-* tokens at the official Barbaariye
 * palette (dark green + gold), taken from the approved logo. Nothing
 * here removes or renames a token, so every existing page/component
 * keeps working — it just picks up the real brand colors.
 */

:root {
  /* Official Barbaariye palette */
  --bar-green:      #123524;   /* deep forest green — primary brand color */
  --bar-green-600:  #0d2a1b;
  --bar-green-700:  #0a2016;
  --bar-green-100:  #e6efe9;
  --bar-gold:       #c99a3b;   /* logo gold accent */
  --bar-gold-600:   #b3862c;
  --bar-gold-100:   #f8ecd4;
  --bar-cream:      #fbf9f4;

  /* Re-map the app's existing design tokens onto the brand palette. */
  --bz-horizon:      var(--bar-green);
  --bz-horizon-600:  var(--bar-green-700);
  --bz-horizon-100:  var(--bar-green-100);
  --bz-marigold:     var(--bar-gold);
  --bz-marigold-600: var(--bar-gold-600);
  --bz-sprout:       var(--bar-green);
  --bz-sprout-600:   var(--bar-green-700);

  --bs-primary: var(--bar-green) !important;
  --bs-primary-rgb: 18, 53, 36 !important;
}

.btn-primary {
  background-color: var(--bar-green) !important;
  border-color: var(--bar-green) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--bar-green-700) !important;
  border-color: var(--bar-green-700) !important;
}
.btn-outline-primary {
  color: var(--bar-green) !important;
  border-color: var(--bar-green) !important;
}
.btn-outline-primary:hover {
  background-color: var(--bar-green) !important;
  border-color: var(--bar-green) !important;
}
.text-primary { color: var(--bar-green) !important; }
a { color: var(--bar-green); }
a:hover { color: var(--bar-green-700); }

.btn-gold {
  background-color: var(--bar-gold);
  border-color: var(--bar-gold);
  color: var(--bar-green-700);
  font-weight: 600;
}
.btn-gold:hover {
  background-color: var(--bar-gold-600);
  border-color: var(--bar-gold-600);
  color: #fff;
}

/* ---------------------------------------------------------------- */
/* Top contact bar                                                   */
/* ---------------------------------------------------------------- */
.bar-topbar {
  background: var(--bar-green-700);
  color: #d9e3dc;
  font-size: .8125rem;
}
.bar-topbar a { color: #d9e3dc; text-decoration: none; }
.bar-topbar a:hover { color: var(--bar-gold); }
.bar-topbar .bar-topbar-item { display: inline-flex; align-items: center; gap: .35rem; }
.bar-topbar .bar-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.bar-topbar .bar-social a:hover { background: var(--bar-gold); color: var(--bar-green-700); }

/* ---------------------------------------------------------------- */
/* Main header                                                       */
/* ---------------------------------------------------------------- */
.bar-navbar { background: #fff; }
.bar-navbar .navbar-brand img { height: 40px; width: auto; }
.bar-navbar .nav-link { color: var(--bar-green-700); font-weight: 500; }
.bar-navbar .nav-link.active, .bar-navbar .nav-link:hover { color: var(--bar-gold-600); }

/* ---------------------------------------------------------------- */
/* Hero                                                               */
/* ---------------------------------------------------------------- */
.bar-hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(201,154,59,.15), transparent),
              linear-gradient(160deg, var(--bar-green-700) 0%, var(--bar-green) 55%, var(--bar-green-600) 100%);
  color: #fff;
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}
.bar-hero .eyebrow {
  color: var(--bar-gold);
  letter-spacing: .12em;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
}
.bar-hero h1 { font-family: var(--bz-font-display, inherit); font-weight: 800; }
.bar-hero p.lead { color: rgba(255,255,255,.85); }

/* Floating decorative rings */
.bar-hero::before {
  content: "";
  position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(201,154,59,.25);
}

/* ---------------------------------------------------------------- */
/* Hero carousel                                                     */
/* ---------------------------------------------------------------- */
.bar-hero-carousel .carousel-item { min-height: 420px; }
.bar-hero-carousel .bar-hero { padding: 88px 0; min-height: 420px; display: flex; align-items: center; }
.bar-hero-carousel .carousel-control-prev,
.bar-hero-carousel .carousel-control-next { width: 6%; opacity: .55; }
.bar-hero-carousel .carousel-control-prev:hover,
.bar-hero-carousel .carousel-control-next:hover { opacity: .9; }
.bar-hero-carousel .carousel-indicators { margin-bottom: 1rem; }
.bar-hero-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--bar-gold); width: 9px; height: 9px; border-radius: 50%; opacity: .5;
}
.bar-hero-carousel .carousel-indicators .active { opacity: 1; }

/* ---------------------------------------------------------------- */
/* Phone mock                                                        */
/* ---------------------------------------------------------------- */
.bar-phone-wrap { display: flex; justify-content: center; }
.bar-phone {
  width: 260px; height: 530px; border-radius: 38px;
  background: #0a1a12; padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), 0 0 0 1px rgba(201,154,59,.25);
  animation: bar-float 5s ease-in-out infinite;
}
.bar-phone .bar-phone-screen {
  width: 100%; height: 100%; border-radius: 26px; overflow: hidden;
  background: linear-gradient(180deg, #f8f4e9 0%, #fff 40%);
  position: relative;
  display: flex; flex-direction: column;
}
.bar-phone .bar-phone-notch {
  width: 90px; height: 18px; background: #0a1a12; border-radius: 0 0 14px 14px;
  margin: 0 auto; position: relative; z-index: 2;
}
.bar-phone-topbar { background: var(--bar-green); color: #fff; padding: 10px 14px; font-size: .7rem; display:flex; justify-content: space-between; align-items:center;}
.bar-phone-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.bar-phone-ayah { background: #fff; border: 1px solid var(--bar-gold-100); border-radius: 14px; padding: 14px; text-align: center; box-shadow: 0 6px 14px rgba(18,53,36,.08); }
.bar-phone-ayah .arabic { font-size: 1.35rem; color: var(--bar-green-700); font-weight: 700; direction: rtl; }
.bar-phone-play {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bar-gold);
  display: flex; align-items: center; justify-content: center; margin: 10px auto 0; color: #fff;
}
.bar-phone-progress { height: 6px; border-radius: 3px; background: var(--bar-green-100); overflow: hidden; }
.bar-phone-progress span { display: block; height: 100%; width: 62%; background: var(--bar-gold); border-radius: 3px; animation: bar-progress 3s ease-in-out infinite alternate; }
.bar-phone-stars { display: flex; gap: 4px; justify-content: center; color: var(--bar-gold); }

.bar-phone-float {
  position: absolute; background: #fff; border-radius: 12px; box-shadow: 0 10px 24px rgba(18,53,36,.15);
  padding: 8px 12px; font-size: .75rem; font-weight: 600; color: var(--bar-green-700);
  animation: bar-float-slow 6s ease-in-out infinite;
}

@keyframes bar-float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }
@keyframes bar-float-slow { 0%,100% { transform: translateY(0) rotate(0deg);} 50% { transform: translateY(-8px) rotate(-2deg);} }
@keyframes bar-progress { from { width: 30%; } to { width: 78%; } }

/* ---------------------------------------------------------------- */
/* Feature / pricing cards                                           */
/* ---------------------------------------------------------------- */
.bar-feature-card {
  border: 1px solid var(--bar-green-100); border-radius: 16px; padding: 24px;
  height: 100%; transition: transform .2s ease, box-shadow .2s ease;
  background: #fff;
}
.bar-feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(18,53,36,.12); }
.bar-feature-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--bar-green-100);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px;
}

.bar-pricing-card {
  border: 1px solid var(--bar-green-100); border-radius: 18px; padding: 32px; height: 100%; background: #fff;
  position: relative;
}
.bar-pricing-card.featured {
  border: 2px solid var(--bar-gold); box-shadow: 0 20px 40px rgba(201,154,59,.18);
}
.bar-pricing-badge {
  position: absolute; top: -14px; right: 24px; background: var(--bar-gold); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.bar-pricing-price { font-size: 2.25rem; font-weight: 800; color: var(--bar-green-700); }

.bar-section-title { font-weight: 800; color: var(--bar-green-700); }
.bar-eyebrow { color: var(--bar-gold-600); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }

/* ---------------------------------------------------------------- */
/* Footer                                                             */
/* ---------------------------------------------------------------- */
.bar-footer { background: var(--bar-green-700); color: #cfe0d5; padding: 56px 0 24px; margin-top: 0; }
.bar-footer a { color: #cfe0d5; text-decoration: none; }
.bar-footer a:hover { color: var(--bar-gold); }
.bar-footer .bar-footer-brand { font-family: var(--bz-font-display, inherit); font-weight: 800; color: #fff; font-size: 1.35rem; }
.bar-footer .bar-footer-tagline { color: var(--bar-gold); font-size: .72rem; letter-spacing: .12em; font-weight: 700; }
.bar-footer hr { border-color: rgba(255,255,255,.12); }
.bar-footer .bar-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); margin-right: 8px;
}
.bar-footer .bar-social a:hover { background: var(--bar-gold); color: var(--bar-green-700); }

/* ---------------------------------------------------------------- */
/* Floating WhatsApp button                                          */
/* ---------------------------------------------------------------- */
.bar-whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1050;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: bar-wa-pulse 2.4s ease-in-out infinite;
  text-decoration: none;
}
.bar-whatsapp-float:hover { color: #fff; transform: scale(1.06); }
@keyframes bar-wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,.5); }
  50% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 10px rgba(37,211,102,0); }
}

@media (max-width: 576px) {
  .bar-hero { padding: 48px 0 64px; }
  .bar-hero-carousel .bar-hero { padding: 56px 0; min-height: 320px; }
  .bar-hero-carousel .carousel-item { min-height: 320px; }
  .bar-phone { width: 220px; height: 460px; }
}
