/* ============================================================
   BizLiabilityGuide — style.css
   Navy #0a1628  |  Gold #c9a84c  |  Off-white #f5f6fa
   ============================================================ */

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

:root {
  --navy:   #0a1628;
  --navy-2: #132040;
  --gold:   #c9a84c;
  --gold-2: #e0be72;
  --white:  #ffffff;
  --off:    #f5f6fa;
  --gray:   #6b7280;
  --border: #e5e7eb;
  --font:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --max-w:  1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: #1f2937;
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -.5px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav a:hover { color: var(--gold); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-align: center;
  padding: .75rem 1.75rem;
  font-size: 1rem;
}
.btn:hover { background: var(--gold-2); color: var(--navy); transform: translateY(-1px); }
.btn--sm { padding: .45rem 1rem; font-size: .85rem; }
.btn--full { width: 100%; margin-top: .5rem; }

/* ── Ad Slots ── */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 90px;
}
.ad-header { padding: .75rem 1.25rem; }
.ad-slot--sidebar { min-height: 250px; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 5rem 1.25rem 4rem;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(201,168,76,.15);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,.4);
  padding: .3rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  max-width: 780px;
  margin: 0 auto 1.25rem;
}

.hero h1 span { color: var(--gold); }

.hero__sub {
  font-size: 1.15rem;
  opacity: .85;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn--outline:hover { background: var(--gold); color: var(--navy); }

/* ── Stats bar ── */
.stats-bar {
  background: var(--navy-2);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.stats-bar .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,.07);
}
.stat:last-child { border-right: none; }
.stat__num { font-size: 1.6rem; font-weight: 800; color: var(--gold); }
.stat__label { font-size: .75rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .5px; }

/* ── Section titles ── */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
}
.section-title p {
  color: var(--gray);
  margin-top: .5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Card grid ── */
.card-section { padding: 4rem 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.12); transform: translateY(-3px); }

.card__badge {
  display: inline-block;
  background: rgba(10,22,40,.07);
  color: var(--navy);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .2rem .6rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

.card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; line-height: 1.4; }

.card p { font-size: .875rem; color: var(--gray); flex: 1; }

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.card__cpc {
  font-size: .75rem;
  color: var(--gray);
}

.card__cpc strong { color: var(--navy); }

.card__link {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .25rem;
}
.card__link::after { content: '→'; }

/* ── Hero form / CTA section ── */
.cta-section {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 1.25rem;
}
.cta-section .section-title h2 { color: var(--white); }
.cta-section .section-title p { color: rgba(255,255,255,.7); }

.cta-form {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 2rem;
}

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .3rem;
  color: inherit;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  background: var(--white);
  color: #1f2937;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}

.cta-form .form-group label { color: rgba(255,255,255,.85); }

.form-disclaimer {
  font-size: .75rem;
  text-align: center;
  color: var(--gray);
  margin-top: .5rem;
}

/* ── Article page layout ── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
  align-items: start;
}

/* ── Breadcrumb ── */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .8rem;
  color: var(--gray);
  list-style: none;
  margin-bottom: 1.25rem;
}
.breadcrumb li + li::before { content: '/'; margin-right: .4rem; }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--gold); }

/* ── Article ── */
.article-header { margin-bottom: 1.5rem; }

.category-badge {
  display: inline-block;
  background: rgba(201,168,76,.12);
  color: #92640c;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .2rem .6rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

.article-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: .5rem;
}

.article-meta { font-size: .8rem; color: var(--gray); }

.article-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 .75rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}
.article-body h2:first-child { border-top: none; margin-top: .5rem; }

.article-body p { margin-bottom: 1rem; }

.article-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.article-body ul li { margin-bottom: .4rem; }

.article-body strong { color: var(--navy); }

.ad-slot--in-content { margin: 2rem 0; }

/* ── Sidebar ── */
.sidebar-sticky { position: sticky; top: 80px; }

.lead-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-top: 1.25rem;
}

.lead-form-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .3rem;
}
.lead-form-card p { font-size: .85rem; color: var(--gray); margin-bottom: 1rem; }

/* ── Related articles ── */
.related-articles {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
}
.related-articles h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  list-style: none;
}
.related-list li a {
  display: inline-block;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem 1rem;
  font-size: .85rem;
  color: var(--navy);
  font-weight: 500;
  transition: background .2s, border-color .2s;
}
.related-list li a:hover { background: rgba(201,168,76,.12); border-color: var(--gold); color: var(--navy); }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 3rem 1.25rem 2rem;
  font-size: .85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid .logo { color: var(--gold); font-size: 1.1rem; font-weight: 800; margin-bottom: .5rem; }
.footer-grid h4 { color: var(--white); font-size: .85rem; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .5px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: .4rem; }
.footer-grid ul a { color: rgba(255,255,255,.55); }
.footer-grid ul a:hover { color: var(--gold); }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  color: rgba(255,255,255,.4);
  font-size: .78rem;
  line-height: 1.6;
}

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #16a34a;
  color: #fff;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transform: translateY(80px);
  opacity: 0;
  transition: transform .35s, opacity .35s;
  z-index: 9999;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── Loading skeleton ── */
.skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Responsive ── */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
  .ad-slot--in-content { display: flex; max-width: 100%; overflow: hidden; }
}

@media (max-width: 680px) {
  .nav { gap: .75rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .stats-bar .container { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); padding: .85rem 1.5rem; }
  .stat:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .ad-slot:not(.ad-slot--sidebar) { display: none; }
}
