:root{
  --bg: #f7f8f6;
  --card: rgba(255,255,255,.82);
  --text: #1b1f1a;
  --muted: #5b635a;
  --line: rgba(0,0,0,.10);
  --shadow: 0 18px 45px rgba(0,0,0,.10);
  --accent: #2f7d32;
  --accent2: #c08a2f;
  --radius: 22px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth; overflow-x:hidden}
body{
  overflow-x:hidden;

  margin:0;
  font-family: "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(47,125,50,.18), transparent 60%),
              radial-gradient(1000px 500px at 110% 20%, rgba(192,138,47,.18), transparent 60%),
              var(--bg);
  color:var(--text);
  line-height:1.75;
  overflow-x:hidden;
  width:100%;
  position:relative;
  overscroll-behavior-x:none;
}

/* Prevent accidental horizontal panning / drift on mobile */
.siteHeader,
.siteMain,
.section,
.hero,
.grid3,
.gallery,
.contactGrid{
  max-width:100%;
}

img{max-width:100%; height:auto}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.container{
  width:min(1120px, 92%);
  margin-inline:auto;
}

.bgShapes{
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.75;
  background:
    radial-gradient(420px 420px at 12% 82%, rgba(192,138,47,.16), transparent 60%),
    radial-gradient(460px 460px at 92% 12%, rgba(47,125,50,.14), transparent 60%),
    linear-gradient(120deg, rgba(255,255,255,.35), transparent 35%, rgba(255,255,255,.20));
  filter: blur(.2px);
}

.siteHeader{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(247,248,246,.72);
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(0,0,0,.06);
}

.headerInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:inherit;
}

.brand-title{
  display:block;
}
.brand-title .brand-name{
  display:block;
  font-weight:800;
  font-size:14px;
  line-height:1.2;
}
.brand-title .brand-sub{
  display:block;
  font-size:11px;
  opacity:.8;
  line-height:1.2;
}
@media (min-width: 900px){
  .brand-title .brand-name{font-size:16px}
  .brand-title .brand-sub{font-size:12px}
}

