/* =========================================
   ZAIN AL MAHAR — Main Stylesheet
   ========================================= */

/* --- Variables --- */
:root {
  --emerald: #0f4c3a;
  --dark-emerald: #062c22;
  --gold: #d4af37;
  --light-gold: #f8e5a3;
  --ivory: #f8f5ef;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Lato', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark-emerald);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================
   HEADER
   ========================================= */
#site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.5s, padding 0.5s, border-color 0.5s;
  padding: 1.5rem 0;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(6,44,34,0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-color: rgba(212,175,55,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-img { height: 56px; object-fit: contain; }

.desktop-nav { display: flex; gap: 2rem; align-items: center; }
.nav-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ivory);
  transition: all 0.3s;
}
.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 Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: fixed;
  inset: 0;
  background: var(--dark-emerald);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; display: flex; }
.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: var(--ivory);
  transition: color 0.3s;
}
.mobile-nav-link:hover { color: var(--gold); }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--dark-emerald) 0%, var(--emerald) 50%, var(--dark-emerald) 100%);
  z-index: 0;
}
.hero-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(212,175,55,0.1) 0%, transparent 60%);
  z-index: 1;
}
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 80px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--light-gold) 0%, var(--gold) 40%, #b38b22 70%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite, fadeUp 1s ease forwards;
}
@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--light-gold);
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}
.hero-desc {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  color: rgba(248,245,239,0.8);
  line-height: 1.9;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--dark-emerald);
}
.btn-primary:hover {
  background: var(--light-gold);
  box-shadow: 0 0 20px rgba(212,175,55,0.45);
}
.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--dark-emerald);
}

/* =========================================
   SECTIONS
   ========================================= */
.section { padding: 7rem 0; }
.bg-dark { background: var(--dark-emerald); }
.bg-mid  { background: var(--emerald); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-subtitle {
  color: rgba(248,245,239,0.8);
  font-size: 1rem;
  font-weight: 300;
}
.gold-line { width: 6rem; height: 1px; background: var(--gold); margin: 0 auto; }

/* =========================================
   GLASS CARD
   ========================================= */
.glass-card {
  background: rgba(15,76,58,0.5);
  border: 1px solid rgba(212,175,55,0.2);
  backdrop-filter: blur(10px);
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(212,175,55,0.2);
  border-color: rgba(212,175,55,0.5);
}

/* =========================================
   COLLECTIONS GRID
   ========================================= */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.glass-card.reveal { padding: 2rem; }

.card-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.4s;
}
.glass-card:hover .card-icon-wrap { background: var(--gold); }
.card-icon {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  transition: stroke 0.4s;
}
.glass-card:hover .card-icon { stroke: var(--dark-emerald); }
.card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light-gold);
  display: block;
  margin-bottom: 0.5rem;
}
.card-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.glass-card:hover .card-name { color: var(--gold); }
.card-desc { font-size: 0.875rem; color: rgba(248,245,239,0.7); }

/* =========================================
   GOLD SAVINGS PLANS
   ========================================= */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.plan-card { padding: 2.5rem; }
.plan-card-premium {
  background: linear-gradient(135deg, var(--dark-emerald), var(--emerald));
  border: 1px solid var(--gold);
  box-shadow: 0 0 30px rgba(212,175,55,0.15);
  position: relative;
  overflow: hidden;
}
.premium-badge {
  position: absolute;
  top: 18px;
  right: -22px;
  background: var(--gold);
  color: var(--dark-emerald);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 28px;
  transform: rotate(45deg);
}
.plan-icon { width: 44px; height: 44px; margin-bottom: 1.25rem; }
.plan-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 1.25rem;
}
.plan-name-gold { color: var(--gold); }
.plan-list { margin-bottom: 2rem; }
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: rgba(248,245,239,0.9);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.arrow { color: var(--gold); font-size: 1.3rem; line-height: 1.4; }
.plan-btn { display: block; text-align: center; }

/* =========================================
   COINS + RATE
   ========================================= */
.coins-rate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.coins-left {}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ivory);
  font-size: 0.9rem;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.coins-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Gold Coin */
