/* ============================================================
   Jeser Garcia Insurance Agency — texasbusinesscoverage.com
   Design language: the work order / job ticket.
   Trades run on paperwork that's blunt and functional — permits,
   invoices, tickets. This site borrows that vocabulary instead of
   generic insurance-brochure polish.
   ============================================================ */

:root {
  /* Color */
  --ink:        #16233F;   /* primary navy — headers, nav, text on light */
  --ink-soft:   #47526B;   /* body copy, slate-navy */
  --canvas:     #FFFFFF;   /* page background — clean paper */
  --canvas-lo:  #F1F4FA;   /* soft blue-gray for section breaks */
  --card:       #FFFFFF;   /* card background */
  --oxide:      #2F5FA8;   /* primary accent — trust blue */
  --oxide-dk:   #24487F;   /* accent hover/active */
  --amber:      #D9A521;   /* secondary accent — gold, used sparingly */
  --line:       #DCE2ED;   /* hairline rule color on canvas */
  --line-dark:  rgba(255,255,255,0.16);

  /* Type */
  --f-display: 'Merriweather', Georgia, 'Times New Roman', serif;
  --f-body:    'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --radius: 3px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-soft);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Utility label / eyebrow (ticket field label) ---------- */
.field-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oxide);
}

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--oxide);
  color: var(--card);
}
.btn-primary:hover { background: var(--oxide-dk); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--canvas); }

