/* Charlotte Builder Deals — simple editorial navy/green system */
:root {
  --ink: #15252d;
  --ink-soft: #3a4d56;
  --muted: #5a6d76;
  --paper: #fafbfa;
  --card: #ffffff;
  --line: #d7e0dc;
  --line-strong: #b8c7c0;
  --blue: #1a4f73;
  --blue-dark: #123a55;
  --green: #2a6b50;
  --green-dark: #1f5240;
  --accent: #b56a22;
  --warn-bg: #fff8ee;
  --warn-border: #e0c08a;
  --focus: #0b6e99;
  --radius: 6px;
  --max: 1040px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.05rem;
}

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

a {
  color: var(--blue);
  text-underline-offset: 2px;
}
a:hover { color: var(--blue-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header / nav */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-name {
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--blue-dark);
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem 1.15rem;
  align-items: center;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.1rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue-dark);
}
.site-nav .nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
}
.site-nav .nav-cta:hover { background: var(--green-dark); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
  .site-nav {
    display: none;
    width: 100%;
    padding-bottom: 0.85rem;
  }
  .site-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }
  .site-nav a {
    display: block;
    padding: 0.7rem 0.55rem;
    border-radius: var(--radius);
  }
  .site-nav a:hover { background: #eef3f0; }
  .site-nav .nav-cta { text-align: center; }
}

/* Hero — photo + copy banner */
.hero {
  background: var(--card);
  padding: 1.75rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.hero-banner {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}
@media (max-width: 720px) {
  .hero-banner {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .hero-photo {
    max-width: 220px;
    margin-inline: auto;
  }
}
.hero-photo-slot {
  aspect-ratio: 4 / 5;
  width: 100%;
  border: 2px dashed var(--line-strong);
  background: #eef2f0;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1rem;
  color: var(--muted);
}
.hero-photo-placeholder-label {
  font-weight: 750;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.hero-photo-placeholder-hint {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}
.hero-photo-placeholder-hint code {
  font-size: 0.78rem;
  background: #e2eae6;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}
.hero-photo-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.55rem;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.8vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
}
.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
  max-width: 38rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 4px;
  padding: 0.68rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font: inherit;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue);
}
.btn-secondary:hover {
  background: #eef4f8;
  color: var(--blue-dark);
}
.trust-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  max-width: 40rem;
}

/* Helps band under hero — typographic, not a heavy card */
.hero-helps {
  margin-top: 1.35rem;
  padding: 1rem 0 0.15rem;
  border-top: 1px solid var(--line);
}
.hero-helps h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.hero-helps ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  columns: 2;
  column-gap: 1.75rem;
}
.hero-helps li {
  margin-bottom: 0.4rem;
  break-inside: avoid;
}
@media (max-width: 640px) {
  .hero-helps ul { columns: 1; }
}

/* Sections */
.section {
  padding: 2rem 0;
}
.section-tight { padding: 1.35rem 0; }
.section h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  color: var(--blue-dark);
  letter-spacing: -0.015em;
}
.section-intro {
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 0 1.15rem;
}

/* Callouts as simple bordered bands */
.callout {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-left: 4px solid var(--accent);
  border-radius: 0;
  padding: 0.9rem 1rem;
  margin: 0 0 1.25rem;
}
.callout strong { color: var(--ink); }
.callout p { margin: 0.35rem 0 0; color: var(--ink-soft); }
.callout p:first-child { margin-top: 0; }

/* Theme / help grids — flatter list-like cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
}
.card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 1rem 1.1rem 1.1rem 0;
  box-shadow: none;
}
.grid-3 .card:nth-child(3n) {
  border-right: none;
  padding-right: 0;
}
.grid-3 .card:first-child {
  padding-left: 0;
}
@media (max-width: 820px) {
  .card {
    border-right: none;
    padding-left: 0;
    padding-right: 0;
  }
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--green-dark);
}
.card p { margin: 0; color: var(--ink-soft); }

.deadline-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.deadline-list li {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.8rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}
.badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #e7f0eb;
  color: var(--green-dark);
  border-radius: 3px;
  padding: 0.22rem 0.5rem;
  white-space: nowrap;
}
.badge-urgent {
  background: #f8ebe4;
  color: #8d3918;
}

/* Deal list — flatter rows */
.deals-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.filter-btn {
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 3px;
  padding: 0.38rem 0.8rem;
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
}
.filter-btn[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.deal-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.deal {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.15rem 0;
}
.deal[hidden] { display: none; }
.deal-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: center;
  margin-bottom: 0.45rem;
}
.deal-builder {
  font-weight: 800;
  color: var(--blue-dark);
  font-size: 1.05rem;
}
.deal-type {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #e8eef3;
  color: var(--blue-dark);
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
}
.deal h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  line-height: 1.35;
}
.deal p {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.deal .meta {
  font-size: 0.9rem;
  color: var(--muted);
}
.deal .source a { font-weight: 650; }
.deal-terms {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Forms */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 1.2rem 0 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-field { display: flex; flex-direction: column; gap: 0.3rem; }
.form-field.full { grid-column: 1 / -1; }
label {
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--ink);
}
.hint {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
input, select, textarea {
  font: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.consent input { width: auto; margin-top: 0.2rem; }
.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.form-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}
.form-status {
  font-size: 0.92rem;
  color: var(--green-dark);
  font-weight: 650;
}
.form-status[data-error="true"] { color: #8d3918; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}
.license-list {
  columns: 2;
  gap: 1.5rem;
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}
@media (max-width: 520px) {
  .license-list { columns: 1; }
}

/* Footer */
.site-footer {
  background: #123040;
  color: #d5e4eb;
  padding: 2rem 0 1.5rem;
  margin-top: 0.5rem;
}
.site-footer a { color: #9fcce8; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #fff;
}
.site-footer p,
.site-footer li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #c2d3dc;
}
.site-footer ul {
  margin: 0;
  padding-left: 1.05rem;
}
.eho {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 0.75rem;
}
.eho-badge {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border: 2px solid #9fcce8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.7rem;
  color: #9fcce8;
}
.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 0.9rem;
  font-size: 0.82rem;
  color: #a5bac4;
}
.footer-meta p { margin: 0.35rem 0; color: inherit; }

.page-title {
  padding: 1.6rem 0 0.35rem;
}
.page-title h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  color: var(--blue-dark);
  letter-spacing: -0.02em;
}
.page-title p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 44rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* Homepage hero service buttons + accent (homepage edits) */
.hero-accent {
  margin: 0 0 0.85rem;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.section-subhead {
  margin: -0.25rem 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}
.home-deal-scroll {
  max-height: min(70vh, 42rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.home-deal-scroll:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.home-deal-scroll .deal-list {
  border-top: none;
}
