:root{
  --bg:#f6f3ee;
  --surface:#ffffff;
  --text:#1f2a24;
  --muted:#55655b;
  --brand:#2f5d50;      /* deep green */
  --brand-2:#b08d57;    /* brass */
  --accent:#7a5f3d;     /* earth */
  --line:rgba(31,42,36,.12);
  --shadow:0 10px 30px rgba(31,42,36,.10);
  --radius:18px;
  --max:1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Noto Sans Arabic", "Cairo", "Tajawal", sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:radial-gradient(1000px 700px at 10% 0%, rgba(176,141,87,.18), transparent 55%),
             radial-gradient(900px 650px at 95% 10%, rgba(47,93,80,.15), transparent 55%),
             radial-gradient(900px 650px at 60% 110%, rgba(122,95,61,.18), transparent 55%),
             var(--bg);
}

a{color:inherit; text-decoration:none}

.container{max-width:var(--max); margin:0 auto; padding:0 18px}

/* Top bar */
.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:saturate(150%) blur(14px);
  background:rgba(246,243,238,.70);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:210px;
}
.brand img{width:38px;height:38px}
.brand-title{display:flex; flex-direction:column; line-height:1.1}
.brand-title strong{font-size:1.05rem; letter-spacing:.2px}
.brand-title span{font-size:.82rem; color:var(--muted)}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.nav a{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
  font-weight:600;
  transition:all .18s ease;
}
.nav a:hover{border-color:var(--line); background:rgba(255,255,255,.6); color:var(--text)}
.nav a.active{background:rgba(47,93,80,.10); border-color:rgba(47,93,80,.22); color:var(--brand)}

.actions{display:flex; align-items:center; gap:10px; justify-content:flex-end; min-width:210px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  transition:transform .12s ease, background .18s ease, border-color .18s ease;
}
.btn:hover{background:#fff; border-color:rgba(47,93,80,.25)}
.btn:active{transform:scale(.98)}

.btn-primary{
  border-color:rgba(47,93,80,.25);
  background:linear-gradient(180deg, rgba(47,93,80,.14), rgba(47,93,80,.08));
  color:var(--brand);
}

.lang-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
}
.switch{
  width:46px;
  height:26px;
  border-radius:999px;
  background:rgba(31,42,36,.12);
  position:relative;
  cursor:pointer;
}
.knob{
  position:absolute;
  top:3px;
  left:3px;
  width:20px;
  height:20px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 6px 14px rgba(31,42,36,.20);
  transition:left .18s ease;
}
html[lang="ar"] .knob{left:23px}

/* Hero */
.hero{padding:46px 0 26px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr;}
  .actions{min-width:auto}
  .brand{min-width:auto}
}

.card{
  border:1px solid var(--line);
  background:rgba(255,255,255,.76);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero-card{
  padding:26px;
  position:relative;
  overflow:hidden;
}
.hero-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 320px at 15% 20%, rgba(176,141,87,.22), transparent 60%),
              radial-gradient(520px 340px at 90% 25%, rgba(47,93,80,.20), transparent 62%),
              radial-gradient(520px 340px at 55% 115%, rgba(122,95,61,.18), transparent 62%);
  pointer-events:none;
}
.hero-card > *{position:relative}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(47,93,80,.18);
  background:rgba(47,93,80,.08);
  color:var(--brand);
  font-weight:800;
  font-size:.9rem;
}

.h1{
  margin:16px 0 10px;
  font-size:2.3rem;
  letter-spacing:-.6px;
}
@media (max-width: 520px){
  .h1{font-size:1.85rem}
}

.lead{margin:0 0 18px; color:var(--muted); font-size:1.05rem; line-height:1.75}

.hero-actions{display:flex; gap:10px; flex-wrap:wrap}

.side-card{padding:18px}
.side-title{margin:0 0 10px; font-size:1.05rem}
.badge-list{display:grid; gap:10px}
.badge{
  display:flex;
  gap:12px;
  padding:12px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
}
.badge .dot{width:10px;height:10px;border-radius:50%; margin-top:6px; background:var(--brand)}
.badge p{margin:0; color:var(--muted); line-height:1.6}

/* Sections */
.section{padding:22px 0 50px}
.section-title{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin:0 0 14px}
.section-title h2{margin:0; font-size:1.4rem}
.section-title span{color:var(--muted)}

.grid-3{display:grid; grid-template-columns:repeat(3, 1fr); gap:14px}
@media (max-width: 980px){.grid-3{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 640px){.grid-3{grid-template-columns:1fr}}

.feature{padding:18px}
.feature h3{margin:0 0 8px}
.feature p{margin:0; color:var(--muted); line-height:1.75}

/* Products */
.products-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:14px}
@media (max-width: 1080px){.products-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 1080px){.products-grid{grid-template-columns:1fr}}

.product-card{overflow:hidden}
.product-img{
  width:100%;
  height: 300px;px;
  object-fit:cover;
  display:block;
  border-bottom:1px solid var(--line);
  background:#efe7dc;
}
.product-body{padding:16px}
.product-title{margin:0 0 6px; font-size:1.06rem}
.product-desc{margin:0 0 12px; color:var(--muted); line-height:1.65}
.product-meta{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(47,93,80,.18);
  background:rgba(47,93,80,.08);
  color:var(--brand);
  font-weight:800;
  font-size:.82rem;
}

/* About */
.about-layout{display:grid; grid-template-columns: 1fr 1fr; gap:14px}
@media (max-width: 900px){.about-layout{grid-template-columns:1fr}}

.quote{
  padding:18px;
  border-radius:var(--radius);
  border:1px dashed rgba(47,93,80,.35);
  background:rgba(47,93,80,.06);
  color:var(--muted);
  line-height:1.85;
}

/* Footer */
.footer{border-top:1px solid var(--line); padding:26px 0; background:rgba(255,255,255,.45)}
.footer-grid{display:grid; grid-template-columns: 1.2fr .8fr; gap:14px; align-items:start}
@media (max-width: 900px){.footer-grid{grid-template-columns:1fr}}
.footer p{margin:8px 0 0; color:var(--muted); line-height:1.7}
.footer small{color:var(--muted)}

/* RTL support */
html[lang="ar"] body{font-family: var(--font)}
html[lang="ar"] .nav{justify-content:center}
html[lang="ar"] .brand{flex-direction:row-reverse}
html[lang="ar"] .actions{justify-content:flex-start}
html[lang="ar"] .hero-actions{justify-content:flex-start}
html[lang="ar"] .badge{flex-direction:row-reverse}
html[lang="ar"] .badge .dot{margin-top:6px}
