/* Home page styles */

.home-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-navy-deep);
}

.home-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: var(--overlay-navy);
    z-index: 2;
}

.home-hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.home-hero__text {
    max-width: 600px;
    text-align: left;
}

.home-hero h1 {
    color: var(--color-white-pure);
    font-size: var(--text-display-size);
    line-height: var(--text-display-leading);
    font-weight: var(--text-display-weight);
    letter-spacing: var(--text-display-tracking);
    margin-block-end: var(--space-lg);
}

.home-hero__subheadline {
    color: var(--color-white-pure);
    font-size: var(--text-body-large-size);
    line-height: var(--text-body-large-leading);
    margin-block-end: var(--space-xl);
    opacity: 0.9;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.home-hero__primary,
.home-hero__secondary {
    min-width: 0;
}

.home-hero__secondary {
    color: var(--color-turquoise-bright);
    border-color: var(--color-turquoise-bright);
}

.home-hero__secondary:hover {
    color: var(--color-white-pure);
    border-color: var(--color-white-pure);
}

/* Featured Review */
.home-featured__overline {
    color: var(--color-turquoise-bright);
    margin-block-end: var(--space-xs);
}

.home-featured h2 {
    margin-block-end: var(--space-xl);
}

.home-featured__card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--space-xl);
    padding: var(--space-lg);
    transition: transform var(--transition-medium);
}

.home-featured__card:hover {
    transform: scale(1.02);
}

.home-featured__media {
    min-width: 0;
}

.home-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    border-radius: var(--surface-card-radius);
}

.home-featured__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.home-featured__content h3 {
    margin-block-end: 0;
}

.home-featured__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.home-featured__rating {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-state-warning);
    font-weight: 600;
}

.home-featured__stars {
    letter-spacing: 0.1em;
}

.home-featured__score {
    color: var(--color-navy-deep);
}

.home-featured__excerpt {
    max-width: 650px;
    margin-block-end: 0;
}

.home-featured__link {
    font-weight: 600;
    color: var(--color-turquoise-bright);
    text-decoration: underline;
    text-underline-offset: 4px;
    align-self: flex-start;
}

.home-featured__link:hover {
    color: var(--color-navy-deep);
}

/* Explore by Category */
.home-categories h2 {
    margin-block-end: var(--space-xl);
}

.home-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
}

.home-category-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg);
    min-width: 0;
    transition: border-color var(--transition-fast);
}

.home-category-card:hover {
    border-color: var(--color-turquoise-bright);
}

.home-category-card__icon {
    font-size: 2rem;
    line-height: 1;
    margin-block-end: var(--space-xs);
}

.home-category-card h3 {
    margin-block-end: 0;
}

.home-category-card p {
    margin-block-end: 0;
}

/* Top 10 Cruise Experiences */
.home-top-ten__overline {
    color: var(--color-turquoise-soft);
    margin-block-end: var(--space-xs);
}

.home-top-ten h2 {
    color: var(--color-white-pure);
    margin-block-end: var(--space-xl);
}

.home-top-ten__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg) var(--space-xl);
}

.home-top-ten__item {
    display: flex;
    gap: var(--space-md);
    min-width: 0;
    padding-block-end: var(--space-md);
    border-block-end: 1px solid var(--color-navy-mid);
    transition: border-color var(--transition-fast);
}

.home-top-ten__item:hover {
    border-block-end-color: var(--color-turquoise-bright);
}

.home-top-ten__number {
    font-family: var(--font-heading);
    font-size: var(--text-h3-size);
    font-weight: 700;
    color: var(--color-turquoise-bright);
    flex-shrink: 0;
    min-width: 2.5rem;
}

.home-top-ten__item h3 {
    color: var(--color-white-pure);
    margin-block-end: var(--space-xs);
}

.home-top-ten__item p {
    color: var(--color-white-pure);
    margin-block-end: 0;
    max-width: 600px;
}

.home-top-ten__cta {
    margin-block-start: var(--space-xl);
}

/* Latest News */
.home-news__container {
    max-width: 800px;
}

.home-news h2 {
    margin-block-end: var(--space-xl);
}

.home-news__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-news__item {
    padding-block: var(--space-lg);
    border-block-end: 1px solid var(--border-light);
}

.home-news__item:first-child {
    padding-block-start: 0;
}

.home-news__item:last-child {
    border-block-end: none;
    padding-block-end: 0;
}

.home-news__date {
    margin-block-end: var(--space-xs);
}

.home-news__item h3 {
    margin-block-end: var(--space-sm);
}

.home-news__item p:last-child {
    margin-block-end: 0;
}

/* Why Trust Us */
.home-trust h2 {
    text-align: center;
    margin-block-end: var(--space-xl);
}

.home-trust__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl);
}

.home-trust__point {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
    min-width: 0;
}

.home-trust__icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-block-end: var(--space-xs);
}

.home-trust__point h3 {
    margin-block-end: 0;
}

.home-trust__point p {
    margin-block-end: 0;
}

/* Newsletter Signup */
.home-newsletter__container {
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.home-newsletter h2 {
    color: var(--color-white-pure);
    margin-block-end: 0;
}

.home-newsletter__description {
    color: var(--color-white-pure);
    margin-block-end: 0;
}

.home-newsletter__form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    width: 100%;
    justify-content: center;
}

.home-newsletter__form input {
    flex: 1 1 200px;
    min-width: 0;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-navy-mid);
    border-radius: var(--surface-button-radius);
    background-color: var(--color-white-pure);
    color: var(--color-navy-deep);
}

.home-newsletter__form input:focus {
    outline: 2px solid var(--color-turquoise-bright);
    outline-offset: 2px;
}

.home-newsletter__form .btn {
    flex-shrink: 0;
}

.home-newsletter__message {
    width: 100%;
    color: var(--color-white-pure);
    margin-block-end: 0;
    font-size: var(--text-body-small-size);
    min-height: 1.6em;
}

.home-newsletter__message.success {
    color: var(--color-state-success);
}

.home-newsletter__message.error {
    color: var(--color-state-warning);
}

/* Contact Prompt */
.home-contact__container {
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.home-contact h2 {
    margin-block-end: 0;
}

.home-contact__description {
    margin-block-end: 0;
}

/* Responsive */
@media (max-width: 1023px) {
    .home-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-top-ten__list {
        grid-template-columns: 1fr;
    }

    .home-trust__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .home-trust__point {
        align-items: flex-start;
        text-align: left;
    }

    .home-featured__card {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .home-featured__media img {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 767px) {
    .home-hero {
        min-height: 60vh;
    }

    .home-hero__text {
        text-align: center;
        margin-inline: auto;
    }

    .home-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero__primary,
    .home-hero__secondary {
        width: 100%;
    }

    .home-categories__grid {
        grid-template-columns: 1fr;
    }

    .home-featured__card {
        padding: var(--space-md);
    }

    .home-newsletter__form {
        flex-direction: column;
    }

    .home-newsletter__form input {
        flex: 1 1 auto;
        width: 100%;
    }

    .home-newsletter__form .btn {
        width: 100%;
    }

    .home-top-ten__item {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .home-top-ten__number {
        min-width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-featured__card {
        transition: none;
    }
}
