/* ============================================================
   THE MAGNUS LINE — Design tokens (Espresso / Beige theme)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Cairo:wght@400;600;700&family=Tajawal:wght@300;400;500;700&display=swap');

:root{
  --beige:#E7DCC9;        /* main background — the requested brand beige */
  --cream:#F6F1E7;        /* lighter panel background */
  --espresso:#2B211C;     /* deep brown-black — nav, footer, dark blocks */
  --espresso-2:#3A2D25;   /* slightly lighter espresso for gradients/hover */
  --ink:#211A15;          /* primary text on light backgrounds */
  --ink-dim:#6B5F4F;      /* secondary text on light backgrounds */
  --ink-faint:#9C8F79;    /* faint text / placeholders */
  --line:#D8C9AC;         /* hairline border on beige */
  --line-soft:#EFE6D3;

  --gold:#A9834B;         /* antique gold — buttons, accents, hardware nod */
  --gold-bright:#C39C5F;
  --gold-deep:#7C5F35;

  --mauve:#8B5E63;        /* quiet nod to the logo's gradient ring */

  --on-dark:#EDE4D4;      /* light text on dark surfaces */
  --on-dark-dim:#BBA98D;

  --serif-en:'Fraunces', serif;
  --sans-en:'Plus Jakarta Sans', sans-serif;
  --serif-ar:'Cairo', sans-serif;
  --sans-ar:'Tajawal', sans-serif;

  --container:1240px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--beige);
  color:var(--ink);
  font-family:var(--sans-en);
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
body.lang-ar{ font-family:var(--sans-ar); }
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;cursor:pointer;background:none;border:none;}
.container{max-width:var(--container);margin:0 auto;padding:0 28px;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important;transition-duration:0.001ms !important;scroll-behavior:auto !important;}
}

/* ============================================================
   BILINGUAL TOGGLE
   ============================================================ */
[data-en]{ display:none !important; }
[data-ar]{ display:none !important; }
body.lang-en [data-en]{ display:inline !important; }
body.lang-ar [data-ar]{ display:inline !important; }
body.lang-en [data-en].block{ display:block !important; }
body.lang-ar [data-ar].block{ display:block !important; }

body.lang-ar{ direction:rtl; }
body.lang-en{ direction:ltr; }

h1[data-ar],h2[data-ar],h3[data-ar],p[data-ar],span[data-ar].block{ font-family:var(--serif-ar); }
body.lang-ar h1,body.lang-ar h2,body.lang-ar h3{ font-family:var(--serif-ar); }
body.lang-ar p,body.lang-ar .eyebrow,body.lang-ar .btn,body.lang-ar li,body.lang-ar .nav-link{ font-family:var(--sans-ar); }
body.lang-en h1,body.lang-en h2,body.lang-en h3{ font-family:var(--serif-en); }

/* ============================================================
   TYPE
   ============================================================ */
h1,h2,h3{ margin:0; font-weight:500; color:var(--ink); letter-spacing:-0.01em; }
.on-dark h1,.on-dark h2,.on-dark h3{ color:var(--on-dark); }
p{ line-height:1.75; color:var(--ink-dim); margin:0; }
.on-dark p{ color:var(--on-dark-dim); }

.eyebrow{
  display:flex; align-items:center; gap:12px;
  font-family:var(--sans-en); font-size:13px; letter-spacing:.02em;
  color:var(--gold-deep); margin-bottom:16px;
}
.on-dark .eyebrow{ color:var(--gold-bright); }
body.lang-ar .eyebrow{ font-size:15px; }
.eyebrow::before{ content:""; width:22px; height:1px; background:var(--gold); flex-shrink:0; }

h1{ font-size:clamp(38px,5.6vw,64px); line-height:1.08; }
h2{ font-size:clamp(28px,3.6vw,42px); line-height:1.15; }
h3{ font-size:20px; line-height:1.3; }

