/* ClearValue Advisory — shared marketing site styles */

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

:root {
  --navy: #0a1628;
  --navy-2: #122236;
  --navy-3: #1a2f45;
  --gold: #c9a84c;
  --gold-2: #e8c76a;
  --gold-soft: #fef9ee;
  --slate: #374151;
  --slate-2: #6b7280;
  --slate-3: #9ca3af;
  --off: #f8fafc;
  --border: #e5e7eb;
  --green: #065f46;
  --green-soft: #d1fae5;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(10,22,40,.06);
  --shadow-md: 0 6px 18px rgba(10,22,40,.08);
  --shadow-lg: 0 18px 48px rgba(10,22,40,.14);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--slate);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.2; font-weight: 400; }
h1 { font-size: 48px; letter-spacing: -.01em; }
h2 { font-size: 34px; letter-spacing: -.005em; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin: 0 0 14px; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* -------- Header -------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; height: 70px; gap: 28px; }

.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--navy);
  letter-spacing: .01em;
  white-space: nowrap;
}
.logo span { color: var(--gold); }

.nav-main { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-main a {
  font-size: 14px; color: var(--slate); padding: 8px 4px;
  border-bottom: 2px solid transparent;
}
.nav-main a:hover { color: var(--navy); border-bottom-color: var(--gold); }

.nav-dropdown { position: relative; }
.nav-dropdown > .nav-trigger {
  font-size: 14px; color: var(--slate); padding: 8px 4px; cursor: pointer;
  background: none; border: none; font-family: inherit; display: inline-flex; align-items: center; gap: 5px;
  border-bottom: 2px solid transparent;
}
.nav-dropdown > .nav-trigger:hover { color: var(--navy); border-bottom-color: var(--gold); }
.nav-dropdown > .nav-trigger::after { content: "▾"; font-size: 10px; color: var(--slate-2); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-4px); transition: all .15s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 6px; font-size: 14px;
  color: var(--slate); border-bottom: none;
}
.nav-dropdown-menu a:hover { background: var(--off); color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; transition: all .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-2); color: var(--navy); border-color: var(--gold-2); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-3); color: var(--white); border-color: var(--navy-3); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { background: var(--off); color: var(--navy); border-color: var(--gold); }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 10px; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto; color: var(--navy);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-main, .nav-cta { display: none; }
  .site-header.open .nav-main,
  .site-header.open .nav-cta {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 14px 20px; gap: 4px; margin: 0;
  }
  .site-header.open .nav-main a,
  .site-header.open .nav-dropdown > .nav-trigger { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .site-header.open .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 8px 14px;
  }
  .site-header.open .nav-cta { top: auto; padding-top: 0; flex-direction: row; }
}

/* -------- Hero -------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.18), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  color: var(--white); font-size: 56px; max-width: 820px;
  margin-bottom: 20px;
}
.hero .lede {
  font-size: 19px; color: rgba(255,255,255,.84); max-width: 720px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-trustbar {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px; color: rgba(255,255,255,.7);
}
.hero-trustbar strong { color: var(--gold); font-weight: 600; }

@media (max-width: 720px) {
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 36px; }
  .hero .lede { font-size: 17px; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}

/* -------- Sections -------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-off { background: var(--off); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
  margin-bottom: 12px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--slate-2); }

@media (max-width: 720px) {
  .section { padding: 56px 0; }
}

/* -------- Cards / grids -------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(201,168,76,.4); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate-2); }

.step {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--font-serif); font-size: 18px;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--slate-2); margin: 0; }

/* -------- Pricing -------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 920px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.tier {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 36px 30px; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-sm);
}
.tier.featured { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.tier.featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 20px;
}
.tier-name { font-family: var(--font-serif); font-size: 24px; color: var(--navy); margin-bottom: 6px; }
.tier-blurb { font-size: 14px; color: var(--slate-2); margin-bottom: 24px; min-height: 42px; }
.tier-price { font-family: var(--font-serif); font-size: 44px; color: var(--navy); line-height: 1; }
.tier-price small { font-size: 15px; color: var(--slate-2); font-family: var(--font-sans); margin-left: 6px; }
.tier-price-sub { font-size: 13px; color: var(--slate-2); margin-top: 6px; margin-bottom: 24px; }
.tier ul { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.tier ul li {
  padding: 8px 0 8px 26px; position: relative; font-size: 14.5px; color: var(--slate);
  border-bottom: 1px solid var(--border);
}
.tier ul li:last-child { border-bottom: none; }
.tier ul li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; color: var(--gold); font-weight: 700;
}
.tier .btn { width: 100%; }

/* -------- Samples -------- */
.sample-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; display: flex; flex-direction: column;
}
.sample-card .sample-tag {
  display: inline-block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--gold-soft); color: var(--navy); padding: 4px 10px; border-radius: 4px;
  font-weight: 600; margin-bottom: 14px; align-self: flex-start;
}
.sample-card h3 { margin-bottom: 8px; }
.sample-card p { color: var(--slate-2); flex: 1; margin-bottom: 18px; }
.sample-card a.btn { align-self: flex-start; }

