/* ══════════════════════════════════════════════════════════
   STERLING CREST UNION — home.css
   Theme: Light & Warm · Human-first · IBM Plex · Multi-color
   ══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=IBM+Plex+Serif:ital,wght@0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── 1. DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Primary Brand */
  --navy:         #1a2e4a;
  --navy-mid:     #243c60;
  --navy-light:   #2e4d7a;
  --teal:         #1a8f82;
  --teal-light:   #22b5a5;
  --teal-pale:    #e8f7f5;
  --gold:         #c08a2e;
  --gold-light:   #e0a83e;
  --gold-pale:    #fdf4e3;
  --coral:        #e05c3a;
  --coral-light:  #f07a5a;
  --coral-pale:   #fdf0ec;
  --sage:         #4a7c6e;

  /* Accent Colors (new) */
  --violet:       #7c3aed;
  --violet-light: #9b5dff;
  --violet-pale:  #f3eeff;
  --rose:         #e11d6a;
  --rose-pale:    #fce7f1;
  --amber:        #d97706;
  --amber-pale:   #fff8e8;
  --sky:          #0284c7;
  --sky-pale:     #e0f2fe;

  /* Backgrounds */
  --bg-white:     #ffffff;
  --bg-off:       #f8f6f2;
  --bg-warm:      #f4f0e8;
  --bg-navy:      #1a2e4a;
  --bg-cream:     #fefcf9;
  --bg-teal-pale: #eef9f7;
  --bg-section-2: #f0f4f8;

  /* Text */
  --text-dark:    #111827;
  --text-body:    #374151;
  --text-muted:   #6b7280;
  --text-light:   #9ca3af;
  --text-white:   #ffffff;

  /* Borders */
  --border:       #e5e0d8;
  --border-dark:  #d1c9be;
  --border-navy:  rgba(26,46,74,0.15);

  /* Typography */
  --font-main:    'IBM Plex Sans', sans-serif;
  --font-serif:   'IBM Plex Serif', serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(26,46,74,0.08);
  --shadow-md:   0 6px 24px rgba(26,46,74,0.12);
  --shadow-lg:   0 16px 48px rgba(26,46,74,0.15);
  --shadow-xl:   0 24px 64px rgba(26,46,74,0.2);

  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. RESET & BASE ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-white);
  color: var(--text-body);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
em { font-style: italic; font-family: var(--font-serif); color: var(--navy); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-off); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }
::selection { background: var(--teal-pale); color: var(--navy); }

/* ════════════════════════════════════════════════════════
   SECTION SHARED
   ════════════════════════════════════════════════════════ */
section { padding: 6rem 0; position: relative; }
section.hero { padding: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.section-tag {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal);
  padding: 0.3rem 0.85rem;
  background: var(--teal-pale);
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-tag.navy { color: var(--navy); background: rgba(26,46,74,0.07); }
.section-tag.gold { color: var(--gold); background: var(--gold-pale); }
.section-tag.white { color: #fff; background: rgba(255,255,255,0.15); }
.section-tag.violet { color: var(--violet); background: var(--violet-pale); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600; line-height: 1.18;
  color: var(--navy); margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-title.white { color: #fff; }
.section-title em { color: var(--teal); font-family: var(--font-serif); }

.section-sub {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 560px; font-weight: 400; line-height: 1.75;
}
.section-sub.white { color: rgba(255,255,255,0.78); }

.section-header { margin-bottom: 3.5rem; }

/* Reveal animations */
.reveal-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.revealed { opacity: 1; transform: none; }
.reveal-up.d1 { transition-delay: 0.12s; }
.reveal-up.d2 { transition-delay: 0.24s; }
.reveal-up.d3 { transition-delay: 0.36s; }
.reveal-up.d4 { transition-delay: 0.48s; }


/* ════════════════════════════════════════════════════════
   KEYFRAMES
   ════════════════════════════════════════════════════════ */
@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  40%       { transform: translateY(-6px) scale(1.12); }
  70%       { transform: translateY(-2px) scale(1.04); }
}
@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}
@keyframes iconShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-4px) rotate(-5deg); }
  40%       { transform: translateX(4px) rotate(5deg); }
  60%       { transform: translateX(-3px) rotate(-3deg); }
  80%       { transform: translateX(3px) rotate(3deg); }
}
@keyframes iconWiggle {
  0%, 100% { transform: rotate(0deg); }
  25%       { transform: rotate(-10deg); }
  75%       { transform: rotate(10deg); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes notifFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
@keyframes cardGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(26,143,130,0); }
  50%       { box-shadow: 0 0 32px rgba(26,143,130,0.25); }
}
@keyframes countPop {
  0%   { transform: scale(0.85); opacity:0; }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); opacity:1; }
}
