/* ─── LIGHT MODE (default) ─────────────────────────────── */
:root {
  --bg:            #FDF8F2;
  --surface:       #FFFFFF;
  --surface2:      #F9F3E9;
  --gold:          #D4AF37;
  --gold-dim:      #b8942e;
  --purple:        #6B21A8;
  --purple-lt:     #9333ea;
  --text:          #2C2416;
  --muted:         #655A4A;
  --divider:       rgba(212,175,55,0.25);
  --ff-display:    'Cormorant Garamond', 'PT Serif', Georgia, serif;
  --ff-body:       'DM Sans', system-ui, sans-serif;
  --radius:        18px;
  --nav-bg:        rgba(253, 248, 242, 0.88);
  --nav-border:    rgba(212, 175, 55, 0.12);
  --logo-bg:       transparent;
  --logo-text:     #2C2416;
  --logo-gold:     #b8942e;
}

/* ─── SYSTEM DARK MODE ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #1E1626;
    --surface:       #2A1F35;
    --surface2:      #231B2E;
    --gold-dim:      #a8892a;
    --text:          #F5F0E7;
    --muted:         #B3A393;
    --divider:       rgba(212,175,55,0.15);
    --nav-bg:        rgba(30, 22, 38, 0.88);
    --nav-border:    rgba(212, 175, 55, 0.18);
    --logo-text:     #FFFFFF;
    --logo-gold:     #D4AF37;
  }
}

/* ─── MANUAL DARK MODE ────────────────────────────────── */
:root[data-theme="dark"] {
  --bg:            #1E1626;
  --surface:       #2A1F35;
  --surface2:      #231B2E;
  --gold-dim:      #a8892a;
  --text:          #F5F0E7;
  --muted:         #B3A393;
  --divider:       rgba(212,175,55,0.15);
  --nav-bg:        rgba(30, 22, 38, 0.88);
  --nav-border:    rgba(212, 175, 55, 0.18);
  --logo-text:     #FFFFFF;
  --logo-gold:     #D4AF37;
}

