/* ============================================================
   MABA — shared styles (index.html + shop.html)
   ============================================================ */
:root{
  --green-deep:#12211b;
  --green-ink:#0c1712;
  --green-soft:#1d332a;
  --sand:#ece1cd;
  --sand-light:#f4ecdd;
  --amber:#c68f45;
  --amber-bright:#e0aa5c;
  --ivory:#f5efe2;
  --rose:#b98577;
  --line:rgba(198,143,69,.35);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Jost',sans-serif;
  background:var(--green-deep);
  color:var(--ivory);
  font-weight:300;line-height:1.6;overflow-x:hidden;
}
h1,h2,h3{font-family:'Marcellus',serif;font-weight:400}
.arabic{font-family:'Amiri',serif}
.eyebrow{font-size:.72rem;letter-spacing:.42em;text-transform:uppercase;color:var(--amber);font-weight:500}
a{color:inherit;text-decoration:none}
section{padding:6.5rem 6vw}
:focus-visible{outline:2px solid var(--amber-bright);outline-offset:3px}

/* ---------- NAV ---------- */
nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:1.1rem 6vw;
  background:linear-gradient(to bottom, rgba(12,23,18,.94), rgba(12,23,18,0));
  backdrop-filter:blur(4px);
}
nav.solid{background:rgba(12,23,18,.96)}
.logo{display:flex;align-items:baseline;gap:.6rem}
.logo .en{font-family:'Marcellus',serif;font-size:1.5rem;letter-spacing:.28em}
.logo .ar{font-family:'Amiri',serif;font-size:1.15rem;color:var(--amber)}
.nav-links{display:flex;gap:2.2rem;font-size:.78rem;letter-spacing:.22em;text-transform:uppercase}
.nav-links a{opacity:.75;transition:opacity .3s,color .3s}
.nav-links a:hover,.nav-links a.current{opacity:1;color:var(--amber-bright)}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-block;padding:.95rem 2.6rem;border:1px solid var(--amber);
  color:var(--amber-bright);font-size:.72rem;letter-spacing:.32em;text-transform:uppercase;
  font-weight:500;transition:background .35s,color .35s;background:transparent;cursor:pointer;
  font-family:'Jost',sans-serif;
}
.btn:hover{background:var(--amber);color:var(--green-ink)}
.btn.solid{background:var(--amber);color:var(--green-ink)}
.btn.solid:hover{background:var(--amber-bright)}