/* -------- FAQ -------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 32px 22px 4px; position: relative;
  font-family: var(--font-serif); font-size: 19px; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--gold); font-family: var(--font-sans); font-weight: 300;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 4px 22px; color: var(--slate-2); font-size: 15.5px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* -------- CTA strip -------- */
.cta-strip {
  background: var(--navy); color: var(--white); padding: 64px 0; text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: 14px; }
.cta-strip p { color: rgba(255,255,255,.78); font-size: 17px; max-width: 580px; margin: 0 auto 28px; }

/* -------- Footer -------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 64px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { color: var(--white); }
.footer-brand p { margin-top: 14px; color: rgba(255,255,255,.6); font-size: 13.5px; max-width: 320px; }
.footer-col h4 {
  color: var(--white); font-family: var(--font-sans); font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-contact { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-contact a { color: rgba(255,255,255,.7); }
.footer-contact a:hover { color: var(--gold); }
.footer-contact div { margin-bottom: 8px; }

.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between;
  align-items: center; font-size: 13px; color: rgba(255,255,255,.5);
}
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a { color: rgba(255,255,255,.55); }
.footer-bottom-links a:hover { color: var(--gold); }

/* -------- Auth pages -------- */
.auth-wrap {
  min-height: calc(100vh - 70px);
  display: flex; align-items: center; justify-content: center;
  background: var(--off); padding: 56px 20px;
}
.auth-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 44px 40px; width: 100%; max-width: 460px;
}
.auth-card h1 { font-size: 30px; margin-bottom: 8px; text-align: center; }
.auth-card .auth-sub { text-align: center; color: var(--slate-2); margin-bottom: 28px; font-size: 15px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block; font-size: 13px; color: var(--slate); font-weight: 600;
  margin-bottom: 6px;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="password"] {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: var(--font-sans);
  border: 1px solid var(--border); border-radius: 8px; color: var(--navy);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.18);
}
.form-row .hint { font-size: 12.5px; color: var(--slate-2); margin-top: 5px; }
.form-check {
  display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 22px;
  font-size: 13.5px; color: var(--slate);
}
.form-check input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.form-check label { font-weight: 400; }
.form-error {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
  padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 14px;
  display: none;
}
.form-error.show { display: block; }
.form-success {
  background: var(--green-soft); color: var(--green); border: 1px solid #a7f3d0;
  padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 14px;
  display: none;
}
.form-success.show { display: block; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-foot {
  text-align: center; margin-top: 22px; font-size: 14px; color: var(--slate-2);
}
.auth-foot a { color: var(--gold); font-weight: 600; }
.auth-foot a:hover { color: var(--navy); }

/* -------- Utilities -------- */
.text-center { text-align: center; }
.muted { color: var(--slate-2); }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 28px; }
