:root {
    --arms-navy: #152a45;
    --arms-navy-dark: #0f1f33;
    --arms-red: #a61e2e;
    --arms-red-hover: #8c1926;
}

body {
    background: var(--arms-navy);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.btn-arms {
    background: var(--arms-red);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0;
}

.btn-arms:hover,
.btn-arms:focus {
    background: var(--arms-red-hover);
    color: #fff;
}

/* Hero */
.hero {
    position: relative;
    min-height: 85vh;
    overflow-x: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 31, 51, 0.45), rgba(15, 31, 51, 0.7));
}

.hero__content {
    position: relative;
    z-index: 1;
    min-height: calc(85vh - 5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem 4rem;
}

.hero__title {
    max-width: 22rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

@media (min-width: 576px) {
    .hero__title {
        max-width: 28rem;
        font-size: 1.75rem;
    }
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1030;
}

.arms-ribbon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 5rem;
    margin-left: 1rem;
    padding: 0.75rem 0.5rem 1.25rem;
    background: var(--arms-red);
    color: #fff;
    text-align: center;
    text-decoration: none;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
}

.arms-ribbon__star {
    width: 1.25rem;
    height: 1.25rem;
    margin-bottom: 0.25rem;
}

.arms-ribbon__text {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.offcanvas-arms {
    background: var(--arms-navy-dark);
    color: #fff;
    width: min(18rem, 85vw);
}

/* Main content */
.content-gradient {
    flex: 1;
    background: linear-gradient(to bottom, #002768, #0e7394);
}

.section {
    padding: 2.5rem 1.25rem;
}

.section + .section {
    padding-top: 0;
}

/* FAQ accordion (Bootstrap overrides) */
.accordion-arms {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: rgba(255, 255, 255, 0.15);
    --bs-accordion-btn-bg: transparent;
    --bs-accordion-btn-color: rgba(255, 255, 255, 0.95);
    --bs-accordion-active-bg: transparent;
    --bs-accordion-active-color: #fff;
    --bs-accordion-body-padding-x: 0;
    --bs-accordion-body-padding-y: 0;
    --bs-accordion-btn-padding-x: 0;
    --bs-accordion-btn-padding-y: 1rem;
    --bs-accordion-btn-focus-box-shadow: none;
}

.accordion-arms .accordion-item {
    background: transparent;
    border-left: 0;
    border-right: 0;
}

.accordion-arms .accordion-button {
    font-size: 0.875rem;
    box-shadow: none !important;
}

.accordion-arms .accordion-button::after {
    display: none;
}

.accordion-arms .accordion-chevron {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-left: 1rem;
    transition: transform 0.2s;
}

.accordion-arms .accordion-button:not(.collapsed) .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-arms .accordion-body {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    padding: 0 3rem 1rem 0;
}

/* Storage carousel */
.storage-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.storage-scroll::-webkit-scrollbar {
    display: none;
}

.storage-card {
    position: relative;
    flex-shrink: 0;
    width: 11rem;
    color: #fff;
    text-decoration: none;
}

@media (min-width: 576px) {
    .storage-card {
        width: 13rem;
    }
}

.storage-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.storage-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 31, 51, 0.85), transparent 60%);
}

.storage-card__label {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Survey */
.survey-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 5rem);
    padding: 5rem 1.25rem 1.5rem;
}

.survey-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 28rem;
    width: 100%;
    margin: 0 auto;
}

.survey-form__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0 2rem;
}

.survey-form__category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1rem;
}

.survey-form__question {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 2rem;
}

@media (min-width: 576px) {
    .survey-form__question {
        font-size: 1.5rem;
    }
}

.survey-form__subtitle {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.survey-form__error {
    font-size: 0.875rem;
    color: #ffb4b4;
    margin-top: 1rem;
    margin-bottom: 0;
}

.survey-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.survey-option {
    display: block;
    cursor: pointer;
    margin: 0;
}

.survey-option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.survey-option__label {
    display: block;
    padding: 1rem 1.25rem;
    background: #2c4475;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
    transition: background 0.15s, box-shadow 0.15s;
}

.survey-option__input:checked + .survey-option__label {
    background: #3d5a94;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.survey-option__input:focus-visible + .survey-option__label {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.survey-form__footer {
    padding-top: 1rem;
}

.survey-form__next {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--arms-navy-dark);
    border: none;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    transition: background 0.15s;
}

