/* ==========================================================================
   ASHOURIE PARFUMS — quiet luxury
   ========================================================================== */
:root {
  --gold-1: #B8893B;
  --gold-2: #D4AF6A;
  --gold: linear-gradient(135deg, #B8893B 0%, #D4AF6A 50%, #B8893B 100%);
  --cream: #F5EFE6;
  --cream-deep: #EADFCF;
  --walnut: #5C3A21;
  --walnut-deep: #3d2414;
  --offwhite: #FBF8F3;
  --ink: #4a2f1b;
  --muted: rgba(92, 58, 33, .72);

  --f-head: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-body: 'Montserrat', system-ui, sans-serif;
  --f-ar: 'Tajawal', 'Segoe UI', sans-serif;

  --gutter: clamp(1rem, 5vw, 4rem);
  --radius: 22px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.7 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 500; line-height: 1.08; margin: 0; color: var(--walnut); }
p { margin: 0; }
[lang="ar"] { font-family: var(--f-ar); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--walnut); color: var(--cream); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 3px; }

.gold-text {
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  font: 500 .72rem/1 var(--f-body);
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold-1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .85rem 1.6rem;
  border-radius: 999px;
  font: 500 .78rem/1 var(--f-body);
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .4s, color .4s;
  -webkit-tap-highlight-color: transparent;
}
.btn-gold {
  background: var(--gold); background-size: 200% 100%; background-position: 0 0;
  color: var(--walnut-deep);
  box-shadow: 0 10px 24px -12px rgba(184, 137, 59, .8), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-position .8s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 30px -14px rgba(184, 137, 59, .9), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost {
  border: 1px solid rgba(184, 137, 59, .6);
  color: var(--walnut);
  background: rgba(251, 248, 243, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: var(--walnut); color: var(--cream); border-color: var(--walnut); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: max(.9rem, env(safe-area-inset-top)) var(--gutter) .9rem;
  transition: background-color .5s, box-shadow .5s, padding .5s;
}
.site-header.is-scrolled {
  background: rgba(245, 239, 230, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(184, 137, 59, .25);
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-name {
  font: 600 1.05rem/1 var(--f-head); letter-spacing: .28em; color: var(--walnut);
  display: flex; flex-direction: column; gap: .2rem;
}
.brand-name small { font: 500 .52rem/1 var(--f-body); letter-spacing: .5em; color: var(--gold-1); }
.site-nav { display: none; gap: 2.4rem; }
.site-nav a {
  position: relative; text-decoration: none;
  font: 500 .72rem/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--walnut);
  padding: .5rem 0;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta { min-height: 40px; padding: .6rem 1.2rem; }

/* ==========================================================================
   HERO — zero gravity
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 70% at 50% 38%, var(--offwhite) 0%, var(--cream) 48%, var(--cream-deep) 100%);
}
/* warm wood floor at the bottom edge */
.hero::after {
  content: ''; position: absolute; inset: auto 0 0; height: 18%; z-index: -1;
  background:
    linear-gradient(to bottom, var(--cream-deep), transparent 30%) ,
    repeating-linear-gradient(178deg, rgba(92,58,33,.05) 0 2px, transparent 2px 9px),
    linear-gradient(to bottom, #e3cfb2, #d6bd99);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%);
          mask-image: linear-gradient(to bottom, transparent, #000 45%);
  opacity: .7;
}
.hero-light {
  position: absolute; inset: -10% -10% auto auto; width: 70vmax; height: 70vmax; z-index: -1;
  background: radial-gradient(circle at 70% 30%, rgba(255, 250, 240, .95), rgba(255, 250, 240, 0) 60%);
  pointer-events: none;
}
.leaf-shadow {
  position: absolute; inset: -12% -18% auto auto; width: min(90vw, 760px); aspect-ratio: 1; z-index: -1;
  background: url('/assets/images/leaf-shadow.svg') no-repeat center / contain;
  opacity: .1; mix-blend-mode: multiply; pointer-events: none;
  transform-origin: 85% 10%;
  animation: leaf-sway 14s ease-in-out infinite alternate;
}
@keyframes leaf-sway {
  from { transform: rotate(-1.5deg) translate3d(0, 0, 0); }
  to   { transform: rotate(2deg) translate3d(-1.5%, 1%, 0); }
}
.gold-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

.hero-watermark {
  position: absolute; left: 50%; top: 36%; z-index: 0;
  transform: translate(-50%, -50%);
  font: italic 400 clamp(5.5rem, 26vw, 19rem)/1 var(--f-head);
  letter-spacing: -.02em; white-space: nowrap;
  background: linear-gradient(180deg, rgba(212,175,106,.32), rgba(184,137,59,.06));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  pointer-events: none; user-select: none;
}

/* Ingredient layers ------------------------------------------------------ */
.ing-layer { position: absolute; inset: 0; pointer-events: none; }
.ing-layer[data-layer="back"]  { z-index: 1; }
.ing-layer[data-layer="front"] { z-index: 5; }
.ing {
  position: absolute; top: 0; left: 0;
  width: var(--w, 60px);
  will-change: transform;
  opacity: 0; /* JS reveals */
}
.ing img { width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(61, 36, 20, .22)); }
.ing.is-soft img { filter: blur(2.5px) drop-shadow(0 10px 14px rgba(61, 36, 20, .12)); }
.ing.is-bokeh img { filter: blur(5px); opacity: .85; }

/* Bottle ------------------------------------------------------------------ */
.bottle-stage {
  position: absolute; left: 50%; top: 35%; z-index: 4;
  width: auto; height: clamp(220px, 41svh, 560px);
  aspect-ratio: 228 / 499;
  transform: translate(-50%, -50%);
  perspective: 900px;
}
.bottle { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.bottle img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 28px 30px rgba(61, 36, 20, .18)); }
.bottle-glow {
  position: absolute; left: 50%; top: 52%; width: 230%; aspect-ratio: 1; z-index: -1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 175, 106, .55) 0%, rgba(212, 175, 106, .18) 35%, rgba(212, 175, 106, 0) 68%);
  animation: glow-breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-breathe {
  0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(.96); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.05); }
}
.bottle-shadow {
  position: absolute; left: 50%; bottom: -14%; width: 80%; height: 7%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(61, 36, 20, .28), transparent 70%);
  filter: blur(4px); will-change: transform, opacity;
}

