/* ===== Ship Deck Guide – Home Page Styles ===== */

.home-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: var(--space-7) var(--container-margin-mobile);
    background-color: var(--color-deep-navy);
    background-image: linear-gradient(180deg, rgba(10, 31, 60, 0.75) 0%, rgba(10, 31, 60, 0.45) 100%);
    color: var(--color-cool-white);
    text-align: center;
    overflow: hidden;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/public/media/ship-deck-plan.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: 0;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 31, 60, 0.55) 0%, rgba(10, 31, 60, 0.2) 100%);
    z-index: 1;
}

.home-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
}

.home-hero__eyebrow {
    font-family: var(--font-heading);
    font-size: var(--text-small-size);
    line-height: var(--text-small-line-height);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-steel-blue);
    margin: 0;
}

.home-hero__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.2;
    color: var(--color-cool-white);
    margin: 0;
    max-width: 20ch;
}

.home-hero__subtitle {
    font-size: var(--text-h3-size);
    line-height: var(--text-h3-line-height);
    color: var(--color-brushed-silver);
    margin: 0;
    max-width: 60ch;
}

.home-hero__description {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
    color: var(--color-cool-white);
    margin: 0;
    max-width: 65ch;
}

.home-hero__categories {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
    width: 100%;
    max-width: var(--container-max-width);
    margin-top: var(--space-7);
}

.home-hero-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background-color: var(--color-graphite);
    border: 1px solid var(--color-brushed-silver);
    border-radius: var(--radius-medium);
    color: var(--color-cool-white);
    text-decoration: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
    min-width: 0;
}

.home-hero-category:hover {
    background-color: var(--color-steel-blue);
    border-color: var(--color-steel-blue);
    color: var(--color-cool-white);
}

.home-hero-category--casino {
    border-color: var(--color-safety-orange);
}

.home-hero-category--casino:hover {
    background-color: var(--color-safety-orange);
    border-color: var(--color-safety-orange);
    color: var(--color-deep-navy);
}

.home-hero-category__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.home-hero-category__label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-small-size);
    line-height: var(--text-small-line-height);
    text-align: center;
}

/* ===== Section scaffolding ===== */
.home-section {
    padding-block: var(--space-8);
}

.home-section--light {
    background-color: var(--color-cool-white);
    color: var(--color-deep-navy);
}

.home-section--graphite {
    background-color: var(--color-graphite);
    color: var(--color-cool-white);
}

.home-section--casino {
    background-color: var(--color-deep-navy);
    color: var(--color-cool-white);
    border-top: 3px solid var(--color-safety-orange);
    border-bottom: 3px solid var(--color-safety-orange);
}

.home-section--cta {
    background-color: var(--color-deep-navy);
    color: var(--color-cool-white);
    padding: var(--space-9) var(--container-margin-mobile);
}

.home-section__header {
    max-width: 800px;
    margin-bottom: var(--space-7);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.home-section__kicker {
    font-family: var(--font-heading);
    font-size: var(--text-small-size);
    line-height: var(--text-small-line-height);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-steel-blue);
    margin: 0;
}

.home-section__kicker--orange {
    color: var(--color-safety-orange);
}

.home-section__title {
    font-size: var(--text-h2-size);
    line-height: var(--text-h2-line-height);
    color: inherit;
    margin: 0;
}

.home-section__lead {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
    color: inherit;
    margin: 0;
    max-width: 70ch;
}

.home-section__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    max-width: 800px;
}

.home-section__body--stacked {
    max-width: 800px;
}

.home-section__body--grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
    max-width: 100%;
}

.home-section__footer {
    margin-top: var(--space-7);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* ===== Content blocks ===== */
.home-content-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.home-content-block__title {
    font-size: var(--text-h3-size);
    line-height: var(--text-h3-line-height);
    color: inherit;
    margin: 0;
}

.home-content-block p {
    margin: 0;
    max-width: 70ch;
}

.home-content-block--casino .home-content-block__title {
    color: var(--color-safety-orange);
}

.home-list {
    margin: 0;
    padding-inline-start: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-width: 70ch;
}

.home-list li {
    margin: 0;
}

/* ===== Cards ===== */
.home-card {
    background-color: var(--color-cool-white);
    border: 1px solid var(--color-brushed-silver);
    border-radius: var(--radius-medium);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.home-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-steel-blue);
}

