/* ============================================
   DELIBERATE FINANCE — Design System
   ============================================ */

/* --- Tokens --- */
:root {
  --navy: #1B3A5F;
  --navy-deep: #142D4A;
  --charcoal: #2C2C2C;
  --gold: #B89968;
  --gold-light: #C9A96E;
  --gold-dark: #A3854F;
  --cream: #F5F1E8;
  --cream-dark: #EDE7D9;
  --white: #FFFFFF;
  --text-primary: #2C2C2C;
  --text-secondary: #5A5A5A;
  --text-muted: #8A8A8A;
  --border: rgba(0,0,0,0.08);

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --transition: 0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--navy { background: var(--navy); color: var(--cream); }
.section--charcoal { background: var(--charcoal); color: var(--cream); }
.section--white { background: var(--white); }

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(184,153,104,0.15);
  padding: 0 24px;
}
.nav__inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav__logo { height: 36px; width: auto; }
.nav__links { display: flex; gap: 32px; list-style: none; }
.nav__links a {
  color: rgba(245,241,232,0.7); font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  transition: color var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--gold); }
.nav__cta {
  background: var(--gold); color: var(--navy); border: none; border-radius: 6px;
  padding: 10px 22px; font-family: var(--font); font-weight: 700; font-size: 13px;
  letter-spacing: 1px; cursor: pointer; transition: background var(--transition);
  text-decoration: none; display: inline-block;
}
.nav__cta:hover { background: var(--gold-light); color: var(--navy); }

/* Mobile nav toggle */
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px 0; transition: var(--transition); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 100px 24px 80px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(245,241,232,0.02) 59px, rgba(245,241,232,0.02) 60px),
              repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(245,241,232,0.02) 59px, rgba(245,241,232,0.02) 60px);
}
.hero__content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero__badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 4px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 24px;
  border: 1px solid rgba(184,153,104,0.3); padding: 8px 20px; border-radius: 30px;
}
.hero h1 {
  font-size: 48px; font-weight: 900; color: var(--cream); letter-spacing: -0.5px;
  line-height: 1.15; margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 18px; color: rgba(245,241,232,0.65); line-height: 1.8; margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: var(--navy); border: none; border-radius: var(--radius-sm);
  padding: 14px 32px; font-family: var(--font); font-weight: 700; font-size: 15px;
  letter-spacing: 1px; cursor: pointer; transition: all var(--transition);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(184,153,104,0.3); }
.btn-secondary {
  background: transparent; color: var(--cream); border: 1.5px solid rgba(245,241,232,0.25);
  border-radius: var(--radius-sm); padding: 13px 32px; font-family: var(--font);
  font-weight: 600; font-size: 15px; letter-spacing: 1px; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* --- Section Headings --- */
.section__label {
  font-size: 12px; font-weight: 700; letter-spacing: 4px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 12px;
}
.section__title {
  font-size: 36px; font-weight: 900; color: var(--navy); letter-spacing: -0.5px;
  margin-bottom: 16px; line-height: 1.2;
}
.section--navy .section__title, .section--charcoal .section__title { color: var(--cream); }
.section__subtitle {
  font-size: 17px; color: var(--text-secondary); line-height: 1.7; max-width: 600px;
}
.section--navy .section__subtitle { color: rgba(245,241,232,0.6); }
.text-center { text-align: center; }
.text-center .section__subtitle { margin: 0 auto; }

/* --- Video Grid --- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; margin-top: 40px; }
.video-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-card__thumb {
  width: 100%; aspect-ratio: 16/9; background: var(--navy);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card__play {
  position: absolute; width: 56px; height: 56px; background: rgba(184,153,104,0.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.video-card__play::after {
  content: ''; width: 0; height: 0; border-left: 18px solid var(--navy);
  border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px;
}
.video-card__body { padding: 20px 24px; }
.video-card__pillar {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 8px;
}
.video-card__title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.35; }
.video-card__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.video-card__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 1px;
  text-transform: uppercase;
}
.video-card__link:hover { color: var(--gold-dark); }

/* --- Tools/Affiliate Cards --- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.tool-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); border-top: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tool-card__category {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 12px;
}
.tool-card__name { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.tool-card__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.tool-card__cta {
  display: inline-block; background: var(--navy); color: var(--cream); border-radius: var(--radius-sm);
  padding: 10px 22px; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  transition: background var(--transition); text-decoration: none;
}
.tool-card__cta:hover { background: var(--gold); color: var(--navy); }

/* --- Resource Page --- */
.resource-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  padding: 60px 24px; text-align: center;
}
.resource-hero__pillar {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--navy); background: var(--gold); padding: 6px 16px; border-radius: 4px;
  text-transform: uppercase; margin-bottom: 16px;
}
.resource-hero h1 { font-size: 40px; font-weight: 900; color: var(--cream); margin-bottom: 12px; }
.resource-hero p { font-size: 16px; color: rgba(245,241,232,0.6); }

