﻿/* ================================
   TOKENS
=================================== */
:root {
    --brand: #1f3b64;
    --brand-2: #2e6f95;
    --brand-3: #bcd6ea;
    --ink: #0b1220;
    --paper: #fff;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0,0,0,.10);
}

/* ================================
   FONTS (local)
=================================== */
@font-face {
    font-family: "Montserrat";
    src: url("/fonts/Montserrat-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/Montserrat-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/Montserrat-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/Montserrat-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Raleway";
    src: url("/fonts/Raleway-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Raleway";
    src: url("/fonts/Raleway-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ================================
   BASE
=================================== */
body {
    font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

h1, h2, h3, h4, h5, h6,
.display-title, .section-title {
    font-family: "Montserrat", sans-serif;
}

a {
    color: var(--brand);
    text-decoration: none;
}

    a:hover {
        color: var(--brand-2);
    }

/* default spacing under fixed nav for non-hero pages */
.pt-nav {
    padding-top: 6rem;
}

/* ================================
   NAVBAR
=================================== */
.navbar {
    transition: background-color .3s, box-shadow .3s;
    z-index: 1040;
}

    .navbar.nav-top {
        background: transparent;
    }

    .navbar.nav-solid {
        background: #fff;
        box-shadow: 0 2px 12px rgba(0,0,0,.06);
    }

/* Toggler */
.navbar-dark .navbar-toggler {
    border-color: rgba(255,255,255,.35);
}

.navbar-dark .navbar-toggler-icon {
    filter: invert(1) grayscale(1);
}

/* Links */
.nav-link {
    position: relative;
    font-weight: 500;
    color: #fff !important;
    font-family: "Montserrat", sans-serif;
    transition: color .25s;
}

    .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 100%;
        bottom: .2rem;
        height: 2px;
        background: linear-gradient(90deg, var(--brand), var(--brand-2));
        transition: right .25s;
    }

    .nav-link:hover::after {
        right: 0;
    }

/* Solid state colors */
.navbar.nav-solid .nav-link {
    color: var(--ink) !important;
}

    .navbar.nav-solid .nav-link:hover {
        color: var(--brand) !important;
    }

/* Brand accent */
.brand-accent {
    color: var(--brand);
}

/* Buttons in nav */
.btn-brand {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .6rem 1rem;
    font-family: "Montserrat", sans-serif;
}

    .btn-brand:hover {
        filter: brightness(.95);
        color: #fff;
    }

.btn-ghost {
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 999px;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    transition: color .25s, border-color .25s;
}

.navbar.nav-solid .btn-ghost {
    border-color: rgba(0,0,0,.15);
    color: var(--ink);
}

    .navbar.nav-solid .btn-ghost:hover {
        color: var(--brand);
        border-color: var(--brand);
    }

/* ================================
   HERO
=================================== */
.hero {
    position: relative;
    top: 0;
    padding-top: 0;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45); /* darker overlay */
    z-index: 1;
}

/* Hero text positioning */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center; /* center the h1 */
    justify-content: flex-start;
    height: 100%;
    padding-top: 15%; /* push content into upper middle */
    text-align: center;
}

.hero-sub {
    width: 100%;
    text-align: right; /* align the second line to the right */
}


.hero-title {
    font-family: "Montserrat", sans-serif;
}

/* Transparent at top, white after scroll */
.has-hero .navbar.nav-top {
    background: transparent !important;
    box-shadow: none !important;
}

.has-hero .navbar.nav-solid {
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.06) !important;
}

/* Remove main top padding only on hero pages */
.has-hero main.pt-nav {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ================================
   UTILITIES
=================================== */
.rounded-pill {
    border-radius: 50rem !important;
}

.btn-demo {
    background: var(--brand-2);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .6rem 1rem;
    font-family: "Montserrat", sans-serif;
}

    .btn-demo:hover {
        filter: brightness(.95);
        color: #fff;
    }
/* Brand logo swap and FM color-on-scroll */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Default (non-hero pages are solid) */
.brand-logo--top {
    display: none;
}

.brand-logo--solid {
    display: inline-block;
}

/* When page has hero and is at top: show white logo, hide solid */
.has-hero .navbar.nav-top .brand-logo--top {
    display: inline-block;
}

.has-hero .navbar.nav-top .brand-logo--solid {
    display: none;
}

/* When scrolled (solid): hide white logo, show solid */
.has-hero .navbar.nav-solid .brand-logo--top {
    display: none;
}

.has-hero .navbar.nav-solid .brand-logo--solid {
    display: inline-block;
}

/* FM turns dark gray after color change (on solid) */
.brand-fm {
    transition: color .3s;
}

.navbar.nav-solid .brand-fm {
    color: #555;
}

/* Add 1px gray border when solid */
.navbar.nav-solid {
    border-bottom: 1px solid #d0d0d0;
}
/* Clients reel */
.clients-reel {
    overflow: hidden;
    width: 100%;
}

.clients-track {
    display: flex;
    gap: 2rem;
    will-change: transform;
    animation: clients-scroll var(--scroll-duration,25s) linear infinite;
}

.client-logo {
    width: 128px;
    height: 128px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: grayscale(100%);
    transition: filter .2s;
}

    .client-logo:hover {
        filter: none;
    }

@keyframes clients-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-1 * var(--strip-w, 0px)));
    }
}

