/* Bin Salman Leather Goods
   Palette, type and logo usage follow Brand Guide v1.0:
   Salman Gold #826B37 (logo and small accents only, never long text)
   Leather Black #1A1A1A, Bone #FAF8F5, Tan #B99A5B (supporting tint only)
   Headings Cormorant Garamond, body Open Sans. Both self-hosted. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bone: #faf8f5;
  --black: #1a1a1a;
  --gold: #826b37;
  --tan: #b99a5b;

  --bg: var(--bone);
  --fg: var(--black);
  --muted: rgba(26, 26, 26, 0.66);
  --accent: var(--gold);
  --rule: rgba(26, 26, 26, 0.13);
  --surface: #ffffff;
  --btn-bg: var(--gold);
  --btn-fg: #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r: 2px;                 /* one radius for the whole page */
  --wrap: 1280px;
  --nav-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --fg: #f2efea;
    --muted: rgba(242, 239, 234, 0.63);
    /* Gold drops to 3.4:1 on charcoal, so the supporting Tan carries the
       accent role in dark mode. The logo reverses to white per the guide. */
    --accent: var(--tan);
    --rule: rgba(242, 239, 234, 0.15);
    --surface: #1c1b19;
    --btn-bg: var(--tan);
    --btn-fg: #171310;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 clamp(0.98rem, 0.94rem + 0.2vw, 1.06rem)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.005em;
  margin: 0;
}
h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 0.6rem + 2vw, 2.5rem);
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--fg); color: var(--bg);
  padding: 0.7rem 1.1rem; border-radius: var(--r);
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  white-space: nowrap;                    /* labels never wrap */
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 0.94rem/1 var(--sans);
  padding: 0.92rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn svg { fill: currentColor; flex: none; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }

.btn--sm { padding: 0.62rem 0.95rem; font-size: 0.86rem; }

.btn--ghost {
  background: transparent; color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 32%, transparent);
}
.btn--ghost:hover {
  filter: none;
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}

.lnk {
  display: inline-block;
  font-weight: 600; font-size: 0.94rem;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent);
  transition: opacity 0.15s ease;
}
.lnk:hover { opacity: 0.65; }

