/**
 * SleepStyle Auto PAP landing page
 * Brand colors & fonts only (Montserrat, primary, grays).
 */

:root {
    --primary-color: #0f3a82;
    --primary-color-dark: #0a2b62;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

.sleepstyle-hero,
.sleepstyle-categories,
.sleepstyle-cta,
.sleepstyle-features {
    font-family: 'Montserrat', sans-serif;
}

.sleepstyle-hero {
    background: #fff;
    padding: 3.5rem 1.5rem 4rem;
}

.sleepstyle-hero__shell {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
}

.sleepstyle-hero__copy {
    max-width: 520px;
}

.sleepstyle-hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
    margin: 0 0 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

.sleepstyle-hero__title sup {
    font-size: 0.5em;
    top: -0.4em;
    font-weight: 600;
}

.sleepstyle-hero__body {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--gray-700);
    margin: 0 0 1.75rem;
}

.sleepstyle-hero__body sup {
    font-size: 0.65em;
    top: -0.35em;
}

.sleepstyle-hero__actions {
    margin-top: 0.5rem;
}

.sleepstyle-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color);
    border: none;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 58, 130, 0.25);
}

.sleepstyle-hero__btn:hover {
    background: var(--primary-color-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(15, 58, 130, 0.35);
}

.sleepstyle-hero__btn i {
    font-size: 1rem;
}

.sleepstyle-hero__media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sleepstyle-hero__media-frame {
    max-width: 420px;
    width: 100%;
}

.sleepstyle-hero__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Tablet */
@media (max-width: 992px) {
    .sleepstyle-hero {
        padding: 2.5rem 1.25rem 3rem;
    }
    .sleepstyle-hero__shell {
        gap: 2.5rem;
    }
    .sleepstyle-hero__title {
        margin-bottom: 1rem;
    }
    .sleepstyle-hero__body {
        margin-bottom: 1.5rem;
    }
    .sleepstyle-hero__media-frame {
        max-width: 360px;
    }
}

/* Mobile: stack copy above image */
@media (max-width: 768px) {
    .sleepstyle-hero {
        padding: 2rem 1rem 2.5rem;
    }
    .sleepstyle-hero__shell {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .sleepstyle-hero__copy {
        max-width: 100%;
    }
    .sleepstyle-hero__title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        margin-bottom: 0.875rem;
    }
    .sleepstyle-hero__body {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }
    .sleepstyle-hero__actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    .sleepstyle-hero__btn {
        padding: 0.75rem 1.35rem;
        font-size: 0.9375rem;
    }
    .sleepstyle-hero__media-frame {
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .sleepstyle-hero {
        padding: 1.5rem 0.75rem 2rem;
    }
    .sleepstyle-hero__shell {
        gap: 1.5rem;
    }
    .sleepstyle-hero__media-frame {
        max-width: 240px;
    }
}

/* =========================
   Second section: category cards (masks, supplies, cleaning)
   ========================= */

.sleepstyle-categories {
    background: #fff;
    padding: 3rem 1.5rem 4rem;
}

.sleepstyle-categories__shell {
    max-width: 1200px;
    margin: 0 auto;
}

.sleepstyle-categories__title.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sleepstyle-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem 2rem;
    align-items: stretch;
}

.sleepstyle-categories__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sleepstyle-categories__card:hover {
    opacity: 0.9;
}

.sleepstyle-categories__card:hover .sleepstyle-categories__text {
    color: var(--primary-color);
}

.sleepstyle-categories__image-wrap {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 1rem;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sleepstyle-categories__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sleepstyle-categories__text {
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--gray-600);
    margin: 0;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Tablet: 3 columns, smaller gap */
@media (max-width: 992px) {
    .sleepstyle-categories {
        padding: 2.5rem 1.25rem 3rem;
    }
    .sleepstyle-categories__grid {
        gap: 2rem 1.5rem;
    }
    .sleepstyle-categories__image-wrap {
        max-width: 180px;
    }
}

/* Mobile: stack or 2 columns */
@media (max-width: 768px) {
    .sleepstyle-categories {
        padding: 2rem 1rem 2.5rem;
    }
    .sleepstyle-categories__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .sleepstyle-categories__image-wrap {
        max-width: 200px;
    }
    .sleepstyle-categories__text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .sleepstyle-categories {
        padding: 1.5rem 0.75rem 2rem;
    }
    .sleepstyle-categories__grid {
        gap: 1.75rem;
    }
    .sleepstyle-categories__image-wrap {
        max-width: 160px;
    }
}

/* =========================
   Third section: "Come out of the night" (grey CTA block)
   ========================= */

.sleepstyle-cta {
    background: #0a2b62;
    padding: 4rem 1.5rem 4.5rem;
}

.sleepstyle-cta__shell {
    max-width: 1200px;
    margin: 0 auto;
}

.sleepstyle-cta__content {
    max-width: 640px;
}

.sleepstyle-cta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.25rem;
    letter-spacing: 0.02em;
}

.sleepstyle-cta__body {
    font-size: 1rem;
    line-height: 1.65;
    color: #fff;
    margin: 0;
}

@media (max-width: 768px) {
    .sleepstyle-cta {
        padding: 2.5rem 1rem 3rem;
    }
    .sleepstyle-cta__content {
        max-width: 100%;
    }
    .sleepstyle-cta__title {
        margin-bottom: 1rem;
    }
    .sleepstyle-cta__body {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .sleepstyle-cta {
        padding: 2rem 0.75rem 2.5rem;
    }
    .sleepstyle-cta__title {
        font-size: 1.5rem;
    }
}

/* =========================
   Fourth section: SleepStyle™ Features (project colors & fonts)
   ========================= */

.sleepstyle-features {
    background: var(--gray-50);
    padding: 3.5rem 1.5rem 4rem;
}

.sleepstyle-features__shell {
    max-width: 1200px;
    margin: 0 auto;
}

.sleepstyle-features__title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 0 0 2.5rem;
    letter-spacing: 0.02em;
}

.sleepstyle-features__title sup {
    font-size: 0.5em;
    top: -0.4em;
    font-weight: 600;
}

.sleepstyle-features__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.5rem;
}

.sleepstyle-features__item {
    margin: 0;
}

.sleepstyle-features__item-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.sleepstyle-features__item-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-700);
    margin: 0;
}

@media (max-width: 992px) {
    .sleepstyle-features {
        padding: 2.5rem 1.25rem 3rem;
    }
    .sleepstyle-features__title {
        margin-bottom: 2rem;
    }
    .sleepstyle-features__grid {
        gap: 1.75rem 2rem;
    }
}

@media (max-width: 768px) {
    .sleepstyle-features {
        padding: 2rem 1rem 2.5rem;
    }
    .sleepstyle-features__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .sleepstyle-features__item-title {
        font-size: 1rem;
    }
    .sleepstyle-features__item-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .sleepstyle-features {
        padding: 1.5rem 0.75rem 2rem;
    }
    .sleepstyle-features__title {
        margin-bottom: 1.5rem;
        font-size: 1.375rem;
    }
    .sleepstyle-features__grid {
        gap: 1.25rem;
    }
}
