:root {
  --sand: #D9CBB4;
  --charcoal: #2B2A28;
  --bone: #F5F1EA;
  --olive: #4A5B45;
  --rust: #B4573D;

  --bg: var(--bone);
  --bg-alt: var(--sand);
  --text: var(--charcoal);
  --text-muted: #6b665c;
  --accent: var(--olive);
  --highlight: var(--rust);
  --line: rgba(43,42,40,0.14);
  --surface: #ffffff;

  --font-head: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;
  --font-ps: 'Noto Naskh Arabic', 'Segoe UI', serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E1D1B; --bg-alt: #262420; --text: #F1ECE2; --text-muted: #b6ae9f;
    --accent: #8CA083; --highlight: #D3785C; --line: rgba(241,236,226,0.14); --surface: #262420;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
h1, h2, h3, .headfont { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

[data-ps] { display: none; }
[dir="rtl"] [data-ps] { display: inline; font-family: var(--font-ps); }
[dir="rtl"] [data-en] { display: none; }

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

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); transition: box-shadow .25s ease; }
header.site.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(0,0,0,0.25); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; gap: 24px; }
.wordmark { font-family: var(--font-head); font-weight: 700; font-size: 22px; text-decoration: none; color: var(--text); white-space: nowrap; }
.wordmark .dot { color: var(--highlight); }
nav.primary { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
nav.primary a, nav.primary { text-decoration: none; }
nav.primary ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
nav.primary a { font-family: var(--font-head); font-size: 15px; color: var(--text); position: relative; padding: 4px 0; }
nav.primary a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
nav.primary a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang-toggle { font-family: var(--font-head); font-size: 14px; background: none; border: 1px solid var(--line); border-radius: 3px; padding: 7px 12px; color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--text); display: inline-flex; padding: 4px; }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 15px; font-weight: 500; padding: 13px 26px; border-radius: 3px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.btn-solid { background: var(--charcoal); color: var(--bone); border-color: var(--charcoal); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero (real photo, slow zoom) ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: 88vh; }
.hero-art { position: relative; overflow: hidden; background: var(--charcoal); }
.hero-art img.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 26s ease-in-out infinite alternate; }
.hero-art .hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,42,40,0.05) 0%, rgba(43,42,40,0.35) 100%); }
@keyframes heroZoom { 0% { transform: scale(1); } 100% { transform: scale(1.09); } }
@media (prefers-reduced-motion: reduce) { .hero-art img.hero-photo { animation: none; } }
.hero-copy { background: var(--bg-alt); display: flex; flex-direction: column; justify-content: center; padding: 64px 56px; gap: 26px; }
.eyebrow-word { font-family: var(--font-head); font-size: 14px; color: var(--text-muted); }
.hero-copy h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; max-width: 11ch; }
.hero-copy .lede { font-family: var(--font-body); font-size: 18px; color: var(--text-muted); max-width: 40ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.hero-fade { opacity: 0; transform: translateY(14px); animation: heroIn .8s cubic-bezier(.2,.7,.3,1) forwards; }
.hero-fade.d1 { animation-delay: .05s; } .hero-fade.d2 { animation-delay: .18s; } .hero-fade.d3 { animation-delay: .3s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-fade { animation: none; opacity: 1; transform: none; } }

/* ---------- Closer-look photo section ---------- */
.closer-look { padding: 0 0 96px; }
.closer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: stretch; }
.closer-photo { position: relative; border-radius: 4px; overflow: hidden; min-height: 380px; }
.closer-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.closer-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; background: linear-gradient(180deg, transparent, rgba(20,19,18,0.72)); color: var(--bone); }
.closer-caption .eyebrow-word { color: rgba(245,241,234,0.75); }
.closer-caption h3 { color: var(--bone); font-size: 18px; margin-top: 4px; }
@media (max-width: 900px) { .closer-grid { grid-template-columns: 1fr; } .closer-photo { min-height: 280px; } }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.section-head h2 { font-size: 28px; max-width: 22ch; }
.section-head .see-all { font-family: var(--font-head); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Collections ---------- */
.collections { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.collection-tile { position: relative; border-radius: 4px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; padding: 30px; text-decoration: none; color: var(--bone); isolation: isolate; }
.collection-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.collection-tile.atal::before { background: linear-gradient(160deg, #4A5B45 0%, #33402F 100%); }
.collection-tile.ghazi::before { background: linear-gradient(160deg, #6a5642 0%, #2B2A28 100%); }
.collection-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 20% 100%, rgba(0,0,0,0.35), transparent 60%); }
.collection-tile h3 { font-size: 24px; }
.collection-tile .tile-sub { font-family: var(--font-head); font-size: 14px; opacity: .82; margin-top: 6px; }

/* ---------- Heritage strip ---------- */
.heritage { background: var(--charcoal); color: var(--bone); padding: 88px 0; }
.heritage .wrap { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.heritage h2 { font-size: 26px; max-width: 26ch; color: var(--bone); }
.heritage p.sub { font-family: var(--font-body); color: #C9C2B4; margin-top: 12px; max-width: 48ch; font-style: italic; }

/* ---------- Product grid (homepage + WooCommerce archive) ---------- */
.products, ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; list-style: none; margin: 0; padding: 0; }
.product-card, ul.products li.product { text-decoration: none; color: var(--text); }
.product-photo { position: relative; border-radius: 3px; aspect-ratio: 4/5; overflow: hidden; margin-bottom: 16px; background: var(--sand); }
.product-photo .tag { position: absolute; top: 12px; left: 12px; background: var(--highlight); color: var(--bone); font-family: var(--font-head); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 2px; }
.product-card h3 { font-family: var(--font-head); font-size: 16px; font-weight: 500; }
.product-card .price { font-family: var(--font-head); color: var(--text-muted); font-size: 15px; margin-top: 4px; }

/* Default WooCommerce archive/loop markup, restyled to match */
ul.products li.product img { border-radius: 3px; aspect-ratio: 4/5; object-fit: cover; margin-bottom: 16px; }
ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-head); font-size: 16px; font-weight: 500; }
ul.products li.product .price { font-family: var(--font-head); color: var(--text-muted); font-size: 15px; }
.woocommerce-message, .woocommerce-error, .woocommerce-info { border-top-color: var(--accent) !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit {
  font-family: var(--font-head); background: var(--charcoal); color: var(--bone); border-radius: 3px; padding: 12px 22px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--accent); }

/* Heritage story block on single product page */
.hewad-heritage-story { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.hewad-heritage-story h3 { font-size: 17px; margin-bottom: 10px; }
.hewad-heritage-story p { color: var(--text-muted); font-style: italic; }

/* ---------- Footer ---------- */
footer.site { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-grid h4 { font-family: var(--font-head); font-size: 14px; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { text-decoration: none; font-size: 15px; color: var(--text-muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: var(--text-muted); font-size: 15px; max-width: 34ch; margin-top: 14px; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 180px; font-family: var(--font-body); padding: 11px 13px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--text); font-size: 14px; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 8px; min-height: 1.2em; }
.bottom-row { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 14px; }
.bottom-row p { font-size: 13px; color: var(--text-muted); }
.socials { display: flex; gap: 14px; }
.socials a { color: var(--text-muted); }
.socials a:hover { color: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  nav.primary, .lang-toggle .label { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { min-height: 46vh; }
  .hero-copy { padding: 44px 26px; }
  .collections { grid-template-columns: 1fr; }
  .products, ul.products { grid-template-columns: repeat(2, 1fr); }
  .heritage .wrap { grid-template-columns: 1fr; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .products, ul.products { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Mobile menu ---------- */
#mobileMenu { position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 0 28px; display: none; flex-direction: column; }
#mobileMenu.open { display: flex; }
#mobileMenu .close-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
#mobileMenu nav ul { display: flex; flex-direction: column; gap: 28px; margin: 30px 0 0; padding: 0; list-style: none; }
#mobileMenu nav a { font-family: var(--font-head); font-size: 26px; text-decoration: none; color: var(--text); }