/* Hero copy ---------------------------------------------------------------- */
.hero-copy {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) max(2.2rem, calc(env(safe-area-inset-bottom) + 1.4rem));
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
}
.hero-title {
  font-size: clamp(2.3rem, 9.5vw, 5.2rem); font-weight: 400; letter-spacing: -.01em;
}
.hero-title em {
  font-style: italic;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.hero-ar { font: 400 1.15rem/1.4 var(--f-ar); color: var(--gold-1); }
.hero-sub { color: var(--muted); font-size: .9rem; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: .6rem; }

.hero-notes { display: none; }
.scroll-cue { display: none; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(4.5rem, 12vw, 9rem) var(--gutter); position: relative; }
.section-head { text-align: center; margin: 0 auto clamp(2.5rem, 6vw, 4rem); max-width: 40rem; display: grid; gap: 1rem; }
.section-title { font-size: clamp(2rem, 6.5vw, 3.6rem); font-weight: 400; }

/* Story */
.story {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
  max-width: 1120px; margin: 0 auto;
}
.story-media { position: relative; }
.story-media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 40px 60px -40px rgba(61, 36, 20, .45); }
.story-media::before {
  content: ''; position: absolute; inset: -14px 14px 14px -14px; z-index: -1;
  border: 1px solid rgba(184, 137, 59, .45); border-radius: calc(var(--radius) + 6px);
}
.story-copy { display: grid; gap: 1.3rem; }
.story-copy > p:not(.eyebrow) { color: var(--muted); max-width: 52ch; }
.story-copy .story-ar { font: 400 1.3rem/1.6 var(--f-ar); color: var(--walnut); }
.signature-mark { width: 48px; opacity: .85; }

/* Notes */
.notes { background: linear-gradient(to bottom, var(--cream), var(--offwhite) 30%, var(--offwhite) 70%, var(--cream)); }
.notes-grid {
  display: grid; gap: 1.25rem; max-width: 1200px; margin: 0 auto;
  grid-template-columns: 1fr;
}
.note-card {
  position: relative; text-align: center;
  padding: 2rem 1.5rem 2.2rem;
  background: rgba(251, 248, 243, .9);
  border-radius: var(--radius);
  border: 1px solid rgba(184, 137, 59, .22);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s;
}
.note-card:hover { transform: translateY(-6px); border-color: rgba(184, 137, 59, .55); box-shadow: 0 30px 50px -36px rgba(61, 36, 20, .45); }
.note-art {
  height: 150px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: radial-gradient(circle at 50% 55%, rgba(212, 175, 106, .28), transparent 62%);
}
.note-art img { max-height: 120px; width: auto; max-width: 70%; transition: transform .8s var(--ease); }
.note-card:hover .note-art img { transform: translateY(-6px) rotate(-6deg) scale(1.05); }
.note-card h3 { font-size: 1.7rem; display: flex; justify-content: center; align-items: baseline; gap: .7rem; }
.note-card h3 span { font: 400 1rem/1 var(--f-ar); color: var(--gold-1); }
.note-card p { color: var(--muted); font-size: .9rem; margin-top: .6rem; }

