:root {
  --bg: #f7f4ef;
  --surface: rgba(255,255,255,0.95);
  --surface-2: rgba(255,255,255,0.88);
  --text: #18181a;
  --muted: #5d6274;
  --line: rgba(27,31,56,0.1);
  --blue: #465089;
  --blue-dark: #36406f;
  --peach: #efb173;
  --peach-soft: #fff1e5;
  --green: #5b8432;
  --shadow: 0 18px 40px rgba(18,25,45,0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(239, 177, 115, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(70, 80, 137, 0.12), transparent 26%),
    var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.site-shell {
  width: min(calc(100% - 32px), var(--maxw));
  margin: 22px auto 0;
  padding-bottom: 110px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.9));
}
.textual { text-wrap: pretty; }

body.lang-ar .textual,
body.lang-ar .nav-lang-btn,
body.lang-ar .mobile-actions a {
  font-family: "Tajawal", system-ui, sans-serif;
}
body.lang-ar .textual p,
body.lang-ar .textual h1,
body.lang-ar .textual h2,
body.lang-ar .textual h3,
body.lang-ar .textual h4,
body.lang-ar .textual small,
body.lang-ar .textual strong,
body.lang-ar .textual span,
body.lang-ar .textual a,
body.lang-ar .textual li,
body.lang-ar .textual dt,
body.lang-ar .textual dd,
body.lang-ar .textual button {
  direction: rtl;
  text-align: right;
}
body.lang-ar .section-heading.textual,
body.lang-ar .section-heading.center.textual { text-align: right; }
body.lang-ar .hero-actions,
body.lang-ar .social-icons-row { justify-content: flex-start; }

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  background: rgba(247,244,239,0.88);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-copy strong { font-size: 1rem; }
.brand-copy small { color: var(--muted); font-size: 0.86rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}
.nav a:hover,
.nav a:focus-visible { color: var(--text); }

.nav-lang-btn {
  border: 1px solid rgba(70, 80, 137, 0.18);
  background: white;
  color: var(--blue-dark);
  padding: 9px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.nav-lang-btn:hover,
.nav-lang-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(70, 80, 137, 0.32);
  box-shadow: 0 10px 24px rgba(18, 25, 45, 0.08);
}

.section { padding: 72px 0; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
}
body.lang-ar .eyebrow {
  text-transform: none;
  letter-spacing: 0.02em;
}
h1,h2,h3 { margin: 0; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); margin-bottom: 18px; }
h2 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 14px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
.lead,
.story-copy p,
.product-content p,
.craft-copy p,
.visit-copy p,
.footer p,
.info-list dd,
.hero-logo-line {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.hero {
  padding-top: 34px;
}
.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 400px);
  gap: 28px;
  align-items: center;
  padding: 22px;
}
.hero-copy { padding: 24px; }
.hero-logo-panel {
  min-height: 100%;
  padding: 34px;
  border-radius: calc(var(--radius-xl) - 8px);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,240,226,0.92));
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  border: 1px solid rgba(70,80,137,0.08);
}
.hero-logo {
  width: 100%;
  max-width: 320px;
  justify-self: center;
  border-radius: 24px;
  background: white;
}
.hero-logo-copy { display: grid; gap: 8px; text-align: center; max-width: 320px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover,
.btn:focus-visible,
.social-icon:hover,
.social-icon:focus-visible { transform: translateY(-1px); }
.btn-primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(70,80,137,0.25);
}
.btn-secondary {
  color: var(--blue-dark);
  background: white;
  border: 1px solid rgba(70,80,137,0.12);
}

.story-grid,
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}
.story-copy,
.visit-copy {
  padding: 38px;
  display: grid;
  gap: 18px;
}
.story-visual {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,240,226,0.9));
  padding: 20px;
  display: grid;
  place-items: center;
}
.story-main-image {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  background: white;
  border-radius: 22px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-heading.compact { align-items: start; }
.section-heading.center { justify-content: center; text-align: center; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,255,255,0.91));
}
.product-card img,
.inspiration-card img,
.craft-card img {
  width: 100%;
  background: white;
}
.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.product-content { padding: 20px 20px 22px; }
.product-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--peach-soft);
  color: #7a5e43;
  font-size: 0.82rem;
  font-weight: 800;
}

.inspiration-grid,
.craft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.inspiration-card,
.craft-card {
  background: white;
}
.inspiration-card img,
.craft-card img {
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
}
.craft-copy { padding: 20px 20px 24px; }

.info-list {
  margin: 8px 0 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px 22px;
}
.info-list dt {
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body.lang-ar .info-list dt {
  text-transform: none;
  letter-spacing: 0;
}
.info-list dd,
.info-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
}

.contact-section { padding-top: 62px; }
.social-icons-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.social-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.social-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--blue-dark);
}
.social-icon.whatsapp svg { fill: #1fa364; }

.footer {
  margin-top: 14px;
  padding: 30px 4px 10px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.footer strong { display: block; margin-bottom: 6px; }

.mobile-actions {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 40;
  display: none;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 16px 34px rgba(18,25,45,0.16);
  border: 1px solid rgba(27,31,56,0.08);
}
.mobile-actions a {
  flex: 1;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  background: var(--blue);
  color: white;
  font-weight: 800;
  font-size: 0.92rem;
}
.mobile-actions a:nth-child(2) { background: var(--peach); color: #3c2b1a; }
.mobile-actions a:nth-child(3) { background: #eef1fa; color: var(--blue-dark); }

@media (max-width: 980px) {
  .topbar {
    border-radius: 26px;
    padding: 14px;
    flex-wrap: wrap;
  }
  .nav {
    width: 100%;
    order: 3;
    justify-content: center;
    gap: 14px;
    padding-top: 4px;
  }
  .hero-main,
  .story-grid,
  .visit-grid,
  .product-grid,
  .inspiration-grid,
  .craft-grid {
    grid-template-columns: 1fr;
  }
  .hero-logo-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    justify-items: center;
    text-align: center;
  }
  .hero-logo { max-width: 220px; }
  .story-main-image { max-height: 360px; }
  .section-heading {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--maxw));
    margin-top: 14px;
  }
  .topbar {
    position: static;
    gap: 12px;
    border-radius: 22px;
  }
  .brand { width: 100%; }
  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .brand-copy strong { font-size: 0.96rem; }
  .nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .nav::-webkit-scrollbar { display: none; }
  .section { padding: 56px 0; }
  .hero-main,
  .story-copy,
  .visit-copy,
  .product-content,
  .craft-copy { padding: 18px; }
  .hero-copy { padding: 6px 6px 0; }
  .hero-logo-panel {
    padding: 18px;
    gap: 14px;
  }
  .hero-logo { max-width: 210px; border-radius: 18px; }
  .hero-logo-copy { text-align: center; }
  h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  h2 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .info-list { grid-template-columns: 1fr; }
  .story-main-image { max-height: 280px; }

  .scroller-mobile {
    display: grid;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(82vw, 82vw);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 2px 2px 6px;
    scrollbar-width: none;
  }
  .scroller-mobile::-webkit-scrollbar { display: none; }
  .scroller-mobile > * {
    width: 100%;
    min-width: 0;
    scroll-snap-align: start;
  }
  .product-card,
  .inspiration-card,
  .craft-card { min-width: 0; }
  .footer {
    flex-direction: column;
    padding-bottom: 80px;
  }
  .mobile-actions { display: flex; }
}
