/* =========================================================================
   غبشة لتجارة الأخشاب — ورقة الأنماط الرئيسية
   نظام الألوان مستوحى من درجات الأخشاب الحقيقية التي تتاجر بها الشركة،
   والعنصر البصري المميز هو "حلقات نمو الشجرة" (مقطع الجذع) كرمز للعراقة.
   ========================================================================= */

:root{
  /* ألوان الهوية */
  --cream:        #F4EDE0;   /* نشارة خشب فاتحة — خلفية أساسية */
  --cream-alt:    #EADFC8;   /* خلفية القسم البديل */
  --paper:        #FBF7EE;   /* بطاقات فاتحة */
  --ink:          #251B12;   /* نص أساسي داكن */
  --ink-soft:     #55442F;   /* نص ثانوي */
  --bark:         #2A1E13;   /* جذع داكن — الهيدر/الفوتر/قسم التواصل */
  --bark-deep:    #190F09;   /* أعمق درجة */
  --oak:          #A9713D;   /* لون البلوط — أساسي للأزرار */
  --oak-dark:     #8A5A2E;
  --cedar:        #7C3F24;   /* السيدر — تفاعل/تمرير */
  --brass:        #C69A48;   /* نحاس — تفاصيل وحلقات */
  --brass-light:  #E3C67F;
  --line:         rgba(37,27,18,0.12);
  --line-light:   rgba(251,247,238,0.16);

  --font-display: "Cairo", "Tajawal", sans-serif;
  --font-body:    "Tajawal", "Cairo", sans-serif;

  --radius-card: 4px;
  --shadow-soft: 0 10px 30px rgba(25,15,9,0.10);
  --shadow-deep: 0 20px 50px rgba(25,15,9,0.28);

  --container: 1180px;
  --section-pad: clamp(64px, 9vw, 128px);
}

/* ------------------------------ إعادة ضبط ------------------------------ */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
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; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; color: var(--ink); }
p{ margin:0; }
section{ position: relative; }

:focus-visible{
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

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

/* ------------------------------- أدوات ------------------------------- */
.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.section-pad{ padding-block: var(--section-pad); }
.section-alt{ background: var(--cream-alt); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .4px;
  color: var(--cedar);
  margin-bottom: 14px;
}
.ring-mark{
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  position: relative;
  flex: none;
}
.ring-mark::after{
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid var(--oak-dark);
}

.section-head{
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head h2{
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  margin-bottom: 14px;
}
.section-head p{
  color: var(--ink-soft);
  font-size: 16.5px;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--brass);
  color: var(--bark-deep);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover{ background: var(--brass-light); }
.btn-outline{
  background: transparent;
  border-color: var(--line-light);
  color: var(--paper);
}
.btn-outline:hover{ background: rgba(251,247,238,0.08); }
.btn-dark{
  background: var(--bark);
  color: var(--paper);
}
.btn-dark:hover{ background: var(--bark-deep); }
.btn-sm{ padding: 10px 18px; font-size: 13.5px; }

/* -------------------------------- الهيدر -------------------------------- */
.site-header{
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 500;
  padding-block: 20px;
  transition: background-color .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header.is-scrolled{
  background: rgba(42,30,19,0.92);
  backdrop-filter: blur(10px);
  padding-block: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand-logo-wrap{
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--bark);
  border: 1px solid var(--line-light);
}
.brand-logo-wrap img{ width:100%; height:100%; object-fit:cover; }
.brand-text{ display:flex; flex-direction:column; line-height:1.2; }
.brand-text .brand-name{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--paper);
}
.brand-text .brand-tag{
  font-size: 11px;
  color: var(--brass-light);
  letter-spacing: .5px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 34px;
}
.nav-links a{
  color: var(--paper);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding-block: 4px;
}
.nav-links a::after{
  content:"";
  position:absolute;
  right:0; left:0; bottom:-2px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}
.nav-links a:hover::after,
.nav-links a.is-active::after{ transform: scaleX(1); }

.nav-right{ display:flex; align-items:center; gap:18px; }

.lang-toggle{
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--paper);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: .3px;
  transition: background-color .25s ease, border-color .25s ease;
}
.lang-toggle:hover{ background: rgba(251,247,238,0.1); border-color: var(--brass); }

.nav-toggle{
  display:none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-light);
  border-radius: 4px;
  background: transparent;
  color: var(--paper);
  align-items:center;
  justify-content:center;
  flex: none;
}
.nav-toggle svg{ width:22px; height:22px; }

