:root {
  --bg: #f7f4ef;
  --bg-soft: #fffdf9;
  --ink: #1c1412;
  --muted: #6b5c55;
  --line: rgba(90, 40, 35, 0.12);
  --brand: #7a2e2e;
  --brand-dark: #5c1f1f;
  --gold: #b08d57;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(40, 18, 14, 0.12);
  --radius: 18px;
  --container: 1120px;
  --header: 78px;
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --display: "El Messiri", "Cairo", "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: manipulation;
  position: relative;
  font-family: var(--font);
  color: var(--ink);
  background: #f7f4ef linear-gradient(180deg, #fbf8f3 0%, var(--bg) 55%, #f3ebe3 100%);
  line-height: 1.8;
  -webkit-tap-highlight-color: transparent;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: #111;
  padding: 4px;
}

.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--brand);
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .04em;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
}

.site-nav a:hover,
.site-nav a.is-active { color: var(--brand); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--brand);
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.slideshow {
  position: relative;
  min-height: min(78vh, 680px);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  background: #140d0c;
  touch-action: pan-y;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
  overflow: hidden;
  touch-action: pan-y;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.72);
}

.slide-fallback {
  background:
    linear-gradient(135deg, #2a1513, #7a2e2e 55%, #b08d57);
  min-height: min(78vh, 680px);
}

.slide-overlay {
  position: relative;
  z-index: 1;
  min-height: min(78vh, 680px);
  display: flex;
  align-items: flex-end;
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, rgba(10,6,5,.15), rgba(10,6,5,.72));
  color: #fff;
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 .75rem;
  padding: .35rem .8rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-size: .85rem;
  color: #f4e7d4;
}

.hero h1,
.section h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .75rem;
}

.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 12ch; }

.lead {
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,.88);
  margin: 0 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 46px;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: .2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost {
  background: transparent;
  border-color: rgba(122,46,46,.25);
  color: var(--brand);
}

.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .9rem; }

.slide-controls {
  position: absolute;
  inset-inline: 0;
  bottom: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}

.slide-controls button,
.slider-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.slide-dots { display: flex; gap: .4rem; }

.slide-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.4);
  padding: 0;
}