.dfm-loading {
    display: block;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%
}

.dfm-loading-text {
    position: relative;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: .08em;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    text-transform: uppercase
}

    .dfm-loading-text::before,
    .dfm-loading-text::after {
        content: "Loading";
        position: absolute;
        inset: 0;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        color: transparent;
        -webkit-background-clip: text;
        background-clip: text;
    }

    .dfm-loading-text::before {
        background-image: url("/Images/DixieFM.png");
        opacity: 1
    }

    .dfm-loading-text::after {
        background-image: url("/Images/DixieFMMetallic.png");
        opacity: 0;
        animation: dfmCrossfade 2.6s ease-in-out infinite alternate
    }

.dfm-loading-text {
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.06)) drop-shadow(0 2px 6px rgba(0,0,0,.08))
}

@keyframes dfmCrossfade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.dfm-loader {
    position: fixed;
    inset: 0;
    background: transparent;
    display: block;
    align-items: center;
    justify-content: center;
    font: 16px/1.4 system-ui,Segoe UI,Arial,sans-serif;
    z-index: 2147483647; /* on top of everything */
    opacity: 1;
    transition: opacity 1s ease;
}

body.loaded .dfm-loader {
    display: block;
    opacity: 0;
    pointer-events: none;
}

.dfm-content {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 1s ease, transform 1s ease;
}

body.loaded .dfm-content {
    opacity: 1;
    transform: translateY(0);
}

.LocalLoading {
    font-family: 'Montserrat';
    font-size: xxx-large;
    text-align: center;
    margin: auto;
}

/* uniform thumbnail height */
.contracting-thumb {
    height: 220px; /* adjust as needed, e.g., 260/300 on lg */
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    /* default: fill and crop a bit (good for landscapes) */
    .contracting-thumb > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

        /* portraits: keep full image and center it */
        .contracting-thumb > img.is-portrait {
            object-fit: contain;
            /* width/height stay 100% so it centers both ways */
        }

.team-card .team-photo {
    object-fit: cover;
}

.clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.object-fit-cover {
    object-fit: cover;
}

.team-card {
    border-radius: 1rem; /* or keep rounded-4 for Bootstrap 5 */
    border: 1px solid lightgray;
}
.gradient-border-circle {
    position: relative;
    display: inline-block;
    padding: 3px; /* border thickness */
    background: radial-gradient(circle at center, #1f3b64, #2e6f95, #bcd6ea);
    border-radius: 50%;
}

    .gradient-border-circle img {
        border-radius: 50%;
        display: block;
    }
