/* ============================================
   Misk Origins — Dark Luxury B2B Attar Brand
   Aesthetic: refined dark, editorial, organic
   Fonts: Cormorant Garamond + Jost
   ============================================ */

:root {
  --ink:      #0e0c09;
  --ink-soft: #1a1712;
  --gold:     #c8a96e;
  --gold-lt:  #e2c98a;
  --cream:    #f5f0e8;
  --cream-dk: #ede6d8;
  --sand:     #b8a88a;
  --muted:    #6b6355;
  --white:    #fdfaf5;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', sans-serif;

  --nav-h: 72px;
  --max-w: 1280px;
  --gap:   clamp(1.5rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 300; line-height: 1.15; }

.display {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  z-index: 100;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(14, 12, 9, 0.96);
  backdrop-filter: blur(12px);
  border-color: rgba(200, 169, 110, 0.15);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.nav__logo-mark {
  color: var(--gold);
  font-size: 1.1rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--cream); }

.nav__cta {
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 0.55rem 1.4rem;
  transition: background 0.2s, color 0.2s !important;
}

.nav__cta:hover {
  background: var(--gold) !important;
  color: var(--ink) !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 4rem) clamp(1.5rem, 6vw, 5rem) 6rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(200,169,110,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(139,90,43,0.12) 0%, transparent 50%),
    var(--ink);
}

.hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.hero__line {
  position: absolute;
  top: 0; bottom: 0;
  left: 55%;
  width: 1px;
  background: linear-gradient(to bottom, transparent 10%, rgba(200,169,110,0.2) 40%, rgba(200,169,110,0.2) 70%, transparent 90%);
}

.hero__content {
  position: relative;
  max-width: 760px;
}

.hero__label {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero__title {
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
  margin-bottom: 2rem;
}

.hero__title em {
  font-style: italic;
  color: var(--gold-lt);
}

.hero__body {
  font-size: 1.05rem;
  color: var(--sand);
  max-width: 520px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
}

.hero__stat-row {
  position: absolute;
  right: clamp(1.5rem, 6vw, 5rem);
  bottom: 6rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  opacity: 0;
  animation: fadeIn 1s 1s forwards;
}

.hero__stat {
  text-align: right;
}

.hero__stat-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(200,169,110,0.4);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Sections ── */
.section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 6vw, 5rem);
}

.section__header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-top: 0.8rem;
}

/* ── Marquee / Ticker ── */
.marquee-wrap {
  border-top: 1px solid rgba(200,169,110,0.15);
  border-bottom: 1px solid rgba(200,169,110,0.15);
  overflow: hidden;
  padding: 1.2rem 0;
  background: var(--ink-soft);
}

.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  padding: 0 2.5rem;
}

.marquee-track span::after {
  content: ' ◈ ';
  color: var(--gold);
  margin-left: 2.5rem;
}

/* ── Families / Categories ── */
.families-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(200,169,110,0.1);
  border: 1px solid rgba(200,169,110,0.1);
}

.family-card {
  background: var(--ink-soft);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.family-card:hover { background: rgba(200,169,110,0.06); }

.family-card__icon {
  font-size: 1.8rem;
  line-height: 1;
}

.family-card__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 300;
}

.family-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.family-card__arrow {
  margin-top: auto;
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.family-card:hover .family-card__arrow { transform: translateX(4px); }

/* ── Featured Products ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(200,169,110,0.1);
}

.product-card {
  background: var(--ink-soft);
  padding: 2rem;
  transition: background 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover { background: rgba(200,169,110,0.05); }

.product-card__family {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.product-card__name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 0.4rem;
}

.product-card__tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.product-card__origin {
  font-size: 0.75rem;
  color: var(--sand);
  letter-spacing: 0.08em;
}

.product-card__moq {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(200,169,110,0.12);
  font-size: 0.75rem;
  color: var(--muted);
}

.product-card__moq strong {
  color: var(--cream);
  font-weight: 400;
}

/* ── Services strip ── */
.services-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(200,169,110,0.1);
  margin-top: 1px;
}

.service-block {
  background: var(--ink-soft);
  padding: 3rem 2.5rem;
  border-top: 3px solid var(--gold);
}

.service-block__num {
  font-family: var(--serif);
  font-size: 3rem;
  color: rgba(200,169,110,0.2);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.service-block__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.8rem;
}

.service-block__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ── How it works ── */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 1.1rem;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: rgba(200,169,110,0.25);
}

.step {
  padding: 0 1.5rem;
  text-align: center;
}

.step__dot {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: var(--ink);
  position: relative;
  z-index: 1;
}

.step__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.step__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(200,169,110,0.1);
}

.testimonial {
  background: var(--ink-soft);
  padding: 2.5rem;
}

.testimonial__stars {
  color: var(--gold);
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
}

.testimonial__quote {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--cream-dk);
  margin-bottom: 1.5rem;
}

.testimonial__author { font-size: 0.78rem; color: var(--muted); }
.testimonial__author strong { color: var(--sand); font-weight: 400; display: block; }

/* ── CTA Band ── */
.cta-band {
  background: var(--ink-soft);
  border: 1px solid rgba(200,169,110,0.15);
  margin: 0 clamp(1.5rem, 6vw, 5rem);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
}

.cta-band__title em { font-style: italic; color: var(--gold-lt); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: rgba(200,169,110,0.1);
  margin: 0 clamp(1.5rem, 6vw, 5rem);
}

/* ── Footer ── */
.footer {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem) 2rem;
  border-top: 1px solid rgba(200,169,110,0.12);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  gap: 0.8rem;
}

.footer__social a {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(200,169,110,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}

.footer__social a:hover { border-color: var(--gold); color: var(--gold); }

.footer__col h4 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer__col li a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer__col li a:hover { color: var(--cream); }

.footer__bottom {
  border-top: 1px solid rgba(200,169,110,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── WhatsApp float ── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.2rem;
  height: 3.2rem;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  z-index: 90;
  transition: transform 0.2s;
}

.wa-float:hover { transform: scale(1.08); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .families-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .steps::before { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(14,12,9,0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(200,169,110,0.15);
  }

  .nav__links.open { display: flex; }
  .nav__burger { display: flex; }

  .hero__stat-row { display: none; }
  .hero__line { display: none; }
  .families-grid { grid-template-columns: repeat(2, 1fr); }
  .services-strip { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .families-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}
