/* site.css: Usman Jewellers sections. Brand values live in tokens.css. Radius 0, no gradients, no glows. */

/* ---------- Crest: pure type + CSS border (square frame, U with J inside) ---------- */
.crest {
  --s: 2.6rem;
  position: relative; display: inline-block; flex: 0 0 auto;
  width: var(--s); aspect-ratio: 1; border: 1px solid currentColor;
  font-family: var(--font-display); line-height: 1; color: var(--ivory);
}
.crest__u { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--s) * .68); font-weight: 700; padding-bottom: .04em; }
.crest__j { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); font-size: calc(var(--s) * .3); font-weight: 700; }
.crest--sign { --s: 19cqw; border-width: 2px; color: var(--logo-green); }
/* Real crest: drop public/img/crest.png and it layers over the CSS monogram. */
.crest__img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; background: var(--ivory); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .9rem 1.7rem; border: 1px solid transparent; border-radius: 0;
  font-family: var(--font-body); font-weight: 500; font-size: .82rem; letter-spacing: .15em; text-transform: uppercase;
  line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--ease-out);
}
.btn:focus-visible::before { transform: scaleX(1); }
@media (hover: hover) { .btn:hover::before { transform: scaleX(1); } }
.btn:active { scale: .98; translate: 0 1px; }
.btn--primary { background: var(--crimson); color: var(--ivory); }
.btn--primary::before { background: var(--ivory); }
.btn--primary:focus-visible { color: var(--ink); }
@media (hover: hover) { .btn--primary:hover { color: var(--ink); } }
.btn--ghost { border-color: rgb(246 240 214 / .5); color: var(--ivory); }
.btn--ghost::before { background: var(--crimson); }
.btn--ghost:focus-visible { border-color: var(--crimson); }
@media (hover: hover) { .btn--ghost:hover { border-color: var(--crimson); } }
.btn--blue { background: var(--sign-blue); color: var(--ivory); }
.btn--blue::before { background: var(--crimson); }
.btn--blue:focus-visible { box-shadow: 0 0 0 2px var(--ivory), 0 0 0 4px var(--sign-blue); }

.link {
  display: inline-block; padding-block: .7rem; color: var(--ivory); font-size: .82rem; letter-spacing: .15em; text-transform: uppercase;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .5em;
  transition: text-underline-offset .35s var(--ease-out), text-decoration-thickness .35s var(--ease-out);
}
.link:hover, .link:focus-visible { text-underline-offset: .75em; text-decoration-thickness: 2px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav); height: var(--nav-h);
  background: rgb(7 36 25 / .88); border-bottom: 1px solid var(--line-soft);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ivory); }
.brand .crest { --s: 2.5rem; }
.brand__word { font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.nav__menu { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.nav__links { display: flex; gap: clamp(1.25rem, 2.6vw, 2.75rem); list-style: none; padding: 0; margin: 0; }
.nav__links a {
  position: relative; display: inline-block; padding-block: .6rem; text-decoration: none; color: var(--ivory-dim);
  font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; transition: color var(--dur) var(--ease-out);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 1px; background: var(--crimson);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease-out);
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--ivory); }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }
.nav__toggle {
  display: none; position: relative; z-index: 2; min-height: 44px; padding: 0 1rem; border: 1px solid rgb(246 240 214 / .4);
  font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ivory);
}
html.menu-open { overflow: hidden; }
@media (max-width: 900px) {
  .brand__word { font-size: .7rem; letter-spacing: .17em; }
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__menu {
    position: fixed; inset: 0; z-index: 0; display: none; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2.5rem;
    padding: calc(var(--nav-h) + 2rem) var(--gutter) 3rem; background: var(--ink); overflow-y: auto;
  }
  .nav__menu[data-open="true"] { display: flex; }
  .nav__links { flex-direction: column; gap: .5rem; }
  .nav__links a { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 14vw, 4.5rem); letter-spacing: -.01em; text-transform: none; color: var(--ivory); line-height: 1.1; }
  .nav__links a::after { display: none; }
}

