/* ============================================================
   DESIGN TOKENS — Aman Bharmota | Spalk Real Estate
   Black & Gold editorial luxury direction
   (jolenelangelle.com motion + layout / black-gold material palette)
   ============================================================ */

:root {
  /* ---- Color: deep black ground, ink charcoal surfaces, gold accents ---- */
  --color-ivory: #0B0B0C;          /* page background — near-black */
  --color-paper: #161616;          /* card surfaces — raised black panel */
  --color-charcoal: #F5EFE0;       /* primary text / ink — warm off-white on black */
  --color-charcoal-soft: #B9B2A2;  /* secondary text — warm grey */
  --color-olive: #C9A227;          /* primary accent action color (was olive, now deep gold) */
  --color-bronze: #D4AF37;         /* signature gold — classic metallic gold */
  --color-bronze-light: #F1D578;   /* lighter gold for hovers/highlights/shimmer */
  --color-gold-deep: #8A6A1A;      /* deep gold for shadows/gradients */
  --color-hairline: #2A2A28;       /* dividers, borders on dark ground */
  --color-hairline-dark: rgba(212,175,55,0.25);
  --color-overlay-dark: rgba(0, 0, 0, 0.65);
  --color-black: #000000;
  --color-surface-raised: #1D1D1B; /* slightly lighter black panel */

  /* ---- Type families ---- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Type scale ---- */
  --text-xs: 0.75rem;     /* 12px - eyebrow/caption */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 2rem;       /* 32px */
  --text-3xl: 2.75rem;    /* 44px */
  --text-4xl: 3.75rem;    /* 60px */
  --text-5xl: 5rem;       /* 80px */

  /* ---- Spacing ---- */
  --space-section: clamp(5rem, 10vw, 9rem);
  --space-page-x: clamp(1.5rem, 6vw, 6rem);
  --max-width: 1400px;
  --max-width-text: 680px;

  /* ---- Motion ---- */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-reveal: 800ms;
}

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

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-ivory);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, select, textarea { font-family: inherit; font-size: var(--text-base); }

/* ---- Focus visibility ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-bronze);
  outline-offset: 3px;
}

::selection {
  background: var(--color-bronze);
  color: var(--color-black);
}

/* ---- Typography utility classes ---- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-bronze);
  font-weight: 600;
}

.eyebrow-shimmer {
  background: linear-gradient(100deg, var(--color-bronze) 30%, var(--color-bronze-light) 50%, var(--color-bronze) 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerSweep 5s linear infinite;
}

.display-1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-4xl);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.display-3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.2;
}

.body-lg {
  font-size: var(--text-lg);
  color: var(--color-charcoal-soft);
  line-height: 1.7;
}

.statement {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.45;
  color: var(--color-charcoal);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.4s var(--ease-premium);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-bronze);
  color: var(--color-black);
}
.btn-primary:hover {
  background: var(--color-bronze-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(212,175,55,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-hairline-dark);
}
.btn-outline:hover {
  background: rgba(212,175,55,0.1);
  border-color: var(--color-bronze);
}

.btn-dark-outline {
  background: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-bronze);
}
.btn-dark-outline:hover {
  background: var(--color-bronze);
  color: var(--color-black);
}

.btn-bronze {
  background: var(--color-bronze);
  color: var(--color-black);
}
.btn-bronze:hover {
  background: var(--color-bronze-light);
  transform: translateY(-2px);
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity var(--duration-reveal) var(--ease-premium),
              transform var(--duration-reveal) var(--ease-premium);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hairline divider ---- */
.hr {
  border: none;
  border-top: 1px solid var(--color-hairline);
}

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space-page-x);
  padding-right: var(--space-page-x);
}

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-ivory);
}
::-webkit-scrollbar-thumb {
  background: var(--color-hairline);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-bronze);
}

/* ---- Favorite Icon Utilities ---- */
.btn-fav {
  background: rgba(11, 11, 12, 0.75);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-hairline-dark);
  cursor: pointer;
  transition: all 0.3s var(--ease-premium);
  color: var(--color-charcoal-soft);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
.btn-fav:hover {
  transform: scale(1.1);
  background: var(--color-black);
  color: var(--color-bronze-light);
  border-color: var(--color-bronze);
}
.btn-fav.is-favorited {
  color: var(--color-bronze-light);
  background: var(--color-black);
  border-color: var(--color-bronze);
}

/* ============================================================
   SOCIAL ICONS — high-visibility gold badges
   ============================================================ */

.social-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.social-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--color-bronze);
  color: var(--color-bronze);
  background: rgba(212,175,55,0.08);
  transition: transform 0.4s var(--ease-premium), background 0.4s var(--ease-premium), color 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium);
  flex-shrink: 0;
}

.social-badge svg { width: 16px; height: 16px; position: relative; z-index: 1; }

.social-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-bronze);
  transform: scale(0);
  transition: transform 0.4s var(--ease-premium);
  z-index: 0;
}

.social-badge:hover {
  color: var(--color-black);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px -4px rgba(212,175,55,0.55);
}

.social-badge:hover::before {
  transform: scale(1);
}

.social-badge.is-sm {
  width: 30px;
  height: 30px;
}
.social-badge.is-sm svg { width: 13px; height: 13px; }

/* Slow ambient pulse so the social row never goes unnoticed */
@keyframes goldPulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.0); }
  50% { box-shadow: 0 0 0 6px rgba(212,175,55,0.12); }
}
.social-badge.is-pulsing {
  animation: goldPulseRing 3.2s ease-in-out infinite;
}

/* ============================================================
   SHARED MOTION UTILITIES
   ============================================================ */

@keyframes shimmerSweep {
  0% { background-position: 0% 0%; }
  100% { background-position: 250% 0%; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes gentleGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.float-soft {
  animation: floatY 5s ease-in-out infinite;
}

.glow-soft {
  animation: gentleGlow 3.5s ease-in-out infinite;
}

/* Stagger helper — pair with .reveal; sets a per-item transition-delay */
.reveal[data-stagger="1"] { transition-delay: 0.08s; }
.reveal[data-stagger="2"] { transition-delay: 0.16s; }
.reveal[data-stagger="3"] { transition-delay: 0.24s; }
.reveal[data-stagger="4"] { transition-delay: 0.32s; }
.reveal[data-stagger="5"] { transition-delay: 0.4s; }
.reveal[data-stagger="6"] { transition-delay: 0.48s; }

/* Gold hairline underline-grow link */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--color-bronze);
  transition: width 0.4s var(--ease-premium);
}
.link-underline:hover::after { width: 100%; }

/* Reusable centered section heading wrapper */
.section-heading-center {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ---- Route transition fade (router.js) ---- */
#app {
  opacity: 1;
  transition: opacity 160ms ease;
}
#app.is-route-leaving {
  opacity: 0;
}
#app.is-route-entering {
  opacity: 0;
}