.brandBadge{
  width:52px;
  height:52px;
  border-radius:18px;
  background: rgba(255,255,255,.85);
  border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.brandBadge img{
  width:46px;
  height:46px;
  object-fit:contain;
}
.brandBadge.small{width:44px;height:44px;border-radius:16px}
.brandBadge.small img{width:38px;height:38px}

.topNav{
  display:flex;
  align-items:center;
  gap:18px;
  padding:8px 14px;
  border-radius:999px;
  background: rgba(255,255,255,.62);
  border:1px solid rgba(0,0,0,.06);
}
.topNav a{
  font-weight:700;
  color:var(--muted);
  padding:8px 10px;
  border-radius:14px;
  transition: .2s ease;
}
.topNav a:hover{
  color:var(--text);
  background: rgba(47,125,50,.10);
}

.menuBtn{
  width:46px;
  height:46px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
  cursor:pointer;
}
.menuBtn span{
  width:18px;height:2px;border-radius:99px;background:#2a2f2a;
}

.drawer{
  position:fixed;
  top:0;
  right:0;
  height:100%;
  width:min(360px, 84vw);
  background: rgba(255,255,255,.92);
  border-left:1px solid rgba(0,0,0,.06);
  box-shadow: -20px 0 60px rgba(0,0,0,.18);
  transform: translateX(110%);
  transition: transform .25s ease;
  z-index:70;
  display:flex;
  flex-direction:column;
}
.drawer.open{ transform: translateX(0) }
.drawerHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 16px 10px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.drawerBrand{
  display:flex;
  align-items:center;
  gap:10px;
}
.drawerTitle{
  font-weight:800;
  font-size:14px;
  max-width:220px;
  line-height:1.4;
}
.drawerClose{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
  background: rgba(247,248,246,.9);
  cursor:pointer;
}
.drawerNav{
  padding:14px;
  display:grid;
  gap:10px;
}
.drawerNav a{
  padding:12px 12px;
  border-radius:16px;
  background: rgba(47,125,50,.06);
  border:1px solid rgba(0,0,0,.05);
  font-weight:800;
  color:var(--text);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.drawerMeta{
  margin-top:auto;
  padding:14px;
  display:grid;
  gap:10px;
  border-top:1px solid rgba(0,0,0,.06);
}
.metaLink{
  padding:12px 12px;
  border-radius:16px;
  background: rgba(192,138,47,.08);
  border:1px solid rgba(0,0,0,.05);
  font-weight:700;
  color:var(--text);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.25);
  z-index:60;
}

.hero{
  padding:44px 0 22px;
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:22px;
  align-items:stretch;
}
.heroText{
  padding:26px 22px;
  background: rgba(255,255,255,.72);
  border:1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.heroText::before{
  content:"";
  position:absolute;
  inset:auto -60px -60px auto;
  width:220px;height:220px;
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(47,125,50,.26), transparent 60%);
}
.kicker{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(47,125,50,.10);
  color: var(--accent);
  font-weight:800;
  margin:0 0 10px 0;
}
.heroText h1{
  font-size: clamp(22px, 3.2vw, 38px);
  line-height:1.25;
  margin: 0 0 10px 0;
}
.lead{
  color: var(--muted);
  margin:0 0 16px 0;
  font-size: 17px;
}

.heroActions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin: 10px 0 16px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.07);
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
}
.btn.primary{
  color:white;
  background: linear-gradient(135deg, var(--accent), #1f5f27);
  box-shadow: 0 14px 32px rgba(47,125,50,.22);
  border-color: rgba(47,125,50,.22);
}
.btn.primary:hover{ transform: translateY(-1px) }
.btn.ghost{
  background: rgba(255,255,255,.66);
  color: var(--text);
}
.btn.ghost:hover{ background: rgba(47,125,50,.10) }
.btn.full{ width:100% }

.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.stat{
  padding:12px 12px;
  border-radius:18px;
  background: rgba(247,248,246,.90);
  border:1px solid rgba(0,0,0,.06);
}
.statNum{ font-weight:900; color: var(--accent2); font-size:16px }
.statLabel{ color: var(--muted); font-weight:700; font-size:13px; line-height:1.4 }

.heroMedia{
  display:grid;
  gap:12px;
}
.mediaCard{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.62);
  position:relative;
  min-height: 330px;
}
.mediaCard img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.mediaOverlay{
  position:absolute;
  inset:auto 14px 14px 14px;
  border-radius:18px;
  padding:12px 12px;
  background: rgba(255,255,255,.82);
  border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}
.mediaTitle{ font-weight:900; margin-bottom:2px }
.mediaSub{ color: var(--muted); font-weight:700; font-size:13px }

.miniCards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.miniCard{
  display:flex;
  gap:10px;
  align-items:center;
  padding:14px 14px;
  border-radius: var(--radius);
  border:1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
}
.miniIcon{
  width:42px;height:42px;border-radius:16px;
  display:grid;place-items:center;
  background: rgba(192,138,47,.12);
  border:1px solid rgba(0,0,0,.06);
}
.miniText strong{ display:block; font-weight:900 }
.miniText span{ display:block; color:var(--muted); font-weight:700; font-size:13px }

