/* ===== David Life Group — Brand System ===== */
:root {
  --navy: #0B1D3A;
  --navy-2: #0E2447;
  --navy-3: #122a52;
  --gold: #C9A84C;
  --gold-2: #E0C26B;
  --white: #FFFFFF;
  --text: #E8EAF0;
  --muted: #9AA3B5;
  --border: rgba(255,255,255,0.08);
  --card: rgba(255,255,255,0.03);
  --card-2: rgba(255,255,255,0.06);
  --success: #4ade80;
  --maxw: 1200px;
  --radius: 14px;
  --shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
  --shadow-gold: 0 10px 40px -10px rgba(201,168,76,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; color: var(--white); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h4 { font-size: 1.05rem; }
p { color: var(--text); }
.muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 10px; font-weight: 600; font-size: .95rem;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--card-2); border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: .6rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1.05rem 1.85rem; font-size: 1rem; }

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,29,58,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.site-header.scrolled { background: rgba(11,29,58,.95); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; }

.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gold); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { font-weight: 800; font-size: 1.25rem; color: var(--white); letter-spacing: -.02em; }
.brand-dot { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { font-size: .92rem; color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { color: var(--navy) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: transform .2s; }

@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--navy-2);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem; max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
    align-items: stretch;
  }
  .nav-links.open { max-height: 500px; padding: 1rem 1.5rem 1.5rem; }
  .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; margin-top: .75rem; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: flex; }
}

/* ===== Sections ===== */
section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }
.section-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid rgba(201,168,76,.3); background: rgba(201,168,76,.08);
  color: var(--gold); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 1.5rem;
}
.section-tag::before { content:''; width:6px; height:6px; border-radius:50%; background: var(--gold); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; }

/* ===== Hero ===== */
.hero {
  position: relative; padding: 5rem 0 6rem; overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(201,168,76,.08), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(18,42,82,.6), transparent 60%),
    var(--navy);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.hero h1 span.text-gold { color: var(--gold); }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 540px; margin: 1.5rem 0 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem 1.5rem; margin-top: 2.5rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); }
.hero-trust .check { color: var(--gold); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding: 3rem 0 4rem; }
}

/* ===== Nexus Deal Engine Card (animated) ===== */
.nexus-card {
  background: linear-gradient(160deg, var(--navy-2), var(--navy-3));
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 18px; padding: 1.75rem;
  box-shadow: var(--shadow), 0 0 60px -20px rgba(201,168,76,.2);
}
.nexus-label { font-size: .7rem; color: var(--gold); letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }
.nexus-head { display: flex; justify-content: space-between; align-items: flex-start; margin-top: .75rem; gap: 1rem; }
.nexus-addr h4 { font-size: 1.05rem; margin-bottom: .15rem; transition: opacity .3s; }
.nexus-addr p { font-size: .82rem; color: var(--muted); transition: opacity .3s; }
.nexus-tag {
  font-size: .7rem; font-weight: 700; padding: .35rem .65rem; border-radius: 999px;
  background: rgba(74,222,128,.12); color: var(--success); border: 1px solid rgba(74,222,128,.3);
  white-space: nowrap; transition: opacity .3s;
}
.nexus-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.25rem 0 .75rem; }
.nexus-metric {
  background: rgba(0,0,0,.25); border: 1px solid var(--border);
  border-radius: 10px; padding: .85rem;
}
.nexus-metric .k { font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.nexus-metric .v { font-size: 1.4rem; font-weight: 800; color: var(--gold); margin-top: .35rem; transition: opacity .3s; }
.nexus-bars { display: flex; gap: .5rem; margin-top: .5rem; }
.nexus-bars .bar { flex:1; height: 3px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.nexus-bars .bar.active { background: var(--gold); }
.nexus-foot { font-size: .75rem; color: var(--muted); margin-top: 1rem; }

/* ===== Cards ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: transform .2s, border-color .2s, background .2s;
}
.card:hover { border-color: rgba(201,168,76,.4); transform: translateY(-3px); background: var(--card-2); }
.card .icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(201,168,76,.12); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .65rem; }
.card p { color: var(--muted); font-size: .94rem; }
.card ul { margin-top: 1rem; }
.card ul li { padding: .35rem 0; padding-left: 1.5rem; font-size: .9rem; color: var(--muted); position: relative; }
.card ul li::before {
  content: ''; position: absolute; left: 0; top: .65rem; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
}

/* ===== Pricing ===== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 2rem; position: relative;
}
.price-card.popular {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(201,168,76,.08), var(--card));
  box-shadow: var(--shadow-gold);
  transform: translateY(-8px);
}
@media (max-width: 900px){ .price-card.popular { transform: none; } }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy);
  padding: .35rem 1rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
}
.price-card h3 { color: var(--gold); }
.price-amount { font-size: 2.4rem; font-weight: 800; color: var(--white); margin: 1rem 0 .25rem; }
.price-amount small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.price-setup { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.price-card ul { margin-top: 1rem; }
.price-card ul li { padding: .55rem 0; padding-left: 1.75rem; font-size: .92rem; color: var(--text); position: relative; }
.price-card ul li::before {
  content: '✓'; position: absolute; left: 0; top: .55rem; color: var(--gold); font-weight: 700;
}
.price-card .btn { margin-top: 1.75rem; width: 100%; }

/* ===== Stats / Metrics ===== */
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 700px) { .metrics { grid-template-columns: 1fr; } }
.metric {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
}
.metric .v { font-size: 2.2rem; font-weight: 800; color: var(--gold); }
.metric .k { font-size: .85rem; color: var(--muted); margin-top: .35rem; }

/* ===== FAQ Accordion ===== */
.faq-item {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: .85rem;
  background: var(--card);
}
.faq-q {
  width: 100%; text-align: left; padding: 1.25rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-weight: 600; color: var(--white); font-size: 1rem;
}
.faq-q:hover { background: var(--card-2); }
.faq-q .plus { color: var(--gold); font-size: 1.5rem; transition: transform .25s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 1.5rem; color: var(--muted); }
.faq-item.open .faq-a { max-height: 400px; padding: 0 1.5rem 1.5rem; }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(0,0,0,.25); border: 1px solid var(--border);
  border-radius: 10px; padding: .85rem 1rem; color: var(--white);
  font-family: inherit; font-size: .95rem; transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.form-status {
  margin-top: 1rem; padding: 1rem; border-radius: 10px; font-size: .9rem;
}
.form-status.ok { background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.3); color: var(--success); }
.form-status.err { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #f87171; }

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(0deg, #08152b, var(--navy));
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem; margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-blurb { color: var(--muted); font-size: .92rem; max-width: 380px; }
.footer-loc { color: var(--muted); font-size: .85rem; margin-top: 1rem; }
.footer-loc a { color: var(--gold); }
.site-footer h4 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.site-footer ul li { padding: .35rem 0; }
.site-footer ul li a { color: var(--muted); font-size: .92rem; transition: color .15s; }
.site-footer ul li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; margin-top: 3rem; border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--muted);
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; } }

