/* ==========================================================================
   Joak Luxury Hairs — Design Tokens
   Palette pulled straight from the logo: deep aubergine, berry magenta,
   gold crown, blush swirl, and a thread of iridescent teal in the hair tail.
   ========================================================================== */
:root {
  --plum-950: #1a0a14;
  --plum-900: #26101d;
  --plum-800: #341527;
  --berry-600: #8f1d4f;
  --berry-500: #b02565;
  --gold-500: #c9a227;
  --gold-300: #e8c766;
  --blush-300: #f4c6d9;
  --blush-100: #fbe6ee;
  --ivory-50: #fdf6f0;
  --teal-400: #4a7fa5;

  --font-display: "Cormorant Garamond", "Playfair Display", serif;
  --font-script: "Alex Brush", "Playfair Display", cursive;
  --font-body: "Jost", "Poppins", sans-serif;

  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 40px rgba(201, 162, 39, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--plum-950);
  color: var(--ivory-50);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ivory-50);
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gold-300);
  font-weight: 500;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 96px 0; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--plum-950);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.28);
}
.btn-gold:hover { box-shadow: 0 12px 30px rgba(201, 162, 39, 0.4); }
.btn-outline {
  border-color: rgba(232, 199, 102, 0.5);
  color: var(--ivory-50);
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold-300); background: rgba(232, 199, 102, 0.08); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(26, 10, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 199, 102, 0.14);
}
.navbar .brand { display: flex; align-items: center; gap: 12px; }
.navbar .brand img { height: 44px; width: auto; border-radius: 10px; }
.navbar .brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}
.navbar .brand-name span { color: var(--gold-300); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a { opacity: 0.85; transition: opacity 0.2s ease, color 0.2s ease; }
.nav-links a:hover { opacity: 1; color: var(--gold-300); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(232, 199, 102, 0.4);
  cursor: pointer;
  background: transparent;
}
.cart-btn svg { width: 18px; height: 18px; stroke: var(--ivory-50); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--berry-500);
  color: var(--ivory-50);
  font-size: 0.65rem;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  padding: 0 3px;
}
.nav-toggle { display: none; }

/* ---------- Shimmer divider (signature motif) ---------- */
.shimmer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 56px;
  width: fit-content;
}
.shimmer-divider .line {
  width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-300));
}
.shimmer-divider .line.right { background: linear-gradient(90deg, var(--gold-300), transparent); }
.shimmer-divider svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 20%, rgba(176, 37, 101, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 45% at 80% 80%, rgba(74, 127, 165, 0.14), transparent 60%),
    var(--plum-950);
}
.sparkle-field { position: absolute; inset: 0; pointer-events: none; }
.sparkle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--gold-300);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 3.6s ease-in-out infinite;
  box-shadow: 0 0 6px 1px rgba(232, 199, 102, 0.8);
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.3); }
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 0 24px; }
.hero-logo {
  width: 190px;
  margin: 0 auto 28px;
  border-radius: 24px;
  box-shadow: var(--shadow-glow), 0 20px 50px rgba(0,0,0,0.5);
  background: var(--ivory-50);
  padding: 10px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  margin-bottom: 18px;
}
.hero h1 em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--gold-300);
  font-size: 1.15em;
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--blush-300);
  max-width: 520px;
  margin: 0 auto 36px;
  font-weight: 300;
}
.hero-ctas { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(253, 246, 240, 0.5);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .stem { width: 1px; height: 34px; background: linear-gradient(var(--gold-300), transparent); }

/* ---------- Section headers ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head p { color: rgba(253, 246, 240, 0.72); font-size: 1rem; }

/* ---------- Ritual / steps (real sequence: cleanse -> nourish -> style -> protect -> store) ---------- */
.ritual { background: linear-gradient(180deg, var(--plum-950), var(--plum-900)); }
.ritual-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.ritual-step {
  background: rgba(253, 246, 240, 0.03);
  border: 1px solid rgba(232, 199, 102, 0.16);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.ritual-step:hover { border-color: var(--gold-300); transform: translateY(-6px); }
.ritual-step .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-300);
  display: block;
  margin-bottom: 10px;
}
.ritual-step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.ritual-step p { font-size: 0.86rem; color: rgba(253, 246, 240, 0.68); margin: 0; }

