/* =========================================================
   Tri-Com – Custom Overrides (Cleaned)
   ========================================================= */

/* -------------------------
   Theme Tokens
   ------------------------- */
:root {
    --tricom-primary: #3a9bd9;
    --tricom-primary-dark: #03384f;

    --tricom-text-dark: #111;
    --tricom-text-muted: rgba(0, 0, 0, 0.72);

    --tricom-border-light: rgba(0, 0, 0, 0.06);
    --tricom-card-border: rgba(0, 0, 0, 0.08);
}

/* -------------------------
   Global Links / Utilities
   ------------------------- */
a:hover,
a:focus {
    color: var(--tricom-primary);
}

.text-primary {
    color: var(--tricom-primary) !important;
}
.bg-primary {
    background: var(--tricom-primary) !important;
}
.border-primary {
    border-color: var(--tricom-primary) !important;
}

/* -------------------------
   Buttons
   ------------------------- */
.butn-style4 {
    background: var(--tricom-primary) !important;
}
.butn-style4:hover,
.butn-style4:focus {
    background: var(--tricom-primary-dark) !important;
}

/* -------------------------
   Layout Helpers
   ------------------------- */
html,
body {
    height: 100%;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.page-content {
    flex: 1 0 auto;
}

.section-divider {
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin: 1.5rem 0;
}

/* -------------------------
   Cards / Components
   ------------------------- */
.section-card {
    background: #fff;
    border: 1px solid var(--tricom-card-border);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
}

/* One rule for images inside cards (you had 3) */
.section-card img {
    max-height: 360px;
    width: 100%;
    object-fit: cover;
}

.support-card {
    border-radius: 12px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.support-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.support-card .card-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    color: #0f4c75;
    background: rgba(15, 76, 117, 0.08);
}

.service-card-img {
    height: 180px;
    object-fit: cover;
    border-top: 1px solid var(--tricom-border-light);
    filter: saturate(0.95);
}

/* -------------------------
   Typography / Readability
   ------------------------- */
.page-band {
    padding: 2.5rem 0;
}

.page-band--alt {
    background: rgba(58, 155, 217, 0.06);
    border-top: 1px solid var(--tricom-border-light);
    border-bottom: 1px solid var(--tricom-border-light);
}

.readable {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.section-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--tricom-text-muted);
}

.candidate-intro p,
#resume-submission p,
.page-band p {
    line-height: 1.75;
}

/* -------------------------
   Footer
   ------------------------- */
.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    color: #777;
}
.footer-meta .powered-by {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
}
.footer-meta .powered-by img {
    height: 1rem;
    width: auto;
}
.subfooter {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* -------------------------
   Forms
   ------------------------- */
.textbox {
    height: auto !important;
}

/* -------------------------
   Images / Team
   ------------------------- */
.logo-60 {
    max-width: 60% !important;
}

.logo-50 {
    max-width: 50% !important;
}

.team-image {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 1px solid #f2b01e !important;
}

/* -------------------------
   Header / Navbar (STACKED)
   Make it permanently white + dark (no scroll swapping needed)
   ------------------------- */

/* Kill template “transparent header” behavior */
.header-stacked,
.header-stacked .navbar-default {
    background: #fff !important;
}

/* Let two rows exist without clipping */
.header-stacked .navbar-default,
.header-stacked .menu_area,
.header-stacked .navbar {
    height: auto !important;
    overflow: visible !important;
}
.header-stacked .menu_area {
    display: block !important;
}

/* BRAND ROW */
.header-stacked .brand-row {
    background: #fff !important;
    padding: 12px 0 10px;
    display: flex;
    justify-content: center;
}

.header-stacked .brand-lockup {
    text-decoration: none;
    white-space: nowrap; /* don’t wrap unless it’s truly tiny */
    align-items: center;
}

/* This is the only logo sizing rule now */
.header-stacked #logo {
    height: clamp(44px, 6vw, 72px);
    width: auto;
}

/* Brand text (always dark now) */
.header-stacked .brand-name {
    font-family: inherit;
    font-weight: 800;
    font-size: clamp(16px, 2.2vw, 26px);
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--tricom-text-dark);
}

.header-stacked .brand-tagline {
    font-size: clamp(11px, 1.5vw, 16px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 2px;
    align-self: flex-end;
    color: rgba(0, 0, 0, 0.7);
}

/* decorative marker */
.header-stacked .brand-tagline::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin-right: 6px;
    vertical-align: middle;
    opacity: 0.6;
}