.btn-ghost.on-dark {
  color: var(--canvas);
}
.btn-ghost.on-dark:hover { background: var(--canvas); color: var(--ink); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 3px solid var(--oxide);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  font-family: var(--f-display);
  color: var(--canvas);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--canvas);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--oxide);
  color: #fff;
}
.nav-cta {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--canvas);
  color: var(--canvas);
  padding: 8px 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  border-radius: var(--radius);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 74px;
    left: 0; right: 0;
    background: var(--ink);
    padding: 12px 28px 20px;
    border-bottom: 3px solid var(--oxide);
  }
  .nav-toggle { display: inline-block; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--canvas);
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background-image:
    repeating-linear-gradient(135deg, rgba(250,247,240,0.035) 0 2px, transparent 2px 34px);
}
.hero .ticket-number {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 22px;
  display: block;
}
.hero h1 { color: #fff; max-width: 15em; }
.hero .lede { color: #D9D2C1; margin-top: 18px; }
.hero .hero-ctas {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
section { padding: 78px 0; }
.section-alt { background: var(--canvas-lo); }
.section-ink { background: var(--ink); color: var(--canvas); }
.section-ink h2 { color: #fff; }
.section-ink .lede { color: #D9D2C1; }

.section-head {
  margin-bottom: 44px;
  max-width: 44em;
}

/* ---------- Ticket card (signature component) ----------
   Styled like a torn work-order stub: perforated top edge,
   stamped field labels, dashed internal rule. Used for coverage
   line items and vertical summaries across the site. */
.ticket {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 26px 26px 24px;
  position: relative;
  z-index: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ticket-icon {
  position: absolute;
  z-index: -1;
  right: -18px;
  bottom: -18px;
  width: 130px;
  height: 130px;
  color: var(--oxide);
  opacity: 0.09;
  pointer-events: none;
}
.ticket-icon svg { width: 100%; height: 100%; display: block; }
.ticket::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 6px;
  background-image: radial-gradient(circle, var(--canvas) 2.6px, transparent 2.7px);
  background-size: 16px 100%;
  background-position: 8px 0;
}
.ticket .field-label { margin-bottom: 10px; }
.ticket h3 { margin-bottom: 10px; }
.ticket p { color: var(--ink-soft); font-size: 0.96rem; flex-grow: 1; }
.ticket .risk {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--oxide);
  letter-spacing: 0.02em;
}
.ticket .risk b { color: var(--ink); }
.ticket a.ticket-link {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--oxide);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ticket a.ticket-link:hover { text-decoration: underline; }

.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Numbered process (real sequence, so numbering is earned) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } }
.process-step .num {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--amber);
  border: 1px solid var(--amber);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  margin-bottom: 16px;
}
.process-step h3 { color: #fff; }
.process-step p { color: #C9C1AE; font-size: 0.95rem; }

/* ---------- Stat / trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  align-items: center;
  justify-content: space-between;
}
.trust-item {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.trust-item .mark { color: var(--oxide); }

/* ---------- Texas coverage map block ---------- */

/* ---------- Form ---------- */
.form-card {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: 15px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--oxide);
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: #C9C1AE;
  padding: 56px 0 34px;
}
footer.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { footer.site-footer .foot-grid { grid-template-columns: 1fr; } }
footer.site-footer h4 {
  color: var(--amber);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: 8px; }
footer.site-footer a { text-decoration: none; color: #C9C1AE; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .fine-print {
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: #8A93AB;
}
footer.site-footer .fine-print .placeholder {
  color: var(--amber);
}

/* ---------- Misc ---------- */
.divider-dashed {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- Coverage Notes: article list & article prose ---------- */
.notes-meta {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.article-prose {
  max-width: 42em;
  font-size: 1.06rem;
  line-height: 1.75;
}
.article-prose h2 {
  margin-top: 1.7em;
  font-size: 1.4rem;
}
.article-prose h2:first-child { margin-top: 0; }
.article-prose p { margin-bottom: 1.1em; }
.article-prose ul, .article-prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}
.article-prose li { margin-bottom: 0.5em; }
.article-prose strong { color: var(--ink); }

.callout {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-left: 6px solid var(--oxide);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.6em 0;
}
.callout .field-label { margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 8px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.byline .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--canvas);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 14px;
  flex-shrink: 0;
}
.byline .who {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.byline .who b { color: var(--ink); display:block; font-family: var(--f-body); font-size: 14px; }

/* ---------- Quote wizard ---------- */
.wizard-shell {
  max-width: 760px;
  margin: 0 auto;
}
.wizard-progress-track {
  height: 6px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.wizard-progress-fill {
  height: 100%;
  background: var(--oxide);
  transition: width 0.3s ease;
}
.wizard-progress-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  margin-bottom: 34px;
}
.wizard-saved {
  color: var(--oxide);
}

.wizard-card {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 40px;
}
@media (max-width: 620px) {
  .wizard-card { padding: 26px; }
}
.wizard-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.wizard-sub { color: var(--ink-soft); margin-bottom: 28px; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
@media (max-width: 480px) { .choice-grid { grid-template-columns: 1fr; } }
.choice-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--card);
  cursor: pointer;
  text-align: left;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice-card:hover { border-color: var(--oxide); }
.choice-card.selected {
  border-color: var(--oxide);
  border-width: 2px;
  background: #E8EFF9;
}
.choice-card .choice-label { font-weight: 600; display:block; margin-bottom: 2px; }
.choice-card .choice-hint { color: var(--ink-soft); font-size: 13px; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 480px) { .check-grid { grid-template-columns: 1fr; } }
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14.5px;
}
.check-item.selected { border-color: var(--oxide); background: #E8EFF9; }
.check-item input { accent-color: var(--oxide); width: 16px; height: 16px; }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}
.wizard-back {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
}
.wizard-back:hover { color: var(--ink); }
.wizard-back:disabled { visibility: hidden; }

.trust-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.trust-mini span b { color: var(--oxide); }

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.review-row:last-child { border-bottom: none; }
.review-row .rlabel { color: var(--ink-soft); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.review-row .redit { color: var(--oxide); font-family: var(--f-mono); font-size: 12px; text-decoration: underline; cursor: pointer; background:none; border:none; padding:0; }

.wizard-error {
  color: var(--oxide-dk);
  font-family: var(--f-mono);
  font-size: 12.5px;
  margin-top: 6px;
  display: none;
}
.wizard-error.show { display: block; }
