/* ============================================================
   Abdulrahman Al Zeer — Production Stylesheet
   Placeholder domain: abdulrahmanalzeer.com
   Replace domain before deployment.
   ============================================================ */

/* ── GOOGLE FONTS (efficient link tag, not @import) ── */
/* Loaded via <link> in each HTML head for performance */

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --black:    #080808;
  --black2:   #0d0d0d;
  --black3:   #181818;
  --charcoal: #1e1c18;
  --gold:     #c9a84c;
  --gold2:    #e8d48e;
  --gold3:    #7a5e28;
  --white:    #f5f2ed;
  --white2:   #d4cbbf;
  --white3:   #a09588;
  --white4:   #2e2b26;
  --line:     rgba(201,168,76,.22);
  --cream:    #f7f3ec;
  --cream2:   #ede7db;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Touch target minimum */
  --touch-min: 44px;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

/* Restore cursor on touch devices — set via JS */
body.touch-device { cursor: auto; }

/* ── SKIP LINK (Accessibility) ── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--black);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── FOCUS STYLES (Accessibility) ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── CUSTOM CURSOR ── */
#cur {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: transform 0.1s;
}
#cur2 {
  width: 36px; height: 36px;
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  transition: border-color 0.3s;
}
body.lh #cur  { transform: scale(2.2) !important; }
body.lh #cur2 { border-color: var(--gold); }

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 60px;
  transition: padding 0.5s ease, background 0.5s ease, border-color 0.5s ease;
  background: linear-gradient(to bottom, rgba(8,8,8,.92) 0%, rgba(8,8,8,.4) 70%, transparent 100%);
}
nav.solid {
  background: rgba(8,8,8,.98);
  padding: 16px 60px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-brand { text-decoration: none; line-height: 1.2; }
.nav-brand-en {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px; font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}
.nav-brand-ar {
  font-family: 'Noto Naskh Arabic', 'Arabic Typesetting', serif;
  font-size: 12px; color: var(--white3);
  display: block; margin-top: 3px;
}

.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white2);
  text-decoration: none;
  padding: 10px 18px;
  font-weight: 400;
  min-height: var(--touch-min);
  display: flex; align-items: center;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 2px; left: 18px; right: 18px;
  height: 1px; background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.35s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--black); background: var(--gold);
  padding: 13px 26px; text-decoration: none;
  font-weight: 500;
  min-height: var(--touch-min);
  display: flex; align-items: center;
  transition: background 0.3s;
}
.nav-cta:hover { background: var(--gold2); color: var(--black); }

/* ── MOBILE NAV TOGGLE ── */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white2);
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: border-color 0.3s;
  aria-label: "Open navigation";
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }
.nav-toggle span {
  display: block;
  width: 20px; height: 1px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ── */
.nav-drawer {
  display: none;
  position: fixed; inset: 0;
  z-index: 700;
  background: rgba(8,8,8,.98);
  padding: 100px 40px 60px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 14px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--white2);
  text-decoration: none; padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  transition: color 0.3s;
}
.nav-drawer a:hover,
.nav-drawer a[aria-current="page"] { color: var(--gold); }
.nav-drawer-cta {
  margin-top: 32px;
  padding: 16px 32px;
  background: var(--gold); color: var(--black);
  text-align: center; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; font-weight: 500;
  display: block;
}

/* ── COMMON LAYOUT ── */
.gold-rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.sec   { padding: 110px 60px; }
.sec-w { background: var(--cream); padding: 100px 60px; }

