/* ============================================
   JJ WEALTH ADVISORY — RESOURCES / GUIDE STYLES
   Shared by resources.html and resources/*.html
   ============================================ */

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

:root {
  --primary: #0d2d4f;
  --primary-dark: #071d33;
  --primary-light: #1a4975;
  --accent: #c9923a;
  --accent-light: #e8a84a;
  --accent-pale: rgba(201,146,58,0.1);
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #0d2d4f;
  --text-muted: #5c6e82;
  --text-light: #9aaab8;
  --border: #e3e8ef;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(13,45,79,0.07);
  --shadow-md: 0 8px 40px rgba(13,45,79,0.11);
  --shadow-lg: 0 20px 60px rgba(13,45,79,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

/* ===========================
   NAVIGATION (matches index.html)
=========================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition);
}

nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(13,45,79,0.09);
  padding: 0.85rem 2rem;
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }

.nav-logo-icon {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(201,146,58,0.35);
}

.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }

.nav-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700;
  color: #fff;
  transition: color var(--transition);
}
nav.scrolled .nav-logo-name { color: var(--primary); }

.nav-logo-sub {
  font-size: 0.62rem; font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color var(--transition);
}
nav.scrolled .nav-logo-sub { color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }

.nav-links a {
  font-size: 0.875rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
nav.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: #fff !important; }
nav.scrolled .nav-links a:hover { color: var(--primary) !important; }

.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(201,146,58,0.4) !important;
  transition: all var(--transition) !important;
}
.nav-cta:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(201,146,58,0.5) !important;
}
.nav-cta::after { display: none !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all var(--transition);
}
nav.scrolled .hamburger span { background: var(--primary); }

.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--primary);
  z-index: 999;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; color: #fff;
  text-decoration: none; font-weight: 700;
}
.mobile-menu a.cta-mobile {
  background: var(--accent); padding: 0.85rem 2.5rem;
  border-radius: 50px; font-size: 1.1rem;
  font-family: 'Nunito', sans-serif;
}
.mobile-menu-close {
  position: absolute; top: 1.5rem; right: 1.75rem;
  background: none; border: none;
  color: rgba(255,255,255,0.6); font-size: 2rem; cursor: pointer; line-height: 1;
}
.mobile-menu-close:hover { color: #fff; }

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #fff;
  padding: 0.9rem 2rem; border-radius: 50px;
  text-decoration: none; font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.02em;
  border: none; cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 6px 24px rgba(201,146,58,0.42);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(201,146,58,0.52);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.09);
  color: #fff; padding: 0.9rem 2rem; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.22);
  transition: all var(--transition);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.38);
  transform: translateY(-2px);
}

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--primary); padding: 0.85rem 1.9rem; border-radius: 50px;
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  border: 2px solid var(--primary);
  transition: all var(--transition);
}
.btn-outline-dark:hover {
  background: var(--primary); color: #fff;
  transform: translateY(-2px);
}

/* ===========================
   PAGE HERO (dark band)
=========================== */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #071d33 0%, #0d2d4f 45%, #1a4975 100%);
  padding: 9.5rem 2rem 5rem;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
}
.page-hero::after {
  content: '';
  position: absolute; top: -180px; right: -180px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,146,58,0.09) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.page-hero-inner.wide { max-width: 1200px; }

.crumb {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.55); font-size: 0.82rem; font-weight: 600;
  text-decoration: none; margin-bottom: 1.5rem;
  transition: color var(--transition);
}
.crumb:hover { color: var(--accent-light); }

.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(201,146,58,0.14);
  border: 1px solid rgba(201,146,58,0.28);
  color: var(--accent-light);
  padding: 0.4rem 1rem; border-radius: 50px;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700; color: #fff;
  line-height: 1.15; margin-bottom: 1.15rem;
}
.page-hero h1 em { font-style: italic; color: var(--accent-light); }

.page-hero-desc {
  font-size: 1.08rem; color: rgba(255,255,255,0.72);
  max-width: 640px; line-height: 1.72;
}

.page-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.guide-meta {
  display: flex; gap: 1.4rem; flex-wrap: wrap;
  margin-top: 1.5rem;
  color: rgba(255,255,255,0.5); font-size: 0.82rem; font-weight: 600;
}