.mobile-nav{
  position: fixed;
  inset: 0;
  background: var(--bark-deep);
  z-index: 600;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  transform: translateY(-100%);
  transition: transform .4s ease;
}
.mobile-nav.is-open{ transform: translateY(0); }
.mobile-nav-top{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 40px;
}
.mobile-nav-close{
  width:44px; height:44px; border-radius:4px;
  background: transparent; border: 1px solid var(--line-light);
  color: var(--paper); display:flex; align-items:center; justify-content:center;
}
.mobile-nav ul{ display:flex; flex-direction:column; gap: 6px; }
.mobile-nav a{
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  padding-block: 14px;
  border-bottom: 1px solid var(--line-light);
}
.mobile-nav-footer{
  margin-top: auto;
  color: var(--brass-light);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* -------------------------------- الهيرو -------------------------------- */
.hero{
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bark);
  color: var(--paper);
  overflow: hidden;
  padding-top: 110px;
}
.hero::before{
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(198,154,72,0.14), transparent 45%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, var(--bark-deep) 0%, var(--bark) 55%, #241a10 100%);
  z-index: 0;
}
.hero-rings{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: min(880px, 120vw);
  height: min(880px, 120vw);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}
.hero .container{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.hero-eyebrow{
  display:flex; align-items:center; gap:10px;
  color: var(--brass-light);
  font-weight:700; font-size:14px; letter-spacing:.4px;
}
.hero h1{
  font-size: clamp(56px, 11vw, 128px);
  font-weight: 900;
  line-height: .95;
  color: var(--paper);
  text-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.hero-sub{
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--brass-light);
  max-width: 640px;
}
.hero-desc{
  max-width: 560px;
  color: rgba(251,247,238,0.82);
  font-size: 16.5px;
}
.hero-actions{ display:flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.hero-stats{
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
}
.hero-stat b{
  display:block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--brass-light);
}
.hero-stat span{ font-size: 13px; color: rgba(251,247,238,0.7); }

.scroll-cue{
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color: rgba(251,247,238,0.65);
  font-size: 12px;
  z-index: 1;
}
.scroll-cue .dot{
  width: 1px; height: 34px;
  background: linear-gradient(var(--brass), transparent);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown{
  0%{ transform: scaleY(0.3); opacity:.4; transform-origin: top; }
  50%{ transform: scaleY(1); opacity:1; transform-origin: top; }
  100%{ transform: scaleY(0.3); opacity:.4; transform-origin: bottom; }
}

/* -------------------------------- من نحن -------------------------------- */
.about-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: start;
}
.about-copy p{ color: var(--ink-soft); margin-bottom: 18px; font-size: 16.5px; }

.stat-chips{
  display:flex; flex-wrap:wrap; gap: 14px; margin-top: 28px;
}
.stat-chip{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 18px;
  display:flex; flex-direction:column; gap:2px;
}
.stat-chip b{ font-family: var(--font-display); font-size: 20px; color: var(--cedar); }
.stat-chip span{ font-size: 12.5px; color: var(--ink-soft); }

.founders{
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.founder-card{
  display:flex;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.founder-photo{
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--oak);
  border: 2px solid var(--brass);
}
.founder-photo img{ width:100%; height:100%; object-fit:cover; }
.founder-info h3{ font-size: 18px; margin-bottom: 2px; }
.founder-info .role{ color: var(--cedar); font-weight:700; font-size: 13px; margin-bottom: 8px; display:block; }
.founder-info p{ color: var(--ink-soft); font-size: 14.5px; }

.ring-stat{
  display:flex; align-items:center; gap: 18px;
  margin-top: 8px;
}
.ring-stat svg{ width: 108px; height: 108px; flex: none; }
.ring-stat-text b{ display:block; font-family: var(--font-display); font-size: 15px; }
.ring-stat-text span{ font-size: 13px; color: var(--ink-soft); }

.board-section{
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.subsection-title{
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  margin-bottom: 28px;
}
.board-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* ------------------------------- منتجاتنا ------------------------------- */
.products-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-deep); }
.product-media{
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.wood-grain{
  position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(96deg, rgba(0,0,0,0.16) 0px, rgba(0,0,0,0.16) 1.5px, transparent 1.5px, transparent 9px),
    repeating-linear-gradient(96deg, rgba(255,255,255,0.10) 0px, rgba(255,255,255,0.10) 1px, transparent 1px, transparent 22px);
}
.wood--beech{ background-color:#D9BB8C; }
.wood--pine{ background-color:#E7CE9D; }
.wood--oak{ background-color:#B4844F; }
.wood--mahogany{ background-color:#723A26; }
.wood--panel{ background-color:#CBA669; }
.wood--treated{ background-color:#8C7452; }
.product-media img{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
  z-index: 1;
}
.product-icon{
  position:absolute;
  top: 12px;
  inset-inline-start: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(37,27,18,0.72);
  color: var(--brass-light);
  display:flex; align-items:center; justify-content:center;
  z-index: 2;
}
.product-icon svg{ width: 18px; height: 18px; }
.product-body{ padding: 20px 22px 24px; }
.product-body h3{ font-size: 19px; margin-bottom: 8px; }
.product-body p{ color: var(--ink-soft); font-size: 14.5px; }

/* -------------------------------- المعرض -------------------------------- */
.gallery-tabs{
  display:flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap;
}
.gallery-tab{
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 9px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: all .25s ease;
}
.gallery-tab.is-active,
.gallery-tab:hover{
  background: var(--bark);
  color: var(--paper);
  border-color: var(--bark);
}
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}
.gallery-item{
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--bark);
  cursor: pointer;
}
.gallery-item.span-2{ grid-column: span 2; }
.gallery-item.span-2-row{ grid-row: span 2; }
.gallery-item img,
.gallery-item video{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img,
.gallery-item:hover video{ transform: scale(1.06); }
.gallery-caption{
  position:absolute; inset-inline:0; bottom:0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(25,15,9,0.85), transparent);
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 600;
  display:flex; align-items:center; gap:8px;
}
.play-badge{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  z-index: 2;
  pointer-events: none;
}
.play-badge svg{
  width: 52px; height: 52px;
  color: var(--paper);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.5));
}
.media-missing{
  position:absolute; inset:0;
  display:none; flex-direction:column; align-items:center; justify-content:center;
  gap: 8px;
  background: linear-gradient(135deg, var(--bark), var(--bark-deep));
  color: var(--brass-light);
  text-align:center;
  padding: 12px;
  font-size: 12.5px;
  z-index: 3;
}
.media-missing:not([hidden]){ display:flex; }
.media-missing b{ font-family: var(--font-display); font-size: 13px; }
.media-missing code{
  background: rgba(251,247,238,0.1);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  direction: ltr;
}

/* -------------------------------- التواصل -------------------------------- */
.contact{
  background: var(--bark);
  color: var(--paper);
}
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-list{ display:flex; flex-direction:column; gap: 18px; margin-top: 26px; }
.contact-row{
  display:flex; align-items:flex-start; gap: 16px;
  padding: 16px;
  background: rgba(251,247,238,0.05);
  border: 1px solid var(--line-light);
  border-radius: 3px;
  transition: background-color .25s ease;
}
a.contact-row:hover{ background: rgba(251,247,238,0.1); }
.contact-row .icon{
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brass);
  color: var(--bark-deep);
  display:flex; align-items:center; justify-content:center;
  flex: none;
}
.contact-row .icon svg{ width:20px; height:20px; }
.contact-row b{ display:block; font-size: 15px; margin-bottom: 2px; }
.contact-row span{ font-size: 13.5px; color: rgba(251,247,238,0.72); direction: ltr; display:inline-block; }
.contact-row.two-numbers span{ display:block; }

.social-row{ display:flex; gap: 12px; margin-top: 26px; }
.social-row a{
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-light);
  display:flex; align-items:center; justify-content:center;
  transition: background-color .25s ease, border-color .25s ease;
}
.social-row a:hover{ background: var(--brass); border-color: var(--brass); color: var(--bark-deep); }
.social-row svg{ width:18px; height:18px; }

.map-frame{
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  min-height: 360px;
  box-shadow: var(--shadow-deep);
}
.map-frame iframe{ width:100%; height:100%; min-height:360px; border:0; display:block; }

/* -------------------------------- الفوتر -------------------------------- */
.site-footer{
  background: var(--bark-deep);
  color: rgba(251,247,238,0.75);
  padding-block: 50px 26px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom: 14px; }
.footer-brand .brand-logo-wrap{ width:40px; height:40px; }
.footer-brand span{ font-family: var(--font-display); font-weight:800; color: var(--paper); font-size:18px; }
.footer-col h4{
  color: var(--brass-light);
  font-size: 14px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-col ul{ display:flex; flex-direction:column; gap: 10px; }
.footer-col a{ font-size: 14px; }
.footer-col a:hover{ color: var(--brass-light); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap: 10px;
  padding-top: 22px;
  font-size: 13px;
}

/* -------------------------------- الصندوق المكبّر -------------------------------- */
.lightbox{
  position: fixed; inset:0;
  background: rgba(15,10,6,0.92);
  z-index: 900;
  display:none;
  align-items:center; justify-content:center;
  padding: 30px;
}
.lightbox.is-open{ display:flex; }
.lightbox-content{ max-width: 900px; width:100%; }
.lightbox-content img,
.lightbox-content video{ width:100%; max-height:80vh; object-fit:contain; border-radius: 4px; }
.lightbox-close{
  position:absolute; top:22px; inset-inline-end:26px;
  width: 46px; height:46px; border-radius:50%;
  background: rgba(251,247,238,0.1);
  border: 1px solid var(--line-light);
  color: var(--paper);
  display:flex; align-items:center; justify-content:center;
}
.lightbox-caption{ color: var(--paper); text-align:center; margin-top:14px; font-size:14px; }

/* -------------------------------- استجابة -------------------------------- */
@media (max-width: 980px){
  .nav-links, .nav-right .btn{ display:none; }
  .nav-toggle{ display:flex; }
  .about-grid{ grid-template-columns: 1fr; }
  .products-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery-item.span-2{ grid-column: span 2; }
}
@media (max-width: 620px){
  .products-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .hero-stats{ gap: 22px; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .founder-card{ flex-direction: column; text-align:center; align-items:center; }
  .contact-row span{ direction: ltr; }
  .board-grid{ grid-template-columns: 1fr; }
}
