/* Khayamiya Hotopia — simple static site (no framework) */
:root{
  --bg: #f3f2ef;
  --card: rgba(255,255,255,.55);
  --card2: rgba(255,255,255,.72);
  --ink: #1d273a;         /* navy from logo */
  --muted: rgba(29,39,58,.72);
  --stroke: rgba(29,39,58,.16);
  --shadow: 0 18px 60px rgba(29,39,58,.10);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --accent: #1d273a;      /* primary */
  --accent2: #616b7a;     /* secondary */
  --sand: #efe6d9;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color:var(--ink);
  /* Site background (poster) */
  background:
    linear-gradient(180deg, rgba(243,242,239,.88), rgba(243,242,239,.92)),
    url("assets/bg.jpg") center/cover fixed no-repeat;
}

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

.page{
  max-width: 1180px;
  margin: 26px auto;
  padding: 18px;
}

.glass{
  background: var(--card2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.topbar{
  position: sticky;
  top: 14px;
  z-index: 20;
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  display:flex;
  gap: 14px;
  align-items:center;
  justify-content: space-between;
}

.brand{display:flex; align-items:center; gap:12px; min-width: 220px;}
.brand-mark{
  width: 36px; height: 36px; border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(184,107,58,.9), rgba(108,122,73,.75));
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}
.brand-name{
  font-family: "Marhey", "IBM Plex Sans Arabic", serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing:.2px;
}
.brand-tag{font-size: 12px; color: var(--muted); margin-top:2px}

.nav{display:flex; gap: 16px; flex-wrap: wrap; justify-content:center}
.nav-link{
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
}
.nav-link:hover{background: rgba(255,255,255,.55); color: var(--ink);}

.top-actions{display:flex; gap:10px; align-items:center}
.icon-btn{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.52);
  border-radius: 999px;
  padding: 8px 10px;
  cursor:pointer;
}
.icon{font-size: 14px}

.content{display:flex; flex-direction:column; gap: 18px; margin-top: 18px;}

.card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.hero{position:relative; min-height: 420px;}
.hero-media{
  height: 460px;
  overflow:hidden;
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-overlay{
  position:absolute; inset: 0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding: 26px;
  background: linear-gradient(180deg, transparent 40%, rgba(20,10,5,.55));
  color: #fff;
}
.hero-overlay h1{
  margin: 0 0 8px 0;
  font-family: "Marhey", "IBM Plex Sans Arabic", serif;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing:.2px;
}
.hero-overlay p{
  margin: 0 0 16px 0;
  max-width: 62ch;
  opacity:.92;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.62);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}
.btn:hover{transform: translateY(-1px)}
.btn.primary{
  background: linear-gradient(135deg, rgba(29,39,58,.95), rgba(29,39,58,.78));
  border-color: rgba(29,39,58,.55);
  color:#fff;
}
.btn.small{padding: 9px 12px}
.btn.tiny{padding: 8px 12px; font-size: 12px}

.hero-ctas{display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 8px;}

.grid.two{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

.feature{padding: 18px}
.feature-label{
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-media{
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  overflow:hidden;
  min-height: 220px;
  display:flex;
}
.gradient-sand{
  background:
    radial-gradient(600px 240px at 10% 20%, rgba(184,107,58,.35), transparent 60%),
    radial-gradient(500px 240px at 70% 40%, rgba(108,122,73,.22), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,.05));
}
.feature-media-inner{padding: 18px; display:flex; flex-direction:column; justify-content:flex-end; gap:10px; width:100%}
.feature-title{
  font-family: "Marhey", "IBM Plex Sans Arabic", serif;
  font-size: 20px;
  font-weight: 700;
}
.feature-title span{font-weight: 500; opacity:.9}
.feature-text{color: var(--muted); font-size: 13px; max-width: 54ch}
.feature-actions{display:flex; align-items:center; justify-content:space-between; margin-top: 12px;}

.section-head{padding: 18px 18px 0 18px}
.section-kicker{
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 800;
}
.section-title{
  margin-top: 6px;
  font-family: "Marhey", "IBM Plex Sans Arabic", serif;
  font-size: 22px;
  font-weight: 700;
}
.section-sub{margin-top: 6px; color: var(--muted); font-size: 13px; max-width: 72ch}

.workshop-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 16px 18px 18px 18px;
}
.mini-card{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.55);
  border-radius: var(--radius-lg);
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.mini-thumb{
  border-radius: 14px;
  height: 94px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(80px 60px at 30% 40%, rgba(184,107,58,.35), transparent 60%),
    radial-gradient(80px 60px at 70% 50%, rgba(108,122,73,.25), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,.1));
}
.thumb-2{filter: saturate(0.95) contrast(1.02)}
.thumb-3{filter: saturate(0.9) contrast(1.05)}
.mini-title{font-weight: 700; font-size: 13px}
.mini-meta{color: var(--muted); font-size: 12px}
.mini-card .btn{margin-top:auto}

.archive{padding-bottom: 0}
.archive-bar{
  display:flex; gap: 10px; align-items:center;
  padding: 14px 18px 18px 18px;
}
.archive-bar input{
  flex: 1;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.65);
  outline: none;
}
.archive-bar input:focus{box-shadow: 0 0 0 4px rgba(184,107,58,.16)}
.wave svg{width:100%; height: 86px; display:block}
.wave path{fill: rgba(29,39,58,.12)}