/* ===========================
   ARTICLE LAYOUT
=========================== */
.article-wrap { max-width: 880px; margin: 0 auto; padding: 4.5rem 2rem 1rem; }

.article-wrap > p, .article-body > p {
  color: var(--text-muted); font-size: 1.02rem;
  line-height: 1.8; margin-bottom: 1.35rem;
}
.article-wrap p strong, .article-body p strong { color: var(--primary); }

.article-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem; font-weight: 700; color: var(--primary);
  line-height: 1.28;
  margin: 3rem 0 1.1rem;
  padding-top: 1rem;
}
.article-wrap h2:first-child { margin-top: 0; padding-top: 0; }
.article-wrap h2 em { font-style: italic; color: var(--accent); }

.article-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700; color: var(--primary);
  margin: 2rem 0 0.7rem;
}

.article-wrap ul, .article-wrap ol { margin: 0 0 1.35rem 1.4rem; }
.article-wrap li {
  color: var(--text-muted); font-size: 1rem;
  line-height: 1.75; margin-bottom: 0.6rem;
}
.article-wrap li strong { color: var(--primary); }
.article-wrap li::marker { color: var(--accent); font-weight: 700; }

.lede {
  font-size: 1.13rem !important;
  color: var(--primary) !important;
  line-height: 1.75 !important;
}

/* Callout boxes */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  margin: 1.9rem 0;
  box-shadow: var(--shadow);
}
.callout-label {
  display: inline-block;
  color: var(--accent); font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.callout p { color: var(--text-muted); font-size: 0.96rem; line-height: 1.72; margin: 0; }
.callout p + p { margin-top: 0.8rem; }
.callout p strong { color: var(--primary); }

.callout.navy {
  background: linear-gradient(135deg, rgba(13,45,79,0.04), rgba(13,45,79,0.08));
  border-left-color: var(--primary);
}
.callout.navy .callout-label { color: var(--primary); }

/* Tables */
.guide-table-wrap { overflow-x: auto; margin: 1.9rem 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.guide-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  font-size: 0.93rem;
  min-width: 480px;
}
.guide-table th {
  background: var(--primary); color: #fff;
  font-weight: 700; text-align: left;
  padding: 0.85rem 1.15rem;
  font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.guide-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted); line-height: 1.55;
  vertical-align: top;
}
.guide-table tr:last-child td { border-bottom: none; }
.guide-table td:first-child { color: var(--primary); font-weight: 700; }
.guide-table tbody tr:nth-child(even) { background: rgba(13,45,79,0.025); }

/* Numbered step blocks */
.step-list { list-style: none; margin: 1.9rem 0 !important; counter-reset: steps; }
.step-list li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem 1.4rem 4.4rem;
  margin-bottom: 0.9rem;
  counter-increment: steps;
  box-shadow: var(--shadow);
}
.step-list li::before {
  content: counter(steps);
  position: absolute; left: 1.3rem; top: 1.35rem;
  width: 2.1rem; height: 2.1rem;
  background: var(--accent-pale); color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.05rem;
}
.step-list li strong { display: block; color: var(--primary); font-size: 1.02rem; margin-bottom: 0.25rem; }

/* Disclaimer */
.disclaimer-box {
  max-width: 880px; margin: 3.5rem auto 0; padding: 0 2rem;
}
.disclaimer-box p {
  background: rgba(13,45,79,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  color: var(--text-light); font-size: 0.8rem; line-height: 1.65;
}

/* ===========================
   GUIDE CTA BAND
=========================== */
.guide-cta {
  max-width: 880px; margin: 3rem auto 5rem; padding: 0 2rem;
}
.guide-cta-card {
  background: linear-gradient(140deg, #0d2d4f 0%, #1a4975 100%);
  border-radius: 24px; padding: 3rem;
  position: relative; overflow: hidden;
  text-align: center;
}
.guide-cta-card::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,146,58,0.1) 0%, transparent 65%);
}
.guide-cta-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 700;
  color: #fff; margin-bottom: 0.8rem; line-height: 1.25;
  position: relative;
}
.guide-cta-card h2 em { font-style: italic; color: var(--accent-light); }
.guide-cta-card p {
  color: rgba(255,255,255,0.68); font-size: 0.98rem;
  line-height: 1.7; max-width: 540px; margin: 0 auto 1.9rem;
  position: relative;
}
.guide-cta-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; position: relative; }
.guide-cta-note { color: rgba(255,255,255,0.4) !important; font-size: 0.78rem !important; margin: 1.1rem auto 0 !important; }

