/* ============================================================
   TREE OF LIFE ORGANICS MAURITIUS — DESIGN TOKENS
   Palette:
     --forest    #14301F  deep forest green   (primary / nav / ink-dark)
     --sage      #E7EEDF  soft sage parchment (page background)
     --ivory     #F8F5EC  warm ivory          (card surfaces)
     --gold      #C6912E  turmeric gold       (Herbal Infusions accent)
     --rose      #A8425A  clay hibiscus rose  (Cosmetics accent)
     --ink       #22281F  warm near-black     (body text)
   Type:
     Display — 'Fraunces'   (organic serif, botanical warmth)
     Body/UI — 'Work Sans'  (clean, quiet, legible)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,450;0,9..144,600;0,9..144,700;1,9..144,450&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root{
  --forest: #1E3D25;
  --forest-2: #2A5233;
  --sage: #F1E6D3;
  --bg: #FBF6EC;
  --ivory: #FFFCF6;
  --gold: #C1653A;
  --gold-light: #EAC9A6;
  --rose: #A8425A;
  --rose-light: #E8C3CD;
  --ink: #2E2418;
  --ink-soft: #6B5B47;
  --line: rgba(30,61,37,0.14);
  --shadow: 0 14px 34px rgba(46,36,24,0.10);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --maxw: 1180px;
  font-size: 17px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }

h1,h2,h3,h4{
  font-family: 'Fraunces', serif;
  color: var(--forest);
  margin: 0 0 .4em 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 600; line-height: 1.02; }
h2{ font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; }
h3{ font-size: 1.25rem; }
p{ margin: 0 0 1em 0; color: var(--ink-soft); }

.eyebrow{
  display:inline-flex; align-items:center; gap:.5em;
  font-family:'Work Sans',sans-serif; font-weight:600;
  font-size:.72rem; letter-spacing:.18em; text-transform:uppercase;
  color: var(--forest-2);
}
.eyebrow::before{
  content:""; width:18px; height:1px; background: currentColor; display:inline-block;
}

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section{ padding: 88px 0; }
@media (max-width: 720px){ section{ padding: 56px 0; } .wrap{ padding: 0 20px; } }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.55em;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-whatsapp{
  background: #1E7A46;
  color: #fff;
  box-shadow: 0 8px 20px rgba(30,122,70,.28);
}
.btn-whatsapp:hover{ box-shadow: 0 12px 26px rgba(30,122,70,.36); }
.btn-outline{
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-outline:hover{ background: var(--forest); color: var(--ivory); }
.btn-ghost{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn-small{ padding: 9px 16px; font-size: .82rem; }

/* ---------- Promo bar ---------- */
.promo-bar{
  background: var(--forest); color: var(--sage);
  text-align:center; font-size:.8rem; font-weight:500; letter-spacing:.03em;
  padding: 9px 20px;
}
.promo-bar b{ font-weight:700; color:#fff; }

/* ---------- Nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(251,246,236,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 28px;
  max-width: var(--maxw); margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:.7em; }
.brand-mark{ width:40px; height:40px; flex-shrink:0; object-fit:contain; }
.brand-mark-full{ width:auto; height:74px; }
.brand-name{
  font-family:'Fraunces',serif; font-weight:600; font-size:1.12rem; color:var(--forest);
  line-height:1.05;
}
.brand-name span{ display:block; font-family:'Work Sans',sans-serif; font-weight:500; font-size:.62rem; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft); margin-top:3px; }

.nav-links{ display:flex; align-items:center; gap: 28px; }
.nav-links > li{ position:relative; }
.nav-links a{
  font-weight:500; font-size:.94rem; color: var(--ink);
  position:relative; padding: 4px 0;
}
.nav-links a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:2px;
  background: var(--gold); transition: right .22s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ right:0; }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.lang-switch{ display:flex; border:1px solid var(--line); border-radius:999px; overflow:hidden; }
.lang-switch button{
  border:none; background:transparent; padding:6px 11px; font-size:.75rem; font-weight:700;
  letter-spacing:.04em; color: var(--ink-soft); border-right:1px solid var(--line);
}
.lang-switch button:last-child{ border-right:none; }
.lang-switch button.active{ background: var(--forest); color:#fff; }
.lang-switch button:hover:not(.active){ background: var(--sage); }
@media (max-width:620px){ .lang-switch button{ padding:5px 8px; font-size:.7rem; } }
.nav-toggle{ display:none; background:none; border:none; padding:6px; }
.nav-toggle svg{ width:26px; height:26px; }

/* Mega-menu dropdown (desktop only) */
.mega{
  position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(6px);
  background: var(--ivory); border:1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow); padding:18px; z-index:60;
  display:none; grid-template-columns:repeat(2,1fr); gap:2px 28px; min-width:460px;
}
.nav-links > li:hover .mega,
.nav-links > li:focus-within .mega{ display:grid; }
.mega a{ font-size:.87rem; font-weight:500; padding:7px 10px; border-radius:7px; color:var(--ink-soft); white-space:nowrap; }
.mega a::after{ display:none; }
.mega a:hover{ background: var(--sage); color:var(--forest); }