.filters{
  display:flex;
  gap:10px;
  padding: 14px 18px 6px 18px;
  flex-wrap: wrap;
}
.pill{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.55);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 700;
  font-size: 12px;
}
.pill.active{
  background: rgba(29,39,58,.10);
  color: var(--ink);
  border-color: rgba(29,39,58,.18);
}

.products{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 12px 18px 18px 18px;
}
.product-card{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.6);
  border-radius: var(--radius-lg);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.product-img{
  height: 140px;
  background:
    radial-gradient(120px 80px at 30% 50%, rgba(184,107,58,.35), transparent 60%),
    radial-gradient(140px 80px at 70% 50%, rgba(108,122,73,.22), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,.12));
}
.product-body{padding: 12px}
.product-title{font-weight: 800; font-size: 13px}
.product-desc{color: var(--muted); font-size: 12px; margin-top: 6px; min-height: 32px}
.product-foot{display:flex; justify-content:space-between; align-items:center; margin-top: 10px}
.price{font-weight: 800}
.badge{
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.95);
  background: linear-gradient(135deg, rgba(108,122,73,.95), rgba(108,122,73,.72));
  padding: 6px 10px;
  border-radius: 999px;
}

.dots{display:flex; justify-content:center; gap:8px; padding-bottom: 18px;}
.dot{width: 7px; height: 7px; border-radius: 50%; background: rgba(60,43,32,.25)}
.dot.active{background: rgba(60,43,32,.55)}

.events-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 18px 18px 18px;
}
.event-card{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.58);
  border-radius: var(--radius-lg);
  padding: 12px;
  display:flex;
  gap: 12px;
  align-items:center;
}
.event-date{
  width: 60px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(184,107,58,.14);
  text-align:center;
  padding: 8px 6px;
}
.event-month{font-weight: 900; letter-spacing:.08em; font-size: 11px; color: var(--muted)}
.event-day{font-family:"Playfair Display", serif; font-size: 22px; font-weight: 700}
.event-title{font-weight: 900; font-size: 13px}
.event-meta{color: var(--muted); font-size: 12px; margin-top: 4px}

.footer{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
}
.footer-links{display:flex; gap: 12px}
.footer-links a{padding: 6px 10px; border-radius:999px}
.footer-links a:hover{background: rgba(255,255,255,.55); color: var(--ink)}

/* Responsive */
@media (max-width: 980px){
  .grid.two{grid-template-columns: 1fr}
  .workshop-grid{grid-template-columns: 1fr}
  .products{grid-template-columns: repeat(2, 1fr)}
  .events-grid{grid-template-columns: 1fr}
  .topbar{flex-wrap:wrap; justify-content:center}
}
@media (max-width: 520px){
  .products{grid-template-columns: 1fr}
  .hero-media{height: 360px}
}

.brand-logo{
  width:40px;
  height:40px;
  border-radius:10px;
  object-fit:contain;
}

/* RTL improvements */
body{ direction: inherit; }
.nav{ justify-content: center; }
.brand{ min-width: 240px; }
.hero-overlay{ text-align: right; }
.section-head{ text-align: right; }
.feature-title, .section-title{ letter-spacing: 0; }

/* Improve readability on photographic hero */
.hero-overlay{
  background: linear-gradient(180deg, rgba(29,39,58,0.15) 30%, rgba(29,39,58,0.65) 100%);
}

.lang-toggle{
  font-weight:800;
  min-width: 46px;
}

/* Heritage enhancement */
.card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.85)),
    repeating-linear-gradient(
      45deg,
      rgba(29,39,58,.03),
      rgba(29,39,58,.03) 10px,
      transparent 10px,
      transparent 20px
    );
}
.product-img img{
  width:100%;
  height:140px;
  object-fit:cover;
}

/* Formal bilingual typography */
body{
  font-family: "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}
h1,h2,h3,.brand-name,.section-title{
  font-weight: 700;
}
p,li,a,button,span,input{
  font-weight: 500;
}

/* Workshop images */
.workshop-card img{
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  display:block;
}


/* Direction per language */
html[dir="rtl"] body{  text-align: right; }
html[dir="ltr"] body{ direction: ltr; text-align: left; }

/* Workshop thumbs backgrounds */
.mini-thumb{
  background-size: cover;
  background-position: center;
}
.thumb-1{ background-image: url("assets/ws_motifs.png"); }
.thumb-2{ background-image: url("assets/ws_hands.png"); }
.thumb-3{ background-image: url("assets/ws_design.png"); }

/* Flip some layout in LTR */
html[dir="ltr"] .nav{ justify-content: flex-start; }
html[dir="ltr"] .nav-links{ direction: ltr; }
html[dir="ltr"] .actions{ margin-left: auto; margin-right: 0; }

/* Direction handling */
html[dir="rtl"] body { direction: rtl; }
html[dir="ltr"] body { direction: ltr; }

html[dir="ltr"] .nav { flex-direction: row; }
html[dir="rtl"] .nav { flex-direction: row-reverse; }

.lang-toggle{
  border:1px solid rgba(29,39,58,.18);
  background: rgba(255,255,255,.55);
  padding:8px 12px;
  border-radius: 999px;
  font-weight:700;
  cursor:pointer;
}
.mini-thumb-img{
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  display:block;
  border: 1px solid rgba(29,39,58,.10);
}