.section{ padding:96px 0; }
.section-head{ max-width:620px; margin-bottom:56px; }
.section-head p{ margin-top:16px; font-size:17px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 30px; font-size:14.5px; font-weight:600;
  border:1px solid transparent; cursor:pointer; transition:all .25s ease;
  white-space:nowrap;
}
.btn svg{ width:17px; height:17px; }
.btn-primary{ background:var(--espresso); color:var(--cream); }
.btn-primary:hover{ background:var(--gold-deep); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:var(--beige); }
.on-dark .btn-outline{ color:var(--on-dark); border-color:var(--on-dark-dim); }
.on-dark .btn-outline:hover{ background:var(--on-dark); color:var(--espresso); }
.btn-gold{ background:var(--gold); color:var(--espresso); }
.btn-gold:hover{ background:var(--gold-bright); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(231,220,201,0.92); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height:84px; gap:24px;
}
.brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.brand img{ width:44px; height:44px; border-radius:50%; object-fit:cover; }
.brand-name{ font-family:var(--serif-en); font-size:19px; font-weight:500; color:var(--ink); }
body.lang-ar .brand-name{ font-family:var(--serif-ar); font-weight:700; }

.main-nav{ display:flex; align-items:center; gap:34px; }
.nav-link{ font-size:14.5px; color:var(--ink-dim); transition:color .2s ease; }
.nav-link:hover{ color:var(--ink); }

.header-actions{ display:flex; align-items:center; gap:18px; }
.lang-toggle{ display:flex; border:1px solid var(--ink); }
.lang-toggle button{
  padding:7px 13px; font-size:12.5px; font-weight:600; color:var(--ink);
  transition:all .2s ease;
}
.lang-toggle button.active{ background:var(--ink); color:var(--beige); }

.wa-btn{
  display:flex; align-items:center; gap:8px;
  background:var(--espresso); color:var(--cream);
  padding:11px 20px; font-size:13.5px; font-weight:600;
  transition:background .2s ease;
}
.wa-btn:hover{ background:var(--gold-deep); }
.wa-btn svg{ width:16px; height:16px; }

.hamburger{ display:none; flex-direction:column; gap:5px; width:26px; }
.hamburger span{ height:2px; background:var(--ink); transition:all .25s ease; }

@media (max-width:960px){
  .main-nav{ display:none; }
  .header-actions .wa-btn span{ display:none; }
  .header-actions .wa-btn{ padding:11px; }
  .hamburger{ display:flex; }
}

.mobile-menu{
  position:fixed; inset:0; z-index:200; background:var(--espresso);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:28px;
  transform:translateY(-100%); transition:transform .35s ease;
}
.mobile-menu.open{ transform:translateY(0); }
.mobile-menu a{ font-size:22px; color:var(--on-dark); font-family:var(--serif-en); }
body.lang-ar .mobile-menu a{ font-family:var(--serif-ar); }
.mobile-menu .lang-toggle{ border-color:var(--on-dark-dim); }
.mobile-menu .lang-toggle button{ color:var(--on-dark); }
.mobile-menu .lang-toggle button.active{ background:var(--on-dark); color:var(--espresso); }
.mobile-menu .wa-btn{ background:var(--gold); color:var(--espresso); }
.mobile-menu-close{ position:absolute; top:26px; inset-inline-end:28px; font-size:34px; color:var(--on-dark); line-height:1; }

/* ============================================================
   HERO — tall portrait frame, editorial split
   ============================================================ */
.hero{ padding:64px 0 88px; }
.hero .container{
  display:grid; grid-template-columns:1fr 0.86fr; gap:64px; align-items:center;
}
.hero-copy p{ font-size:18px; max-width:440px; margin-top:22px; }
.hero-copy .btn-row{ display:flex; gap:16px; margin-top:38px; flex-wrap:wrap; }
.hero-media{ position:relative; }
.hero-frame{
  position:relative; aspect-ratio:4/5; overflow:hidden;
  background:var(--espresso);
}
.hero-frame img{ width:100%; height:100%; object-fit:cover; }
.hero-frame::after{
  content:""; position:absolute; inset:16px; border:1px solid rgba(237,228,212,0.35); pointer-events:none;
}
.hero-tag{
  position:absolute; bottom:-22px; inset-inline-start:-22px;
  background:var(--gold); color:var(--espresso);
  padding:16px 22px; font-family:var(--serif-en); font-size:15px; font-weight:500;
  max-width:210px; line-height:1.4;
}
body.lang-ar .hero-tag{ font-family:var(--serif-ar); }

@media (max-width:900px){
  .hero .container{ grid-template-columns:1fr; gap:40px; }
  .hero{ padding:40px 0 64px; }
  .hero-media{ order:-1; max-width:340px; margin:0 auto; }
  .hero-tag{ bottom:-18px; inset-inline-start:-14px; padding:12px 16px; font-size:13px; max-width:170px; }
}

