:root {
    --navy: #14304d;
    --navy-light: #1c3f66;
    --orange: #f3903f;
    --orange-dark: #d97423;
    --yellow: #f0b429;
    --blue: #4f9fcb;
    --cream: #fdf1e0;
    --muted: #5b6b7c;
    --border: #ecdfc9;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--navy-light) #fff;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--navy);
}

/* Slim scrollbar, no arrow buttons (WebKit browsers) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #fff;
}

::-webkit-scrollbar-thumb {
    background: var(--navy-light);
    border-radius: 999px;
    border: 2px solid #fff;
}

::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

a {
    color: var(--orange-dark);
}

a:hover {
    color: var(--orange);
}

/* Buttons */
.btn-primary {
    --bs-btn-bg: var(--orange);
    --bs-btn-border-color: var(--orange);
    --bs-btn-hover-bg: var(--orange-dark);
    --bs-btn-hover-border-color: var(--orange-dark);
    --bs-btn-active-bg: var(--orange-dark);
    --bs-btn-active-border-color: var(--orange-dark);
    --bs-btn-disabled-bg: var(--orange);
    --bs-btn-disabled-border-color: var(--orange);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    font-weight: 700;
}

.btn-dark {
    --bs-btn-bg: var(--navy);
    --bs-btn-border-color: var(--navy);
    --bs-btn-hover-bg: var(--navy-light);
    --bs-btn-hover-border-color: var(--navy-light);
    --bs-btn-active-bg: var(--navy-light);
    --bs-btn-active-border-color: var(--navy-light);
    font-weight: 700;
}

.btn-outline-dark {
    --bs-btn-color: var(--navy);
    --bs-btn-border-color: var(--navy);
    --bs-btn-hover-bg: var(--navy);
    --bs-btn-hover-border-color: var(--navy);
}

/* Navbar */
.navbar-brand {
    color: var(--navy) !important;
    font-weight: 700;
}

.navbar-brand small {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--orange);
}

.nav-link {
    color: var(--navy) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--orange) !important;
}

.nav-link.active {
    color: var(--orange-dark) !important;
    font-weight: 700;
}

/* Brand utility colors */
.bg-navy {
    background-color: var(--navy) !important;
}

.bg-cream {
    background-color: var(--cream) !important;
}

.text-orange {
    color: var(--orange) !important;
}

.text-navy {
    color: var(--navy) !important;
}

.text-muted-brand {
    color: var(--muted) !important;
}

.eyebrow {
    display: inline-block;
    color: var(--orange-dark);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.hero-underline {
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 6px;
    text-underline-offset: 4px;
}

/* Hero carousel: JS sets an inline height to fit exactly between header and footer;
   this is the fallback shown before that runs (or if JS is disabled). */
.hero-carousel-inner {
    height: clamp(260px, 70vh, 720px);
    background: var(--cream);
}

.carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.6);
}

.carousel-indicators .active {
    background-color: #fff;
}

/* Page hero band (inner pages) */
.page-hero {
    background: var(--navy);
}

.page-hero .eyebrow {
    color: var(--yellow);
}

/* Cards */
.card {
    border-color: var(--border);
}

.card-accent-orange {
    border-top: 4px solid var(--orange);
}

.card-accent-yellow {
    border-top: 4px solid var(--yellow);
}

.card-accent-navy {
    border-top: 4px solid var(--navy);
}

.card-accent-blue {
    border-top: 4px solid var(--blue);
}

.card .icon {
    font-size: 2rem;
}

/* Conventions */
.convention-pill {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 2px solid var(--orange);
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.25rem rgba(243, 144, 63, 0.25);
}

/* Footer */
.footer-brand img {
    height: 32px;
    width: 32px;
    object-fit: contain;
}