/* ---------- Mobile dock ---------- */
.dock { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
    display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock .btn { min-height: var(--bar-h); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink);
  min-height: 100svh; margin-top: calc(var(--nav-h) * -1);
  display: flex; flex-direction: column;
}
.hero__bg { position: absolute; inset: 0 auto 0 0; width: 58%; background: var(--ink); }
.hero__shader { opacity: .16; }
.hero__col { position: relative; z-index: var(--z-base); display: flex; flex-direction: column; justify-content: center; flex: 1 1 auto; }
.hero__inner { container-type: inline-size; position: relative; width: 100%; }
.hero__kind {
  display: flex; flex-wrap: wrap; align-items: center; row-gap: .5rem; margin: 0 0 clamp(1.25rem, 3svh, 2.25rem);
  font-size: .72rem; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; color: var(--ivory);
}
.hero__kind span { line-height: 1; }
.hero__kind span + span { margin-left: .9rem; padding-left: .9rem; border-left: 1px solid rgb(246 240 214 / .5); }
.hero__mark { font-size: 10vw; font-size: min(21cqw, 26svh); width: fit-content; max-width: 100%; }
.hero__usman {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 1em; line-height: .9;
  letter-spacing: -.02em; color: var(--ivory); padding-block: .04em; margin-left: -.03em;
}
.hero__jw { position: relative; display: block; margin-top: .02em; font-family: var(--font-body); font-weight: 500; font-size: .3em; line-height: 1; color: var(--ivory); }
.hero__jwbar { position: absolute; inset: 0; background: var(--crimson); }
.hero__jwtxt { position: relative; display: flex; justify-content: space-between; padding: .3em .55em; }
.hero__sub { margin-top: clamp(1.5rem, 3.5vh, 2.5rem); max-width: 30ch; font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); color: var(--ivory-dim); }
.hero__ctas { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2.25rem; }
.hero__addr { margin: 0; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ivory-dim); max-width: 34ch; }

.hero__photo { position: relative; z-index: var(--z-base); }
.hero__photo .hero__main { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; background: var(--green-2); }
.hero__main img { object-position: 50% 40%; }
.hero__main::before { inset: 14px; border-color: rgb(246 240 214 / .55); }
.hero__photo .hero__inset { position: absolute; z-index: 3; aspect-ratio: 1; border: 6px solid var(--ink); background: var(--green-2); }
.hero__inset::before { inset: 6px; }
.hero__inset::after { display: none; }

@media (min-width: 900px) {
  .hero { display: block; }
  .hero__photo { position: absolute; z-index: var(--z-base); right: 0; top: 0; bottom: 0; width: 44vw; }
  .hero__inset { left: calc(clamp(150px, 16vw, 240px) / -2); bottom: 14%; width: clamp(150px, 16vw, 240px); }
  .hero__col { width: 46vw; min-height: 100svh; padding: calc(var(--nav-h) + 2rem) 0 5.5rem var(--gutter); }
  .hero__addr { position: absolute; left: var(--gutter); bottom: 2rem; }
}
@media (max-width: 899px) {
  .hero { padding: 0 var(--gutter) 2.5rem; }
  .hero__bg { width: 100%; }
  .hero__photo { order: -1; height: calc(38svh + var(--nav-h)); min-height: 280px; margin-inline: calc(var(--gutter) * -1); }
  .hero__main::before { inset: 10px; }
  .hero__col { padding-top: 2.75rem; }
  .hero__addr { margin-top: 2rem; }
}
@media (min-width: 520px) and (max-width: 899px) {
  .hero__inset { right: var(--gutter); bottom: -2.25rem; width: 120px; }
}
@media (max-width: 519px) {
  .hero__inset { display: none; }
  .hero__kind { font-size: .66rem; letter-spacing: .18em; }
  .hero__kind span + span { margin-left: .7rem; padding-left: .7rem; }
}

/* ---------- Collection ---------- */
.collection { background: var(--green); }
[data-hpan] { scroll-padding-inline: var(--gutter); }
[data-hpan].is-pinned { padding-top: var(--nav-h); scroll-padding-inline: 0; }
.collection__track {
  align-items: center; gap: clamp(1.25rem, 4.5vw, 5rem);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 14vw;
}
.pn { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; width: 74vw; transform: translateY(calc(var(--dy) * .25)); }
.pn .ph { width: 100%; }
.pn--intro { width: 82vw; gap: 1.5rem; transform: none; }
.collection__title { font-size: clamp(3.25rem, 7vw, 6.5rem); font-weight: 700; line-height: .98; letter-spacing: -.02em; padding-bottom: .1em; }
.collection__lead { color: var(--ivory-dim); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 26ch; }
.pn__name { margin-top: .5rem; font-size: clamp(1.9rem, 2.6vw, 2.7rem); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; padding-bottom: .06em; }
.pn__name em { font-style: italic; }
.pn__link {
  display: inline-block; padding-block: .65rem; font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ivory);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .5em; transition: text-underline-offset .35s var(--ease-out);
}
.pn__link:hover, .pn__link:focus-visible { text-underline-offset: .8em; }
@media (min-width: 768px) {
  .pn { width: min-content; transform: translateY(var(--dy)); }
  .pn .ph { width: auto; height: var(--ph); }
  .pn--intro { width: min(34vw, 470px); }
}
@media (max-width: 767px) {
  [data-hpan] { padding-block: 4rem 3.5rem; }
  .collection__track { align-items: flex-start; }
}

