/* =========================================================================
   LUQMAN FURNISHERS — design system
   Charcoal · graphite · champagne · warm ivory · walnut
   ========================================================================= */

:root {
  /* ---- surface ---- */
  --charcoal: #0d0d0f;
  --charcoal-90: #131316;
  --graphite: #1d1e21;
  --graphite-soft: #26272b;
  --ivory: #f6f2ea;
  --ivory-dim: #ece6db;
  --paper: #fbf9f5;

  /* ---- accent (used sparingly) ---- */
  --champagne: #c2a06b;
  --champagne-bright: #d8bb87;
  --champagne-dim: #7d663c;   /* 5.2:1 on paper — AA for small text */
  --walnut: #6f4d31;
  --walnut-light: #8d6544;

  /* ---- text ---- */
  --ink: #17171a;
  --ink-soft: #56565c;
  --ink-faint: #6e6e75;       /* 4.8:1 on paper — AA for small text */
  --on-dark: #f2ede4;
  --on-dark-soft: #a9a49b;
  --on-dark-faint: #8a867f;   /* 5.4:1 on charcoal — AA for small text */

  --line: rgba(23, 23, 26, 0.12);
  --line-dark: rgba(242, 237, 228, 0.14);

  /* ---- type ---- */
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Geeza Pro', 'Segoe UI', serif;

  /* fluid scale — one clamp per step keeps every breakpoint in proportion */
  --t-hero: clamp(2.85rem, 7.4vw, 7.5rem);
  --t-display: clamp(2.2rem, 5.2vw, 4.6rem);
  --t-h2: clamp(1.75rem, 3.4vw, 3.1rem);
  --t-h3: clamp(1.3rem, 2.1vw, 1.85rem);
  --t-lead: clamp(1rem, 1.35vw, 1.2rem);
  --t-body: clamp(0.95rem, 1.05vw, 1.03rem);
  --t-small: 0.83rem;
  --t-micro: 0.72rem;

  /* ---- rhythm ---- */
  --gutter: clamp(1.15rem, 4.4vw, 4.5rem);
  --section: clamp(4.5rem, 9vw, 9.5rem);
  --maxw: 1560px;
  --measure: 62ch;

  /* ---- motion ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --slow: 900ms;
  --mid: 520ms;
  --fast: 260ms;

  --nav-h: 76px;
}

@media (max-width: 760px) {
  :root { --nav-h: 62px; }
}

/* ========================================================== base / reset */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* fixed header must not cover anchored sections */
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.62;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* nothing on this site may cause a sideways scrollbar */
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; background-color: var(--ivory-dim); }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ------------------------------------------------------------ a11y core */

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 999; background: var(--charcoal); color: var(--on-dark);
  padding: 0.85rem 1.5rem; font-size: var(--t-small);
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: transform var(--fast) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ============================================================== layout */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 980px; }
.shell--wide { max-width: 1800px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 5.5vw, 5.5rem); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }
.section--graphite { background: var(--graphite); color: var(--on-dark); }
.section--ivory { background: var(--ivory); }

.section--dark h1, .section--dark h2, .section--dark h3,
.section--graphite h1, .section--graphite h2, .section--graphite h3 { color: var(--on-dark); }

/* ---------------------------------------------------------- typography */

.eyebrow {
  font-size: var(--t-micro);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--champagne-dim);
  margin: 0 0 1.15rem;
  display: block;
}
.section--dark .eyebrow,
.section--graphite .eyebrow,
.hero .eyebrow { color: var(--champagne); }

.display { font-size: var(--t-display); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); }

.lead {
  font-size: var(--t-lead);
  color: var(--ink-soft);
  max-width: var(--measure);
  line-height: 1.68;
}
.section--dark .lead, .section--graphite .lead { color: var(--on-dark-soft); }

.urdu {
  font-family: var(--urdu);
  direction: rtl;
  line-height: 2.1;
}

/* section header block used across the site */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 3rem);
  margin-bottom: clamp(2.2rem, 4vw, 3.8rem);
}
.section-head__text { max-width: 46ch; }
.section-head__text .lead { margin-top: 1.1rem; }

/* ============================================================== buttons */

.btn {
  --btn-bg: var(--charcoal);
  --btn-fg: var(--on-dark);
  --btn-bd: var(--charcoal);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 1.02em 2.1em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 0;
  cursor: pointer;
  font-size: var(--t-small);
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease),
              background-color var(--fast) var(--ease);
  /* never let a long label clip on small screens */
  max-width: 100%;
}

/* wipe fill — the one flourish shared by every button on the site */
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--mid) var(--ease-out);
  z-index: -1;
}
.btn:hover::after, .btn:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.btn:hover, .btn:focus-visible { color: var(--charcoal); border-color: var(--champagne); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { color: var(--charcoal); }

.btn--light { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: rgba(242,237,228,.4); }
.btn--solid-light { --btn-bg: var(--ivory); --btn-fg: var(--charcoal); --btn-bd: var(--ivory); }

.btn--gold { --btn-bg: var(--champagne); --btn-fg: var(--charcoal); --btn-bd: var(--champagne); }
.btn--gold::after { background: var(--charcoal); }
.btn--gold:hover, .btn--gold:focus-visible { color: var(--ivory); border-color: var(--charcoal); }

.btn--sm { padding: 0.8em 1.5em; font-size: var(--t-micro); }
.btn--block { display: flex; width: 100%; }

.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }

/* text link with an animated rule */
.link-line {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-size: var(--t-small);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 0.35em;
  position: relative;
  color: inherit;
}
.link-line::before {
  content: '';
  position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; opacity: 0.28;
}
.link-line::after {
  content: '';
  position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--champagne);
  transform: scaleX(0); transform-origin: right center;
  transition: transform var(--mid) var(--ease-out);
}
.link-line:hover::after, .link-line:focus-visible::after {
  transform: scaleX(1); transform-origin: left center;
}
.link-line .arw { transition: transform var(--mid) var(--ease-out); }
.link-line:hover .arw { transform: translateX(6px); }

/* ================================================================ media */

.frame {
  position: relative;
  overflow: hidden;
  background: var(--ivory-dim);
}
.frame > img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
}
.frame--zoom > img {
  transition: transform 1100ms var(--ease-out), filter 1100ms var(--ease-out);
  will-change: transform;
}
a:hover .frame--zoom > img,
.group:hover .frame--zoom > img { transform: scale(1.055); }

.frame--dark::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,10,.82) 0%, rgba(8,8,10,.28) 45%, rgba(8,8,10,.06) 100%);
  transition: opacity var(--mid) var(--ease);
}
a:hover .frame--dark::after { opacity: 0.82; }

/* ============================================================ reveal fx */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal='mask'] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }
[data-reveal='mask'].is-in { clip-path: inset(0 0 0 0); transition: clip-path 1200ms var(--ease-out); }

[data-reveal='fade'] { transform: none; }

/* Image reveal: the picture scales down into place behind a sliding shade. */
.reveal-img { position: relative; overflow: hidden; }
.reveal-img > img { transform: scale(1.12); transition: transform 1400ms var(--ease-out); }
.reveal-img.is-in > img { transform: scale(1); }

/* ================================================== reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .reveal-img > img { transform: none !important; }
  .hero__media { transform: none !important; }
}
