:root {
  --wood-dark: #4a3326;
  --wood-mid: #7a5a42;
  --wood-soft: #b38d66;
  --beige: #dcc8ab;
  --cream: #f6f1e8;
  --off-white: #fbf8f2;
  --gold-light: #c5a875;
  --text: #2f241b;
  --muted: #6b5a4a;
  --border: #e7dccd;
  --shadow: 0 14px 40px rgba(74, 51, 38, 0.13);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  background: linear-gradient(180deg, #f9f5ee 0%, #f5efe5 100%);
  color: var(--text);
  line-height: 1.8;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
main { min-height: 70vh; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.section-padding { padding: 86px 0; }
.section-padding-sm { padding: 64px 0 34px; }
.section-muted {
  background: linear-gradient(145deg, rgba(220, 200, 171, 0.28), rgba(251, 248, 242, 0.84));
  border-block: 1px solid var(--border);
}

.kicker {
  display: inline-flex;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(197, 168, 117, 0.4);
  border-radius: 999px;
  background: rgba(197, 168, 117, 0.18);
  color: var(--wood-dark);
  font-weight: 700;
}
.page-hero .kicker { margin-bottom: 14px; }
h1, h2, h3, h4 { margin: 0 0 14px; line-height: 1.35; }
p { margin: 0 0 14px; color: var(--muted); }
code { background: #efe5d5; color: #4b382a; border-radius: 6px; padding: 2px 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--border);
  background: rgba(251, 248, 242, 0.9);
  backdrop-filter: blur(10px);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand-logo { width: 112px; height: auto; object-fit: contain; }
.brand-fallback { font-size: 1.1rem; color: var(--wood-dark); font-weight: 800; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--wood-dark);
  font-weight: 700;
  transition: all .25s ease;
}
.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(179, 141, 102, 0.2);
  color: #2b1f16;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 8px;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #d8c5ad;
  background: #fff;
  color: #4f3b2b;
  font-weight: 700;
  font-size: .88rem;
}
.lang-switch a.is-active {
  background: #f0e2cd;
  border-color: #c6a984;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 7px 11px;
  font-size: 1.3rem;
  cursor: pointer;
}

.hero {
  background:
    radial-gradient(circle at 20% 25%, rgba(197, 168, 117, 0.22), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(122, 90, 66, 0.18), transparent 38%),
    linear-gradient(140deg, #f8f3eb, #f2e8da);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}
.hero h1 { font-size: clamp(1.9rem, 3.3vw, 3rem); color: #2d2218; }

.hero-card,
.card,
.stat-card,
.partner-card,
.team-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(140deg, rgba(255,255,255,.92), rgba(248,242,232,.9));
  box-shadow: var(--shadow);
}
.hero-card,
.card,
.partner-card,
.team-card { padding: 24px; }

.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.45rem, 2.5vw, 2.2rem); }
.text-right { text-align: start; }

.hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--wood-dark), var(--wood-mid)); color: #fff; }
.btn-secondary { background: linear-gradient(120deg, #aa845d, #937051); color: #fff; }
.btn-ghost { border-color: #c7ad8e; background: #fff; color: #5d422f; }
.btn-primary:hover,
.btn-secondary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost:hover { background: #f6ebdc; }
.full-width { width: 100%; }

.features-grid,
.stats-grid,
.testimonials-grid,
.partners-grid,
.value-grid,
.team-grid {
  display: grid;
  gap: 18px;
}
.features-grid,
.stats-grid,
.testimonials-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.value-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stat-card { text-align: center; padding: 20px 12px; }
.stat-card h3 { font-size: 2rem; color: var(--wood-dark); }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.tag-list span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #efe5d5;
  color: #5a412e;
  font-weight: 700;
}
.mini-team { display: grid; gap: 10px; margin-bottom: 16px; }
.mini-team-item {
  border: 1px dashed #cdb89e;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.mini-team-item p { margin: 0; }

.gallery-preview { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.preview-item {
  min-height: 170px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f6eddf;
}
.preview-item img,
.gallery-open img,
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.placeholder-tile {
  width: 100%;
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
  color: #6b513c;
  font-weight: 700;
  background: linear-gradient(135deg, #f3e5cf, #e2c8a4);
}

.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.list-check { margin: 0; padding: 0; list-style: none; }
.list-check li {
  position: relative;
  padding-inline-start: 26px;
  margin-bottom: 9px;
  color: #4f3d2d;
}
.list-check li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: #8a673f;
  font-weight: 800;
}

.team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.team-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
}
.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ead8bf;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #6c4f36;
  font-weight: 700;
}
.job-title { color: #7f5f43; font-weight: 700; }

.contact-list { margin: 10px 0 0; padding: 0; list-style: none; }
.contact-list li { margin-bottom: 8px; color: #52412f; }
.contact-list a { color: #745232; }
.phone-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.contact-map {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.contact-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.partners-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.partner-card,
.card,
.team-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.partner-card:hover,
.card:hover,
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(74, 51, 38, 0.16);
}
.partner-card { text-align: center; }
.partner-logo {
  height: 128px;
  margin-bottom: 14px;
  border: 1px solid #e9dece;
  border-radius: 12px;
  background: #fcf8f3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.partner-logo span { color: #6b4f3b; font-weight: 800; }
.partner-sublogos {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
}
.partner-sublogos img {
  width: 100%;
  height: 88px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.partner-brands {
  margin: 8px 0 0;
  font-size: .93rem;
  color: #7a5b40;
  font-weight: 700;
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.filter-btn {
  border: 1px solid #ccb392;
  border-radius: 999px;
  background: #fff;
  color: #5f452f;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.filter-btn.active,
.filter-btn:hover { background: #e8d5bb; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.gallery-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 8px;
}
.gallery-open {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}
.gallery-open img,
.gallery-open .placeholder-tile { aspect-ratio: 4/3; }
.gallery-item h3 { margin: 10px 6px 4px; font-size: 1rem; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 14, 9, 0.86);
}
.lightbox.show { display: flex; }
.lightbox-content {
  width: min(900px, 96%);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}
.lightbox-content img,
#lightboxPlaceholder {
  width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  object-fit: contain;
  background: #f6ecdb;
}
#lightboxPlaceholder { display: none; min-height: 320px; }
#lightboxTitle { margin: 10px 4px 2px; color: #4c3827; font-weight: 700; }
.lightbox-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}
.contact-form { display: grid; gap: 12px; }
.form-group { display: grid; gap: 6px; }
label { color: #4f3928; font-weight: 700; }
input,
textarea {
  width: 100%;
  border: 1px solid #d9c7af;
  border-radius: 10px;
  background: #fff;
  color: #34271c;
  font-family: inherit;
  font-size: 1rem;
  padding: 11px 12px;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: #9e7a54;
  box-shadow: 0 0 0 3px rgba(178, 144, 105, 0.22);
}

.alert {
  margin-bottom: 14px;
  border-radius: 12px;
  padding: 12px 14px;
}
.alert.success {
  border: 1px solid #b8ddc0;
  background: #e5f4e9;
  color: #205f2b;
}
.alert.error {
  border: 1px solid #ffc5c0;
  background: #ffe9e7;
  color: #8a2a23;
}
.alert ul { margin: 0; padding: 0 18px 0 0; }

.section-contact-cta { background: linear-gradient(130deg, #5d4331, #8a6a4d); }
.cta-box { text-align: center; color: #fff; }
.cta-box h2, .cta-box p { color: #fff; }
.quote { color: #4d3a2b; }

.site-footer {
  padding-top: 54px;
  color: #f8f0e7;
  background: linear-gradient(160deg, #2f2118, #493628);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 20px;
  padding-bottom: 20px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f6f1e8;
  border: 1px solid #e4d7c6;
}
.footer-brand .brand-fallback { color: #4a3326; }
.footer-brand .brand-logo {
  width: 178px;
  max-width: 100%;
  filter: contrast(1.1);
}
.footer-text { color: #c8b49f; }
.site-footer h3 { margin-bottom: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #f5e6d5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 12px 0 18px;
  text-align: center;
}
.footer-bottom p { color: #d4c2ae; margin: 0; }

.back-to-top {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5b40, #4e3728);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all .28s ease;
  z-index: 120;
}
.back-to-top.show { opacity: 1; visibility: visible; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }

@media (max-width: 1080px) {
  .features-grid,
  .stats-grid,
  .testimonials-grid,
  .value-grid,
  .partners-grid,
  .gallery-grid,
  .footer-grid,
  .team-grid,
  .hero-grid,
  .two-col,
  .contact-grid { grid-template-columns: 1fr; }

  .gallery-preview { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .section-padding { padding: 68px 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .brand-logo { width: 92px; }
  .footer-brand .brand-logo { width: 144px; }

  .site-nav {
    position: absolute;
    top: 83px;
    right: 4%;
    width: min(300px, 92%);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fdf9f3;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }
  .site-nav.open { display: flex; }
  .lang-switch { margin-inline-start: auto; }

  .features-grid,
  .stats-grid,
  .testimonials-grid,
  .value-grid,
  .partners-grid,
  .gallery-grid,
  .gallery-preview { grid-template-columns: 1fr; }

  .team-card { grid-template-columns: 1fr; }
  .team-photo { width: 100%; height: 190px; }
}