/* ---------- Photo slots: cream hairline double frame (outer rule + offset inner rule) ---------- */
.ph {
  position: relative; margin: 0; overflow: hidden; background: var(--green-2); aspect-ratio: var(--ar, 4 / 5);
}
.ph::before { content: ""; position: absolute; z-index: 2; inset: .75rem; border: 1px solid var(--line); pointer-events: none; }
.ph::after { content: ""; position: absolute; z-index: 2; inset: 0; border: 1px solid var(--line-soft); pointer-events: none; }
.ph__cap {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; text-align: center;
  font-size: .72rem; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; color: var(--ivory-dim);
}
.ph > img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Bridal: sticky split ---------- */
.bridal { background: var(--ink); }
.bridal__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.bridal__copy { position: sticky; top: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.bridal__title { font-size: clamp(3rem, 6vw, 5.75rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; padding-bottom: .1em; }
.bridal__text { max-width: 34ch; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ivory-dim); }
.bridal__stack { display: flex; flex-direction: column; gap: clamp(4rem, 9vw, 9rem); padding-block: 4vw 10vw; }
.bitem .ph { width: 100%; }
.bitem--a { width: 76%; }
.bitem--b { width: 64%; margin-left: 30%; }
.bitem--c { width: 84%; margin-left: 6%; }
@media (max-width: 767px) {
  .bridal__grid { grid-template-columns: 1fr; }
  .bridal__copy { position: static; }
  .bridal__stack { padding-block: 1rem 0; gap: 3rem; }
  .bitem--a { width: 88%; }
  .bitem--b { width: 78%; margin-left: auto; }
  .bitem--c { width: 92%; margin-left: 0; }
}

/* ---------- Diamonds: full-bleed statement ---------- */
.dia { position: relative; background: var(--green); padding-block: var(--section-y); }
.dia__frame { overflow: hidden; width: 100%; }
.dia__ph { width: 100%; aspect-ratio: 16 / 9; min-height: 70svh; transform-origin: 50% 50%; }
.dia__ph::before { inset: 1.25rem; }
.dia__panel {
  position: relative; z-index: 2; width: fit-content; max-width: 100%; background: var(--green);
  margin-top: calc(-1 * clamp(3.5rem, 8vw, 8rem));
  padding: clamp(1.75rem, 3.5vw, 3rem) clamp(1.5rem, 4vw, 4rem) 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  border-top: 1px solid var(--line); border-right: 1px solid var(--line);
}
.dia__title { max-width: 14ch; font-size: clamp(2.4rem, 4.8vw, 4.5rem); font-weight: 600; line-height: 1.02; letter-spacing: -.02em; padding-bottom: .1em; }
.dia__text { margin-top: 1rem; color: var(--ivory-dim); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 30ch; }
@media (max-width: 767px) {
  .dia__ph { aspect-ratio: auto; min-height: 70svh; }
  .dia__panel { padding-right: var(--gutter); }
}

/* ---------- Visit: ivory signboard ---------- */
.visit { background: var(--ivory); color: var(--sign-blue); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; }
.visit__info {
  container-type: inline-size; display: flex; flex-direction: column; align-items: flex-start; gap: 2rem;
  padding: var(--section-y) clamp(1.5rem, 4vw, 5rem) var(--section-y) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.sign { position: relative; width: 100%; display: flex; align-items: center; gap: 4cqw; padding: 4cqw; border: 2px solid var(--logo-green); }
/* Real logo: drop public/img/logo.png and it covers the whole recreated signboard. */
.sign__logo { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: contain; background: var(--ivory); }
.sign__name { display: flex; flex-direction: column; gap: 1cqw; width: fit-content; min-width: 0; }
.sign__usman { font-family: var(--font-display); font-weight: 700; font-size: 15.5cqw; line-height: .92; letter-spacing: -.01em; color: var(--crimson); }
.sign__jw { display: flex; justify-content: space-between; font-family: var(--font-body); font-weight: 600; font-size: 3.5cqw; line-height: 1; color: var(--sign-blue); }
.visit__title { font-size: clamp(2.4rem, 4.2vw, 3.75rem); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; padding-bottom: .1em; margin-top: .5rem; }
.visit__list { width: 100%; display: grid; margin: 0; }
.visit__list > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-block: 1rem; border-top: 1px solid rgb(45 74 158 / .3); }
.visit__list > div:last-child { border-bottom: 1px solid rgb(45 74 158 / .3); }
.visit__list dt { font-size: .74rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; padding-top: .35rem; color: var(--sign-blue); }
.visit__list dd { margin: 0; font-size: 1.1rem; }
.visit__list a { text-decoration-thickness: 1px; }
.visit__map { position: relative; min-height: 520px; background: var(--green); }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
@media (max-width: 767px) {
  .visit__grid { grid-template-columns: 1fr; }
  .visit__info { padding: 4.5rem var(--gutter); }
  .visit__list > div { grid-template-columns: 6rem 1fr; }
  .visit__map { min-height: 60svh; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); overflow: hidden; padding-top: clamp(4rem, 8vw, 7rem); }
.footer__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2.5rem; font-size: .95rem; color: var(--ivory-dim); }
.footer__row a { text-decoration: none; padding-block: .4rem; }
.footer__row a:hover, .footer__row a:focus-visible { color: var(--ivory); text-decoration: underline; }
.footer__addr { font-style: normal; }
.footer__copy { margin: 0; }
.footer__mark {
  margin-top: clamp(2.5rem, 6vw, 5rem); height: .5em; overflow: hidden; white-space: nowrap; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 23vw; line-height: .8; letter-spacing: -.02em; color: var(--green);
  user-select: none;
}
.hy { font-family: var(--font-body); font-weight: 500; padding-inline: .04em; }