.slide-dots button.is-active { background: #fff; width: 22px; border-radius: 999px; }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.section-kicker {
  margin: 0 0 .4rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: .85rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head p { color: var(--muted); margin: .35rem 0 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.about-copy,
.vision-card,
.branch-card,
.product-card,
.product-tile {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-copy { padding: clamp(1.5rem, 4vw, 2.4rem); }

.prose { color: var(--muted); white-space: normal; }

.vision-card {
  padding: 2rem;
  background:
    linear-gradient(160deg, rgba(122,46,46,.94), rgba(40,16,14,.96)),
    #5c1f1f;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vision-card h3 {
  font-family: var(--display);
  margin: 0;
  font-size: 1.6rem;
}

.badge {
  margin-top: auto;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  text-align: center;
  color: #f3e2c7;
  font-weight: 700;
}

.product-showcase {
  display: none;
}

.product-track {
  display: flex;
  transition: transform .55s ease;
}

.product-card {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
}

.product-image {
  min-height: 360px;
  background: #111;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .7rem;
}

.product-body h3 {
  font-family: var(--display);
  font-size: 1.8rem;
  margin: 0;
  color: var(--brand);
}

.product-body .en {
  color: var(--gold);
  margin: 0;
  letter-spacing: .04em;
}

.product-body p { color: var(--muted); margin: 0; }

.slider-nav {
  position: absolute;
  inset-inline: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.slider-nav button {
  pointer-events: auto;
  background: rgba(255,255,255,.9);
  color: var(--brand);
  border-color: var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.product-tile {
  overflow: hidden;
  transition: transform .25s ease;
}

.product-tile:hover { transform: translateY(-4px); }

.product-tile img {
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
}

.product-tile div { padding: 1rem; }

.product-tile h3 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--display);
}

.product-tile span {
  color: var(--muted);
  font-size: .85rem;
}

button.tile-media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.zoom-hint {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: .9;
}

body.lightbox-open { overflow: hidden; }

.lightbox[hidden] { display: none !important; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 6, 5, .88);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-figure {
  margin: 0;
  max-width: min(920px, 100%);
  max-height: calc(100vh - 2rem);
  text-align: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.lightbox-figure figcaption {
  margin-top: .75rem;
  color: #fff;
  font-family: var(--display);
  font-size: 1.15rem;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.branch-card {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.branch-card h3 {
  margin: 0;
  font-family: var(--display);
  color: var(--brand);
}

.branch-card p { margin: 0; color: var(--muted); }

.phone {
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  padding: .35rem .55rem;
  border-radius: 10px;
  background: rgba(122,46,46,.06);
  transition: .2s ease;
}

.phone:hover {
  background: rgba(122,46,46,.12);
  color: var(--brand);
}

.phone svg { flex-shrink: 0; color: var(--brand); }

.contact-email-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.email-link {
  display: block;
  margin-top: .25rem;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 800;
  color: var(--brand);
  direction: ltr;
  unicode-bidi: plaintext;
}

.contact-form-wrap {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.contact-form-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2rem);
  width: min(640px, 100%);
  text-align: center;
}

.contact-form-card h3 {
  margin: 0 0 .4rem;
  font-family: var(--display);
  color: var(--brand);
  font-size: 1.55rem;
}

.form-hint {
  margin: 0 auto 1rem;
  color: var(--muted);
  max-width: 36ch;
}

.contact-form {
  text-align: right;
}

.contact-form label {
  display: grid;
  gap: .35rem;
  margin-bottom: .9rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .9rem;
  font: inherit;
  background: #fff;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form .btn {
  width: 100%;
  margin-top: .25rem;
}

.captcha-box {
  margin: 1rem 0 1.1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(122,46,46,.28);
  background: rgba(122,46,46,.04);
  text-align: center;
}

.captcha-label-text {
  display: block;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .55rem;
  font-size: .92rem;
}

.captcha-code {
  display: inline-block;
  min-width: 160px;
  margin-bottom: .85rem;
  padding: .7rem 1.1rem;
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      -18deg,
      rgba(122,46,46,.08),
      rgba(122,46,46,.08) 8px,
      rgba(176,141,87,.12) 8px,
      rgba(176,141,87,.12) 16px
    ),
    #1c1412;
  color: #f4e7d4;
  font-family: "Courier New", Consolas, monospace;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .35em;
  user-select: none;
  direction: ltr;
}

.captcha-label {
  text-align: right;
}

.captcha-label input {
  text-align: center;
  letter-spacing: .2em;
  font-weight: 700;
  text-transform: uppercase;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.flash {
  padding: .85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.flash-ok { background: #e8f7ee; color: #1f7a45; }
.flash-error { background: #fde8ea; color: #a11f2c; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #171010;
  color: rgba(255,255,255,.78);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  gap: .8rem;
  align-items: center;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-family: var(--display);
}

.footer-brand p,
.copy { margin: .2rem 0 0; font-size: .9rem; }

.product-image,
.tile-media {
  position: relative;
}

.product-badge {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 2;
  background: linear-gradient(135deg, var(--brand), #a45a2a);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem .7rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}

.product-badge-inline {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(122,46,46,.1);
  color: var(--brand);
  font-size: .82rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 999px;
}

.branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .25rem;
}

.float-actions {
  position: fixed;
  left: max(.75rem, env(safe-area-inset-left));
  bottom: max(.75rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  touch-action: manipulation;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  transition: transform .2s ease;
}

.float-btn:hover { transform: translateY(-2px); }

.float-whatsapp {
  background: #25d366;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .35);
}

.float-messenger {
  background: linear-gradient(135deg, #006aff, #00c6ff);
}

.whatsapp-float {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .35);
}

.empty { color: var(--muted); }

@media (max-width: 980px) {
  .about-grid,
  .product-card,
  .branch-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-image { min-height: 280px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: calc(var(--header) + 1px);
    inset-inline: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: .5rem;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: .9rem 1rem;
    border-radius: 12px;
  }

  .site-nav a:hover { background: rgba(122,46,46,.06); }

  .slideshow,
  .slide-overlay,
  .slide-fallback { min-height: 68vh; }

  .slide-overlay { align-items: center; padding: 5.5rem 0 4.5rem; text-align: center; }
  .hero h1 { max-width: none; font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .lead { margin-inline: auto; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-brand { flex-direction: column; }

  .float-btn {
    width: 50px;
    height: 50px;
  }

  .product-tile:hover { transform: none; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .brand span small { display: none; }
}
