/* ============================================
   Empowered Retirement Lifestyle Portal
   Main Stylesheet
   ============================================ */

:root {
  --primary: #1e4a6b;
  --primary-light: #2d6a8f;
  --accent: #e8a838;
  --accent-light: #f2c96b;
  --bg-light: #f7f9fc;
  --bg-white: #ffffff;
  --text-dark: #1a2b3c;
  --text-muted: #5a6c7d;
  --border-light: #dce4ec;
  --shadow-sm: 0 2px 8px rgba(30, 74, 107, 0.08);
  --shadow-md: 0 6px 24px rgba(30, 74, 107, 0.12);
  --shadow-lg: 0 12px 40px rgba(30, 74, 107, 0.16);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  padding: 140px 24px 80px;
  background: linear-gradient(160deg, #eef4fa 0%, #f7f9fc 50%, #fdf8ef 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-content h1 .highlight {
  color: var(--accent);
  position: relative;
}

.hero-content h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(232, 168, 56, 0.2);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(30, 74, 107, 0.25);
}

.hero-cta:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30, 74, 107, 0.3);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg {
  width: 100%;
  max-width: 480px;
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--primary);
  padding: 48px 24px;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item .stat-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* ---- SECTION COMMON ---- */
.section {
  padding: 88px 24px;
}

.section-alt {
  background: var(--bg-light);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ---- CARD GRID ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card-icon.blue {
  background: rgba(30, 74, 107, 0.1);
  color: var(--primary);
}

.card-icon.gold {
  background: rgba(232, 168, 56, 0.12);
  color: var(--accent);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- CONTENT SECTIONS ---- */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.content-text h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  letter-spacing: -0.4px;
}

.content-text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.content-text ul {
  list-style: none;
  margin-top: 20px;
}

.content-text ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.98rem;
  color: var(--text-dark);
}

.content-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.content-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-svg {
  width: 100%;
  max-width: 420px;
}

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- DISCLAIMER BOX ---- */
.disclaimer-box {
  background: #fff8e6;
  border: 1px solid #f0dca0;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 48px;
}

.disclaimer-box p {
  font-size: 0.88rem;
  color: #6b5a2e;
  line-height: 1.65;
  margin: 0;
}

.disclaimer-box strong {
  color: #4a3d1a;
}

/* ---- FOOTER ---- */
.site-footer {
  background: #12283a;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 360px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.82rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: var(--accent-light);
}

/* ---- LEGAL PAGE ---- */
.legal-page {
  padding: 140px 24px 80px;
  min-height: 100vh;
}

.legal-inner {
  max-width: 820px;
  margin: 0 auto;
}

.legal-inner h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.legal-inner .last-updated {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.legal-inner h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 36px 0 14px;
}

.legal-inner h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 24px 0 10px;
}

.legal-inner p {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.75;
}

.legal-inner ul {
  margin: 12px 0 20px 24px;
}

.legal-inner ul li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--primary-light);
}

.back-link:hover {
  color: var(--accent);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner,
  .content-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-block.reverse {
    direction: ltr;
  }

  .hero-visual {
    order: -1;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .stats-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 64px 20px;
  }

  .hero {
    padding: 120px 20px 64px;
  }
}