/* ============================================
   Cover First Insurance — shared stylesheet
   Palette pulled from the brand mark: charcoal-black + brass gold
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #14171c;
  --ink-soft: #1f242c;
  --ink-line: #2c323c;
  --gold: #b8924d;
  --gold-light: #d9bc80;
  --gold-deep: #8a6d38;
  --paper: #f7f5f0;
  --paper-2: #ffffff;
  --text: #1c1e22;
  --text-muted: #5b5e66;
  --border: #e4e0d6;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 4px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--text); }

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.6em;
}

/* ---------- roofline divider (signature element, echoes the mark) ---------- */
.roofline {
  width: 100%;
  height: 22px;
  display: block;
}
.roofline path { fill: none; stroke: var(--gold); stroke-width: 2; }
.roofline.on-dark path { stroke: var(--gold-light); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-light); color: var(--ink); }
.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-outline:hover { background: rgba(184,146,77,0.12); color: var(--gold-light); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--paper-2); }

/* ---------- header ---------- */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--ink-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 46px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav a {
  color: #d8d5cc;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--gold-light); background: rgba(255,255,255,0.04); }
.main-nav a.active { color: var(--gold-light); }
.main-nav .btn { margin-left: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 72px 0 56px;
  position: relative;
}
.hero .container { max-width: 760px; }
.hero p.lede {
  color: #c7c3b8;
  font-size: 1.1rem;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }

/* ---------- page header (interior pages) ---------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 56px 0 44px;
}
.page-hero p { color: #c7c3b8; max-width: 640px; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

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

.card {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 26px;
}
.card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}
.card .icon path, .card .icon polyline, .card .icon line { stroke: var(--gold-deep); }

.stat {
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold-deep);
  font-weight: 600;
}
.stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- forms ---------- */
.form-card {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin: 16px 0 6px;
}
label:first-child { margin-top: 0; }
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,77,0.18);
}
textarea { resize: vertical; min-height: 110px; }
fieldset { border: none; padding: 0; margin: 16px 0 0; }
fieldset legend { font-size: 0.85rem; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 8px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; font-weight: 400; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; }
.form-success {
  display: none;
  background: #eef4ea;
  border: 1px solid #b9d19e;
  color: #33511f;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 0.9rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b9b6ab;
  padding: 48px 0 28px;
}
.site-footer h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer a { color: #b9b6ab; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-grid p { color: #9d9a8f; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid var(--ink-line);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #7d7a70;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.licensed-states {
  font-size: 0.8rem;
  color: #9d9a8f;
}

/* ---------- job listing ---------- */
.job {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 22px;
}
.job-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job ul { padding-left: 20px; color: var(--text); }
.job li { margin-bottom: 6px; }

/* ---------- utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.badge {
  border: 1px solid var(--ink-line);
  color: #cfccc2;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--ink-line);
    border-bottom: 1px solid var(--ink-line);
    padding: 10px 20px 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 6px; border-bottom: 1px solid var(--ink-line); border-radius: 0; }
  .main-nav .btn { margin: 14px 0 0; text-align: center; }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  section { padding: 44px 0; }
  .hero { padding: 52px 0 40px; }
  .footer-bottom { flex-direction: column; }
}