.lbl { display: flex; align-items: center; gap: 16px; margin-bottom: 44px; }
.lbl-line { width: 32px; height: 1px; background: var(--gold); flex-shrink: 0; }
.lbl span { font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.lbl.dk .lbl-line { background: var(--gold3); }
.lbl.dk span { color: var(--gold3); }

h2.st { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(34px, 5vw, 64px); font-weight: 300; line-height: 1.05; color: var(--white); }
h2.st em { font-style: italic; color: var(--gold2); }
h2.st.dk { color: #1a1611; }
h2.st.dk em { color: var(--gold3); }

.body-text { font-size: 15px; line-height: 2.1; color: var(--white2); }
.body-text.dk { color: #4a4237; }

/* ── SCROLL ANIMATIONS ── */
[da] { will-change: transform, opacity; }
[da="fu"] { opacity: 0; transform: translateY(36px); transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1); }
[da="fu"].sv { opacity: 1; transform: none; }
[da="fi"] { opacity: 0; transition: opacity 1.1s ease; }
[da="fi"].sv { opacity: 1; }
[da="fl"] { opacity: 0; transform: translateX(-50px); transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1); }
[da="fl"].sv { opacity: 1; transform: none; }
[da="fr"] { opacity: 0; transform: translateX(50px); transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1); }
[da="fr"].sv { opacity: 1; transform: none; }
[da="su"] { opacity: 0; transform: scale(0.93); transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1); }
[da="su"].sv { opacity: 1; transform: scale(1); }
[da="ld"] { transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
[da="ld"].sv { transform: scaleX(1); }
[dd="100"] { transition-delay: 0.1s !important; }
[dd="200"] { transition-delay: 0.2s !important; }
[dd="300"] { transition-delay: 0.3s !important; }
[dd="400"] { transition-delay: 0.4s !important; }
[dd="500"] { transition-delay: 0.5s !important; }
[dd="600"] { transition-delay: 0.6s !important; }

/* ── PHOTO FRAME ── */
.frame { background: var(--black3); border: 1px solid var(--line); position: relative; overflow: hidden; }
.fc { position: absolute; width: 22px; height: 22px; border-color: var(--gold); border-style: solid; }
.fc.tl { top: 18px; left: 18px; border-width: 1px 0 0 1px; }
.fc.tr { top: 18px; right: 18px; border-width: 1px 1px 0 0; }
.fc.bl { bottom: 18px; left: 18px; border-width: 0 0 1px 1px; }
.fc.br { bottom: 18px; right: 18px; border-width: 0 1px 1px 0; }

/* ── BLOCKQUOTE ── */
.bq { border-left: 2px solid var(--gold); padding: 18px 0 18px 26px; margin: 28px 0; }
.bq p { font-family: 'Noto Naskh Arabic', serif; font-size: 19px; color: var(--gold2); line-height: 1.8; margin-bottom: 6px; }
.bq small { font-size: 10px; letter-spacing: 0.25em; color: var(--white3); text-transform: uppercase; font-style: italic; }

/* ── BUTTONS ── */
.btn-o {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 32px;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  text-decoration: none; transition: all 0.3s;
  margin-top: 24px; cursor: none;
  min-height: var(--touch-min);
}
.btn-o:hover { background: var(--gold); color: var(--black); }
.btn-o svg { width: 13px; height: 13px; transition: transform 0.3s; }
.btn-o:hover svg { transform: translateX(5px); }
.btn-o.dk { border-color: var(--gold3); color: var(--gold3); }
.btn-o.dk:hover { background: var(--gold3); color: var(--white); }

.btn-s {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 36px; background: var(--black); color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase;
  border: none; cursor: none; transition: background 0.3s;
  min-height: var(--touch-min);
}
.btn-s:hover { background: #1e1a12; }
.btn-s svg { width: 13px; height: 13px; transition: transform 0.3s; }
.btn-s:hover svg { transform: translateX(5px); }

/* ── PRESS CARDS ── */
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 56px; }
.press-card { background: var(--black); padding: 40px; border-top: 2px solid var(--gold); }
.press-tag  { font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block; }
.press-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--white); line-height: 1.4; margin-bottom: 10px; }
.press-pub  { font-size: 12px; color: var(--white3); letter-spacing: 0.1em; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  height: 52vh; min-height: 400px;
  position: relative; display: flex; align-items: flex-end;
  padding: 0 60px 56px; overflow: hidden;
  background: var(--black2);
}
.ph-grade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,8,.97) 0%, rgba(8,8,8,.55) 30%, rgba(8,8,8,.22) 60%, rgba(8,8,8,.4) 100%); }
.ph-vl { position: absolute; top: 0; left: 60px; width: 1px; height: 0; background: linear-gradient(to bottom, transparent, var(--gold), transparent); animation: vg 1.4s 0.3s ease forwards; }
@keyframes vg { to { height: 100%; } }
.ph-ghost { position: absolute; font-family: 'Cormorant Garamond', serif; font-size: clamp(80px, 14vw, 200px); font-weight: 300; color: transparent; -webkit-text-stroke: 1px rgba(201,168,76,.07); right: -10px; bottom: -10px; line-height: 1; user-select: none; pointer-events: none; }
.ph-content { position: relative; z-index: 2; }
.ph-content h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 6vw, 76px); font-weight: 300; color: var(--white); line-height: 1.05; }
.ph-content h1 em { font-style: italic; color: var(--gold2); }

/* ── PHOTO TREATMENT ── */
.photo-warm { filter: brightness(1.06) contrast(.92) saturate(1.18) sepia(.12); }

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  border-top: 1px solid var(--line);
  padding: 56px 60px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 36px;
}
.fb { font-family: 'Cormorant Garamond', serif; font-size: 15px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.fb span { display: block; font-size: 10px; letter-spacing: 0.2em; color: var(--white3); margin-top: 5px; font-family: 'Montserrat', sans-serif; font-weight: 300; }
.fm { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fvl { width: 1px; height: 36px; background: linear-gradient(to bottom, transparent, var(--gold), transparent); }
.fc2 { font-size: 9px; letter-spacing: 0.2em; color: var(--white3); text-align: center; line-height: 1.8; }
.fl { display: flex; gap: 28px; justify-content: flex-end; list-style: none; }
.fl a { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white3); text-decoration: none; transition: color 0.3s; min-height: var(--touch-min); display: inline-flex; align-items: center; }
.fl a:hover { color: var(--gold); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  #cur, #cur2 { display: none; }
  body { cursor: auto; }
  .slide { transition: none !important; }
  [da="fu"], [da="fi"], [da="fl"], [da="fr"], [da="su"], [da="ld"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ph-vl { animation: none; height: 100%; }
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 18px 24px; }
  nav.solid { padding: 14px 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .sec, .sec-w { padding: 72px 24px; }
  .page-hero { padding: 0 24px 40px; }
  .ph-vl { left: 24px; }
  .press-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .fl { justify-content: center; }
}

@media (max-width: 480px) {
  .press-grid { gap: 16px; }
  footer { padding: 48px 20px; gap: 24px; }
}
