/* Template1 — shared stylesheet for all 4 variants (dark/light × man/woman).
   Theme is driven entirely by CSS custom properties (RGB triplets) so a single
   sheet serves both themes and Tailwind's /NN opacity utilities keep working.
   Dark is the default; html[data-theme="light"] overrides the tokens. */

:root {
  /* dark theme = default */
  --ink: 11 11 13;       --ink-2: 18 18 22;    --ink-3: 26 26 32;
  --gold: 201 162 75;    --gold-2: 228 200 126;
  --cream: 244 241 233;  --muted: 154 154 164;
  --contrast: 255 255 255;   /* hairlines / borders (was white/NN) */
  --error: 248 113 113;
}

html[data-theme="light"] {
  --ink: 250 248 243;    --ink-2: 242 237 228;  --ink-3: 231 225 212;
  --gold: 158 121 43;    --gold-2: 122 92 30;   /* hover goes darker on light */
  --cream: 26 23 16;     --muted: 108 106 98;
  --contrast: 22 20 14;
  --error: 180 35 24;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { background: rgb(var(--ink)); color: rgb(var(--cream)); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: rgb(var(--gold)); color: rgb(var(--ink)); }

/* Arabic typography */
html.is-ar body { font-family: "Tajawal", "Inter", sans-serif; }
html.is-ar .font-display { font-family: "Cairo", "Cormorant Garamond", serif; font-weight: 700; letter-spacing: 0; }
html.is-ar .tracking-wider, html.is-ar .tracking-widest, html.is-ar .eyebrow { letter-spacing: 0 !important; }

.container-x { max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 1024px) { .container-x { padding-inline: 2.5rem; } }

.eyebrow { letter-spacing: .28em; text-transform: uppercase; font-size: .72rem; font-weight: 500; color: rgb(var(--gold)); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-weight: 500; border-radius: 2px; transition: all .25s ease; font-size: .95rem; }
.btn-gold { background: rgb(var(--gold)); color: rgb(var(--ink)); padding: .95rem 1.6rem; }
.btn-gold:hover { background: rgb(var(--gold-2)); transform: translateY(-2px); }
.btn-outline { border: 1px solid rgb(var(--gold) / .5); color: rgb(var(--cream)); padding: .95rem 1.6rem; }
.btn-outline:hover { border-color: rgb(var(--gold)); background: rgb(var(--gold) / .08); }

/* header */
header[data-header] { transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease, padding .3s ease; }
header[data-header].scrolled { background: rgb(var(--ink) / .82); backdrop-filter: blur(14px); border-bottom-color: rgb(var(--gold) / .14) !important; }

/* mobile nav */
[data-nav-menu] { transition: opacity .3s ease, visibility .3s ease; }
@media (max-width: 1023px) {
  [data-nav-menu] { display: flex !important; position: fixed; inset: 0; top: 0; flex-direction: column; justify-content: center; align-items: center;
    background: rgb(var(--ink) / .97); backdrop-filter: blur(6px); gap: 2rem; opacity: 0; visibility: hidden; z-index: 60; }
  [data-nav-menu].open { opacity: 1; visibility: visible; }
  [data-nav-menu] a { font-size: 1.4rem; }
  body.nav-open { overflow: hidden; }
}
[data-nav-toggle].open .bar1 { transform: translateY(6px) rotate(45deg); }
[data-nav-toggle].open .bar2 { opacity: 0; }
[data-nav-toggle].open .bar3 { transform: translateY(-6px) rotate(-45deg); }
[data-nav-toggle] span { transition: all .25s ease; }

/* hero */
.hero-name { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); z-index: 0;
  font-family: "Cormorant Garamond", serif; font-weight: 700; line-height: .8;
  font-size: clamp(5rem, 20vw, 20rem); color: transparent;
  -webkit-text-stroke: 1px rgb(var(--gold) / .14); white-space: nowrap; pointer-events: none;
  user-select: none; letter-spacing: .02em; }
.hero-glow { position: absolute; z-index: 0; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgb(var(--gold) / .14) 0%, rgb(var(--gold) / 0) 62%); }
/* blend the studio portrait's edges into the page background */
.hero-photo { -webkit-mask-image: radial-gradient(125% 108% at 52% 42%, #000 58%, transparent 100%);
  mask-image: radial-gradient(125% 108% at 52% 42%, #000 58%, transparent 100%); }

/* stat divider line */
.stat + .stat { border-inline-start: 1px solid rgb(var(--contrast) / .08); }
@media (max-width: 767px) { .stat:nth-child(odd) { border-inline-start: 0; } .stat:nth-child(n+3) { border-top: 1px solid rgb(var(--contrast) / .08); } }

/* cards */
.card { background: linear-gradient(180deg, rgb(var(--contrast) / .03), rgb(var(--contrast) / .008)); border: 1px solid rgb(var(--contrast) / .07); transition: all .3s ease; }
.card:hover { border-color: rgb(var(--gold) / .4); transform: translateY(-4px); background: linear-gradient(180deg, rgb(var(--gold) / .06), rgb(var(--contrast) / .01)); }

/* FAQ */
[data-faq-item] .faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; }
[data-faq-item].open .faq-a { max-height: 320px; }
[data-faq-item] .faq-icon { transition: transform .3s ease; }
[data-faq-item].open .faq-icon { transform: rotate(45deg); }
[data-faq-item].open .faq-q { color: rgb(var(--gold)); }

/* form */
.field { width: 100%; background: rgb(var(--contrast) / .04); border: 1px solid rgb(var(--contrast) / .1); color: rgb(var(--cream));
  padding: .85rem 1rem; border-radius: 2px; font-size: .95rem; transition: border-color .2s ease; }
.field:focus { outline: none; border-color: rgb(var(--gold)); }
.field::placeholder { color: rgb(var(--muted)); }
select.field option { background: rgb(var(--ink-2)); color: rgb(var(--cream)); }
#form-error { display: none; color: rgb(var(--error)); }
#form-error.show { display: block; }

/* reviews */
.review-card { break-inside: avoid; }
.review-avatar { background: linear-gradient(135deg, rgb(var(--gold)), rgb(var(--gold-2))); color: rgb(var(--ink)); font-weight: 600; }
.stars { color: rgb(var(--gold)); letter-spacing: .12em; font-size: .82rem; line-height: 1; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

.link-underline { position: relative; }
.link-underline::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: rgb(var(--gold)); transition: width .25s ease; }
.link-underline:hover::after { width: 100%; }