.survey-form__next:hover:not(:disabled),
.survey-form__next:focus:not(:disabled) {
    background: #162a44;
    color: #fff;
}

.survey-form__next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.survey-progress {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.survey-progress__bar {
    flex: 1;
    height: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
}

.survey-progress__bar--active {
    background: #fff;
}

.survey-page--rank {
    justify-content: flex-start;
}

.survey-page--rank .survey-form__body {
    justify-content: flex-start;
    padding-top: 0.5rem;
}

.survey-form__question--rank {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
    .survey-form__question--rank {
        font-size: 1.25rem;
    }
}

.survey-rank__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.survey-rank__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.625rem;
    background: rgba(255, 255, 255, 0.12);
    cursor: grab;
    user-select: none;
}

.survey-rank__item--dragging {
    opacity: 0.6;
    cursor: grabbing;
}

.survey-rank__grip {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.125rem;
    line-height: 1;
}

.survey-rank__number {
    flex-shrink: 0;
    width: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.survey-rank__number--hidden {
    visibility: hidden;
}

.survey-rank__label {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
}

.survey-rank__controls {
    flex-shrink: 0;
    display: flex;
    gap: 0.375rem;
}

.survey-rank__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--arms-navy-dark);
    color: #fff;
    font-size: 0.875rem;
    line-height: 1;
}

.survey-rank__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.survey-rank__arrow:not(:disabled):hover,
.survey-rank__arrow:not(:disabled):focus {
    background: #1a3352;
    color: #fff;
}

.survey-rank__divider {
    height: 1px;
    margin: 0.375rem 0;
    background: rgba(255, 255, 255, 0.25);
    list-style: none;
}

/* Results */
.results-page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.results-hero {
    text-align: center;
    padding: 5rem 1.5rem 2.5rem;
}

.results-hero__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1rem;
}

.results-hero__title {
    max-width: 22rem;
    margin: 0 auto 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.35;
}

.results-hero__subtitle {
    max-width: 20rem;
    margin: 0 auto;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 576px) {
    .results-hero__title {
        max-width: 28rem;
        font-size: 1.5rem;
    }
}

.results-list {
    flex: 1;
    background: #fff;
    color: var(--arms-navy);
    padding: 0 1.25rem 2.5rem;
    clip-path: polygon(0 1.25rem, 42% 1.25rem, 50% 0, 58% 1.25rem, 100% 1.25rem, 100% 100%, 0 100%);
}

.results-card-wrap {
    padding-top: 1.75rem;
}

.results-card-wrap + .results-card-wrap {
    border-top: 1px solid rgba(21, 42, 69, 0.12);
}

.results-card-wrap:first-child {
    padding-top: 2rem;
}

.results-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--arms-red);
}

.results-card__badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--arms-red);
    color: #fff;
}

.results-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 1.25rem;
}

.results-card__content {
    min-width: 0;
}

.results-card__title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.results-card__description {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(21, 42, 69, 0.65);
    margin-bottom: 1rem;
}

.results-card__ratings {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
}

.results-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.results-rating__label {
    flex-shrink: 0;
    width: 6.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.results-rating__stars {
    display: flex;
    gap: 0.125rem;
    color: var(--arms-navy);
    font-size: 0.875rem;
}

.results-rating__stars .bi-star {
    color: rgba(21, 42, 69, 0.2);
}

.results-card__cta {
    display: block;
    width: 100%;
    max-width: 14rem;
    padding: 0.875rem 1.25rem;
    background: var(--arms-navy);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none;
}

.results-card__cta:hover,
.results-card__cta:focus {
    background: var(--arms-navy-dark);
    color: #fff;
}

.results-card__media {
    flex-shrink: 0;
    width: 5.5rem;
    align-self: start;
}

.results-card__media img {
    width: 100%;
    height: auto;
    display: block;
}

.results-empty {
    padding: 2rem 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(21, 42, 69, 0.75);
}

.results-empty__cta {
    max-width: 16rem;
}
