/* ============================================================
   TerraVeritas Capital Partners — site styles
   Brand: Navy #16213E (lead) · Accent Red #B33A3A · Accent Blue #3B5B92 · Off-White #FAFAF8
   Type: Space Grotesk (headlines/wordmark) · Manrope (body)
   ============================================================ */

:root {
  --navy: #16213E;
  --navy-800: #1d2a4d;
  --red: #B33A3A;
  --blue: #3B5B92;
  --offwhite: #FAFAF8;
  --white: #ffffff;
  --text: #16213E;
  --text-mid: #4a5266;
  --text-light: #8890a2;
  --rule: #e6e5df;
  --rule-dark: rgba(250,250,248,0.14);
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--offwhite);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--navy); letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em; color: var(--navy); }
.brand-sub { font-family: var(--font-body); font-weight: 500; font-size: 0.56rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-light); margin-top: 3px; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.01em;
  color: var(--text-mid); transition: color 0.18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-cta {
  background: var(--navy); color: var(--offwhite) !important;
  padding: 10px 20px; border-radius: 3px; font-size: 0.8rem;
  transition: background 0.18s, transform 0.18s;
}
.nav-cta:hover { background: var(--red); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; width: 30px; height: 24px; position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--navy); transition: 0.25s; }
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: 3px; cursor: pointer; border: 1.5px solid transparent;
  transition: background 0.18s, color 0.18s, transform 0.18s, border-color 0.18s;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #9c3030; transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--offwhite); }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--offwhite); }
.btn-outline-light { background: transparent; border-color: rgba(250,250,248,0.5); color: var(--offwhite); }
.btn-outline-light:hover { background: var(--offwhite); color: var(--navy); border-color: var(--offwhite); }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 75% -10%, rgba(59,91,146,0.35), transparent 55%),
                    radial-gradient(ellipse at 0% 120%, rgba(179,58,58,0.18), transparent 45%);
  color: var(--offwhite);
  padding: clamp(72px, 12vw, 132px) 0 clamp(60px, 9vw, 104px);
  position: relative; overflow: hidden;
}
.hero .eyebrow { color: rgba(250,250,248,0.6); }
.hero h1 { color: var(--offwhite); font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 700; max-width: 16ch; }
.hero h1 .accent { color: #8fa8d4; }
.hero-sub { font-size: clamp(1.02rem, 1.7vw, 1.24rem); color: rgba(250,250,248,0.82); max-width: 60ch; margin-top: 24px; font-weight: 400; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-peak { position: absolute; right: -60px; bottom: -60px; width: min(420px, 40vw); opacity: 0.09; pointer-events: none; }

/* trust bar */
.trustbar { background: var(--navy-800); border-top: 1px solid var(--rule-dark); color: rgba(250,250,248,0.9); }
.trustbar .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; justify-content: center; text-align: center; }
.trustbar .label { font-family: var(--font-body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8fa8d4; }
.trustbar .data { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.03em; color: rgba(250,250,248,0.82); }
.trustbar .sep { color: rgba(250,250,248,0.3); }

/* ---------- Generic sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section.alt { background: var(--white); }
.section.navy { background: var(--navy); color: var(--offwhite); }
.section.navy h2, .section.navy h3 { color: var(--offwhite); }

.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 16px;
}
.section.navy .eyebrow { color: #8fa8d4; }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--text-mid); font-size: 1.06rem; margin-top: 18px; }
.section.navy .section-head p { color: rgba(250,250,248,0.8); }

.lead { font-size: 1.1rem; color: var(--text-mid); max-width: 68ch; }

/* page hero (interior pages) */
.page-hero { background: var(--navy); color: var(--offwhite); padding: clamp(60px, 9vw, 100px) 0 clamp(48px, 7vw, 72px); position: relative; overflow: hidden; }
.page-hero h1 { color: var(--offwhite); font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; }
.page-hero p { color: rgba(250,250,248,0.82); font-size: 1.1rem; max-width: 60ch; margin-top: 18px; }
.page-hero .hero-peak { opacity: 0.08; }

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

.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 4px;
  padding: 34px 30px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(22,33,62,0.4); border-color: #d8d7cf; }
.card .num { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: var(--red); letter-spacing: 0.1em; margin-bottom: 14px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--text-mid); font-size: 0.96rem; }
.card .card-ico { width: 40px; height: 40px; margin-bottom: 18px; }

/* feature list */
.feature-list { list-style: none; display: grid; gap: 2px; }
.feature-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.feature-list li:first-child { border-top: 1px solid var(--rule); }
.feature-list .fl-mark { flex: none; width: 26px; height: 26px; margin-top: 2px; }
.feature-list .fl-body strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--navy); margin-bottom: 2px; }
.feature-list .fl-body span { color: var(--text-mid); font-size: 0.98rem; }
.section.navy .feature-list li { border-color: var(--rule-dark); }
.section.navy .feature-list .fl-body strong { color: var(--offwhite); }
.section.navy .feature-list .fl-body span { color: rgba(250,250,248,0.78); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 20px; border-top: 2px solid var(--red); }
.step .step-n { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--blue); line-height: 1; margin-bottom: 12px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-mid); font-size: 0.95rem; }