.section{
  padding: 46px 0;
}
.section.alt{
  background: linear-gradient(180deg, rgba(47,125,50,.06), transparent 60%);
  border-top: 1px solid rgba(0,0,0,.04);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.sectionHead{
  margin-bottom: 18px;
}
.sectionHead h2{
  margin:0 0 6px 0;
  font-size: clamp(20px, 2.4vw, 30px);
}
.sectionHead p{
  margin:0;
  color: var(--muted);
  font-weight:700;
}

.features{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top: 14px;
}
.feature{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 16px 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
.feature h3{ margin:0 0 6px 0; font-weight:900 }
.feature p{ margin:0; color:var(--muted); font-weight:700 }

.infoStrip{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.infoItem{
  background: rgba(247,248,246,.95);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 12px 12px;
}
.infoLabel{ color: var(--muted); font-weight:800; font-size:12px }
.infoValue{ font-weight:900; color: var(--text) }

.tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 14px;
}
.tabBtn{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.07);
  background: rgba(255,255,255,.72);
  font-weight:900;
  color: var(--muted);
  cursor:pointer;
}
.tabBtn.active{
  color: white;
  background: linear-gradient(135deg, var(--accent2), #a06f21);
  border-color: rgba(192,138,47,.25);
  box-shadow: 0 14px 34px rgba(192,138,47,.20);
}

.tabPanels{ margin-top: 14px }
.tabPanel{ display:none }
.tabPanel.active{ display:block }

.cards{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
.card{
  background: rgba(255,255,255,.78);
  border:1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 16px 16px;
  box-shadow: 0 14px 32px rgba(0,0,0,.08);
}
.card h3{ margin:0 0 6px 0; font-weight:900 }
.card p{ margin:0 0 10px 0; color:var(--muted); font-weight:700 }
.card ul{
  margin:0;
  padding:0 18px 0 0;
  color: var(--text);
  font-weight:800;
}
.card li{ margin:6px 0 }

.gallery{
  column-count: 3;
  column-gap: 12px;
  margin-top: 14px;
}
.gItem{
  break-inside: avoid;
  margin: 0 0 12px 0;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}
.gItem img{
  width:100%;
  height:auto;
}

.contactGrid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:12px;
  margin-top: 14px;
}
.contactCard, .formCard{
  background: rgba(255,255,255,.76);
  border:1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 16px 16px;
  box-shadow: 0 14px 32px rgba(0,0,0,.08);
}
.contactCard h3, .formCard h3{ margin:0 0 10px 0; font-weight:900 }
.contactLines{ display:grid; gap:10px; margin-bottom: 12px }
.line{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius: 18px;
  background: rgba(47,125,50,.06);
  border:1px solid rgba(0,0,0,.05);
  font-weight:900;
  color: var(--text);
  flex-wrap: wrap;
}

.line span:last-child{
  word-break: break-word;
  overflow-wrap: anywhere;
}

.mapWrap{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(0,0,0,.06);
  background: rgba(247,248,246,.9);
}
.mapWrap iframe{
  width:100%;
  height: 320px;
  display:block;
}

.contactForm{
  display:grid;
  gap:10px;
}
.field label{
  display:block;
  font-weight:900;
  margin-bottom:6px;
  color: var(--text);
}
.field input, .field textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 18px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(247,248,246,.95);
  font-family: inherit;
  font-weight:700;
  outline:none;
}
.field input:focus, .field textarea:focus{
  border-color: rgba(47,125,50,.35);
  box-shadow: 0 0 0 4px rgba(47,125,50,.12);
}
.hint{
  margin:10px 0 0 0;
  color: var(--muted);
  font-weight:700;
  font-size:13px;
}

.siteFooter{
  padding: 20px 0 28px;
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(247,248,246,.72);
}
.copy{
  text-align:center;
  color: rgba(27,31,26,.85);
  font-weight:900;
}

@media (max-width: 980px){
  .heroGrid{ grid-template-columns: 1fr; }
  .mediaCard{ min-height: 280px; }
  .features{ grid-template-columns: 1fr; }
  .infoStrip{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .contactGrid{ grid-template-columns: 1fr; }
  .gallery{ column-count: 2; }
}

@media (max-width: 860px){
  .topNav{ display:none; }
  .menuBtn{ display:flex; }
}

@media (max-width: 520px){
  .gallery{ column-count: 1; }
  .stats{ grid-template-columns: 1fr; }
  .heroText{ padding: 20px 16px; }
  .miniCards{ grid-template-columns: 1fr; }
  .heroActions{ flex-direction: column; }
  .heroActions .btn{ width:100%; justify-content:center; }
  .mediaOverlay{ inset:auto 12px 12px 12px; }
  .drawerTitle{ max-width: 180px; }
}


@media (max-width: 900px){
  .headerNav{display:none !important;}
  .headerActions{display:none !important;}
}


/* Mobile safety */
img,svg,video,iframe{max-width:100%;}


/* Header brand title (desktop + mobile) */
.brand-title{
  display:block;
  text-align:right;
  line-height:1.1;
  max-width:70vw;
}
.brand-title .brand-name{
  font-weight:800;
  font-size:14px;
  color: #1d2a1d;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-title .brand-sub{
  font-weight:600;
  font-size:11px;
  color:#5b6b5b;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Ensure header layout doesn't overflow */
header, .header, .header-container, .nav, .topbar{
  overflow-x: clip;
}

@media (max-width: 768px){
  /* keep the brand aligned nicely on small screens */
  .header-brand, .brand, .logo-wrap, .navbar-brand{
    display:flex;
    align-items:center;
    gap:10px;
  }
}