/* NAV ROW */
.header-stacked .nav-row {
    background: #fff !important;
    border-top: 1px solid var(--tricom-border-light);
    padding-top: 6px;

    /* sticky nav only */
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Nav links: force readable dark */
.header-stacked .navbar-nav .nav-link {
    color: #111 !important;
}
.header-stacked .navbar-nav .nav-link:hover,
.header-stacked .navbar-nav .nav-link.active {
    color: var(--tricom-primary) !important;
}

/* Responsive: keep your safety valve, but stop hiding brand text at random widths.
   With stacked header, there’s no need to hide it between 992–1480 anymore.
*/
@media (max-width: 420px) {
    .header-stacked .brand-lockup {
        white-space: normal;
        flex-direction: column;
        gap: 6px;
    }
    .header-stacked .brand-text {
        align-items: center;
        text-align: center;
    }
}

/* Mobile: make the header/nav truly edge-to-edge */
@media (max-width: 480px) {
    .header-style1 .container-fluid {
        --bs-gutter-x: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .header-style1 .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* -------------------------
   Candidates: Resume accents
   ------------------------- */
.resume-card {
    border-left: 4px solid rgba(13, 110, 253, 0.5);
}
.resume-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(13, 110, 253, 0.1);
    color: var(--bs-primary);
    flex: 0 0 auto;
    font-size: 18px;
}
.resume-card .small.text-muted {
    line-height: 1.2rem;
}
#candidateFaq .section-card {
    padding: 2rem 2.25rem;
}

/* -------------------------
   Engagement list
   ------------------------- */
.engagement-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.engagement-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.engagement-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(13, 110, 253, 0.1);
    color: var(--bs-primary);
    flex-shrink: 0;
    font-size: 18px;
}
.engagement-content strong {
    display: block;
    margin-bottom: 4px;
}
.engagement-text {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.85;
}
/* =========================
   Sticky NAV ROW only (brand scrolls away)
   ========================= */

/* nav row normal state */
.header-stacked .nav-row {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1030;
}

/* When sticky is active, pin ONLY the nav row */
body.has-sticky-nav .header-stacked .nav-row {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

/* Offset the hero (your first section) so it doesn't sit under fixed nav */
body.has-sticky-nav section.full-screen.top-position1 {
    padding-top: var(--sticky-nav-h, 72px);
}

/* Fallback for non-hero pages */
body.has-sticky-nav .main-wrapper > section:first-of-type {
    padding-top: var(--sticky-nav-h, 72px);
}
/* When nav is pinned, completely remove the brand row from view (prevents "peek") */
body.has-sticky-nav .header-stacked .brand-row {
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Optional: smooth the collapse so it doesn't feel like a jump */
.header-stacked .brand-row {
    transition:
        height 0.2s ease,
        opacity 0.2s ease;
}
/* =========================
   Centered NAV + CTA-right (bulletproof)
   ========================= */

.header-stacked .nav-row {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 12px;
}

/* Center whichever UL the theme renders */
.header-stacked .nav-row ul.navbar-nav {
    grid-column: 2;
    justify-content: center;
    margin: 0 !important;
    width: auto !important;
}

/* CTA stays right */
.header-stacked .nav-row .attr-nav {
    grid-column: 3;
    justify-self: end;
    margin-left: 0 !important;
}

/* If your theme uses a wrapper around the UL, force it into the center column too */
.header-stacked .nav-row .navbar-collapse,
.header-stacked .nav-row .nav-menu,
.header-stacked .nav-row .menu_area,
.header-stacked .nav-row .navbar-nav-wrap {
    grid-column: 2;
    justify-self: center;
}

/* =========================
   Footer address: stop the "one character per line" nonsense
   ========================= */

/* The theme's .word-wrap is probably doing something aggressive.
   Reset wrapping for normal text inside the card. */
.footer-address .word-wrap,
.footer-address .word-wrap * {
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
}

/* Address should wrap by words, not letters */
.footer-address p {
    word-break: keep-all; /* don't split words */
    overflow-wrap: break-word; /* only break if absolutely necessary */
}

/* Phone and email should not wrap */
.footer-address a[href^="tel"],
.footer-address a[href^="mailto"] {
    white-space: nowrap !important;
}

/* On small screens: just stack and left align */
@media (max-width: 575.98px) {
    .footer-address .footer-logo {
        text-align: left;
    }

    .footer-address .d-flex {
        align-items: flex-start;
    }

    .footer-address .col-md-3 {
        width: 100%;
    }
}
/* =========================
   Footer address strip: better responsive behavior
   ========================= */

/* Prevent phone/email from breaking mid-string */
.footer-address a[href^="tel"],
.footer-address a[href^="mailto"] {
    white-space: nowrap;
}

/* On smaller screens, stack each item full-width so nothing gets squeezed */
@media (max-width: 991.98px) {
    .footer-address .row.mt-n3 > .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* keep spacing consistent when stacked */
    .footer-address .row.mt-n3 > .col-md-3 + .col-md-3 {
        margin-top: 0.75rem;
    }

    /* center logo when stacked */
    .footer-address .footer-logo {
        text-align: center;
        width: 100%;
    }
}
.footer-nav h6 {
    color: #fff;
    letter-spacing: 0.05em;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: inline-block;
    padding: 4px 0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bar {
    padding: 20px 0;
}
.quote-inline::before,
.quote-inline::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--bs-primary);
}

.quote-inline::before {
    content: "\f10d"; /* quote-left */
    margin-right: 0.5rem;
}

.quote-inline::after {
    content: "\f10e"; /* quote-right */
    margin-left: 0.5rem;
}