@media (max-width: 880px){
  .brand-mark-full{ height:52px; }
  .mega{ display:none !important; }
  .nav-links{
    position:fixed; inset: 88px 0 0 0; background: var(--bg);
    flex-direction:column; align-items:flex-start; gap:0;
    padding: 10px 28px 28px; transform: translateY(-8px);
    opacity:0; pointer-events:none; transition: opacity .2s ease, transform .2s ease;
    border-top: 1px solid var(--line);
  }
  .nav-links.open{ opacity:1; pointer-events:auto; transform:translateY(0); }
  .nav-links a{ padding: 14px 0; width:100%; border-bottom:1px solid var(--line); display:block; }
  .nav-toggle{ display:block; }
  .nav-cta .btn-label{ display:none; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden;
  padding: 72px 0 68px;
  border-bottom: 1px solid var(--line);
}
.hero-grid{
  display:grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items:center;
}
@media (max-width: 900px){ .hero-grid{ grid-template-columns:1fr; } }
.hero h1{ margin-bottom:.32em; }
.hero .lede{ font-size: 1.15rem; max-width: 46ch; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top: 30px; }

.hero-frame{ position:relative; aspect-ratio: 1/1; max-width:440px; margin:0 auto; }
.hero-frame::before{
  content:""; position:absolute; inset:6% 10% 10% 6%;
  background: var(--sage); border-radius: var(--radius-l);
}
.hero-frame .ph-main{
  position:absolute; width:66%; left:2%; top:6%; border-radius: var(--radius-m);
  overflow:hidden; box-shadow: var(--shadow); background:var(--ivory); border:1px solid var(--line);
  aspect-ratio: 3/4;
}
.hero-frame .ph-main img{ width:100%; height:100%; object-fit:cover; }
.hero-frame .ph-sub{
  position:absolute; width:42%; right:0; bottom:2%; border-radius: var(--radius-m);
  overflow:hidden; box-shadow: var(--shadow); background:var(--ivory); border:1px solid var(--line);
  aspect-ratio: 4/3;
}
.hero-frame .ph-sub img{ width:100%; height:100%; object-fit:cover; }

/* ---------- Category split cards ---------- */
.category-split{
  display:grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 780px){ .category-split{ grid-template-columns:1fr; } }
.cat-card{
  position:relative; border-radius: var(--radius-m);
  background: var(--ivory); border: 1px solid var(--line); border-top: 4px solid var(--gold);
  padding: 36px 34px; display:flex; flex-direction:column; gap:16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card.cosmetics{ border-top-color: var(--rose); }
.cat-card:hover{ transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,48,31,.08); }
.cat-card .cat-icon{
  width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: var(--gold-light); color: var(--forest); flex-shrink:0;
}
.cat-card.cosmetics .cat-icon{ background: var(--rose-light); color:#4A1424; }
.cat-card .cat-icon svg{ width:24px; height:24px; }
.cat-card .cat-count{
  font-family:'Work Sans'; font-weight:600; font-size:.72rem; letter-spacing:.12em; text-transform:uppercase;
  color: var(--ink-soft);
}
.cat-card h3{ font-size: 1.6rem; margin: 2px 0 0; color: var(--forest); }
.cat-card.cosmetics h3{ color: #4A1424; }
.cat-card p{ max-width: 40ch; margin-bottom: 4px; }
.cat-card .cat-link{ font-weight:600; font-size:.9rem; color: var(--forest); display:inline-flex; align-items:center; gap:.4em; margin-top:auto; }
.cat-card.cosmetics .cat-link{ color:#4A1424; }
.cat-card .cat-link svg{ width:16px; height:16px; transition: transform .18s ease; }
.cat-card:hover .cat-link svg{ transform: translateX(3px); }

/* ---------- Shop by concern tiles ---------- */
.concern-grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap:14px;
}
.concern-tile{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px;
  padding: 22px 14px; background: var(--ivory); border:1px solid var(--line); border-radius: var(--radius-m);
  transition: border-color .15s ease, transform .15s ease;
}
.concern-tile:hover{ border-color: var(--gold); transform: translateY(-2px); }
.concern-tile .concern-icon{
  width:44px; height:44px; border-radius:50%; background: var(--sage);
  display:flex; align-items:center; justify-content:center; color: var(--forest);
}
.concern-tile .concern-icon svg{ width:20px; height:20px; }
.concern-tile span{ font-size:.82rem; font-weight:600; color: var(--ink); line-height:1.3; }

/* ---------- Trust strip ---------- */
.trust-strip{
  display:flex; flex-wrap:wrap; justify-content:center; gap: 36px;
  padding: 30px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.trust-item{ display:flex; align-items:center; gap:10px; font-size:.86rem; font-weight:600; color: var(--ink-soft); }
.trust-item svg{ width:20px; height:20px; color: var(--forest); flex-shrink:0; }

/* ---------- Follow-us CTA banner ---------- */
.cta-banner{
  background: var(--forest); border-radius: var(--radius-l); padding: 48px 40px;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  color:#fff;
}
.cta-banner h2{ color:#fff; margin-bottom:.2em; }
.cta-banner p{ color: rgba(255,255,255,.78); margin:0; }
.cta-banner .btns{ display:flex; gap:12px; flex-wrap:wrap; }
.section-head{ max-width: 62ch; margin-bottom: 44px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Subcategory nav (tab filter) ---------- */
.subcat-nav{
  display:flex; gap:4px; margin-bottom: 48px;
  position: sticky; top: 95px; z-index: 20;
  background: var(--sage); padding: 14px 0;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.subcat-nav::-webkit-scrollbar{ display:none; }
.subcat-pill{
  padding: 8px 16px 12px; font-size:.85rem; font-weight:600;
  color: var(--ink-soft); white-space:nowrap; border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.subcat-pill:hover{ color: var(--forest); }
.subcat-pill.active{ color: var(--forest); border-bottom-color: var(--gold); }

/* ---------- Subcategory block ---------- */
.subcat-block{ margin-bottom: 68px; scroll-margin-top: 150px; }
.subcat-block-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:20px;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 26px;
}
.subcat-block-head h3{ margin:0; }
.subcat-block-head .count{ font-size:.85rem; color: var(--ink-soft); white-space:nowrap; }
.subcat-desc{ max-width: 68ch; margin-top:-14px; margin-bottom:22px; font-size:.96rem; }

.product-grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 22px;
}
.product-card{
  background: var(--ivory); border-radius: var(--radius-m); overflow:hidden;
  border: 1px solid var(--line); display:flex; flex-direction:column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.product-thumb{
  aspect-ratio: 4/3; display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden; border-bottom: 1px solid var(--line);
}
.product-thumb svg{ width:56%; height:56%; }
.product-thumb img{ width:100%; height:100%; object-fit:contain; padding: 10px; }
.product-body{ padding: 18px 20px 20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-body h4{ font-family:'Fraunces',serif; font-weight:600; font-size:1.05rem; color:var(--forest); margin:0; }
.product-body p{ font-size:.87rem; margin:0; flex:1; }
.product-meta{ display:flex; align-items:flex-end; justify-content:flex-end; margin-top:6px; gap:10px; flex-wrap:wrap; }
.product-meta:has(.price, .size-row){ justify-content:space-between; }
.price{ font-weight:700; color: var(--forest); font-family:'Fraunces',serif; font-size:1.05rem; }
.size-row{ display:flex; flex-direction:column; gap:4px; }
.size-chip{ font-size:.78rem; color: var(--ink-soft); display:flex; gap:6px; }
.size-chip b{ color: var(--forest); font-family:'Fraunces',serif; font-weight:700; }

/* ---------- About / story blocks ---------- */
.story-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap:56px; align-items:center; }
@media (max-width:880px){ .story-grid{ grid-template-columns:1fr; } }
.stat-row{ display:flex; gap: 40px; margin-top: 32px; flex-wrap:wrap; }
.stat b{ display:block; font-family:'Fraunces',serif; font-size:2.1rem; color:var(--forest); }
.stat span{ font-size:.82rem; color:var(--ink-soft); letter-spacing:.04em; }

.value-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:22px; }
@media (max-width:880px){ .value-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width:520px){ .value-grid{ grid-template-columns: 1fr;} }
.value-card{ background: var(--ivory); border:1px solid var(--line); border-radius: var(--radius-m); padding:26px 22px; }
.value-card svg{ width:32px; height:32px; margin-bottom: 14px; color: var(--forest); }

.story-art{
  background: var(--ivory); border:1px solid var(--line); border-radius: var(--radius-l);
  aspect-ratio: 4/3.3; display:flex; align-items:center; justify-content:center;
}
.story-art img{ width:38%; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width:880px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-card{
  background: var(--forest); color: var(--sage); border-radius: var(--radius-l); padding: 40px;
}
.contact-card h3{ color:#fff; }
.contact-card p{ color: rgba(241,230,211,.78); }
.contact-list{ display:flex; flex-direction:column; gap:18px; margin-top: 20px; }
.contact-list li{ display:flex; align-items:flex-start; gap:14px; }
.contact-list svg{ width:22px; height:22px; flex-shrink:0; margin-top:2px; color: var(--gold-light); }
.contact-list a{ color:#fff; font-weight:600; }
.form{ display:flex; flex-direction:column; gap:16px; }
.form label{ font-size:.82rem; font-weight:600; color: var(--forest); margin-bottom:6px; display:block; }
.form input, .form select, .form textarea{
  width:100%; padding: 12px 14px; border-radius: var(--radius-s); border:1px solid var(--line);
  background: var(--ivory); font-family: inherit; font-size:.95rem; color: var(--ink);
}
.form textarea{ min-height: 110px; resize: vertical; }
.form-note{ font-size:.8rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--forest); color: var(--sage); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width:780px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.site-footer h4{ color:#fff; font-family:'Work Sans'; font-weight:600; font-size:.82rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:16px; }
.site-footer p{ color: rgba(241,230,211,.7); }
.site-footer ul li{ margin-bottom:10px; }
.site-footer a{ color: rgba(241,230,211,.82); font-size:.92rem; }
.site-footer a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(241,230,211,.15); margin-top: 48px; padding-top: 24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.8rem; color: rgba(241,230,211,.55); }
.social-row{ display:flex; gap:12px; margin-top:14px; }
.social-row a{ width:38px; height:38px; border-radius:50%; border:1px solid rgba(241,230,211,.3); display:flex; align-items:center; justify-content:center; }
.social-row svg{ width:17px; height:17px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float{
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1E7A46; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 26px rgba(30,122,70,.4);
  animation: pulse 2.6s ease-in-out infinite;
}
.wa-float svg{ width:28px; height:28px; }
@keyframes pulse{ 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.06);} }

/* ---------- Utility ---------- */
.mt-0{ margin-top:0; } .center{ text-align:center; }

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  html{ scroll-behavior: auto; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--gold); outline-offset: 2px;
}