/* ---------- Product grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.product-card {
  background: linear-gradient(160deg, rgba(253,246,240,0.04), rgba(253,246,240,0.01));
  border: 1px solid rgba(232, 199, 102, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 199, 102, 0.5);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35), var(--shadow-glow);
}
.product-media {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(176,37,101,0.35), var(--plum-900) 72%);
  padding: 30px;
}
.product-media svg { width: 64%; height: 64%; }
.product-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.product-body h3 { font-size: 1.2rem; margin-bottom: 2px; }
.product-desc { font-size: 0.86rem; color: rgba(253,246,240,0.68); flex: 1; margin: 0; }
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.price { font-family: var(--font-display); font-size: 1.25rem; color: var(--blush-300); }
.add-btn {
  border: 1px solid var(--gold-300);
  background: transparent;
  color: var(--gold-300);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.add-btn:hover { background: var(--gold-300); color: var(--plum-950); }

.product-foot-wig { margin-top: 6px; }
.enquire-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.85rem;
}
.enquire-btn svg { flex-shrink: 0; }

/* ---------- About / brand story ---------- */
.about {
  background: var(--plum-900);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-art {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 30% 20%, rgba(232,199,102,0.25), transparent 55%),
              radial-gradient(circle at 75% 75%, rgba(176,37,101,0.4), transparent 55%),
              var(--plum-950);
  border: 1px solid rgba(232,199,102,0.18);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.about-art img { border-radius: var(--radius-sm); }
.about-copy p { color: rgba(253,246,240,0.78); font-size: 1.02rem; margin-bottom: 18px; }
.about-copy .signature-line { font-family: var(--font-script); color: var(--gold-300); font-size: 1.6rem; margin-top: 12px; }

/* ---------- Testimonial strip ---------- */
.testimonials { background: var(--plum-950); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi-card {
  border: 1px solid rgba(232,199,102,0.14);
  border-radius: var(--radius-lg);
  padding: 30px;
  background: rgba(253,246,240,0.02);
}
.testi-stars { color: var(--gold-300); font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 3px; }
.testi-card p { font-size: 0.95rem; color: rgba(253,246,240,0.8); margin-bottom: 16px; }
.testi-name { font-family: var(--font-display); color: var(--blush-300); font-size: 1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--berry-600), var(--plum-900));
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  margin: 0 28px;
  border: 1px solid rgba(232,199,102,0.25);
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.cta-band p { color: var(--blush-300); margin-bottom: 28px; }

/* ---------- Footer ---------- */
footer {
  background: var(--plum-950);
  border-top: 1px solid rgba(232,199,102,0.14);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img { height: 46px; margin-bottom: 14px; border-radius: 8px; }
.footer-brand p { color: rgba(253,246,240,0.6); font-size: 0.9rem; max-width: 280px; }
footer h5 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--gold-300);
  margin-bottom: 18px;
}
footer ul li { margin-bottom: 10px; font-size: 0.9rem; color: rgba(253,246,240,0.72); }
footer ul li a:hover { color: var(--gold-300); }
.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(253,246,240,0.4);
  border-top: 1px solid rgba(253,246,240,0.08);
  padding-top: 24px;
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--plum-900);
  border-left: 1px solid rgba(232,199,102,0.2);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 26px;
  border-bottom: 1px solid rgba(232,199,102,0.15);
}
.cart-header h3 { margin: 0; font-size: 1.3rem; }
.cart-close { background: none; border: none; color: var(--ivory-50); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 18px 26px; }
.cart-item {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(253,246,240,0.08);
}
.cart-item-media {
  width: 56px; height: 56px; border-radius: 12px;
  background: radial-gradient(circle at 50% 30%, rgba(176,37,101,0.4), var(--plum-950) 75%);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cart-item-media svg { width: 30px; height: 30px; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.95rem; margin: 0 0 4px; }
.cart-item-info .price { font-size: 0.9rem; }
.qty-control {
  display: flex; align-items: center; gap: 10px;
  margin-top: 6px;
}
.qty-control button {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(232,199,102,0.4);
  background: transparent; color: var(--ivory-50);
  cursor: pointer; font-size: 0.8rem; line-height: 1;
}
.qty-control span { font-size: 0.85rem; min-width: 14px; text-align: center; }
.remove-item {
  background: none; border: none; color: rgba(253,246,240,0.45);
  font-size: 0.75rem; cursor: pointer; text-decoration: underline;
  margin-top: 6px;
}
.cart-empty { text-align: center; padding: 60px 20px; color: rgba(253,246,240,0.5); }
.cart-footer { padding: 22px 26px 28px; border-top: 1px solid rgba(232,199,102,0.15); }
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 18px; font-family: var(--font-display); font-size: 1.15rem; }
.cart-footer .btn { width: 100%; justify-content: center; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ritual-steps { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  section { padding: 64px 0; }
  .ritual-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { margin: 0 16px; padding: 44px 24px; }
}