/* ─── ARABIC SUPPORT ─────────────────────────────────────── */
[lang="ar"] {
  --ff-display: 'Noto Naskh Arabic', serif;
  --ff-body: 'Noto Naskh Arabic', sans-serif;
}
[lang="ar"] .section-label, [lang="ar"] .lang-btn, [lang="ar"] .lang-opt, [lang="ar"] .nav-cta { letter-spacing: 0; }

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff-body); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--ff-body); cursor: pointer; border: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.section-bg { background: var(--bg); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.section-bg--alt { background: var(--surface2); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.section-label { display: inline-block; font-family: var(--ff-body); font-size: 0.65rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.gold-line { width: 48px; height: 1px; background: var(--gold); margin: 1.75rem auto; }

/* ─── NAV ────────────────────────────────────────────────── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0.5rem 1.5rem; display: flex; align-items: center; justify-content: space-between; background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--nav-border); transition: background 0.3s; overflow: visible; min-height: 56px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo .nav-logo-svg { height: 44px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav-pill { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.45rem 1.1rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; line-height: 1.2; white-space: nowrap; border-radius: 50px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; font-family: var(--ff-body); text-transform: none; }
.nav-pill--blog { border-color: var(--gold-dim); }
.nav-pill--compact { padding-left: 0.75rem; padding-right: 0.75rem; }
.nav-pill--blog:hover { border-color: var(--gold); }
.nav-pill:hover { border-color: var(--gold); color: var(--gold); }
.nav-pill--cta { border-color: var(--gold); color: var(--gold); }
.nav-pill--cta:hover { background: var(--gold); color: #2C2416; }
.nav-pill--theme { width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 1rem; }
.nav-cta-short { display: none; }

/* ─── LANG SWITCH & THEME TOGGLE ─────────────────────────── */
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 0.35rem; background: transparent; border-radius: 50px; color: var(--muted); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; cursor: pointer; transition: border-color 0.2s, color 0.2s; font-family: var(--ff-body); }
.lang-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang-btn svg { width: 12px; height: 12px; transition: transform 0.2s; }
.lang-switch.open .lang-btn svg { transform: rotate(180deg); }
.lang-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--gold-dim); border-radius: 10px; min-width: 280px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 200; overflow: hidden; }
.lang-switch.open .lang-dropdown { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.lang-opt { display: block; width: 100%; padding: 0.6rem 1rem; font-size: 0.82rem; color: var(--muted); text-align: left; background: none; border: none; cursor: pointer; font-family: var(--ff-body); border-bottom: 1px solid rgba(212,175,55,0.06); transition: background 0.15s, color 0.15s; }
.lang-opt:last-child { border-bottom: none; }
.lang-opt:hover, .lang-opt.active { background: rgba(212,175,55,0.07); color: var(--gold); }
.theme-toggle-icon { line-height: 1; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary { display: inline-block; padding: 0.9rem 2.2rem; background: rgba(212, 175, 55, 0.85); color: #2C2416; border-radius: 50px; font-size: 0.92rem; font-weight: 500; letter-spacing: 0.04em; transition: opacity 0.2s, transform 0.2s, background 0.2s; white-space: nowrap; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); background: rgba(212, 175, 55, 0.95); }
.btn-ghost { display: inline-block; padding: 0.9rem 2.2rem; background: transparent; border: 1px solid var(--gold); color: var(--text); border-radius: 50px; font-size: 0.92rem; letter-spacing: 0.04em; transition: background 0.2s, color 0.2s, border-color 0.2s; white-space: nowrap; }
.btn-ghost:hover { background: var(--gold); color: #2C2416; border-color: var(--gold); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer { background: var(--bg); border-top: 1px solid var(--divider); padding: 3rem 1.5rem 2rem; text-align: center; }
.footer-logo { margin-bottom: 0.5rem; display: flex; justify-content: center; }
.footer-logo .footer-logo-svg { height: 70px; width: auto; transform: translateX(27px); }
.footer-tagline {
    font-family: var(--ff-display);   /* ✅ Cormorant Garamond — the brand's voice */
    font-style: italic;               /* ✅ Soulful, literary feel */
    font-size: 1.2rem;                  /* ✅ Slightly bigger for presence */
    color: var(--muted);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}
.footer-tagline::before {
    content: '✦';                     /* ✅ Gold star ornament (left) */
    margin-right: 0.6rem;
    color: var(--gold);
    opacity: 0.55;
    font-style: normal;
}
.footer-tagline::after {
    content: '✦';                     /* ✅ Gold star ornament (right) */
    margin-left: 0.6rem;
    color: var(--gold);
    opacity: 0.55;
    font-style: normal;
}
.footer-social { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--divider); border-radius: 50%; color: var(--muted); transition: border-color 0.2s, color 0.2s; }
.social-link:hover { border-color: var(--gold); color: var(--gold); }
.social-link svg { width: 20px; height: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; font-size: 0.8rem; color: var(--muted); margin-bottom: 2rem; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.72rem; color: var(--muted); opacity: 0.7; }

/* ─── SKIP LINK ──────────────────────────────────────────── */
.skip-link { position: absolute; top: -100px; left: 0; background: var(--gold); color: #2C2416; padding: 0.5rem 1.5rem; z-index: 300; font-size: 0.9rem; font-weight: 600; border-radius: 0 0 8px 0; transition: top 0.2s; text-decoration: none; }
.skip-link:focus { top: 0; }

/* ══════════════════════════════════════════════════════════ */
/*  HUMAN DESIGN GUIDE PAGE STYLES                            */
/* ══════════════════════════════════════════════════════════ */

/* ─── GUIDE SECTIONS (Cleanly overrides global 'section' padding) ─── */
.guide-hero {
  padding: 8rem 1.5rem 3rem; /* Top padding clears fixed nav */
  text-align: center;
}
.guide-hero .wrap { max-width: 800px; margin: 0 auto; }
.guide-content {
  padding: 2rem 1.5rem 4rem;
}

/* Inner content sections (Beats the global 'section { padding: 5rem 0; }' via specificity) */
.guide-section {
  padding: 0; 
  margin-bottom: 2.5rem;
}
.guide-section:last-child {
  margin-bottom: 0;
}

/* Article Typography & Spacing (No !important needed) */
.guide-content article h2 {
  margin: 0 0 1rem 0;
  line-height: 1.3;
}
.guide-content article h3 {
  margin: 1.5rem 0 0.5rem 0;
  line-height: 1.3;
}
.guide-content article p, 
.guide-content article ul {
  margin: 0 0 1rem 0;
}
.guide-content article li {
  margin: 0 0 0.25rem 0;
}

/* ─── GUIDE TYPOGRAPHY ─────────────────────────────────── */
.guide-h1 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  line-height: 1.3;
}
.guide-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.guide-content article {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
}
.guide-h2 {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.5rem;
  line-height: 1.3;
}
.guide-h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.guide-p { margin-bottom: 1rem; line-height: 1.6; }
.guide-type-block { margin-bottom: 1.5rem; }
.guide-list { margin: 0 0 1rem 1.2rem; padding: 0; line-height: 1.5; }
.guide-list-item { margin-bottom: 0.25rem; }

/* ─── GUIDE CTA BOX ────────────────────────────────────── */
.guide-cta-box {
  text-align: center;
  margin-top: 2.5rem;
  padding: 2rem 1.5rem;
  background: var(--surface2);
  border-radius: 12px;
  border: 1px solid var(--gold);
}
.guide-cta-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.guide-cta-desc { margin-bottom: 1.5rem; color: var(--muted); }
.guide-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* ─── RESPONSIVE NAV & FOOTER ────────────────────────────── */
@media (max-width: 768px) {
  nav { padding-left: 0.75rem; padding-right: 0.75rem; }
  .nav-logo .nav-logo-svg { height: 32px; }
  .nav-pill { padding: 0.25rem 0.6rem; font-size: 0.68rem; }
  .nav-cta-short { display: inline; }
  .nav-cta-full { display: none; }
  .nav-right { gap: 0.15rem; }
  .lang-btn { padding-right: 0.4rem; }
  .lang-btn svg { width: 10px; height: 10px; margin-left: 0.1rem; }
  .nav-pill--theme { width: 28px; height: 28px; font-size: 0.8rem; margin-left: 0.15rem; }
  .footer-logo .footer-logo-svg { height: 50px; transform: translateX(19px); }
}

/* ─── RESPONSIVE GUIDE ───────────────────────────────────── */
@media (max-width: 600px) {
  .guide-hero { padding: 6rem 1rem 2rem; }
  .guide-content { padding: 1.5rem 1rem 3rem; }
  .guide-h2 { font-size: 1.5rem; }
  .guide-h3 { font-size: 1.15rem; }
  
  .guide-cta-actions { 
    flex-direction: column; 
    width: 100%; 
    gap: 0.75rem; /* Adds a nice gap between the stacked buttons */
  }
  
  .guide-cta-actions .btn-primary, 
  .guide-cta-actions .btn-ghost { 
    width: 100%; 
    text-align: center; 
    white-space: normal; /* 🔑 Overrides 'nowrap' so text wraps to the next line */
    line-height: 1.4;    /* Adds comfortable breathing room for wrapped text */
    box-sizing: border-box;
  }
}
/* Active Footer Link */
.footer-link--active {
    color: var(--gold);
    font-weight: 500;
    position: relative;
}
.footer-link--active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

/* Toast Notification */
.toast { 
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); 
    background: var(--surface); border: 1px solid var(--gold); border-radius: 50px; 
    padding: 0.75rem 1.5rem; color: var(--text); font-size: 0.85rem; z-index: 1100; 
    opacity: 0; transition: opacity 0.3s; pointer-events: none; 
}
.toast.show { opacity: 1; }
/* ─── FOOTER TRUST SIGNAL ─── */
.footer-trust-signal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(107, 33, 168, 0.06) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    padding: 0.65rem 1.5rem;          /* ✅ Slimmer pill */
    margin: 0 auto 2rem auto;
    font-family: var(--ff-display);
    font-size: 0.95rem;               /* ✅ Slightly smaller */
    font-weight: 500;
    font-style: italic;               /* ✅ Elegant italic restored */
    text-transform: uppercase;        
    letter-spacing: 0.05em;           /* ✅ Tight, refined spacing */
    line-height: 1.4;                 /* ✅ Keeps 2-line wrap tidy on phones */
    color: var(--gold);
    max-width: 100%;
    transition: all 0.3s ease;
    cursor: default;
}
.footer-trust-signal:hover {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(107, 33, 168, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}