.eyebrow {
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.sec-h { margin-bottom: 2.2rem; }
.lede {
  font-size: clamp(1.02rem, 0.96rem + 0.32vw, 1.18rem);
  line-height: 1.6; color: var(--muted);
  max-width: 46ch;
}

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__logo { flex: none; line-height: 0; }
/* Brand guide minimum on screen: mark only, 60px wide. This is 132px. */
.nav__logo img { width: 132px; height: auto; }
/* Dark mode swaps to the reversed white mark via <picture>. Never invert the
   gold artwork: that shifts it off-brand (Brand Guide, "do not change the
   colours"). */

.nav__links {
  display: flex; gap: 1.6rem; margin-left: auto;
  font-size: 0.92rem; font-weight: 600;
}
.nav__links a {
  text-decoration: none; color: var(--muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--fg); }
.nav__links a.is-active { border-bottom-color: var(--accent); }

@media (max-width: 640px) {
  .nav__inner { gap: 0.8rem; }
  .nav__links { display: none; }
  .nav__logo img { width: 106px; }
}

/* ---------- hero: asymmetric split ---------- */

.hero { padding: clamp(2.2rem, 1rem + 4vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
/* No ch cap here: ch resolves against Open Sans at body size and would
   throttle the Cormorant headline into four lines. */
.hero h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 1.1rem + 3.1vw, 3.45rem);  /* sized to hold 2 lines */
}
.hero .lede { margin-bottom: 2rem; max-width: 38ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  object-position: center 34%;   /* frame the hands and the panel batch */
  border-radius: var(--r);
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__copy { max-width: none; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16 / 10; }
}

/* ---------- spec band ---------- */

.spec { border-block: 1px solid var(--rule); }
.spec__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.spec__item {
  padding: clamp(1.4rem, 3vw, 2.1rem) clamp(0.6rem, 2vw, 1.6rem);
  display: flex; flex-direction: column; gap: 0.45rem;
}
.spec__item + .spec__item { border-left: 1px solid var(--rule); }
.spec__label {
  font: 600 0.7rem/1 var(--sans);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.spec__value { font-family: var(--serif); font-size: clamp(1.1rem, 0.9rem + 0.9vw, 1.6rem); }

@media (max-width: 700px) {
  .spec__grid { grid-template-columns: 1fr; }
  .spec__item + .spec__item { border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- categories: bento ---------- */

.cats { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.bento {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
}
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-12 { grid-column: span 12; }
/* The full-width cell sits shallower so it reads as a band, not a third tile. */
.span-12 .cell__media img { aspect-ratio: 24 / 8; min-height: 13rem; }

.cell {
  position: relative;
  display: flex; flex-direction: column;   /* media grows so paired cells match */
  text-decoration: none; overflow: hidden;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--rule);
}
.cell__media { display: block; overflow: hidden; flex: 1; min-height: 0; }
.cell__media img {
  width: 100%; height: 100%; min-height: 15rem;
  aspect-ratio: 16 / 11; object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cell:hover .cell__media img { transform: scale(1.035); }
.cell__body {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: 1.05rem 1.25rem 1.15rem;
}
.cell__name { font-family: var(--serif); font-size: 1.45rem; }
.cell__meta { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }

@media (max-width: 760px) {
  .span-7, .span-5 { grid-column: span 12; }
  .cell__media img, .span-12 .cell__media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 460px) {
  /* stack rather than let a two-line name collide with the count */
  .cell__body { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}

/* ---------- wholesale: the one dark block ---------- */

.bulk {
  background: var(--black);
  color: var(--bone);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.bulk__inner { max-width: 56ch; text-align: center; }
.bulk__mark { width: 156px; margin: 0 auto 1.9rem; }
.bulk .eyebrow { color: var(--tan); }
.bulk h2 { margin-bottom: 1.1rem; }
.bulk__body {
  color: rgba(250, 248, 245, 0.74);
  font-size: 1.05rem; margin-bottom: 2.1rem;
}
/* Tan on charcoal reads 6.5:1; keep the dark-mode button pairing in both modes. */
.bulk .btn { background: var(--tan); color: #171310; }

/* ---------- workshop: full-bleed image with overlapping panel ---------- */

.shop {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  align-items: end;
}
.shop__media img {
  width: 100%; height: clamp(320px, 52vw, 620px); object-fit: cover;
  object-position: center 38%;
}
.shop__panel {
  width: min(560px, calc(100% - 2.3rem));
  margin: -5.5rem auto 0;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(1.8rem, 4vw, 2.9rem);
  display: grid; gap: 1.1rem; justify-items: start;
}
.shop__panel p { color: var(--muted); }

@media (min-width: 1000px) {
  .shop__panel {
    margin: 0; position: absolute;
    right: max(2.5rem, calc((100vw - var(--wrap)) / 2 + 2.5rem));
    bottom: clamp(2.5rem, 5vw, 4.5rem);
  }
}

/* ---------- contact ---------- */

.contact { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.contact__lede { color: var(--muted); margin-bottom: 1.8rem; max-width: 36ch; }
.contact__places { display: grid; gap: 1.6rem; }
.place {
  padding-top: 1.4rem; border-top: 1px solid var(--rule);
  display: grid; gap: 0.5rem;
}
.place h3 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.place p { color: var(--muted); }
.place a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--rule); }
.place a:hover { border-bottom-color: var(--accent); }

@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- catalogue ---------- */

.cat-head { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.cat-head h1 { margin-bottom: 1rem; }
.cat-head .lede { max-width: 58ch; }

.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.8rem; }
.jump a {
  text-decoration: none;
  font-size: 0.86rem; font-weight: 600;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--rule); border-radius: var(--r);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.jump a:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.grp { padding: clamp(2.2rem, 5vw, 3.6rem) 0; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.grp + .grp { border-top: 1px solid var(--rule); }
.grp__head { margin-bottom: 2rem; max-width: 52ch; }
.grp__head h2 { margin-bottom: 0.55rem; }
.grp__head p { color: var(--muted); }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
}
.tile a {
  display: grid; gap: 0.55rem;
  text-decoration: none;
  height: 100%;
  align-content: start;
}
.tile__media {
  display: block; overflow: hidden;
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--surface);
}
.tile__media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tile a:hover .tile__media img { transform: scale(1.04); }
.tile__name { font-size: 0.93rem; font-weight: 600; }
.tile__cta {
  font-size: 0.8rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.tile__cta::after { content: "\203A"; font-size: 1.05rem; line-height: 1; }
.tile a:hover .tile__cta { color: var(--accent); }

/* Belt images are supplied ad graphics on a white ground; keep them light in
   dark mode instead of inverting the artwork. */
@media (prefers-color-scheme: dark) {
  .tile__media img[src*="Belt_Ad"], .cell__media img[src*="Belt_Ad"] {
    background: #fff;
  }
}

/* ---------- footer ---------- */

.foot {
  background: var(--black); color: rgba(250, 248, 245, 0.72);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}
.foot__inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.foot__logo { width: 168px; margin-bottom: 1.1rem; }
.foot__tag { max-width: 32ch; font-size: 0.94rem; }
.foot__col h2 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tan); margin-bottom: 1rem;
}
.foot__col p { margin-bottom: 0.5rem; font-size: 0.94rem; }
.foot__col a { color: var(--bone); text-decoration: none; }
.foot__col a:hover { color: var(--tan); }

.foot__social { display: flex; gap: 0.9rem; }
.foot__social a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(250, 248, 245, 0.22); border-radius: var(--r);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.foot__social svg { fill: var(--bone); }
.foot__social a:hover { border-color: var(--tan); background: rgba(185, 154, 91, 0.14); }

.foot__base {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  justify-content: space-between;
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(250, 248, 245, 0.16);
  font-size: 0.82rem; color: rgba(250, 248, 245, 0.55);
}

@media (max-width: 760px) {
  .foot__inner { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* ---------- floating WhatsApp ---------- */

.wa-float {
  position: fixed; z-index: 50;
  right: clamp(0.9rem, 2.5vw, 1.6rem);
  bottom: clamp(0.9rem, 2.5vw, 1.6rem);
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(26, 26, 26, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.wa-float svg { fill: currentColor; }
.wa-float:hover { filter: brightness(1.08); }
.wa-float:active { transform: translateY(1px); }