.resource-content { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.resource-content h2 { font-size: 24px; font-weight: 700; color: var(--navy); margin: 40px 0 16px; }
.resource-content p { color: var(--text-secondary); margin-bottom: 16px; }
.resource-content ul { margin: 0 0 20px 20px; color: var(--text-secondary); }
.resource-content li { margin-bottom: 8px; }

.video-embed { width: 100%; max-width: 800px; margin: 40px auto; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.video-embed iframe { width: 100%; height: 100%; border: none; }

.download-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 24px 28px; display: flex; align-items: center; gap: 20px; margin: 20px 0;
  transition: border-color var(--transition);
}
.download-card:hover { border-color: var(--gold); }
.download-card__icon {
  width: 48px; height: 48px; background: rgba(184,153,104,0.12); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 20px;
}
.download-card__info { flex: 1; }
.download-card__name { font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.download-card__meta { font-size: 13px; color: var(--text-muted); }
.download-card__btn {
  background: var(--gold); color: var(--navy); border: none; border-radius: var(--radius-sm);
  padding: 10px 20px; font-family: var(--font); font-weight: 700; font-size: 13px;
  cursor: pointer; transition: background var(--transition); text-decoration: none;
  white-space: nowrap;
}
.download-card__btn:hover { background: var(--gold-light); color: var(--navy); }

/* --- Email Signup --- */
.signup {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  padding: 60px 40px; border-radius: var(--radius); text-align: center;
  margin: 60px 0; position: relative; overflow: hidden;
}
.signup h2 { font-size: 28px; font-weight: 900; color: var(--cream); margin-bottom: 12px; }
.signup p { color: rgba(245,241,232,0.6); margin-bottom: 28px; font-size: 15px; }
.signup__form { display: flex; gap: 12px; justify-content: center; max-width: 480px; margin: 0 auto; }
.signup__input {
  flex: 1; padding: 14px 18px; border: 1.5px solid rgba(245,241,232,0.15);
  border-radius: var(--radius-sm); background: rgba(245,241,232,0.05);
  color: var(--cream); font-family: var(--font); font-size: 15px;
  transition: border-color var(--transition);
}
.signup__input::placeholder { color: rgba(245,241,232,0.35); }
.signup__input:focus { outline: none; border-color: var(--gold); }
.signup__btn {
  background: var(--gold); color: var(--navy); border: none; border-radius: var(--radius-sm);
  padding: 14px 28px; font-family: var(--font); font-weight: 700; font-size: 15px;
  cursor: pointer; transition: background var(--transition); white-space: nowrap;
}
.signup__btn:hover { background: var(--gold-light); }

/* --- Footer --- */
.footer {
  background: var(--charcoal); padding: 60px 24px 40px; color: rgba(245,241,232,0.5);
}
.footer__inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px;
}
.footer__brand p { font-size: 14px; max-width: 300px; line-height: 1.7; margin-top: 16px; }
.footer__links h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 16px;
}
.footer__links ul { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: rgba(245,241,232,0.5); font-size: 14px; }
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  max-width: var(--max-width); margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(245,241,232,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; flex-wrap: wrap; gap: 12px;
}
.footer__disclaimer {
  max-width: var(--max-width); margin: 24px auto 0;
  font-size: 11px; color: rgba(245,241,232,0.3); line-height: 1.7;
  border-top: 1px solid rgba(245,241,232,0.05); padding-top: 20px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero { padding: 60px 24px 50px; }
  .section { padding: 50px 0; }
  .section__title { font-size: 28px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--navy);
    padding: 24px; gap: 20px; border-bottom: 1px solid rgba(184,153,104,0.15);
  }
  .hero__actions { flex-direction: column; align-items: center; }
  .signup__form { flex-direction: column; }
  .footer__inner { flex-direction: column; }
  .video-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .resource-hero h1 { font-size: 28px; }
}