/* ============================================================
   COLLECTION GRID
   ============================================================ */
.on-dark{ background:var(--espresso); }
.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.card{ background:var(--cream); overflow:hidden; }
.card .media{ position:relative; aspect-ratio:3/4; overflow:hidden; background:var(--line-soft); }
.card .media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.card:hover .media img{ transform:scale(1.04); }
.card .price-tag{
  position:absolute; top:14px; inset-inline-end:14px;
  background:rgba(43,33,28,0.88); color:var(--on-dark);
  padding:6px 12px; font-size:13px; font-weight:600;
}
.card .body{ padding:22px 22px 26px; }
.card .fabric{ font-size:14px; margin-top:6px; }
.card .order-btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%; margin-top:18px; padding:12px; font-size:13.5px; font-weight:600;
  border:1px solid var(--ink); color:var(--ink); transition:all .2s ease;
}
.card .order-btn:hover{ background:var(--ink); color:var(--cream); }
.card .order-btn svg{ width:15px; height:15px; }

@media (max-width:900px){
  .grid{ grid-template-columns:repeat(2,1fr); gap:18px; }
}
@media (max-width:600px){
  .grid{ grid-template-columns:1fr; max-width:340px; margin:0 auto; }
}

/* ============================================================
   CRAFT / DETAILS SECTION
   ============================================================ */
.craft-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:2px; background:var(--line); }
.craft-item{ position:relative; aspect-ratio:1/1; overflow:hidden; background:var(--espresso); }
.craft-item img{ width:100%; height:100%; object-fit:cover; }
.craft-item .caption{
  position:absolute; inset:auto 0 0 0; padding:22px 20px 18px;
  background:linear-gradient(to top, rgba(20,15,11,0.82), transparent);
}
.craft-item .caption p{ color:var(--on-dark); font-size:14.5px; margin:0; line-height:1.5; }

@media (max-width:760px){
  .craft-grid{ grid-template-columns:1fr; }
}

/* ============================================================
   ABOUT / SOCIAL PROOF
   ============================================================ */
.about-section{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:72px; align-items:center; }
.about-copy .stats{ display:flex; gap:44px; margin-top:34px; }
.about-copy .stat b{ display:block; font-family:var(--serif-en); font-size:30px; color:var(--ink); }
body.lang-ar .about-copy .stat b{ font-family:var(--serif-ar); }
.about-copy .stat span{ font-size:13.5px; color:var(--ink-dim); }
.ig-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.ig-item{ position:relative; aspect-ratio:1/1; overflow:hidden; }
.ig-item img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.ig-item:hover img{ transform:scale(1.06); }
.ig-item::after{
  content:""; position:absolute; inset:0; background:rgba(43,33,28,0); transition:background .25s ease;
}
.ig-item:hover::after{ background:rgba(43,33,28,0.12); }

@media (max-width:900px){
  .about-section{ grid-template-columns:1fr; gap:40px; }
}

/* ============================================================
   CLOSING CTA
   ============================================================ */
.closing-cta{ padding:100px 0; text-align:center; }
.closing-cta h2{ max-width:680px; margin:0 auto 34px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ padding:64px 0 32px; }
.footer-top{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:32px; padding-bottom:40px; border-bottom:1px solid rgba(237,228,212,0.15);
  flex-wrap:wrap;
}
.footer-brand{ font-family:var(--serif-en); font-size:24px; color:var(--on-dark); }
body.lang-ar .footer-brand{ font-family:var(--serif-ar); font-weight:700; }
.footer-meta p{ margin-top:6px; font-size:14px; }
.footer-links{ display:flex; gap:28px; flex-wrap:wrap; }
.footer-links a{ font-size:14px; color:var(--on-dark-dim); transition:color .2s ease; }
.footer-links a:hover{ color:var(--on-dark); }
.footer-note{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:26px; font-size:12.5px; color:var(--on-dark-dim); flex-wrap:wrap; gap:10px;
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float{
  position:fixed; bottom:26px; inset-inline-end:26px; z-index:150;
  width:58px; height:58px; border-radius:50%;
  background:var(--espresso); color:var(--on-dark);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(43,33,28,0.35);
  transition:transform .2s ease, background .2s ease;
}
.wa-float:hover{ transform:scale(1.08); background:var(--gold-deep); }
.wa-float svg{ width:27px; height:27px; }