/* ---------- HERO (home) ---------- */
.hero{
  min-height:92vh;display:flex;flex-direction:column;justify-content:center;align-items:center;
  text-align:center;position:relative;
  background:radial-gradient(ellipse at 50% 110%, #1d332a 0%, var(--green-ink) 62%);
}
.mist{position:absolute;border-radius:50%;filter:blur(70px);opacity:.5;pointer-events:none}
.mist.a{width:44vw;height:44vw;background:radial-gradient(circle,#c68f4533,transparent 70%);top:8%;left:6%;animation:drift 16s ease-in-out infinite alternate}
.mist.b{width:36vw;height:36vw;background:radial-gradient(circle,#2c5a4444,transparent 70%);bottom:4%;right:4%;animation:drift 20s ease-in-out infinite alternate-reverse}
@keyframes drift{from{transform:translate(0,0) scale(1)}to{transform:translate(6vw,-4vh) scale(1.15)}}
.hero .wordmark .en{
  font-family:'Marcellus',serif;font-size:clamp(4rem,15vw,12rem);
  letter-spacing:.14em;margin-right:-.14em;color:var(--ivory);
}
.hero .wordmark .ar{
  display:block;font-family:'Amiri',serif;font-size:clamp(1.5rem,4vw,3rem);
  color:transparent;-webkit-text-stroke:1px var(--amber);letter-spacing:.15em;margin-top:.4rem;
}
.hero .tagline{margin-top:2rem;max-width:36rem;font-size:clamp(.95rem,1.4vw,1.1rem);color:#cfc6b2}
.hero .cta-row{margin-top:2.6rem;display:flex;gap:1.2rem;flex-wrap:wrap;justify-content:center}

/* ---------- SHOP HERO (compact banner) ---------- */
.shop-hero{
  padding:9rem 6vw 3.5rem;text-align:left;
  background:radial-gradient(ellipse at 20% 0%, #1d332a 0%, var(--green-ink) 70%);
}
.shop-hero h1{font-size:clamp(2.2rem,5vw,3.6rem);margin-top:1rem;line-height:1.12}
.shop-hero p{color:#b9b3a0;max-width:40rem;margin-top:1rem}

/* ---------- SECTION HEAD ---------- */
.section-head{max-width:46rem;margin-bottom:3.5rem}
.section-head h2{font-size:clamp(2rem,4vw,3.1rem);margin-top:1.1rem;line-height:1.15}
.section-head p{color:#b9b3a0;margin-top:1rem}

/* ---------- COLLECTION / SHOP ---------- */
.collection{background:var(--sand-light);color:var(--green-ink)}
.collection .section-head p{color:#5a5442}

.toolbar{
  position:sticky;top:64px;z-index:50;background:var(--sand-light);
  padding:.6rem 0 .2rem;
}
.search-row{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;margin-bottom:.9rem}
.search{
  flex:1 1 260px;max-width:420px;position:relative;
}
.search input{
  width:100%;padding:.75rem 1.1rem .75rem 2.6rem;
  border:1px solid #c9b98f;background:#fff;border-radius:999px;
  font-family:'Jost',sans-serif;font-size:.85rem;letter-spacing:.05em;color:var(--green-ink);
}
.search input:focus{outline:none;border-color:var(--amber)}
.search svg{position:absolute;left:1rem;top:50%;transform:translateY(-50%);width:15px;height:15px;stroke:#8a7a55}
.badge-toggles{display:flex;gap:.5rem}
.badge-toggles button{
  padding:.55rem 1.1rem;border:1px solid #c9b98f;background:transparent;border-radius:999px;
  font-family:'Jost',sans-serif;font-size:.65rem;letter-spacing:.18em;text-transform:uppercase;
  color:#4a4636;cursor:pointer;transition:all .3s;
}
.badge-toggles button.active{background:var(--amber);border-color:var(--amber);color:#fff}

.filters{
  display:flex;gap:.6rem;overflow-x:auto;padding:.2rem .2rem 1rem;
  scrollbar-width:thin;scrollbar-color:var(--amber) transparent;
}
.filters button{
  flex:0 0 auto;padding:.55rem 1.3rem;border:1px solid #c9b98f;background:transparent;
  font-family:'Jost',sans-serif;font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;
  color:#4a4636;cursor:pointer;transition:all .3s;white-space:nowrap;border-radius:999px;
}
.filters button:hover{border-color:var(--amber);color:var(--amber)}
.filters button.active{background:var(--green-ink);border-color:var(--green-ink);color:var(--sand-light)}
.count{font-size:.75rem;letter-spacing:.12em;color:#8a7a55;margin:1rem 0 1.6rem}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.6rem}
.product{
  background:#fff;border:1px solid #e3d7bd;display:flex;flex-direction:column;position:relative;
  transition:transform .4s cubic-bezier(.2,.8,.2,1),box-shadow .4s;
}
.product:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(58,53,38,.14)}
.badge{
  position:absolute;top:.8rem;left:.8rem;z-index:2;
  padding:.32rem .8rem;font-size:.56rem;letter-spacing:.24em;text-transform:uppercase;font-weight:600;
  border-radius:999px;
}
.badge.new{background:var(--green-ink);color:var(--sand-light)}
.badge.bestseller{background:var(--amber);color:#fff}
.ph{
  aspect-ratio:4/5;position:relative;overflow:hidden;
  background:linear-gradient(165deg,#f7f2e6,#e8dcc2);
  display:flex;align-items:center;justify-content:center;
}
.ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ph .fallback{display:flex;flex-direction:column;align-items:center;gap:.7rem;color:#a8926a;text-align:center;padding:1rem}
.ph .fallback.illus{padding:1.4rem;width:100%;height:100%;justify-content:center}
.ph .fallback.illus svg{width:100%;height:100%;max-height:100%}
.ph .fallback .mono{
  font-family:'Marcellus',serif;font-size:2.6rem;line-height:1;color:#c2a973;
  border:1px solid #d8c9a8;width:72px;height:72px;display:flex;align-items:center;justify-content:center;border-radius:50%;
}
.ph .fallback small{font-size:.6rem;letter-spacing:.28em;text-transform:uppercase}
.product .info{padding:1.2rem 1.2rem 1.4rem;display:flex;flex-direction:column;gap:.3rem;flex:1}
.product .brand{font-size:.62rem;letter-spacing:.3em;text-transform:uppercase;color:var(--amber)}
.product .name{font-family:'Marcellus',serif;font-size:1.08rem;line-height:1.3;color:#241f12}
.product .type{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:#8a7a55;margin-bottom:.9rem}
.product .enquire{
  margin-top:auto;text-align:center;padding:.7rem 1rem;border:1px solid var(--green-ink);
  font-size:.66rem;letter-spacing:.3em;text-transform:uppercase;font-weight:500;color:var(--green-ink);
  transition:background .3s,color .3s;
}
.product .enquire:hover{background:var(--green-ink);color:var(--sand-light)}
.empty{
  grid-column:1/-1;text-align:center;padding:4rem 1rem;color:#8a7a55;
  font-size:.9rem;letter-spacing:.05em;
}

/* ---------- FEATURED STRIP (home) ---------- */
.featured{background:var(--sand-light);color:var(--green-ink)}
.featured .section-head p{color:#5a5442}
.featured .grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.featured .more{margin-top:3rem;text-align:center}
.featured .btn{border-color:var(--green-ink);color:var(--green-ink)}
.featured .btn:hover{background:var(--green-ink);color:var(--sand-light)}

/* ---------- MARQUEE (home) ---------- */
.marquee{
  overflow:hidden;border-top:1px solid #d8c9a8;border-bottom:1px solid #d8c9a8;
  padding:1.8rem 0;margin-top:2.6rem;
}
.marquee .track{display:flex;gap:4.5rem;width:max-content;animation:scroll 40s linear infinite}
.marquee:hover .track{animation-play-state:paused}
@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.marquee .brand-name{
  font-family:'Marcellus',serif;font-size:1.3rem;letter-spacing:.18em;
  color:#3a3526;white-space:nowrap;display:flex;align-items:center;gap:4.5rem;
}
.marquee .brand-name::after{content:"✦";font-size:.65rem;color:var(--amber)}

/* ---------- ORIGINALS ---------- */
.creations{background:var(--green-ink)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:2.2rem}
.card{
  background:linear-gradient(180deg,var(--green-soft),#142620);
  border:1px solid rgba(198,143,69,.18);padding:2.6rem 2rem 2.2rem;
  transition:transform .45s cubic-bezier(.2,.8,.2,1),border-color .45s;
}
.card:hover{transform:translateY(-8px);border-color:var(--line)}
.bottle{width:64px;height:130px;margin:0 auto 1.9rem}
.bottle .cap{width:22px;height:22px;margin:0 auto;border-radius:4px;background:linear-gradient(160deg,#e0aa5c,#8a5c22)}
.bottle .neck{width:12px;height:9px;margin:0 auto;background:#3a4a41}
.bottle .body{width:64px;height:96px;border-radius:9px 9px 14px 14px;background:rgba(245,239,226,.07);border:1px solid rgba(245,239,226,.25);position:relative;overflow:hidden}
.bottle .liquid{position:absolute;bottom:0;left:0;right:0;height:66%;transition:height .8s cubic-bezier(.2,.8,.2,1)}
.card:hover .liquid{height:82%}
.liquid.oud{background:linear-gradient(180deg,#c68f45cc,#6e4416)}
.liquid.vetiver{background:linear-gradient(180deg,#7ba06fcc,#27452e)}
.liquid.saffron{background:linear-gradient(180deg,#b98577cc,#6e3d2c)}
.card h3{font-size:1.4rem;letter-spacing:.08em;text-align:center}
.card .family{text-align:center;font-size:.65rem;letter-spacing:.32em;text-transform:uppercase;color:var(--amber);margin:.5rem 0 1.5rem}
.notes{border-top:1px solid rgba(198,143,69,.2);padding-top:1.2rem;font-size:.83rem}
.notes .row{display:flex;justify-content:space-between;gap:1rem;padding:.35rem 0;color:#cfc6b2}
.notes .row span:first-child{font-size:.6rem;letter-spacing:.3em;text-transform:uppercase;color:#8d9a8e;padding-top:.25em}
.notes .row span:last-child{text-align:right}

/* ---------- SHORES ---------- */
.shores{padding:0;display:grid;grid-template-columns:1fr 1fr;min-height:56vh}
.shore{padding:5rem 5vw;display:flex;flex-direction:column;justify-content:center;gap:1.1rem}
.shore.kerala{background:linear-gradient(160deg,#1d332a,#0c1712)}
.shore.gulf{background:linear-gradient(200deg,#2a2117,#171009)}
.shore h3{font-size:clamp(1.6rem,3vw,2.3rem)}
.shore p{color:#c2bba8;max-width:26rem;font-size:.95rem}
.shore .cities{font-size:.72rem;letter-spacing:.3em;text-transform:uppercase;color:var(--amber);margin-top:.5rem}

/* ---------- CTA + FOOTER ---------- */
.cta{background:var(--green-ink);text-align:center}
.cta h2{font-size:clamp(2rem,4.5vw,3.2rem);max-width:38rem;margin:1.2rem auto 2.2rem;line-height:1.2}
footer{
  background:#0a130f;padding:3rem 6vw;display:flex;justify-content:space-between;
  align-items:center;gap:2rem;flex-wrap:wrap;font-size:.78rem;color:#8d9a8e;letter-spacing:.08em;
}
footer .logo .en{font-size:1.1rem}

/* ---------- REVEAL ---------- */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .9s ease,transform .9s ease}
.reveal.in{opacity:1;transform:none}

/* ---------- RESPONSIVE ---------- */
@media(max-width:900px){
  .cards{grid-template-columns:1fr;max-width:24rem;margin:0 auto}
  .shores{grid-template-columns:1fr}
  .nav-links{display:none}
  section{padding:4.5rem 6vw}
  .toolbar{top:58px}
}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .reveal{opacity:1;transform:none}
  html{scroll-behavior:auto}
}

/* ============================================================
   v3 additions — mobile menu, RTL, language toggle, address
   ============================================================ */

/* ---------- Arabic typography ---------- */
[dir="rtl"] body, [dir="rtl"] .btn, [dir="rtl"] input,
[dir="rtl"] .filters button, [dir="rtl"] .badge-toggles button{
  font-family:'Jost','Amiri',sans-serif;
}
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3{font-family:'Amiri','Marcellus',serif}
[dir="rtl"] .eyebrow,[dir="rtl"] .btn,[dir="rtl"] .nav-links a,
[dir="rtl"] .filters button,[dir="rtl"] .badge-toggles button,
[dir="rtl"] .badge,[dir="rtl"] .product .enquire,[dir="rtl"] .product .brand,
[dir="rtl"] .shore .cities,[dir="rtl"] .card .family,
[dir="rtl"] .notes .row span:first-child{letter-spacing:.06em}
[dir="rtl"] .hero .wordmark .en{letter-spacing:.14em}

/* search icon flips sides in RTL */
[dir="rtl"] .search input{padding:.75rem 2.6rem .75rem 1.1rem}
[dir="rtl"] .search svg{left:auto;right:1rem}

/* ---------- language toggle ---------- */
.lang-toggle{
  border:1px solid var(--line);background:transparent;color:var(--amber-bright);
  padding:.45rem 1rem;border-radius:999px;cursor:pointer;
  font-family:'Jost','Amiri',sans-serif;font-size:.75rem;letter-spacing:.12em;
  transition:background .3s,color .3s;
}
.lang-toggle:hover{background:var(--amber);color:var(--green-ink)}
.nav-right{display:flex;align-items:center;gap:1.6rem}

/* ---------- mobile menu ---------- */
.menu-btn{
  display:none;background:none;border:none;cursor:pointer;padding:.4rem;
  flex-direction:column;gap:5px;
}
.menu-btn span{
  display:block;width:24px;height:2px;background:var(--ivory);
  transition:transform .3s,opacity .3s;
}
.menu-btn.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-btn.open span:nth-child(2){opacity:0}
.menu-btn.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.mobile-menu{
  display:none;position:fixed;top:0;left:0;right:0;z-index:99;
  background:rgba(12,23,18,.98);backdrop-filter:blur(8px);
  padding:5.5rem 8vw 2.5rem;
  flex-direction:column;gap:1.4rem;
  font-size:.95rem;letter-spacing:.2em;text-transform:uppercase;
  border-bottom:1px solid var(--line);
  transform:translateY(-105%);transition:transform .4s cubic-bezier(.2,.8,.2,1);
}
.mobile-menu.open{transform:translateY(0)}
.mobile-menu a{opacity:.85}
.mobile-menu a:active{color:var(--amber-bright)}
.mobile-menu .lang-toggle{align-self:flex-start}

/* ---------- footer address ---------- */
footer{align-items:flex-start}
footer .address{line-height:1.9}
footer .address .wa-line{color:var(--amber-bright)}
footer .col{display:flex;flex-direction:column;gap:.6rem}

/* ---------- mobile refinements ---------- */
@media(max-width:900px){
  .menu-btn{display:flex}
  .mobile-menu{display:flex}
  .nav-right .lang-toggle{display:none}   /* toggle lives in the menu on mobile */

  nav{padding:1rem 6vw;background:rgba(12,23,18,.96)}
  .hero{min-height:88vh;padding:0 6vw}
  .hero .tagline{font-size:.95rem}
  .hero .cta-row{width:100%;flex-direction:column;align-items:stretch}
  .hero .cta-row .btn{text-align:center}

  .shop-hero{padding:7.5rem 6vw 2.5rem}

  .grid{grid-template-columns:repeat(2,1fr);gap:.9rem}
  .featured .grid{grid-template-columns:repeat(2,1fr)}
  .product .info{padding:.9rem .8rem 1rem}
  .product .name{font-size:.95rem}
  .product .type{font-size:.62rem}
  .product .enquire{padding:.65rem .5rem;font-size:.58rem;letter-spacing:.2em}
  .badge{top:.5rem;left:.5rem;padding:.28rem .6rem;font-size:.5rem}
  [dir="rtl"] .badge{left:auto;right:.5rem}

  .search-row{gap:.6rem}
  .badge-toggles{width:100%;justify-content:flex-start}
  .badge-toggles button{flex:1;text-align:center}

  .marquee .brand-name{font-size:1.05rem;gap:3rem}
  .marquee .track{gap:3rem}

  footer{flex-direction:column;gap:1.6rem}
}
@media(max-width:400px){
  .grid,.featured .grid{grid-template-columns:1fr 1fr;gap:.7rem}
  .hero .wordmark .en{font-size:22vw}
}

/* ============================================================
   v4 — hero visual (illustrated lineup with photo override)
   ============================================================ */
.hero-visual{
  margin-top:2.6rem;width:min(760px,88vw);position:relative;
}
.hero-visual img{
  width:100%;max-height:340px;object-fit:cover;display:block;
  border:1px solid var(--line);border-radius:6px;
  box-shadow:0 30px 60px rgba(0,0,0,.4);
}
/* if a real hero.jpg exists it covers the illustration;
   (the img removes itself onerror, so :has(img) only matches when the photo loaded) */
.hero-visual:has(img) .lineup{display:none}
.hero-visual .lineup{width:100%;height:auto}
.lineup .b{animation:bob 7s ease-in-out infinite}
.lineup .b1{animation-delay:0s}
.lineup .b2{animation-delay:1.2s}
.lineup .b3{animation-delay:.6s;animation-duration:8s}
.lineup .b4{animation-delay:1.8s}
.lineup .b5{animation-delay:2.4s}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

@media(max-width:900px){
  .hero{min-height:auto;padding:7.5rem 6vw 4.5rem}
  .hero-visual{margin-top:2rem}
}
@media(prefers-reduced-motion:reduce){
  .lineup .b{animation:none}
}


/* ============================================================
   v5 — "PERFUMES" subline under the logo
   ============================================================ */
.logo{flex-direction:column;align-items:flex-start;gap:.05rem}
.logo .logo-row{display:flex;align-items:baseline;gap:.6rem}
.logo .sub{
  font-family:'Jost',sans-serif;font-size:.52rem;font-weight:500;
  letter-spacing:.52em;text-transform:uppercase;color:var(--amber);
  margin-top:.1rem;
}
footer .logo .sub{font-size:.46rem}
.hero .wordmark{display:flex;flex-direction:column;align-items:center}
.hero .wordmark .sub{
  font-family:'Jost',sans-serif;font-weight:500;
  font-size:clamp(.7rem,1.6vw,1.05rem);
  letter-spacing:.85em;margin-right:-.85em;text-transform:uppercase;
  color:var(--amber);margin-top:1.1rem;
}
[dir="rtl"] .logo{align-items:flex-start}
[dir="rtl"] .hero .wordmark .sub{letter-spacing:.5em;margin-right:0;margin-left:-.5em}
