/* Al-Nafeesa Jewellery: tokens, base, shared components */
:root {
  color-scheme: dark;
  --bg:        #170A0D;
  --surface-1: #241014;
  --surface-2: #3A1219;
  --maroon:    #7E1F2C;
  --maroon-hi: #9E2B3A;
  --gold:      #C9A24B;
  --gold-hi:   #E2C47E;
  --gold-lo:   #8E6F2C;
  --ivory:     #F3ECE1;
  --ivory-2:   #CBBFAE;
  --ivory-3:   #9C8F80;
  --line:      rgba(201, 162, 75, 0.24);
  --line-soft: rgba(243, 236, 225, 0.08);
  --shadow:    0 40px 80px -30px rgba(8, 2, 4, 0.75);
  --scrim:     linear-gradient(to top, rgba(23,10,13,.88), rgba(23,10,13,0) 60%);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --f-ar-display: "Aref Ruqaa", "Noto Naskh Arabic", serif;
  --f-ar: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", sans-serif;

  --header-h: 64px;
  --section-pad: clamp(5rem, 10vw, 10rem);
}
@media (min-width: 768px) { :root { --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory-2);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
:lang(ar) { font-family: var(--f-ar); }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; max-width: 60ch; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 500; color: var(--ivory); font-optical-sizing: auto; }
h1 { font-size: clamp(2.75rem, 6.2vw, 5.75rem); line-height: 1.06; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; }
h3 { font-size: 1.375rem; line-height: 1.2; }
em { font-style: italic; padding-bottom: .12em; }
[hidden] { display: none !important; }

.container { width: min(100% - 32px, 1320px); margin-inline: auto; }
.section { padding-block: var(--section-pad); }
.ar { font-family: var(--f-ar-display); font-weight: 700; line-height: 1.5; color: var(--gold); }
.ar-sm { font-family: var(--f-ar); font-weight: 500; font-size: .875rem; color: var(--ivory-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--gold); color: var(--bg); padding: .8rem 1.2rem; font-weight: 500; }
.skip:focus { top: 12px; }

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

.arch { border-radius: 999px 999px 0 0; overflow: hidden; }
.emblem { color: var(--gold); width: 44px; height: auto; aspect-ratio: 200 / 112; flex: none; }

/* Grain */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.6rem; min-height: 48px;
  font-family: var(--f-body); font-weight: 500; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out), color .35s var(--ease-out), transform .2s var(--ease-out);
}
.btn i { font-size: 1.1em; line-height: 1; }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-hi); color: var(--bg); }
.btn-gold:active { background: var(--gold-lo); transform: translateY(1px) scale(.98); }
.btn-line { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-line:hover { background: rgba(201, 162, 75, .08); color: var(--gold-hi); border-color: var(--gold-hi); }
.btn-line:active { transform: translateY(1px) scale(.98); }
.btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.text-link {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
  font-weight: 500; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .45s var(--ease-out), color .3s;
}
.text-link:hover { background-size: 100% 1px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.site-header.is-scrolled { background: rgba(23, 10, 13, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--line); }
@supports not (backdrop-filter: blur(1px)) { .site-header.is-scrolled { background: var(--surface-1); } }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.progress { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; pointer-events: none; }

.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--ivory); }
.brand:hover { color: var(--ivory); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-en { font-family: var(--f-display); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .16em; }
.brand-ar { font-family: var(--f-ar-display); font-weight: 700; font-size: 1.05rem; color: var(--gold); line-height: 1.4; }

.site-nav { display: none; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.site-nav a:not(.btn) {
  position: relative; font-weight: 500; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-2); padding-block: .5rem;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.site-nav .btn { padding: .8rem 1.1rem; min-height: 44px; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .25rem; background: none; border: 0; color: var(--ivory);
  font-weight: 500; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
}
.menu-btn i { font-size: 1.5rem; }
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .menu-btn { display: none; }
}

/* Mobile menu */
.menu-sheet {
  position: fixed; inset: 0; z-index: 150; background: var(--surface-2);
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 24px);
  overflow-y: auto; display: flex; flex-direction: column;
}
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 48px; margin-bottom: 1.5rem; }
.menu-close { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; background: none; border: 0; color: var(--ivory); font-weight: 500; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.menu-close i { font-size: 1.5rem; }
.menu-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); font-family: var(--f-display); font-size: 2.25rem; line-height: 1.15; color: var(--ivory); }
.menu-links a:last-child { border-bottom: 1px solid var(--line); }
.menu-links a .ar { font-size: 1.5rem; }
.menu-links a:hover { color: var(--gold-hi); }
.menu-actions { display: grid; gap: .75rem; margin-top: 2rem; }
.menu-actions .btn { width: 100%; }
.menu-addr { margin-top: 1.5rem; font-size: .9rem; color: var(--ivory-3); }
body.menu-open { overflow: hidden; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80;
  width: 56px; height: 56px; display: grid; place-items: center; background: var(--gold); color: var(--bg); font-size: 26px;
  box-shadow: var(--shadow);
  transition: opacity .4s var(--ease-out), visibility .4s, background-color .3s, transform .3s var(--ease-out);
}
.wa-float:hover { background: var(--gold-hi); color: var(--bg); }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(8px); }

/* Footer */
.site-footer { background: var(--surface-1); border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 7vw, 6rem); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); } }
.footer-lockup .brand { margin-bottom: 1.25rem; }
.legal-en { font-weight: 400; color: var(--ivory-3); font-size: .95rem; }
.legal-ar { font-family: var(--f-ar-display); font-weight: 700; color: var(--gold); font-size: 1.2rem; line-height: 1.6; }
.footer-line { margin-top: 1rem; color: var(--ivory-2); }
.site-footer h2 { font-family: var(--f-body); font-weight: 500; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-3); margin-bottom: 1rem; line-height: 1.4; }
.footer-list { display: grid; gap: .1rem; }
.footer-list li, .footer-list a { font-size: 1rem; }
.footer-list a { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; color: var(--ivory-2); }
.footer-list a:hover { color: var(--gold-hi); }
.footer-list i { color: var(--gold); }
.footer-list address { font-style: normal; color: var(--ivory-2); padding-bottom: .5rem; }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 4rem); padding-block: 1.5rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; font-size: .875rem; color: var(--ivory-3); }
.footer-bottom .ar { color: var(--ivory-3); font-size: 1.1rem; }

/* Reveal states */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.no-gsap) [data-reveal] { opacity: 0; }
  html.js:not(.no-gsap) [data-split] { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
