/* ── SHEBA CREDIT — SHARED STYLES ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,700&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --gold: #B8872E;
  --gold-light: #D4A84B;
  --gold-pale: #F2E0BB;
  --black: #060809;
  --navy: #0B1929;
  --navy-mid: #112238;
  --blue: #1A6EF5;
  --blue-bright: #5BA3FF;
  --cream: #FAF7F2;
  --cream-dark: #F0EBE0;
  --ink: #1C2228;
  --muted-dark: #7A8A9E;
  --muted-light: #8A7F72;
  --border-dark: rgba(255,255,255,0.08);
  --border-light: rgba(0,0,0,0.08);
  --nav-height: 72px;
  --section-pad: 110px;
  --section-pad-mobile: 72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'DM Sans', sans-serif; overflow-x: hidden; }

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 60px;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height);
  transition: height 0.3s ease, background 0.3s, box-shadow 0.3s, border-color 0.3s;
  overflow: visible;
}
/* Logo left, links+CTA grouped right */
.nav-right {
  display: flex; align-items: center; gap: 32px;
}
.site-nav.dark {
  background: rgba(6,8,9,0.92);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.site-nav.light {
  background: rgba(250,247,242,0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.site-nav.scrolled { height: 60px; }
.site-nav.dark.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.4); }
.site-nav.light.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 40px; width: auto; transition: height 0.3s; }
.nav-logo .logo-full { display: block; }
.nav-logo .logo-icon { display: none; }
.site-nav.scrolled .nav-logo img { height: 34px; }
/* Use screen blend to strip white bg from logo on dark nav, multiply on light */
.site-nav.dark .nav-logo img { mix-blend-mode: screen; filter: brightness(1.05); }
.site-nav.light .nav-logo img { mix-blend-mode: multiply; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 13px; letter-spacing: 0.04em;
  font-weight: 500; transition: color 0.2s; position: relative; padding-bottom: 2px;
}
.site-nav.dark .nav-links a { color: rgba(255,255,255,0.55); }
.site-nav.dark .nav-links a:hover { color: #fff; }
.site-nav.light .nav-links a { color: var(--muted-light); }
.site-nav.light .nav-links a:hover { color: var(--ink); }
/* Underline indicator for active/hover */
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold); transform: scaleX(0);
  transition: transform 0.25s ease; transform-origin: left;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active:not(.nav-cta)::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold) !important; }

.nav-cta {
  padding: 10px 22px; border-radius: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  text-decoration: none; transition: all 0.22s;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(184,135,46,0.3);
  white-space: nowrap;
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--gold-light), #E8C97A);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184,135,46,0.4);
}

/* Hamburger — animated to X */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 6px; width: 36px; height: 36px; border-radius: 6px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.07); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
.site-nav.dark .nav-hamburger span { background: rgba(255,255,255,0.8); }
.site-nav.light .nav-hamburger span { background: var(--ink); }
/* Open state */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.nav-mobile-menu {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  z-index: 199; padding: 24px 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-direction: column; gap: 4px;
  animation: menuSlide 0.25s ease;
}
.nav-mobile-menu.open { display: flex; }
@keyframes menuSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.nav-dark-menu { background: rgba(6,8,9,0.97); backdrop-filter: blur(20px); }
.nav-light-menu { background: rgba(250,247,242,0.98); backdrop-filter: blur(20px); }
.nav-mobile-menu a {
  font-size: 16px; font-weight: 500; text-decoration: none;
  padding: 13px 12px; border-radius: 8px; letter-spacing: 0.02em;
  transition: background 0.18s, color 0.18s;
}
.nav-dark-menu a { color: rgba(255,255,255,0.75); }
.nav-dark-menu a:hover, .nav-dark-menu a.active { color: var(--gold); background: rgba(184,135,46,0.08); }
.nav-light-menu a { color: var(--ink); }
.nav-light-menu a:hover, .nav-light-menu a.active { color: var(--gold); background: rgba(184,135,46,0.07); }
.nav-mobile-menu .mobile-cta {
  margin-top: 12px; text-align: center; padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff !important; border-radius: 8px; font-weight: 600;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block; text-decoration: none; border-radius: 6px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.22s cubic-bezier(0.16,1,0.3,1); cursor: pointer; border: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #C9952F);
  color: #fff; padding: 15px 38px;
  box-shadow: 0 4px 20px rgba(184,135,46,0.25);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), #D4A84B);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(184,135,46,0.35);
}
.btn-gold:active { transform: translateY(0); }
.btn-outline-dark {
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.85);
  padding: 14px 36px; background: rgba(255,255,255,0.04);
}
.btn-outline-dark:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(184,135,46,0.06);
}
.btn-outline-light {
  border: 1px solid rgba(0,0,0,0.16); color: var(--ink);
  padding: 14px 36px; background: rgba(0,0,0,0.02);
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); background: rgba(184,135,46,0.04); }

/* ── SECTION LABELS ── */
.label-dark {
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--blue-bright); display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.label-dark::before { content: ''; width: 24px; height: 1px; background: var(--blue-bright); }
.label-light {
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.label-light::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

/* ── HEADINGS ── */
.display { font-family: 'Cormorant Garamond', serif; font-weight: 700; line-height: 1.04; }
.display em { font-style: italic; color: var(--gold); }
.display-dark { color: #fff; }
.display-light { color: var(--ink); }

/* ── FOOTER ── */
.site-footer {
  padding: 64px 60px 44px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, #111820 0%, var(--ink) 100%);
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,135,46,0.3), transparent);
}
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 52px; align-items: start; }
.footer-brand { }
.footer-brand img { height: 38px; width: auto; mix-blend-mode: screen; margin-bottom: 16px; display: block; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.72; max-width: 230px; }
.footer-col h4 {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 18px; font-weight: 600;
}
.footer-col a {
  display: block; font-size: 13px; color: rgba(255,255,255,0.45);
  text-decoration: none; margin-bottom: 11px; transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover { color: var(--gold-light); padding-left: 3px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  font-size: 12px; color: rgba(255,255,255,0.25); text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--gold-light); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Reveal: fade up default */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
/* Reveal from left */
.reveal-left {
  opacity: 0; transform: translateX(-28px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
/* Reveal from right */
.reveal-right {
  opacity: 0; transform: translateX(28px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
/* Scale up */
.reveal-scale {
  opacity: 0; transform: scale(0.94);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1; transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Focus ring for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --nav-height: 64px; }
  .site-nav { padding: 0 16px; height: var(--nav-height); background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .site-nav.scrolled { background: rgba(6,8,9,0.92) !important; backdrop-filter: blur(20px) !important; -webkit-backdrop-filter: blur(20px) !important; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  /* On mobile: show icon-only logo, hide full logo */
  .nav-logo .logo-full { display: none; }
  .nav-logo .logo-icon { display: block; height: 36px; width: auto; }
  /* Move Sign In / avatar button right next to hamburger */
  .nav-right { gap: 8px; }
  .nav-right > .nav-cta:not(#nav-avatar-btn) { display: none; }
  /* Avatar and signin sit right of links, hamburger is last */
  #nav-signin-btn { font-size: 12px; padding: 6px 12px; }
  .site-footer { padding: 48px 24px 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 16px; }

}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
