/* === PROBATE TOOLKIT PRO — SHARED STYLES === */
/* Brand palette: Navy #0F2C4E | Blue #1A6BAE | Teal #1E8A7A | Light #EAF3FB | White #FFFFFF */

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

:root {
  --navy:  #0F2C4E;
  --blue:  #1A6BAE;
  --teal:  #1E8A7A;
  --light: #EAF3FB;
  --white: #FFFFFF;
  --text:  #1A1A2E;
  --muted: #5A6A7A;
  --border:#C8D8E8;
  --radius: 6px;
  --max: 1100px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }

/* === NAV === */
.site-nav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}
.nav-logo { color: var(--white); font-weight: 700; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.nav-logo span { color: #7EC8E3; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.875rem; padding: 8px 12px; border-radius: var(--radius); transition: background 0.15s, color 0.15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-links .has-sub { position: relative; }
.nav-links .has-sub > a::after { content: ' ▾'; font-size: 0.7rem; }
.nav-links .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--navy); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); min-width: 200px; padding: 6px 0; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.nav-links .has-sub:hover .sub-menu { display: block; }
.nav-links .sub-menu a { display: block; padding: 8px 16px; font-size: 0.85rem; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions a { font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.btn-signin { color: rgba(255,255,255,0.8); padding: 6px 12px; border-radius: var(--radius); transition: color 0.15s; }
.btn-signin:hover { color: var(--white); }
.btn-demo { background: var(--teal); color: var(--white) !important; padding: 8px 16px; border-radius: var(--radius); font-weight: 600; transition: background 0.15s; }
.btn-demo:hover { background: #177a6a; }

/* === BUTTONS === */
.btn { display: inline-block; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; transition: all 0.15s; border: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #145a93; }
.btn-secondary { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-secondary:hover { background: var(--blue); color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: #177a6a; }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--light); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* === LAYOUT HELPERS === */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--light); }
.section-navy { background: var(--navy); color: var(--white); }
.section-teal { background: var(--teal); color: var(--white); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 { color: var(--navy); line-height: 1.25; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-teal h1, .section-teal h2, .section-teal h3 { color: var(--white); }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text); margin-bottom: 1rem; }
.section-navy p, .section-teal p { color: rgba(255,255,255,0.85); }
.lead { font-size: 1.1rem; color: var(--muted); line-height: 1.7; }
.section-navy .lead { color: rgba(255,255,255,0.75); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.section-navy .eyebrow { color: #7EC8E3; }

/* === HERO === */
.hero { background: var(--navy); padding: 80px 0 72px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero .lead { color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

/* === TRUST BAR === */
.trust-bar { background: rgba(255,255,255,0.06); border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; }
.trust-bar-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.trust-item { color: rgba(255,255,255,0.65); font-size: 0.8rem; font-weight: 500; }
.trust-sep { color: rgba(255,255,255,0.25); }

/* === CARDS === */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 28px; }
.card-alt { background: var(--light); border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* === FEATURE ICONS === */
.feature-icon { width: 42px; height: 42px; background: var(--light); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.3rem; }
.section-alt .feature-icon { background: var(--white); }

/* === CHECK LIST === */
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 6px 0 6px 28px; position: relative; font-size: 0.95rem; color: var(--text); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.section-navy .check-list li { color: rgba(255,255,255,0.85); }
.section-navy .check-list li::before { color: #7EC8E3; }

/* === TWO-COL === */
.two-col { display: grid; gap: 48px; align-items: start; }
.two-col-equal { grid-template-columns: 1fr 1fr; }
.two-col-wide { grid-template-columns: 3fr 2fr; }
@media (max-width: 768px) { .two-col-equal, .two-col-wide { grid-template-columns: 1fr; } }

/* === STAGES === */
.stage { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--border); }
.stage-num { width: 48px; height: 48px; background: var(--navy); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; margin-top: 4px; }
.stage h3 { margin-bottom: 12px; }

/* === TABLE === */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; font-weight: 600; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--light); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

/* === PRICING BLOCK === */
.price-box { background: var(--navy); color: var(--white); border-radius: 12px; padding: 40px; text-align: center; }
.price-amount { font-size: 3rem; font-weight: 800; color: var(--white); line-height: 1; }
.price-unit { font-size: 1rem; color: rgba(255,255,255,0.7); margin-top: 6px; }
.price-note { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-top: 10px; }
.price-tag { display: inline-block; background: var(--teal); color: var(--white); font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-top: 12px; }

/* === STEPS === */
.steps { list-style: none; counter-reset: steps; }
.steps li { counter-increment: steps; padding: 16px 0 16px 56px; position: relative; border-top: 1px solid var(--border); }
.steps li::before { content: counter(steps); position: absolute; left: 0; top: 14px; width: 34px; height: 34px; background: var(--blue); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.steps strong { display: block; margin-bottom: 4px; color: var(--navy); }

/* === FAQ === */
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 18px 0; font-size: 1rem; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--blue); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 18px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* === CTA BAND === */
.cta-band { background: var(--navy); padding: 64px 0; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 28px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-band .cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-note { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 14px; }

/* === FOOTER === */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .nav-logo { display: inline-block; margin-bottom: 12px; font-size: 1.1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { padding-top: 24px; display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* === FORM === */
.form-grid { display: grid; gap: 20px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.95rem; color: var(--text);
  background: var(--white); transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* === MISC === */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.inline-flex { display: inline-flex; align-items: center; gap: 8px; }
.badge { display: inline-block; background: var(--light); color: var(--navy); font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.badge-teal { background: rgba(30,138,122,0.12); color: var(--teal); }
.badge-navy { background: var(--navy); color: var(--white); }
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.panel-tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.tag-restricted { background: rgba(26,107,174,0.12); color: var(--blue); }
.tag-open { background: rgba(30,138,122,0.12); color: var(--teal); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .section { padding: 48px 0; }
}
