/* ==========================================================================
   Covenant Supply LLC · covenantsupply.com
   Advertising & marketing company (South Carolina)
   Single stylesheet for all pages. Light mode, accessible, responsive.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --ink: #0e1726;          /* deep navy, footer / dark panels */
  --ink-soft: #1b2639;
  --paper: #ffffff;
  --mist: #f5f7fb;         /* alternating section background */
  --mist-2: #eef2f8;
  --line: #e5e9f0;         /* hairlines */
  --line-strong: #d7dde8;
  --text: #16203a;         /* primary text */
  --muted: #566077;        /* secondary text (>=4.5:1 on white) */
  --muted-soft: #5d6578; /* darkened to meet WCAG AA 4.5:1 on white and on mist */
  --brand: #2457e6;        /* primary CTA blue */
  --brand-600: #1c44bf;
  --brand-700: #17389c;    /* blue text on white */
  --brand-tint: #eaf0fe;   /* soft wash */
  --brand-ink: #0b1c4d;
  --on-brand: #ffffff;
  --ring: rgba(36, 87, 230, 0.5);
  --shadow-sm: 0 1px 2px rgba(14, 23, 38, 0.06), 0 1px 3px rgba(14, 23, 38, 0.05);
  --shadow-md: 0 6px 16px rgba(14, 23, 38, 0.08), 0 2px 6px rgba(14, 23, 38, 0.05);
  --shadow-lg: 0 24px 60px rgba(14, 23, 38, 0.14), 0 8px 24px rgba(14, 23, 38, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  color-scheme: light;
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}

/* ---- Accessibility helpers --------------------------------------------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top 160ms ease;
}
.skip-link:focus { top: 16px; color: #fff; }
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px;
}
.site-footer a:focus-visible { outline-color: #fff; } /* light ring for contrast on the dark footer */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--mist { background: var(--mist); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-700);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--brand); border-radius: 2px; }
.section-head.center .eyebrow { justify-content: center; }
h2.section-title { font-size: clamp(1.85rem, 4vw, 2.7rem); margin-top: 14px; }
.section-head .lede { margin-top: 16px; color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.18rem); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: 1rem;
  line-height: 1; padding: 14px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  min-height: 48px;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--paper); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); transform: translateY(-1px); }
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { background: #eef2f8; color: var(--ink); transform: translateY(-1px); }
.btn-block { width: 100%; }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand:hover { color: var(--text); }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; flex: none; box-shadow: var(--shadow-sm); }
.brand .wordmark { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1; }
.brand .wordmark small { display: block; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-soft); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-links .mobile-cta { display: none; } /* CTA only appears inside the mobile menu */
.nav-links a:not(.btn) {
  display: inline-block; padding: 9px 14px; border-radius: 9px; color: var(--text);
  text-decoration: none; font-weight: 500; font-size: 0.98rem; transition: background 140ms ease, color 140ms ease;
}
.nav-links a:not(.btn):hover { background: var(--mist-2); color: var(--brand-700); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 46px; height: 46px;
  border: 1px solid var(--line-strong); border-radius: 11px; background: var(--paper); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--text); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(36, 87, 230, 0.10), transparent 60%),
    radial-gradient(45% 55% at 5% 15%, rgba(36, 87, 230, 0.06), transparent 55%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-block: clamp(3rem, 7vw, 6rem);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-ink); font-size: 0.82rem; font-weight: 600;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); margin-top: 20px; font-weight: 700; line-height: 1.04; }
.hero h1 .accent { color: var(--brand); }
.hero-sub { margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--muted); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 20px; font-size: 0.92rem; color: var(--muted-soft); display: flex; align-items: center; gap: 9px; }
.hero-note svg { width: 17px; height: 17px; stroke: var(--brand); flex: none; }
.hero-art { position: relative; }
.hero-art svg, .hero-art img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---- Capability strip --------------------------------------------------- */
.capbar { border-top: 1px solid var(--line); background: var(--paper); }
.capbar .inner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding-block: 22px; }
.capbar .label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-soft); margin-right: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--paper); font-size: 0.9rem; font-weight: 500; color: var(--text);
}
.chip svg { width: 15px; height: 15px; stroke: var(--brand); flex: none; }

