.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--primary);
    font-size: 14px;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary);
}

.navbar .btn-primary {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.navbar .btn {
    line-height: 1.2;
}

.navbar .nav-link small,
.navbar .small {
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
}

#hero {
    padding-top: 36px;
    padding-bottom: 72px;
    min-height: 86vh;
}

#hero h1,
#hero h2 {
    text-wrap: balance;
}

#hero p {
    max-width: 65ch;
}

#hero .check-list li {
    font-weight: 600;
}

#hero .location-change-btn {
    padding: 6px;
    border: none;
    text-decoration: underline;
    font-size: 14px;
    margin: 0px;

}

#hero>.container>.row:first-child {
    padding-top: 12px;
}

#hero .row {
    min-height: 100%;
}

@media (min-width: 1200px) {
    #hero h1 {
        white-space: wrap;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.hero-stat {
    background: var(--white);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 1.25rem;
    color: var(--primary);
}

.hero-stat span {
    font-size: var(--fs-small);
    color: var(--muted);
}

.local-trust-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.local-trust-line .local-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.local-trust-line strong {
    color: var(--primary);
}

.trust-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 28px 0;
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.95;
}

.trust-item i {
    font-size: 1.4rem;
    color: var(--accent);
}

@media (min-width: 768px) {
    .trust-item {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }

    .trust-item:last-child {
        border-right: none;
    }
}

#mapwrapper {
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

#mapwrapper svg {
    width: 100%;
    height: auto;
}

#regions path {
    cursor: pointer;
    transition: fill 0.2s ease, transform 0.15s ease;
}

#regions path:hover {
    fill: #547792 !important;
    transform: none;
}

#tooltip {
    position: fixed;
    background: #000;
    color: #fff;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    pointer-events: none;
    display: none;
    z-index: 9999;
    max-width: 200px;
    white-space: nowrap;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.case-icon,
.case-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #9bb6c4;
    flex-shrink: 0;
}

.case-icon img {
    width: 26px;
    height: 26px;
}

.case-icon i {
    font-size: 26px;
}

.case-card {
    width: 200px;
    height: 130px;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    color: #1f3448;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-size: 14px;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.case-title {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.25;
}

.content-block {
    margin-bottom: 48px;
}

.content-block h2 {
    margin-bottom: 16px;
}

.content-block ul {
    columns: 2;
    column-gap: 32px;
}

@media (max-width: 768px) {
    .content-block ul {
        columns: 1;
    }
}

.form-card {
    padding: 24px;
}

.form-card .form-control,
.form-card .form-select {
    font-size: 0.95rem;
}

.form-card button {
    font-weight: 600;
    letter-spacing: 0.2px;
}

.form-card .small {
    line-height: 1.45;
}

section {
    position: relative;
}

section+section {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

p {
    max-width: 72ch;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.7;
}

.btn {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.info-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
    transform: translateY(-4px);
}

.how-it-works-section {
    background-color: var(--white);
}

.how-card {
    background: var(--white);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.how-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.how-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.how-card h5 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 12px;
}

.eligibility-section {
    background-color: var(--white);
}

.eligibility-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 24px;
}

.eligibility-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-weight: 500;
}

.eligibility-list li::before {
    content: "✔";
    color: var(--secondary);
    font-weight: 700;
    margin-top: 2px;
}

.cases-section {
    background: #1f3448;
    padding: 90px 0;
}

.cases-title {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cases-subtitle {
    color: #d1d9e0;
    max-width: 860px;
    margin: 0 auto 56px;
    font-size: 1.05rem;
}

.cases-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px 30px;
}

.cases-footer {
    color: #ffffff;
    font-weight: 600;
    display: block;
    margin: 52px auto 0;
}

.footer {
    background-color: var(--primary);
    color: var(--white);
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer h6 {
    color: var(--white);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.15);
}

.location-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.location-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.location-modal-box {
    position: relative;
    max-width: 420px;
    background: #ffffff;
    margin: 10vh auto;
    padding: 28px;
    border-radius: 12px;
    z-index: 1;
}

.location-modal-box h4 {
    margin-bottom: 8px;
}

.location-modal-box input {
    margin-top: 12px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.image-placeholder {
    width: 100%;
    height: 260px;
    background: #eaeaea;
    border-radius: 12px;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 700px;
    text-align: justify;
}

.steps-list li {
    padding-left: 28px;
    margin-bottom: 16px;
    position: relative;
    line-height: 1.6;
}

.steps-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: #547792;
    font-weight: 700;
}

.accident-details {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.accident-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.accident-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.accident-card h4 {
    margin-bottom: 10px;
    color: #213448;
}

.accident-card p {
    flex-grow: 1;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.accident-card .btn {
    align-self: flex-start;
}

.read-more-btn {
    margin-top: 12px;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 6px;
    align-self: flex-start;
}

.read-more-btn:focus {
    box-shadow: none;
}

.accident-details {
    display: none;
    margin-top: 10px;
}

.accident-card.is-open .accident-details {
    display: block;
}

.accident-details {
    display: none;
    margin-top: 12px;
}

.accident-card.is-open .accident-details {
    display: block;
}

.accident-card {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    min-height: 260px;
    /* fixed card height */
    overflow: visible;
    /* allow overlay */
}

/* Hide details by default */
.accident-details {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    padding: 20px;
    margin-top: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
}

/* Show only for open card */
.accident-card.is-open .accident-details {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.accident-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    /* increase vertical gap */
}

.qualification-list {
    list-style: none;
    padding-left: 0;
}

.qualification-list li {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}


.section-badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1f3a56;
    background-color: #e9f1f7;
    padding: 6px 12px;
    border-radius: 999px;
}

.section-header {
    min-height: 240px;
    /* adjust once, stays aligned */
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-badge {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #1f3a56;
    background: #e9f1f7;
    padding: 6px 12px;
    border-radius: 999px;
}

/* Shared header block */
.section-header {
    border-bottom: 1px solid #1f3a56;
    margin-bottom: 20px;
    padding-bottom: 16px;
    min-height: 260px;
    /* keeps both columns aligned */
}

/* Right column slight title height compensation */
.section-header--offset h2 {
    margin-bottom: 3.5rem;
}

/* Badge */
.section-badge {
    display: inline-block;
    margin: 8px 0 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1f3a56;
    background-color: #e9f1f7;
    padding: 6px 12px;
    border-radius: 999px;
}

/* Qualification list */
.qualification-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.qualification-list li {
    margin-bottom: 18px;
    line-height: 1.55;
}

.contact-info li {
    line-height: 1.6;
}

.contact-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
}

.content-block h3 {
    margin-bottom: 0.75rem;
}

.content-block p {
    margin-bottom: 1rem;
}

.about-content {
    text-align: justify;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

form p {
    text-align: justify;
    margin: 0 auto;
}

.hero-bg {
    /* background-image: url("/img/usa-map.svg"); */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /* background-color: rgba(255, 255, 255, 0.85); */
    /* background-blend-mode: overlay; */
}

/* ===== Scroll Reveal Base ===== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variants */
.reveal--fade {
    transform: none;
}

.reveal--left {
    transform: translateX(-40px);
}

.reveal--right {
    transform: translateX(40px);
}

/* Stagger children */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(24px);
}

.reveal-stagger.is-visible>* {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.is-visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-stagger.is-visible>*:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-stagger.is-visible>*:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal-stagger.is-visible>*:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal-stagger.is-visible>*:nth-child(5) {
    transition-delay: 0.5s;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-stagger>* {
        transition: none;
        transform: none;
        opacity: 1;
    }
}