/* ===========================
   HUB: GUIDE CARDS
=========================== */
.hub-section { max-width: 1200px; margin: 0 auto; padding: 4.5rem 2rem 2rem; }

.hub-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700;
  color: var(--primary); line-height: 1.25; margin-bottom: 0.8rem;
}
.hub-section-title em { font-style: italic; color: var(--accent); }
.hub-section-desc { color: var(--text-muted); font-size: 1.02rem; max-width: 640px; line-height: 1.72; margin-bottom: 2.8rem; }

.guides-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

.guide-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 2rem; border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
}
.guide-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.guide-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md);
  border-color: transparent;
}
.guide-card:hover::before { transform: scaleX(1); }

.guide-card-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem; font-weight: 700;
  color: rgba(201,146,58,0.22); line-height: 1;
  position: absolute; top: 1.4rem; right: 1.6rem;
}
.guide-card-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(13,45,79,0.05), rgba(13,45,79,0.09));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem; margin-bottom: 1.2rem;
  transition: background var(--transition);
}
.guide-card:hover .guide-card-icon {
  background: linear-gradient(135deg, rgba(201,146,58,0.1), rgba(201,146,58,0.17));
}
.guide-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem; font-weight: 700;
  color: var(--primary); margin-bottom: 0.65rem; line-height: 1.3;
}
.guide-card-desc {
  font-size: 0.89rem; color: var(--text-muted); line-height: 1.66;
  flex-grow: 1;
}
.guide-card-links {
  display: flex; align-items: center; gap: 1.25rem;
  margin-top: 1.25rem;
}
.guide-card-read {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--accent); font-weight: 700; font-size: 0.84rem;
  text-decoration: none; transition: gap var(--transition);
}
.guide-card-read:hover { gap: 0.7rem; }
.guide-card-pdf {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--text-light); font-weight: 700; font-size: 0.8rem;
  text-decoration: none; transition: color var(--transition);
}
.guide-card-pdf:hover { color: var(--primary); }

/* PDF download pill on guide pages */
.pdf-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.09);
  color: #fff; padding: 0.9rem 2rem; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.22);
  transition: all var(--transition);
}
.pdf-pill:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.38);
  transform: translateY(-2px);
}

/* Next-guide footer link */
.next-guide {
  max-width: 880px; margin: 0 auto; padding: 0 2rem 4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.next-guide a {
  color: var(--primary); font-weight: 700; font-size: 0.92rem;
  text-decoration: none; transition: color var(--transition);
}
.next-guide a:hover { color: var(--accent); }
.next-guide span { color: var(--text-light); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 0.3rem; }

/* Reveal animations */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* ===========================
   FOOTER (matches index.html)
=========================== */
footer { background: #050e1b; padding: 4rem 2rem 2rem; }

.footer-top {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 0.35rem;
}
.footer-brand-sub {
  color: rgba(255,255,255,0.35); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.footer-disclaimer {
  color: rgba(255,255,255,0.25); font-size: 0.7rem; line-height: 1.65; max-width: 300px;
}
.footer-col-hd {
  color: rgba(255,255,255,0.65); font-size: 0.76rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a {
  color: rgba(255,255,255,0.42); text-decoration: none; font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
  max-width: 1200px; margin: 2rem auto 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255,255,255,0.28); font-size: 0.78rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.28); font-size: 0.78rem;
  text-decoration: none; transition: color var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.55); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  nav.scrolled { padding: 0.75rem 1.25rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .page-hero { padding: 7.5rem 1.25rem 3.5rem; }
  .article-wrap { padding: 3rem 1.25rem 1rem; }
  .hub-section { padding: 3rem 1.25rem 1rem; }
  .guides-grid { grid-template-columns: 1fr; }
  .guide-cta { padding: 0 1.25rem; margin-bottom: 3.5rem; }
  .guide-cta-card { padding: 2.25rem 1.5rem; }
  .disclaimer-box, .next-guide { padding-left: 1.25rem; padding-right: 1.25rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