/* ---- Cards grid (services) --------------------------------------------- */
.grid { display: grid; gap: 22px; margin-top: clamp(36px, 5vw, 52px); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card .ico {
  display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px;
  border-radius: 13px; background: var(--brand-tint); margin-bottom: 18px;
}
.card .ico svg { width: 24px; height: 24px; stroke: var(--brand-700); }
.card h3 { font-size: 1.24rem; }
.card p { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.card ul { margin-top: 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.card ul li { position: relative; padding-left: 24px; font-size: 0.95rem; color: var(--text); }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 13px;
  background: var(--brand); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat;
}

/* ---- Process steps ------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: clamp(36px, 5vw, 52px); counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--line-strong); }
.step .num { font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--brand); letter-spacing: 0.08em; }
.step h3 { font-size: 1.18rem; margin-top: 10px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }

/* ---- Split (about / values) -------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.values { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.value { display: flex; gap: 15px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.value .ico { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--brand-tint); display: inline-flex; align-items: center; justify-content: center; }
.value .ico svg { width: 21px; height: 21px; stroke: var(--brand-700); }
.value h3 { font-size: 1.06rem; }
.value p { margin-top: 4px; color: var(--muted); font-size: 0.95rem; }

/* ---- Engagement models -------------------------------------------------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(36px, 5vw, 52px); }
.way { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: var(--paper); display: flex; flex-direction: column; }
.way.is-featured { border-color: var(--brand); box-shadow: var(--shadow-md); position: relative; }
.way .tag { align-self: flex-start; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-tint); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.way h3 { font-size: 1.3rem; }
.way .desc { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.way .meta { margin-top: 16px; font-size: 0.9rem; color: var(--muted-soft); }
.way ul { margin-top: 16px; padding: 0; list-style: none; display: grid; gap: 9px; }
.way ul li { position: relative; padding-left: 24px; font-size: 0.95rem; }
.way ul li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 13px; background: var(--brand); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.way .way-foot { margin-top: auto; padding-top: 20px; }

/* ---- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.field label .req { color: var(--brand); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 11px; padding: 13px 15px; width: 100%;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .consent { font-size: 0.85rem; color: var(--muted-soft); }
.contact-aside { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.contact-aside h3 { font-size: 1.15rem; }
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; }
.contact-list .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.contact-list .ico svg { width: 19px; height: 19px; stroke: var(--brand-700); }
.contact-list .k { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-soft); }
.contact-list .v { font-size: 1rem; color: var(--text); margin-top: 2px; }
.contact-list a { color: var(--text); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--brand-700); text-decoration: underline; }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { background: var(--ink) url("/assets/mesh-dark.jpg") center / cover no-repeat; color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,18,48,0.74), rgba(10,18,48,0.2) 55%, rgba(10,18,48,0) 82%); }
.cta-band .inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; padding-block: clamp(2.6rem, 5vw, 4rem); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,0.78); margin-top: 10px; max-width: 46ch; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); }
.site-footer .inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer .brand .wordmark, .site-footer .brand { color: #fff; }
.site-footer .brand .wordmark small { color: rgba(255,255,255,0.55); }
.footer-about { margin-top: 18px; font-size: 0.96rem; max-width: 38ch; color: rgba(255,255,255,0.68); }
.footer-col h2 { color: #fff; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.97rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 24px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; }
.footer-legal p { font-size: 0.86rem; color: rgba(255,255,255,0.6); }
.footer-entity { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ---- Prose (legal pages) ------------------------------------------------ */
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(2.6rem, 6vw, 4rem); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-head p { margin-top: 12px; color: var(--muted); }
.prose { max-width: 760px; margin-inline: 0; } /* override .container's auto-centering so body shares the page-head H1's left edge */
.prose h2 { font-size: 1.4rem; margin-top: 2.4em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--text); font-size: 1.02rem; }
.prose p { margin-top: 1em; }
.prose ul, .prose ol { margin-top: 1em; padding-left: 1.4em; display: grid; gap: 0.5em; }
.prose a { color: var(--brand-700); }
.prose .muted { color: var(--muted); font-size: 0.95rem; }

/* ---- 404 ---------------------------------------------------------------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; color: var(--brand); line-height: 1; letter-spacing: -0.03em; }

/* ---- Reveal (progressive: hidden state only when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
@media print { .js .reveal { opacity: 1 !important; transform: none !important; } }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin-inline: auto; }
  .grid.cols-3, .ways { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
  .footer-about-col { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open .nav-links {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 12px var(--gutter) 18px;
  }
  .site-header.menu-open .nav-links a:not(.btn) { padding: 13px 14px; font-size: 1.05rem; }
  .site-header.menu-open .nav-links .mobile-cta { display: block; margin-top: 8px; }
}
@media (max-width: 560px) {
  .grid.cols-3, .grid.cols-2, .ways, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .site-footer .inner { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