/* ===== Page header ===== */
.page-hero {
  padding: 5rem 0 3rem; text-align: center;
  background: radial-gradient(ellipse at top, rgba(201,168,76,.06), transparent 60%), var(--navy);
}
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 1.25rem auto 0; }

/* ===== Industries / vertical cards ===== */
.industry-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; transition: all .2s;
}
.industry-card:hover { border-color: var(--gold); }
.industry-card .icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(201,168,76,.12); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.industry-card h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.industry-card .headline { color: var(--gold); font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
.industry-card h5 { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 1rem 0 .5rem; }
.industry-card .price { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--gold); font-weight: 700; font-size: .92rem; }

/* ===== Case study ===== */
.case-study {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 2rem; margin-bottom: 2rem;
}
.case-study .badge {
  display: inline-block; padding: .35rem .75rem; border-radius: 999px;
  background: rgba(201,168,76,.12); color: var(--gold); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem;
}
.case-study h3 { margin-bottom: 1.25rem; }
.case-study .cs-section { margin-top: 1.25rem; }
.case-study .cs-section h5 { color: var(--gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .5rem; }
.case-study .cs-results { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1.5rem 0; }
@media (max-width: 700px) { .case-study .cs-results { grid-template-columns: 1fr; } }
.case-study .cs-results .metric { background: rgba(0,0,0,.2); }
.case-study blockquote {
  border-left: 3px solid var(--gold); padding: 1rem 1.25rem; margin-top: 1.5rem;
  font-style: italic; color: var(--text); background: rgba(201,168,76,.04);
}
.case-study blockquote cite { display: block; margin-top: .5rem; font-style: normal; color: var(--muted); font-size: .85rem; }

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 720px; margin: 3rem auto 0; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -2rem; top: .35rem; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 4px solid var(--navy); }
.timeline-year { color: var(--gold); font-weight: 700; font-size: .85rem; }
.timeline-item h3 { margin: .25rem 0 .5rem; font-size: 1.15rem; }
.timeline-item p { color: var(--muted); font-size: .92rem; }

/* ===== Blog cards ===== */
.blog-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; transition: all .2s;
}
.blog-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.blog-card .meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--muted); margin-bottom: .75rem; }
.blog-card .meta .cat { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: .65rem; }
.blog-card p { color: var(--muted); font-size: .9rem; }
.blog-card.featured { grid-column: 1 / -1; background: linear-gradient(160deg, rgba(201,168,76,.06), var(--card)); border-color: rgba(201,168,76,.3); }
.blog-card.featured h3 { font-size: 1.6rem; }

/* ===== Misc ===== */
.divider { height: 1px; background: var(--border); margin: 3rem 0; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; align-items: center; padding: 2rem 0; border-top: 1px solid var(--border); }
.partner-row span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.partner-row .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; width: 100%; text-align: center; margin-bottom: .5rem; }

.cred-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.cred-badges span { background: rgba(201,168,76,.1); color: var(--gold); border: 1px solid rgba(201,168,76,.25); padding: .35rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Process steps ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .process-grid { grid-template-columns: 1fr; } }
.process-step .num { font-size: 2.5rem; font-weight: 800; color: var(--gold); opacity: .35; line-height: 1; margin-bottom: .5rem; }
.process-step h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.process-step p { color: var(--muted); font-size: .9rem; }
/* ===== Logo Size Fix ===== */
.brand-logo {
  height: 40px !important;
  width: auto !important;
  max-width: none !important;
}