/* ---------- Real logo (img/logo.jpg, exact artwork on its own cream plate) ---------- */
:root { --logo-cream: #F4EFCF; }
.brand__logo { display: block; height: 46px; width: auto; background: var(--logo-cream); padding: 3px 8px; }
.hero__logo { margin: 0; width: min(100%, 34rem); line-height: 0; }
.hero__logo img { display: block; width: 100%; height: auto; background: var(--logo-cream); outline: 1px solid rgb(246 240 214 / .55); outline-offset: 8px; }
.hero__kind { margin: clamp(1.5rem, 3.5svh, 2.5rem) 0 0; }
.sign { padding: 0; border: 2px solid var(--logo-green); background: var(--logo-cream); line-height: 0; }
.sign__logo { position: static; display: block; width: 100%; height: auto; background: none; }
@media (min-width: 900px) { .hero__logo { width: min(100%, 40rem); } }
@media (max-width: 899px) { .hero__logo img { outline-offset: 6px; } .hero__logo { width: calc(100% - 12px); margin-left: 6px; } }
@media (max-width: 380px) { .brand__logo { height: 40px; } }

/* ---------- Cream navbar: the exact logo sits on its own background, no plate ---------- */
.nav { background: var(--logo-cream); border-bottom: 1px solid rgb(31 122 60 / .35); }
.brand { gap: 0; }
.brand__logo { height: 52px; width: auto; padding: 0; background: none; }
.nav__links a { color: #0C3324; font-weight: 500; }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--crimson); }
.nav__toggle { border-color: #0C3324; color: #0C3324; font-weight: 600; }
@media (max-width: 900px) {
  .brand__logo { height: 46px; }
  .nav__menu { inset: var(--nav-h) 0 0 0; justify-content: flex-start; padding: 2.5rem var(--gutter) 3rem; }
  .nav__links a { color: var(--ivory); font-size: clamp(3.2rem, 15vw, 5rem); }
}
@media (max-width: 380px) { .brand__logo { height: 40px; } }

/* ---------- Cormorant runs small: scale display sizes ---------- */
.collection__title { font-size: clamp(3.6rem, 7.6vw, 7rem); }
.bridal__title { font-size: clamp(3.4rem, 6.6vw, 6.3rem); }
.dia__title { font-size: clamp(2.8rem, 5.3vw, 5rem); }
.visit__title { font-size: clamp(2.8rem, 4.7vw, 4.2rem); }
.pn__name { font-size: clamp(2.2rem, 3vw, 3.1rem); }
h1, h2, h3 { letter-spacing: -.005em; }
