/*
Theme Name: Al Shamil Market
Theme URI: https://alshamil-center.com
Author: Al Shamil Trading Center
Description: A bilingual, responsive storefront homepage for Al Shamil Trading Center.
Version: 1.0.0
Text Domain: alshamil-market
*/

:root {
  --ink: #202b25;
  --muted: #68736b;
  --green: #1f563f;
  --green-dark: #153d2d;
  --lime: #d8ed72;
  --cream: #f7f6ef;
  --paper: #fffefa;
  --line: #e7e8df;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { display: block; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--green-dark);
  color: white;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: relative;
  z-index: 2;
  background: rgba(255, 254, 250, .96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  background: var(--green);
  color: var(--lime);
}
.brand-mark svg { width: 27px; height: 27px; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 17px; letter-spacing: -.03em; }
.brand-copy span { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 31px); }
.main-nav a { color: #46534a; font-size: 13px; font-weight: 650; transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.language-switch {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}
.language-switch button {
  min-width: 36px;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}
.language-switch button[aria-pressed="true"] { background: var(--green); color: white; }
.header-visit {
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.header-visit:hover { transform: translateY(-1px); background: var(--green-dark); }

.hero {
  overflow: hidden;
  padding: 54px 0 65px;
  background:
    radial-gradient(ellipse at 88% 8%, rgba(216,237,114,.3), transparent 31%),
    var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(35px, 7vw, 90px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { width: 22px; height: 2px; background: var(--green); content: ""; }
.hero h1 {
  max-width: 610px;
  margin: 20px 0 17px;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 750;
  letter-spacing: -.065em;
  line-height: 1.02;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy { max-width: 480px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { border-color: #d8ddd1; background: rgba(255,255,255,.65); color: var(--ink); }
.button svg { width: 16px; height: 16px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 28px; color: #707b70; font-size: 12px; }
.hero-note svg { width: 17px; height: 17px; color: var(--green); }

.hero-art {
  position: relative;
  display: grid;
  min-height: 380px;
  place-items: center;
}
.art-halo {
  position: absolute;
  width: min(390px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e7edce;
}
.market-bag {
  position: relative;
  display: grid;
  width: 246px;
  height: 260px;
  place-items: center;
  border: 9px solid #f9faf2;
  border-radius: 35px 35px 54px 54px;
  background: linear-gradient(145deg, #275b42, #163c2d);
  box-shadow: 0 28px 55px rgba(31, 66, 45, .22);
  transform: rotate(-5deg);
}
.bag-handle {
  position: absolute;
  top: -48px;
  width: 104px;
  height: 76px;
  border: 12px solid #f9faf2;
  border-bottom: 0;
  border-radius: 60px 60px 0 0;
}
.bag-star { width: 106px; height: 106px; color: var(--lime); }
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(32,43,37,.05);
  border-radius: 17px;
  background: white;
  box-shadow: 0 13px 36px rgba(32,43,37,.1);
}
.float-card svg { width: 29px; height: 29px; }
.float-card strong { display: block; font-size: 12px; line-height: 1.2; }
.float-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.float-clothes { top: 29px; inset-inline-start: 4px; transform: rotate(-5deg); }
.float-home { top: 101px; inset-inline-end: 0; transform: rotate(4deg); }
.float-food { bottom: 21px; inset-inline-start: 7px; transform: rotate(3deg); }
.mini-dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #e6a45a; }
.dot-one { top: 52px; inset-inline-end: 41px; }
.dot-two { bottom: 53px; inset-inline-end: 23px; width: 10px; height: 10px; background: #9aa96c; }

.trust-strip { border-bottom: 1px solid var(--line); background: white; }
.trust-inner { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: #59645c; font-size: 12px; font-weight: 650; }
.trust-item svg { width: 20px; height: 20px; color: var(--green); }

.section { padding: 88px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-heading h2, .about-copy h2, .visit-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(32px, 4vw, 45px);
  font-weight: 740;
  letter-spacing: -.055em;
  line-height: 1.1;
}
.section-heading p { max-width: 390px; margin: 0; color: var(--muted); font-size: 14px; }
.department-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.department-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f6ef;
  transition: transform .22s ease, box-shadow .22s ease;
}
.department-card:hover { transform: translateY(-5px); box-shadow: 0 16px 38px rgba(32,43,37,.09); }
.department-card:nth-child(2) { background: #f1f3e9; }
.department-card:nth-child(3) { background: #f5f0e7; }
.department-number { color: #899188; font-size: 11px; font-weight: 750; letter-spacing: .1em; }
.department-card h3 { position: relative; z-index: 1; margin: 27px 0 5px; font-size: 24px; letter-spacing: -.04em; }
.department-card p { position: relative; z-index: 1; max-width: 230px; margin: 0; color: var(--muted); font-size: 13px; }
.department-link { position: absolute; z-index: 1; bottom: 22px; inset-inline-start: 24px; display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 12px; font-weight: 750; }
.department-link svg { width: 16px; height: 16px; }
.department-art { position: absolute; right: 10px; bottom: 16px; width: 150px; height: 145px; opacity: .94; }
.department-card:nth-child(2) .department-art { width: 168px; }
.department-card:nth-child(3) .department-art { width: 150px; }
.dept-blob { fill: #e3e8d0; }
.dept-ink { fill: #2d5d43; }
.dept-light { fill: #fcf9ef; }
.dept-accent { fill: #e9b56b; }

.offer-section { padding: 0 0 88px; }
.offer-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 40px clamp(26px, 6vw, 66px);
  border-radius: 30px;
  background: var(--green-dark);
  color: white;
}
.offer-banner::after {
  position: absolute;
  top: -130px;
  inset-inline-end: 9%;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 68px rgba(255,255,255,.025);
  content: "";
}
.offer-content { position: relative; z-index: 1; max-width: 600px; }
.offer-content .eyebrow { color: var(--lime); }
.offer-content .eyebrow::before { background: var(--lime); }
.offer-content h2 { margin: 10px 0 7px; font-size: clamp(27px, 4vw, 39px); letter-spacing: -.045em; line-height: 1.12; }
.offer-content p { margin: 0; color: #d1ddd4; font-size: 13px; }
.offer-mark { position: relative; z-index: 1; display: grid; width: 100px; height: 100px; place-items: center; border: 1px solid rgba(216,237,114,.47); border-radius: 50%; color: var(--lime); }
.offer-mark svg { width: 48px; height: 48px; }

.about-section { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(40px, 8vw, 100px); }
.about-visual {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: #e6ead8;
}
.about-visual::before, .about-visual::after { position: absolute; border: 1px solid rgba(31,86,63,.13); border-radius: 50%; content: ""; }
.about-visual::before { width: 260px; height: 260px; }
.about-visual::after { width: 330px; height: 330px; }
.about-emblem { position: relative; z-index: 1; display: grid; width: 142px; height: 142px; place-items: center; border-radius: 39px; background: var(--green); color: var(--lime); transform: rotate(-7deg); box-shadow: 0 18px 34px rgba(31,86,63,.2); }
.about-emblem svg { width: 79px; height: 79px; transform: rotate(7deg); }
.about-copy p { max-width: 540px; margin: 17px 0 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 20px; margin-top: 26px; }
.about-point { display: flex; align-items: center; gap: 9px; color: #47544a; font-size: 12px; font-weight: 700; }
.about-point svg { width: 18px; height: 18px; color: var(--green); }

.visit-section { padding: 88px 0; }
.visit-card { display: grid; grid-template-columns: 1fr .9fr; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: white; }
.visit-copy { padding: clamp(27px, 5vw, 55px); }
.visit-copy p { max-width: 450px; margin: 14px 0 25px; color: var(--muted); font-size: 14px; }
.visit-visual {
  position: relative;
  display: grid;
  min-height: 275px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(31,86,63,.94), rgba(21,61,45,.98)),
    var(--green);
  color: var(--lime);
}
.visit-visual::before, .visit-visual::after { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; }
.visit-visual::before { width: 220px; height: 220px; }
.visit-visual::after { width: 310px; height: 310px; }
.visit-visual svg { position: relative; z-index: 1; width: 72px; height: 72px; }
.visit-caption { position: absolute; z-index: 1; bottom: 27px; color: rgba(255,255,255,.82); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--line); background: var(--cream); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; gap: 19px; }
.footer-links a { color: #546057; font-size: 11px; font-weight: 650; }

html[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
html[dir="rtl"] .hero h1, html[dir="rtl"] .section-heading h2, html[dir="rtl"] .about-copy h2, html[dir="rtl"] .visit-copy h2 { letter-spacing: 0; }
html[dir="rtl"] .department-art { right: auto; left: 10px; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding: 16px 0; gap: 15px; }
  .main-nav { order: 3; width: 100%; justify-content: center; padding-top: 5px; }
  .hero-grid { gap: 30px; }
  .hero-art { min-height: 330px; }
  .trust-inner { justify-content: center; flex-wrap: wrap; padding: 19px 0; }
  .trust-item { width: calc(33.33% - 15px); justify-content: center; }
  .department-card { min-height: 290px; padding: 20px; }
  .department-art { width: 130px; }
}
@media (max-width: 650px) {
  .wrap { width: min(100% - 32px, 500px); }
  .header-inner { min-height: 70px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy span { font-size: 8px; }
  .header-visit { display: none; }
  .main-nav { justify-content: flex-start; overflow-x: auto; gap: 21px; padding-bottom: 4px; }
  .main-nav a { white-space: nowrap; font-size: 12px; }
  .hero { padding: 43px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { max-width: 500px; font-size: clamp(43px, 12vw, 61px); }
  .hero-copy { font-size: 14px; }
  .hero-art { min-height: 290px; }
  .art-halo { width: 270px; }
  .market-bag { width: 188px; height: 204px; border-width: 7px; }
  .bag-handle { top: -39px; width: 82px; height: 60px; border-width: 9px; }
  .bag-star { width: 80px; height: 80px; }
  .float-card { gap: 8px; padding: 10px 12px; }
  .float-card svg { width: 23px; height: 23px; }
  .float-card strong { font-size: 10px; }
  .float-card span { font-size: 9px; }
  .float-clothes { top: 18px; }
  .float-home { top: 77px; }
  .float-food { bottom: 11px; }
  .trust-item { width: calc(50% - 10px); justify-content: flex-start; font-size: 11px; }
  .section { padding: 62px 0; }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-heading p { margin-top: 12px; }
  .department-grid { grid-template-columns: 1fr; gap: 13px; }
  .department-card { min-height: 235px; padding: 21px; }
  .department-card h3 { margin-top: 18px; }
  .department-art { right: 20px; bottom: 0; width: 132px; height: 135px; }
  .department-card:nth-child(2) .department-art { width: 145px; }
  .department-link { bottom: 19px; inset-inline-start: 21px; }
  .offer-section { padding-bottom: 62px; }
  .offer-banner { min-height: 215px; padding: 29px 24px; }
  .offer-mark { width: 65px; height: 65px; flex-shrink: 0; }
  .offer-mark svg { width: 34px; height: 34px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-visual { min-height: 240px; }
  .about-points { gap: 13px; }
  .about-point { font-size: 11px; }
  .visit-section { padding: 62px 0; }
  .visit-card { grid-template-columns: 1fr; }
  .visit-visual { min-height: 220px; order: -1; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