/* pill list (product categories) */
.pill-list { list-style: none; display: grid; gap: 12px; }
.pill-list li {
  background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--blue);
  border-radius: 3px; padding: 18px 22px; font-weight: 500; color: var(--navy);
  display: flex; align-items: center; gap: 14px; transition: border-color 0.18s, transform 0.18s;
}
.pill-list li:hover { border-left-color: var(--red); transform: translateX(3px); }
.pill-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }

/* cert badges */
.cert-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cert-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 3px;
  padding: 14px 20px; font-weight: 600; font-size: 0.9rem; color: var(--navy);
}
.section.navy .cert-badge { background: rgba(250,250,248,0.06); border-color: var(--rule-dark); color: var(--offwhite); }
.cert-badge .tick { width: 18px; height: 18px; flex: none; color: var(--red); }
.section.navy .cert-badge .tick { color: #8fa8d4; }

/* data table (company data / naics) */
.data-table { width: 100%; border-collapse: collapse; }
.data-table td { padding: 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 0.95rem; }
.data-table td:first-child { font-family: var(--font-body); font-weight: 700; color: var(--navy); width: 42%; letter-spacing: 0.01em; }
.data-table td:last-child { color: var(--text-mid); }

/* naics codes */
.naics { display: grid; gap: 14px; }
.naics-item { display: flex; gap: 16px; align-items: baseline; padding: 16px 20px; background: var(--offwhite); border: 1px solid var(--rule); border-radius: 3px; }
.naics-code { font-family: var(--font-display); font-weight: 700; color: var(--red); font-size: 1.05rem; }
.naics-desc { color: var(--text-mid); font-size: 0.95rem; }

/* callout band */
.callout { background: var(--navy); color: var(--offwhite); text-align: center; }
.callout .wrap { padding-top: clamp(56px,8vw,88px); padding-bottom: clamp(56px,8vw,88px); }
.callout h2 { color: var(--offwhite); font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 20ch; margin: 0 auto; }
.callout p { color: rgba(250,250,248,0.82); max-width: 56ch; margin: 18px auto 0; font-size: 1.06rem; }
.callout .hero-ctas { justify-content: center; }

.note { font-size: 0.82rem; color: var(--text-light); font-style: italic; margin-top: 18px; }
.section.navy .note { color: rgba(250,250,248,0.55); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-detail { display: grid; gap: 4px; }
.contact-detail .row { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.contact-detail .k { font-family: var(--font-body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.contact-detail .v { font-size: 1.02rem; color: var(--navy); font-weight: 500; }
.contact-detail .v a:hover { color: var(--red); }

form.tv-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-mid); }
.field .opt { color: var(--text-light); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--navy);
  background: var(--white); border: 1px solid var(--rule); border-radius: 3px; padding: 13px 15px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,91,146,0.12); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(250,250,248,0.72); padding: clamp(48px,7vw,72px) 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--rule-dark); }
.footer .brand-name { color: var(--offwhite); }
.footer-about { max-width: 34ch; margin-top: 16px; font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8fa8d4; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 0.9rem; color: rgba(250,250,248,0.72); transition: color 0.18s; }
.footer-col a:hover { color: var(--offwhite); }
.footer-legal { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center; }
.footer-legal .idline { font-size: 0.76rem; letter-spacing: 0.04em; color: rgba(250,250,248,0.55); }
.footer-legal .copy { font-size: 0.76rem; color: rgba(250,250,248,0.5); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--offwhite); border-bottom: 1px solid var(--rule);
    padding: 8px var(--pad) 20px; transform: translateY(-140%); transition: transform 0.3s ease; box-shadow: 0 20px 40px -30px rgba(0,0,0,0.4);
  }
  .nav-links.open { transform: none; }
  .nav-links li { border-bottom: 1px solid var(--rule); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 15px 0; font-size: 0.98rem; }
  .nav-cta { display: inline-block; margin-top: 14px; text-align: center; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
}
