/*
Theme Name: Chesapeake Term V3
Theme URI: https://chesapeaketerm.com
Author: Hunter Brooks Companies
Description: Custom theme for Chesapeake Term Insurance — navy seal brand identity. V3.2: added Call Now buttons in header, hero, and closing CTA.
Version: 3.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: chesapeake-term
*/

:root {
  --navy: #04295B;
  --navy-light: #3D5A80;
  --tint: #E8EDF2;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #5B6572;
  --radius: 4px;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.2em; color: var(--muted); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  padding: 16px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-logo img {
  height: 216px;
  width: auto;
  display: block;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.primary-nav a:hover { color: var(--tint); text-decoration: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid var(--navy);
  cursor: pointer;
}

.btn:hover {
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

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

.btn-call:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.header-call {
  padding: 10px 20px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--white);
  padding: 100px 0 90px;
  text-align: center;
}

.hero h1 { max-width: 780px; margin: 20px auto 20px; }

.hero p.lede {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
}

/* ---------- Feature grid ---------- */
.features {
  background: var(--tint);
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  border-top: 3px solid var(--navy);
}

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  padding: 70px 0;
  text-align: center;
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--tint); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Content / blog ---------- */
.content-area {
  padding: 64px 0;
}

article.post {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--tint);
}

article.post:last-child { border-bottom: none; }

.entry-meta {
  color: var(--navy-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--tint);
  padding: 48px 0 28px;
  font-size: 0.9rem;
}

.site-footer a { color: var(--white); }

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-disclosure {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ---------- How It Works ---------- */
.how-it-works {
  background: var(--white);
  padding: 80px 0;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 { font-size: 1.05rem; margin-bottom: 0; }

/* ---------- Cost of Waiting ---------- */
.cost-of-waiting {
  background: var(--tint);
  padding: 80px 0;
  text-align: center;
}

.chart-wrap {
  max-width: 720px;
  margin: 40px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
}

.chart-axis-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 8px;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
  font-size: 0.9rem;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.legend-swatch {
  width: 18px;
  height: 4px;
  display: inline-block;
  border-radius: 2px;
}

.closing-statement {
  max-width: 620px;
  margin: 48px auto 0;
}

.closing-statement h3 { margin-bottom: 12px; }
.closing-statement p { margin-bottom: 24px; }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .features-grid { grid-template-columns: 1fr; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 14px; padding: 16px 0; }
  .menu-toggle { display: inline-block; }
  .hero { padding: 64px 0 56px; }
  h1 { font-size: 2rem; }
  .site-logo img { height: 100px; }
  .site-header { padding: 14px 0; }
  .header-call { display: none; }
}