.gold-coin {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light-gold), var(--gold) 50%, #b38b22);
  box-shadow: 0 0 50px rgba(212,175,55,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes coinSpin {
  0%   { transform: rotateY(0deg); }
  50%  { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}
.coin-spin { animation: coinSpin 6s linear infinite; }
.coin-inner {
  width: 162px;
  height: 162px;
  border-radius: 50%;
  border: 2px solid #8c6b16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.coin-inner::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(140,107,22,0.5);
  border-radius: 50%;
}
.coin-brand { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: #8c6b16; }
.coin-purity { font-family: var(--font-serif); font-size: 0.8rem; color: #8c6b16; }

/* Rate Widget */
.rate-widget {
  width: 100%;
  max-width: 440px;
  background: var(--emerald);
  border: 1px solid rgba(212,175,55,0.3);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.rate-top {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.rate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.rate-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--light-gold);
}
.rate-updated {
  font-size: 0.7rem;
  color: rgba(248,245,239,0.5);
  background: var(--dark-emerald);
  padding: 3px 8px;
  border-radius: 3px;
}
.rate-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(248,229,163,0.55);
  margin-bottom: 0.5rem;
  padding: 0 4px;
}
.rate-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 0.75rem 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rate-row-highlight { background: rgba(212,175,55,0.06); border-radius: 3px; }
.rate-row-last { border-bottom: none; }
.karat { font-family: var(--font-serif); font-size: 1.1rem; color: var(--ivory); display: block; }
.karat-gold { color: var(--gold); }
.purity-label { font-size: 0.7rem; color: rgba(248,245,239,0.45); display: block; }
.rate-val {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(248,245,239,0.8);
  text-align: center;
}
.rate-val:last-child { text-align: right; }
.rate-val-gold { color: var(--gold); }
.rate-note { font-size: 0.7rem; color: rgba(248,245,239,0.4); text-align: center; margin-top: 1rem; }

/* =========================================
   ABOUT
   ========================================= */
.about-header { text-align: center; max-width: 800px; margin: 0 auto 3rem; }
.about-desc {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(248,245,239,0.88);
  margin-top: 1.5rem;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}
.pillar-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.pillar-title { font-family: var(--font-serif); font-size: 1.1rem; color: #fff; }

/* =========================================
   STORE LOCATOR
   ========================================= */
.stores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.store-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.opening-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--emerald);
  border: 1px solid rgba(212,175,55,0.5);
  color: var(--gold);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
}
.store-pin { margin-bottom: 1.25rem; }
.store-name { font-family: var(--font-serif); font-size: 1.25rem; color: #fff; margin-bottom: 0.25rem; }
.store-type { font-size: 0.875rem; color: rgba(248,245,239,0.7); margin-bottom: 0.25rem; }
.store-city { font-family: var(--font-serif); font-size: 1.2rem; color: var(--gold); }

/* =========================================
   WHY CHOOSE US
   ========================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: rgba(6,44,34,0.5);
  border: 1px solid rgba(212,175,55,0.15);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.5);
  box-shadow: 0 0 20px rgba(212,175,55,0.1);
}
.why-card svg { margin: 0 auto 1rem; display: block; }
.why-card h4 { font-family: var(--font-serif); font-size: 1.2rem; color: #fff; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.875rem; color: rgba(248,245,239,0.65); }

/* =========================================
   CTA BANNER
   ========================================= */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(90deg, var(--gold) 0%, var(--light-gold) 50%, var(--gold) 100%);
}
.cta-inner { text-align: center; }
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--dark-emerald);
  font-weight: 700;
  margin-bottom: 2rem;
}
.cta-btn {
  background: var(--dark-emerald);
  color: var(--light-gold);
  font-family: var(--font-sans);
  letter-spacing: 0.15em;
  padding: 1rem 2.5rem;
  transition: background 0.3s;
}
.cta-btn:hover { background: var(--emerald); }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--dark-emerald);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid rgba(212,175,55,0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo { height: 64px; object-fit: contain; margin-bottom: 1.25rem; }
.footer-tagline { font-size: 0.875rem; color: rgba(248,245,239,0.65); max-width: 260px; line-height: 1.7; margin-bottom: 1.5rem; }
.social-icons { display: flex; gap: 0.75rem; }
.social-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}
.social-icon:hover { background: var(--gold); color: var(--dark-emerald); }

.footer-heading { font-family: var(--font-serif); font-size: 1.2rem; color: var(--gold); margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { font-size: 0.875rem; color: rgba(248,245,239,0.75); transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-stores { display: flex; flex-direction: column; gap: 1rem; }
.footer-stores strong { display: block; color: #fff; font-size: 0.875rem; margin-bottom: 0.2rem; }
.footer-stores p { font-size: 0.8rem; color: rgba(248,245,239,0.65); line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: rgba(248,245,239,0.75); }
.footer-contact svg { flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(248,245,239,0.45);
}

/* =========================================
   ANIMATIONS & REVEAL
   ========================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.glass-card:nth-child(1) { transition-delay: 0s; }
.glass-card:nth-child(2) { transition-delay: 0.08s; }
.glass-card:nth-child(3) { transition-delay: 0.16s; }
.glass-card:nth-child(4) { transition-delay: 0.24s; }
.glass-card:nth-child(5) { transition-delay: 0.32s; }
.glass-card:nth-child(6) { transition-delay: 0.40s; }
.glass-card:nth-child(7) { transition-delay: 0.48s; }
.pillar:nth-child(2) { transition-delay: 0.1s; }
.pillar:nth-child(3) { transition-delay: 0.2s; }
.pillar:nth-child(4) { transition-delay: 0.3s; }
.why-card:nth-child(2) { transition-delay: 0.1s; }
.why-card:nth-child(3) { transition-delay: 0.2s; }
.why-card:nth-child(4) { transition-delay: 0.1s; }
.why-card:nth-child(5) { transition-delay: 0.2s; }
.why-card:nth-child(6) { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .coins-rate-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .stores-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .collections-grid { grid-template-columns: 1fr 1fr; }
}
/* =========================================
   WHATSAPP FLOATING BUTTON
   ========================================= */
.wa-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 2000;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: waPulse 2.5s ease-in-out infinite;
}
.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.65);
  animation: none;
}
.wa-icon { width: 30px; height: 30px; }
.wa-tooltip {
  position: absolute;
  right: 70px;
  background: #111;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #111;
}
.wa-fab:hover .wa-tooltip { opacity: 1; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 36px rgba(37,211,102,0.75), 0 0 0 10px rgba(37,211,102,0.1); }
}

@media (max-width: 480px) {
  .collections-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
}