.home-card__title {
    font-size: var(--text-h3-size);
    line-height: var(--text-h3-line-height);
    color: var(--color-deep-navy);
    margin: 0;
}

.home-card p {
    margin: 0;
    color: var(--color-graphite);
}

/* ===== FAQ ===== */
.home-faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 800px;
}

.home-faq-item {
    border: 1px solid var(--color-brushed-silver);
    border-radius: var(--radius-medium);
    background-color: var(--color-cool-white);
    overflow: hidden;
}

.home-faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
    color: var(--color-deep-navy);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color var(--transition-fast);
}

.home-faq-item__question:hover {
    color: var(--color-steel-blue);
}

.home-faq-item__icon {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-steel-blue);
    flex-shrink: 0;
}

.home-faq-item__answer {
    padding: 0 var(--space-5) var(--space-5);
}

.home-faq-item__answer p {
    margin: 0;
    color: var(--color-graphite);
}

/* ===== Guide links ===== */
.home-guide-link {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5);
    background-color: var(--color-deep-navy);
    border: 1px solid var(--color-brushed-silver);
    border-radius: var(--radius-medium);
    color: var(--color-cool-white);
    text-decoration: none;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
    min-width: 0;
}

.home-guide-link:hover {
    border-color: var(--color-steel-blue);
    background-color: rgba(74, 122, 156, 0.15);
    color: var(--color-cool-white);
}

.home-guide-link__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-h3-size);
    line-height: var(--text-h3-line-height);
    color: var(--color-steel-blue);
}

.home-guide-link__description {
    font-size: var(--text-small-size);
    line-height: var(--text-small-line-height);
    color: var(--color-brushed-silver);
}

/* ===== CTA ===== */
.home-cta {
    max-width: 600px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}

.home-cta__title {
    font-size: var(--text-h2-size);
    line-height: var(--text-h2-line-height);
    color: var(--color-cool-white);
    margin: 0;
}

.home-cta__text {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
    color: var(--color-brushed-silver);
    margin: 0;
    max-width: 55ch;
}

/* ===== Tablet ===== */
@media (min-width: 768px) and (max-width: 1023px) {
    .home-hero {
        min-height: 500px;
        padding: var(--space-7) var(--container-margin-desktop);
    }

    .home-hero__categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
    }

    .home-section {
        padding-block: var(--space-8);
    }

    .home-section__body--grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== Desktop ===== */
@media (min-width: 1024px) {
    .home-hero {
        min-height: 600px;
        padding: var(--space-8) var(--container-margin-desktop);
    }

    .home-hero__categories {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-section {
        padding-block: var(--space-9);
    }

    .home-section__body--grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
    .home-hero {
        min-height: 400px;
        padding: var(--space-6) var(--container-margin-mobile);
        justify-content: flex-start;
    }

    .home-hero__content {
        gap: var(--space-3);
    }

    .home-hero__title {
        font-size: clamp(1.5rem, 8vw, 2rem);
        line-height: 1.25;
    }

    .home-hero__subtitle {
        font-size: var(--text-body-size);
        line-height: var(--text-body-line-height);
    }

    .home-hero__description {
        font-size: var(--text-small-size);
        line-height: var(--text-small-line-height);
    }

    .home-hero__categories {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        margin-top: var(--space-5);
    }

    .home-hero-category {
        flex-direction: row;
        justify-content: flex-start;
        gap: var(--space-3);
        padding: var(--space-3) var(--space-4);
    }

    .home-section {
        padding-block: var(--space-7);
    }

    .home-section__header {
        margin-bottom: var(--space-5);
    }

    .home-section__body--grid-2 {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .home-section__footer {
        margin-top: var(--space-5);
    }

    .home-cta {
        gap: var(--space-3);
    }

    .home-cta .btn-large {
        width: 100%;
    }
}
