/*
  My LifeVault Sub-site CSS
  Extends the shared base styles from the LifeVault reference
  Primary Navy: #0B192C | Secondary: #1E3E62 | Gold: #D4AF37
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-navy:      #0B192C;
  --secondary-navy:    #1E3E62;
  --accent-gold:       #D4AF37;
  --accent-gold-light: #FFE082;
  --lv-teal:           #0e7490;
  --lv-teal-light:     #06b6d4;
  --lv-teal-pale:      #67e8f9;
  --bg-soft:           #F5F7FA;
  --white:             #ffffff;
  --text-dark:         #1C2D37;
  --text-light:        #5A7184;
  --success:           #2E7D32;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium:    0 10px 30px rgba(11, 25, 44, 0.08);
  --shadow-hover:      0 20px 50px rgba(11, 25, 44, 0.18);
  --border-subtle:     rgba(11, 25, 44, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-soft);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVIGATION ── */
header {
  background-color: var(--primary-navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* Space the icon from the wordmark via margin, NOT flex `gap`.
   `gap` would also apply between the "My Life" text node and the
   <span>Vault</span>, rendering the brand name as "My Life Vault". */
.logo img, .logo > i { margin-right: 10px; }

.logo span { color: var(--accent-gold); }

nav ul { display: flex; flex-wrap: wrap; list-style: none; gap: 4px; align-items: center; justify-content: flex-end; }

nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

nav a:hover, nav a.active { color: var(--accent-gold); background: rgba(212,175,55,0.1); }

.nav-back {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-smooth);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}

.nav-back:hover { color: var(--accent-gold); border-color: rgba(212,175,55,0.3); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #0f3460 45%, var(--lv-teal) 100%);
  color: var(--white);
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(212,175,55,0.1) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero h1 span {
  background: linear-gradient(to right, var(--accent-gold-light), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
  border-color: var(--accent-gold);
}

.btn-primary:hover {
  background-color: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background-color: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* ── SECTIONS ── */
.section-title {
  text-align: center;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  background: linear-gradient(to right, var(--lv-teal), var(--lv-teal-light));
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 52px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FEATURE CARDS ── */
.features { max-width: 1280px; margin: 0 auto; padding: 80px 32px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--white);
  padding: 36px 30px;
  border-radius: 18px;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--lv-teal), var(--lv-teal-light));
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(14,116,144,0.08), rgba(6,182,212,0.12));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--lv-teal);
  font-size: 22px;
}

.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--primary-navy); }
.feature-card p { color: var(--text-light); font-size: 14px; line-height: 1.7; }

/* ── SECURITY BANNER ── */
.banner-security {
  background: rgba(46, 125, 50, 0.06);
  border: 1.5px dashed var(--success);
  padding: 20px 24px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.banner-security-icon { color: var(--success); font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.banner-security-text h4 { color: var(--success); font-weight: 700; margin-bottom: 4px; }
.banner-security-text p { font-size: 13.5px; color: var(--text-dark); }

/* ── HELP / CONTENT LAYOUT ── */
.content-wrapper {
  max-width: 1280px;
  margin: 48px auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

.sidebar { position: sticky; top: 88px; height: fit-content; }
.sidebar ul { list-style: none; }

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 10px;
  margin-bottom: 4px;
  transition: var(--transition-smooth);
}

.sidebar a:hover, .sidebar a.active {
  background: var(--white);
  color: var(--primary-navy);
  font-weight: 600;
  box-shadow: var(--shadow-premium);
}

.help-content {
  background: var(--white);
  padding: 48px;
  border-radius: 20px;
  box-shadow: var(--shadow-premium);
}

.help-section { margin-bottom: 56px; scroll-margin-top: 100px; }

.help-section h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-soft);
}

.help-step { margin-bottom: 28px; }

.help-step h3 { font-size: 17px; color: var(--secondary-navy); font-weight: 700; margin-bottom: 10px; }
.help-step p { color: var(--text-light); font-size: 15px; margin-bottom: 16px; }

.screenshot-container {
  text-align: center;
  margin: 20px 0 28px;
  background: var(--bg-soft);
  padding: 16px;
  border-radius: 16px;
  display: inline-block;
  max-width: 100%;
}

.screenshot {
  max-height: 480px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: var(--transition-smooth);
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.screenshot:hover { transform: scale(1.02); }
.screenshot-caption { font-size: 12px; color: var(--text-light); margin-top: 10px; font-style: italic; }

/* ── FORM ── */
.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--primary-navy);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(11,25,44,0.12);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--secondary-navy);
  box-shadow: 0 0 0 3px rgba(30,62,98,0.1);
}

/* ── FOOTER ── */
footer {
  background: linear-gradient(135deg, var(--primary-navy), #0d1f34);
  color: rgba(255,255,255,0.65);
  padding: 48px 32px 28px;
  font-size: 14px;
  margin-top: 80px;
}

.footer-inner { max-width: 1280px; margin: 0 auto; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transition-smooth);
  font-size: 14px;
}

.footer-links a:hover { color: var(--accent-gold); background: rgba(212,175,55,0.1); }

.footer-bottom-text { text-align: center; color: rgba(255,255,255,0.45); font-size: 13px; }

.footer-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 12px;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.footer-back-home:hover { color: var(--accent-gold); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .content-wrapper { grid-template-columns: 1fr; padding: 0 20px; }
  .sidebar { display: none; }
  .help-content { padding: 28px 20px; }
}

@media (max-width: 768px) {
  .nav-container { padding: 12px 20px; flex-wrap: wrap; gap: 10px; justify-content: center; }
  nav { width: 100%; }
  nav ul { justify-content: center; }
  nav a { font-size: 13px; padding: 7px 11px; }
  .hero { padding: 60px 20px; }
  .features { padding: 60px 20px; }
}