/* Collection */
.product-grid { display: grid; gap: 1.5rem; max-width: 1200px; margin: 0 auto; grid-template-columns: 1fr; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--offwhite);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(184, 137, 59, .22);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -40px rgba(61, 36, 20, .5); }
.product-media {
  position: relative; height: 320px; display: grid; place-items: end center; padding-bottom: 38px;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(212, 175, 106, .32), transparent 70%),
    linear-gradient(to bottom, var(--offwhite), var(--cream) 72%, transparent 72%),
    repeating-linear-gradient(178deg, rgba(92, 58, 33, .06) 0 2px, transparent 2px 8px),
    linear-gradient(to bottom, #e2cdae, #d3b892);
}
.product-media img { height: 250px; width: auto; transition: transform .8s var(--ease); filter: drop-shadow(0 18px 18px rgba(61, 36, 20, .2)); }
.product-card:hover .product-media img { transform: translateY(-10px) rotate(-3deg); }
.product-body { flex: 1; padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .5rem; text-align: center; }
.product-body .btn-wa { margin-top: auto; }
.product-body h3 { font-size: 1.85rem; }
.product-notes { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-1); }
.product-price { font: 500 1.35rem/1.2 var(--f-head); color: var(--walnut); margin: .4rem 0 .8rem; display: grid; gap: .25rem; }
.product-price span { font: 400 .75rem/1 var(--f-body); color: var(--muted); letter-spacing: .08em; }
.btn-wa { width: 100%; }

/* Footer — walnut wood */
.site-footer {
  position: relative; color: var(--cream);
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .1), rgba(0, 0, 0, .35)),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 7px, rgba(0, 0, 0, .05) 7px 9px, transparent 9px 15px),
    radial-gradient(120% 60% at 30% 0%, #6e4729, var(--walnut) 45%, var(--walnut-deep));
  padding: clamp(3.5rem, 10vw, 6rem) var(--gutter) calc(2.5rem + env(safe-area-inset-bottom));
}
.site-footer::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: var(--gold); opacity: .7; }
.footer-inner { max-width: 640px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: .6rem; }
.footer-mark { width: 60px; margin-bottom: .4rem; }
.footer-name { font: 600 1.5rem/1 var(--f-head); letter-spacing: .3em; display: grid; gap: .45rem; }
.footer-name small { font: 500 .6rem/1 var(--f-body); letter-spacing: .6em; color: var(--gold-2); }
.footer-tagline { font: italic 400 1.35rem/1.3 var(--f-head); color: var(--gold-2); margin-top: .6rem; }
.footer-ar { font: 400 1.05rem/1.4 var(--f-ar); color: rgba(245, 239, 230, .75); }
.socials { list-style: none; display: flex; gap: .9rem; padding: 0; margin: 1.4rem 0 1.2rem; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(212, 175, 106, .45); color: var(--gold-2);
  transition: background-color .4s, color .4s, transform .4s var(--ease);
}
.socials a:hover { background: var(--gold-2); color: var(--walnut-deep); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: currentColor; stroke: none; }
.copyright { font-size: .72rem; letter-spacing: .08em; color: rgba(245, 239, 230, .55); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; z-index: 120;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--offwhite);
  box-shadow: 0 14px 28px -10px rgba(92, 58, 33, .6), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .4s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; fill: var(--walnut-deep); }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid var(--gold-2); animation: wa-ring 2.8s ease-out infinite;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
@keyframes wa-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }

/* ==========================================================================
   Breakpoints (mobile first)
   ========================================================================== */
@media (min-width: 600px) {
  .notes-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .story { grid-template-columns: .9fr 1.1fr; }
  .notes-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }

  .bottle-stage { top: 50%; height: clamp(360px, 66vh, 600px); }
  .hero-watermark { top: 50%; }
  .hero-copy {
    left: var(--gutter); right: auto; top: 50%; bottom: auto;
    transform: translateY(-50%);
    width: min(32vw, 28rem); padding: 0;
    text-align: left; align-items: flex-start; gap: .9rem;
  }
  .hero-title { font-size: clamp(3.2rem, 5.4vw, 5.6rem); }
  .hero-sub { font-size: .95rem; }
  .hero-actions { justify-content: flex-start; flex-direction: column; align-items: flex-start; }

  .hero-notes {
    display: grid; gap: 1.1rem; list-style: none; margin: 0; padding: 0;
    position: absolute; z-index: 6; right: var(--gutter); top: 50%; transform: translateY(-50%);
    text-align: right;
  }
  .hero-notes li {
    font: 500 .7rem/1 var(--f-body); letter-spacing: .34em; text-transform: uppercase; color: var(--walnut);
    display: flex; align-items: center; justify-content: flex-end; gap: .8rem;
  }
  .hero-notes li::before { content: ''; width: 28px; height: 1px; background: var(--gold); }

  .scroll-cue {
    display: block; position: absolute; z-index: 6; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
    width: 1px; height: 54px; overflow: hidden; background: rgba(184, 137, 59, .25);
  }
  .scroll-cue span {
    display: block; width: 100%; height: 50%; background: var(--gold-1);
    animation: cue 2.2s var(--ease) infinite;
  }
  @keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(200%); } }
}

@media (max-width: 380px) {
  .hero-actions .btn { padding: .8rem 1.2rem; letter-spacing: .12em; }
}
/* short phones: give the copy room */
@media (max-width: 899px) and (max-height: 700px) {
  .bottle-stage { top: 34%; height: 40svh; }
  .hero-sub { display: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
