/* ---------------------------------------------------------------
 * eVeteran per-site skin. Loaded via config 'custom_css'.
 * Bar: teamrubiconusa.org — heavy slab headlines, black / white /
 * signal red, square edges, real work photo. Avoid: flags, camo,
 * stencil type, cream, pill buttons, soft rounded cards.
 * --------------------------------------------------------------- */

:root { --vt-red: #C8102E; --vt-ink: #111111; --vt-rule: #D9D9D6; }

/* Square edges everywhere. Rounded pills read as a SaaS template. */
.btn, .tile, .card, .chip, .pkg, .searchbox, .searchbox input, .searchbox button,
.nav a.nav-cta, .trust-icon, .tile .t-icon, .avatar, .card-media, .owner-panel,
.ad-slot, .notice, .form-grid input, .form-grid select, .form-grid textarea {
    border-radius: 0 !important;
}

h1, h2, h3, .section-title { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.01em; }

/* ---- top bar ---- */
.topbar { border-bottom: 4px solid var(--vt-red); }
.brand {
    font-family: var(--font-heading); font-size: 1.55rem; letter-spacing: -0.02em;
}
.brand::before {
    content: ""; display: inline-block; width: 12px; height: 26px;
    background: var(--vt-red); margin-right: 10px; transform: skewX(-12deg);
}
.nav a { text-transform: uppercase; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; }
.nav a.nav-cta { box-shadow: none; background: var(--vt-red); }
.nav a.nav-cta:hover { transform: none; filter: brightness(1.1); }

/* ---- buttons ---- */
.btn, .searchbox button {
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; font-size: 0.9rem;
}

/* ---- hero: photo stays vivid, text sits bottom-left on a dark fade ---- */
.hero-photo {
    text-align: left; padding: 120px 0 56px; min-height: 560px;
    display: flex; align-items: flex-end;
    background-position: 62% 40%;
}
.hero-photo::before {
    background:
        linear-gradient(90deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.62) 42%, rgba(10,10,10,0.05) 78%),
        linear-gradient(0deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0) 45%);
}
.hero-photo .hero-inner { width: 100%; }
.hero-photo h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.98; max-width: 11ch;
    margin: 0 0 18px; text-shadow: none;
}
.hero-photo h1::after {
    content: ""; display: block; width: 84px; height: 6px; background: var(--vt-red); margin-top: 22px;
}
.hero-photo p { margin: 0 0 26px; max-width: 540px; font-size: 1.1rem; text-shadow: none; }
.hero-photo .searchbox { margin: 0; max-width: 600px; padding: 0; box-shadow: none; border: 3px solid #fff; }
.hero-photo .searchbox input { padding: 16px 18px; }
.hero-photo .searchbox button { padding: 0 30px; background: var(--vt-red); }
.hero-photo .hero-stats {
    justify-content: flex-start; gap: 0; margin-top: 22px; text-shadow: none;
    font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.hero-photo .hero-stats span { padding: 0 18px; border-left: 2px solid rgba(255,255,255,0.35); }
.hero-photo .hero-stats span:first-child { padding-left: 0; border-left: 0; }
.hero-photo .hero-stats strong { font-family: var(--font-heading); font-size: 1.5rem; display: block; letter-spacing: 0; text-transform: none; }

/* ---- trust points: big red numerals, left aligned, ruled ---- */
.trust-points { padding: 56px 0 40px; }
.trust-point { text-align: left; padding: 18px 0 0; border-top: 4px solid var(--vt-ink); }
.trust-icon {
    width: auto; height: auto; background: none; display: block;
    font-family: var(--font-heading); font-weight: 700; font-size: 2.6rem; line-height: 1;
    color: var(--vt-red); margin-bottom: 10px;
}
.trust-point h3 { font-size: 1.35rem; }
.trust-point p { color: #3d3d3d; font-size: 0.98rem; }

/* ---- welcome: a black band, the brand statement ---- */
.welcome { background: var(--vt-ink); color: #fff; text-align: left; padding: 64px 0; margin-top: 16px; }
.welcome .wrap { display: grid; gap: 18px 56px; }
@media (min-width: 860px) { .welcome .wrap { grid-template-columns: 5fr 7fr; align-items: start; } }
.welcome h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; margin: 0; }
.welcome h2::after { content: ""; display: block; width: 64px; height: 6px; background: var(--vt-red); margin-top: 20px; }
.welcome p { color: #d6d6d6; margin: 0; max-width: none; font-size: 1.08rem; line-height: 1.65; }

/* ---- sections ---- */
.section-title { font-size: 2rem; }
.section-alt { background: var(--c-surface); }

/* ---- category tiles: hard rule, red on hover ---- */
.tile {
    border: 0; border-left: 4px solid var(--vt-ink); box-shadow: none;
    background: #fff; padding: 16px 18px;
}
.tile:hover { transform: none; box-shadow: none; border-left-color: var(--vt-red); background: #fafafa; }
.tile .t-icon { display: none; }
.tile .t-name { color: var(--vt-ink); font-weight: 800; }

/* ---- listing cards ---- */
.card { border: 1px solid var(--vt-rule); border-top: 4px solid var(--vt-ink); box-shadow: none; }
.card:hover { transform: none; box-shadow: none; border-top-color: var(--vt-red); }
.card.tier-premium { border: 2px solid var(--vt-red); border-top-width: 6px; box-shadow: none; }
.card.tier-featured { border-top-color: var(--vt-red); }
.avatar { background: var(--vt-ink) !important; color: #fff !important; font-family: var(--font-heading); }

/* ---- certification badges: words carry the meaning, colour backs it up ---- */
.cf-verification, [data-field="verification"] {
    display: inline-block; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 4px 9px; line-height: 1.3;
    background: var(--vt-ink); color: #fff;
}
.v-sdvosb { background: var(--vt-red); color: #fff; }
.v-vosb   { background: var(--vt-ink); color: #fff; }

.chip { background: #fff; border: 1.5px solid var(--vt-ink); color: var(--vt-ink); font-weight: 700; }
.chip:hover { background: var(--vt-ink); color: #fff; }

/* ---- footer ---- */
.site-footer { background: var(--vt-ink); border-top: 6px solid var(--vt-red); }

@media (max-width: 640px) {
    .hero-photo { min-height: 0; padding: 72px 0 40px; background-position: 70% 40%; }
    .hero-photo::before { background: linear-gradient(0deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.55) 60%, rgba(10,10,10,0.35) 100%); }
    .hero-photo .searchbox button { padding: 0 16px; }
    .hero-photo .hero-stats span { padding: 0 10px; }
}

/* Long industry names wrap instead of getting cut off. */
.tile .t-name { white-space: normal; overflow: visible; }

/* Cards: the badge gets its own full-width row. The engine prints a bare
   "Certification:" text node before it; font-size 0 hides that word only. */
.card .meta:has(.cf-verification) { font-size: 0; margin-top: 8px; }
.card .cf-verification {
    display: block; width: 100%; box-sizing: border-box; white-space: normal;
    text-align: left; letter-spacing: 0.04em; font-size: 0.66rem;
}
.card .chip { font-size: 0.74rem; padding: 2px 8px; }

/* Detail page on phones: long SBA URLs and the badge must wrap, not widen the page. */
.info-table td, .info-table th { overflow-wrap: anywhere; }
.info-table .cf-verification { white-space: normal; }
.cols > *, .grid > * { min-width: 0; }
.card { overflow-wrap: anywhere; }
/* Sidebar promo reuses .tile (flex) — stack it so the button never spills out. */
.sidebar .tile { display: block; }
.sidebar .tile .btn { display: inline-block; margin-top: 4px; }
