body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    background: #F8FBFF;
    color: #1f2d3d;
}

:root {
    --calamco-blue: #12355b;
    --calamco-gold: #b9852a;
    --calamco-light-gray: #E7DCBF;
    --calamco-border: #d1b26a;
}

/* =========================
   SPLASH SCREEN
========================= */

#splash-screen {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
}

#splash-screen img {
    width: min(600px, 55vw);
    height: auto;
    animation: splashFadeIn 1.5s ease;
}

#splash-screen.hide {
    opacity: 0;
    pointer-events: none;
}

@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: scale(.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================
   NAVBAR
========================= */

.navbar-custom {
    background: #ffffff;
    padding: 14px 0;
    box-shadow: 0 2px 18px rgba(0,0,0,0.08);
    z-index: 1000;
    position: relative;
}

.navbar-logo {
    height: 62px;
    width: auto;
    display: block;
}

.navbar-nav .nav-link {
    color: var(--calamco-blue) !important;
    font-weight: 600;
    margin-left: 14px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--calamco-gold) !important;
}

.dropdown-menu {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    padding: 10px;
}

.dropdown-item {
    border-radius: 8px;
    font-weight: 500;
    color: var(--calamco-blue);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: #f3f6f9;
    color: var(--calamco-gold);
}

.dropdown-header {
    color: var(--calamco-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (min-width: 1200px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .dropend:hover > .dropdown-menu {
        display: block;
        top: 0;
        left: 100%;
    }
}

/* =========================
   BRAND WORDMARK
========================= */

.brand-word {
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
}

.brand-word .brand-c {
    font-size: 1.18em;
    font-weight: inherit;
    display: inline-block;
    transform: scaleY(1.08);
    transform-origin: bottom;
    margin-right: -0.02em;
}

.footer-brand {
    font-size: 1.2rem;
}

/* =========================
   HOMEPAGE HERO
========================= */

.hero {
    position: relative;
    height: calc(100vh - 90px);
    min-height: 620px;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero::before {
    background-image: url("/assets/hero/ship.jpg");
    animation: fade1 18s infinite ease-in-out;
}

.hero::after {
    background-image: url("/assets/hero/truck.jpeg");
    animation: fade2 18s infinite ease-in-out;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 70px;
}

.hero-box {
    background: rgba(255,255,255,0.53);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 22px 32px;
    border-radius: 16px;
    max-width: 440px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.10);
    border: 1px solid rgba(255,255,255,0.25);
}

.hero-box h1 {
    color: var(--calamco-blue);
    font-size: clamp(1.15rem, 2.3vw, 1.95rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-box p {
    color: #333333;
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 14px;
}

.learn-more-btn {
    display: inline-block;
    background: var(--calamco-blue);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.86rem;
    transition: all 0.3s ease;
    border: 0;
}

.learn-more-btn:hover,
.learn-more-btn:focus {
    background: #0d2845;
    color: #ffffff;
    transform: translateY(-2px);
}

@keyframes fade1 {
    0%, 42% { opacity: 1; }
    50%, 92% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fade2 {
    0%, 42% { opacity: 0; }
    50%, 92% { opacity: 1; }
    100% { opacity: 0; }
}

/* =========================
   PAGE CONTENT
========================= */

.page-header {
    background: #f6f8fb;
    padding: 70px 0;
    border-bottom: 1px solid var(--calamco-border);
    text-align: center;
}

.page-header h1 {
    color: var(--calamco-blue);
    font-weight: 700;
    margin-bottom: 12px;
}

.content-section {
    padding: 60px 0;
}

.content-card {
    background: #ffffff;
    border: 1px solid var(--calamco-border);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
}

.section-title {
    color: var(--calamco-blue);
    font-weight: 700;
    margin-bottom: 24px;
}

/* =========================
   GOLD PANELS
========================= */

.gold-panel,
.return-gold-box {
    background: var(--calamco-light-gray);
    border: 1px solid var(--calamco-border);
    border-left: 6px solid var(--calamco-blue);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.gold-panel-no-accent {
    border-left: 1px solid var(--calamco-border) !important;
}

.gold-panel h2,
.gold-panel h3,
.gold-panel h4,
.gold-panel p,
.return-gold-box h2,
.return-gold-box h3,
.return-gold-box h4,
.return-gold-box p {
    color: var(--calamco-blue);
}

/* =========================
   ABOUT PAGE
========================= */

.about-hero-image {
    overflow: hidden;
}

.about-hero-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.content-card a.inline-link {
    color: var(--calamco-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.content-card a.inline-link:hover {
    color: var(--calamco-gold);
}

/* =========================
   LEADERSHIP / MANAGEMENT
========================= */

.leadership-card {
    border: 1px solid var(--calamco-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    max-width: 300px;
    margin: 0 auto;
}

.leadership-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.leadership-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: center top;
    background: #f3f6f9;
}

.leadership-card .card-body {
    padding: 18px;
}

.leadership-card .card-title {
    color: var(--calamco-blue);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.leadership-card .card-text {
    color: #4c5968;
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.leadership-img-sm {
    height: 190px;
}

/* =========================
   DISTRICT MAP
========================= */

.district-map-card {
    background: #ffffff;
    border: 1px solid var(--calamco-border);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 16px 45px rgba(0,0,0,0.08);
    text-align: center;
}

.district-map-card img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: inline-block;
    border-radius: 14px;
}

/* =========================
   DEALERS
========================= */

.dealer-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.dealer-card {
    background: #ffffff;
    border: 1px solid var(--calamco-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    height: 100%;
    cursor: default;
}

.dealer-card:hover,
.dealer-card-link:hover .dealer-card,
.col-6:hover .dealer-card {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.dealer-card-link .dealer-card {
    cursor: pointer;
}

.dealer-logo-frame {
    width: 100%;
    height: 180px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dealer-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (min-width: 992px) {
    .col-lg-custom-5 {
        width: 20%;
        flex: 0 0 auto;
    }
}

/* =========================
   DEALER LOCATOR
========================= */

.dealer-search-wrap {
    max-width: 640px;
    margin: 0 auto 34px;
    text-align: center;
}

.dealer-search-panel {
    background: #ffffff;
    border: 1px solid var(--calamco-border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.dealer-search-text {
    color: #4c5968;
    max-width: 620px;
    margin: 16px auto 0;
    line-height: 1.55;
}

.dealer-status-bar {
    display: none;
    max-width: 760px;
    margin: 0 auto 24px;
    padding: 14px 20px;
    background: var(--calamco-light-gray);
    border: 1px solid var(--calamco-border);
    border-left: 6px solid var(--calamco-blue);
    border-radius: 14px;
    color: var(--calamco-blue);
    text-align: center;
    font-weight: 600;
}

.dealer-result-card {
    background: #ffffff;
    border: 1px solid var(--calamco-border);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 180px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
    transition: all .25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.dealer-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.dealer-result-logo-frame {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.dealer-result-logo {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.dealer-result-title {
    color: var(--calamco-blue);
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.25;
}

.dealer-result-address {
    color: #4c5968;
    font-size: .82rem;
    line-height: 1.3;
    margin-bottom: 6px;
}

.dealer-distance {
    color: var(--calamco-blue);
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.dealer-result-card .learn-more-btn {
    width: 100%;
    padding: 7px 12px;
    font-size: .78rem;
    margin-top: auto;
}

#mapWrap {
    display: none;
    margin-bottom: 30px;
}

#map {
    height: 500px;
    border: 1px solid var(--calamco-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

#locatorActions {
    display: none;
}

.locator-action-bar {
    display: none;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.search-results-active {
    animation: dealerFadeIn .25s ease;
}

@keyframes dealerFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   AQUA / NH3
========================= */

.aqua-classification-img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* =========================
   TABLES
========================= */

.table {
    --bs-table-hover-bg: transparent;
    --bs-table-hover-color: inherit;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: #E7DCBF;
    background-color: #E7DCBF !important;
}

.table-hover > tbody > tr:hover > * {
    background-color: transparent !important;
    color: inherit !important;
}

.historical-table th {
    background: var(--calamco-blue);
    color: #ffffff;
    font-size: 0.9rem;
    white-space: nowrap;
}

.historical-table td {
    font-size: 0.9rem;
    white-space: nowrap;
}

/* =========================
   RETURN HISTORY CHART
========================= */

.return-chart-wrap {
    width: 100%;
    overflow-x: auto;
    padding: 4px 0 0;
    margin-bottom: -6px;
}

.return-chart-grid {
    width: 620px;
    max-width: 100%;
    height: 320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    align-items: end;
    padding: 4px 8px 10px;
    border-left: 1px solid #d9e1ea;
    border-bottom: 1px solid #d9e1ea;
    background:
        repeating-linear-gradient(
            to top,
            rgba(18,53,91,0.10),
            rgba(18,53,91,0.10) 1px,
            transparent 1px,
            transparent 48px
        );
}

.return-chart-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
}

.return-rebate {
    color: var(--calamco-blue);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.return-bar-area {
    height: 210px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.return-bar {
    width: 88px;
    min-height: 40px;
    border-radius: 14px 14px 0 0;
    background: var(--calamco-blue);
    box-shadow: 0 8px 20px rgba(18,53,91,0.20);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    transition: all 0.25s ease;
}

.return-bar:hover {
    transform: translateY(-4px);
}

.return-bar span {
    position: absolute;
    top: 10px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
}

.return-year {
    margin-top: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--calamco-blue);
}

/* =========================
   SCHOLARSHIP
========================= */

.scholarship-photo-small {
    float: right;
    width: 220px;
    margin: 0 0 15px 25px;
    border-radius: 12px;
    border: 1px solid #d9e1ea;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.scholarship-photo-large {
    float: left;
    width: 320px;
    margin: 0 30px 20px 0;
    border-radius: 16px;
    border: 1px solid #d9e1ea;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.scholarship-section {
    overflow: hidden;
}

.scholarship-section.kathryn {
    margin-bottom: 10px !important;
}

.scholarship-section.wade {
    margin-top: -40px;
}

/* =========================
   SCHOLARSHIP FORM
========================= */

.scholarship-intro {
    padding: 1.35rem 2rem;
}

.scholarship-intro p {
    margin-bottom: .45rem;
    line-height: 1.32;
}

.scholarship-intro p:last-child {
    margin-bottom: 0;
}

.scholarship-form-section {
    background: #ffffff;
    border: 1px solid #b59a5b;
    border-radius: 14px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.scholarship-form-heading {
    color: var(--calamco-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .85rem;
}

.scholarship-form-section .form-label {
    color: var(--calamco-blue);
    font-weight: 600;
}

.scholarship-form-section .form-control {
    border-color: #d9d0bd;
}

.scholarship-form-section .form-control:focus {
    border-color: #b59a5b;
    box-shadow: 0 0 0 .2rem rgba(181,154,91,.18);
}

/* =========================
   STOCK & PAYMENT CALCULATOR
========================= */

.calc-page-wrap {
    max-width: 980px;
    margin: 0 auto;
}

.calc-intro-panel {
    padding: 2rem 2.25rem;
}

.calc-panel {
    background: #ffffff;
    border: 1px solid var(--calamco-border);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.calc-panel-title {
    color: var(--calamco-blue);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.calc-input-box {
    border: 1px solid var(--calamco-border);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
}

.calc-panel .form-label {
    color: var(--calamco-blue);
    font-weight: 600;
}

.calc-panel .form-control {
    border-color: #d9d0bd;
}

.calc-panel .form-control:focus {
    border-color: var(--calamco-gold);
    box-shadow: 0 0 0 .2rem rgba(181,154,91,.18);
}

.calc-worksheet {
    border: 1px solid var(--calamco-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0;
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5dac2;
    background: #ffffff;
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #d9c9a4;
    background: #E7DCBF;
}

.calc-row:last-child {
    border-bottom: 0;
}

.calc-label {
    color: var(--calamco-blue);
    font-weight: 700;
}

.calc-label small {
    display: block;
    color: #555555;
    font-weight: 400;
    margin-top: .25rem;
}

.calc-result-box {
    background: #ffffff;
    border: 1px solid var(--calamco-gold);
    border-radius: 9px;
    padding: .65rem .85rem;
    color: var(--calamco-blue);
    font-weight: 700;
    text-align: right;
    min-height: 42px;
    box-shadow:
        inset 0 1px 2px rgba(0,0,0,.03),
        0 1px 3px rgba(0,0,0,.04);
}

.calc-rebate-table {
    margin-bottom: 0;
}

.calc-rebate-table th {
    background: var(--calamco-blue);
    color: #ffffff;
    font-size: .9rem;
    white-space: nowrap;
}

.calc-rebate-table td {
    font-size: .9rem;
    white-space: nowrap;
}

.calc-rebate-table tbody tr:nth-child(odd) td {
    background: #E7DCBF;
}

.calc-rebate-table tbody tr:nth-child(even) td {
    background: #ffffff;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    background: #12355b;
    color: #ffffff;
    padding: 34px 0;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #b59a5b;
    text-decoration: underline;
}

.footer-separator {
    margin: 0 10px;
    opacity: 0.65;
    color: #ffffff;
}

/* Keeps footer at bottom on short pages */
html,
body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* =========================
   MOBILE / RESPONSIVE
========================= */

@media (max-width: 1199px) {
    .hero {
        height: auto;
        min-height: 680px;
    }

    .hero-content {
        justify-content: center;
        padding: 90px 0;
    }

    .hero-box {
        margin: 0 12px;
        max-width: 100%;
    }

    .navbar-logo {
        height: 54px;
    }

    .navbar-nav {
        padding-top: 20px;
    }

    .learn-more-btn {
        width: 100%;
        text-align: center;
    }

    .about-hero-image img {
        height: 260px;
    }
}

@media (max-width: 991px) {
    .scholarship-photo-small,
    .scholarship-photo-large {
        float: none;
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 20px;
    }

    .scholarship-section.wade {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .leadership-img,
    .leadership-img-sm {
        height: 190px;
    }

    .leadership-card {
        max-width: 100%;
    }

    .dealer-logo-frame {
        height: 145px;
        padding: 20px;
    }

    .return-chart-grid {
        width: 560px;
        max-width: none;
        gap: 14px;
        min-width: 560px;
    }

    .return-bar {
        width: 54px;
    }

    .calc-intro-panel,
    .calc-panel,
    .scholarship-intro,
    .scholarship-form-section {
        padding: 1.25rem;
    }

    .calc-input-box {
        padding: 1rem;
    }

    .calc-row {
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    .calc-result-box {
        text-align: left;
    }

    .dealer-search-panel .input-group {
        display: block;
    }

    .dealer-search-panel .form-control {
        width: 100%;
        margin-bottom: 12px;
    }

    .dealer-search-panel .learn-more-btn {
        width: 100%;
    }

    .dealer-result-card {
        min-height: 205px;
        padding: 12px;
    }

    .dealer-result-logo-frame {
        height: 62px;
    }

    .dealer-result-logo {
        max-height: 54px;
    }

}

/* =========================
   PRINT STYLES
========================= */

@media print {
    @page {
        size: letter;
        margin: 0.5in;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .navbar-custom,
    .site-footer,
    .learn-more-btn,
    .print-hide,
    nav,
    footer,
    .navbar {
        display: none !important;
    }

    .content-section {
        padding: 0 !important;
    }

    .content-card {
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    body,
    p,
    li,
    td,
    th {
        font-size: 11pt !important;
        line-height: 1.3 !important;
    }

    h1 {
        font-size: 22pt !important;
        margin-bottom: 12px !important;
    }

    h2,
    h3,
    .h4,
    .section-title,
    .calc-panel-title {
        font-size: 14pt !important;
        margin-top: 18px !important;
        margin-bottom: 8px !important;
    }

    .gold-panel,
    .return-gold-box,
    .calc-panel,
    .scholarship-form-section {
        box-shadow: none !important;
        border: 1px solid #999999 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .calc-panel {
        padding: 14px !important;
        margin-bottom: 14px !important;
    }

    input,
    textarea,
    select {
        border: none !important;
        background: transparent !important;
        padding-left: 0 !important;
    }

    .table td,
    .table th {
        padding: 6px !important;
    }

    .content-card,
    table,
    tr,
    td,
    th {
        page-break-inside: avoid !important;
    }
}