/* ==========================================================================
   Beautyrest Landing Page
   Self-contained styles extracted from the V5dev SASS framework
   (reset + theme typography + button component + .d-none utility) plus the
   full custom/_beautyrestLanding.scss, converted from SCSS to flat CSS.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Arimo:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif&display=swap');

/* ==========================================================================
   NOTE: Everything below is scoped under `.beautyrest-landing` (the class
   carried by every landing <section>) so this file can be dropped into an
   existing site without overriding its global reset, typography, or buttons.
   The base rules below normally come from the framework's reset + theme;
   here they are re-homed onto the landing sections and their descendants.
   ========================================================================== */

/* ==========================================================================
   1. Scoped Reset  (base/_reset.scss)
   ========================================================================== */

.beautyrest-landing,
.beautyrest-landing *,
.beautyrest-landing *::before,
.beautyrest-landing *::after {
    box-sizing: border-box;
}

.beautyrest-landing :focus-visible {
    outline: 2px solid #d42134;
    border-radius: 2px;
}

/* Re-home the body reset onto each section; descendants inherit from here. */
.beautyrest-landing {
    font-family: 'Arimo', sans-serif;
    font-size: 14px;
    line-height: 1;
    color: #000;
    -webkit-text-size-adjust: 100%;
}

/* Meyer-reset for the tags actually used in the markup. The `font: inherit`
   after `font-size` is intentional (matches source): it makes elements inherit
   their size/family from the section wrapper rather than UA defaults. */
.beautyrest-landing h1, .beautyrest-landing h2, .beautyrest-landing h3,
.beautyrest-landing h4, .beautyrest-landing h5, .beautyrest-landing h6,
.beautyrest-landing p, .beautyrest-landing a, .beautyrest-landing img,
.beautyrest-landing span, .beautyrest-landing div, .beautyrest-landing ul,
.beautyrest-landing ol, .beautyrest-landing li, .beautyrest-landing strong,
.beautyrest-landing b, .beautyrest-landing small, .beautyrest-landing sup,
.beautyrest-landing sub, .beautyrest-landing picture {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 14px;
    font: inherit;
    vertical-align: baseline;
}

.beautyrest-landing ol, .beautyrest-landing ul {
    list-style: none;
}

.beautyrest-landing sup {
    vertical-align: super;
    font-size: smaller;
}

/* ==========================================================================
   2. Scoped Theme Typography  (themes/_theme.scss)
   ========================================================================== */

.beautyrest-landing b {
    font-weight: 600;
}

.beautyrest-landing h1, .beautyrest-landing h2 {
    font-family: 'Arimo', sans-serif;
    line-height: 1.1;
}

.beautyrest-landing h3, .beautyrest-landing h4,
.beautyrest-landing h5, .beautyrest-landing h6 {
    font-family: 'Arimo', sans-serif;
}

.beautyrest-landing p {
    font-family: 'Arimo', sans-serif;
}

.beautyrest-landing h1 { font-size: 2.4em; }
.beautyrest-landing h2 { font-size: 2em; }
.beautyrest-landing h3 { font-size: 1.8em; }
.beautyrest-landing h4 { font-size: 1.6em; }
.beautyrest-landing h5 { font-size: 1.4em; }
.beautyrest-landing h6 { font-size: 1.2em; }

.beautyrest-landing a {
    text-decoration: underline;
    color: inherit;
}

.beautyrest-landing a:hover {
    text-decoration: none;
}

.beautyrest-landing ul {
    display: block;
}

.beautyrest-landing ul li {
    display: list-item;
    text-align: -webkit-match-parent;
}

.beautyrest-landing img {
    max-width: 100%;
    height: auto;
}

.beautyrest-landing small {
    font-size: 0.85em;
}

/* ==========================================================================
   3. Scoped Button Component  (components/_buttons.scss)
   ========================================================================== */

.beautyrest-landing .button {
    background-color: #000000;
    color: #fff;
    display: inline-block;
    padding: 10px 20px;
    border: none;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.2em;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: all 200ms ease-out;
}

.beautyrest-landing .button:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   4. Scoped Display Utility  (generated by utilities/_api.scss)
   ========================================================================== */

.beautyrest-landing.d-none {
    display: none !important;
}

/* ==========================================================================
   5. Beautyrest Landing  (custom/_beautyrestLanding.scss)
   ========================================================================== */

section.beautyrest-landing {
    width: 100%;
    max-width: 1300px;
    margin: 5rem auto;
}

section.beautyrest-landing h2 {
    text-align: center;
    font-family: 'PT Serif', serif;
    font-size: 1.75rem;
    line-height: 1.2;
}

@media (min-width: 992px) {
    section.beautyrest-landing h2 {
        font-size: 2rem;
    }
}

section.beautyrest-landing p {
    font-size: 1rem;
    line-height: 1.4;
}

section.beautyrest-landing .btn-link {
    font-weight: normal;
    font-size: 1rem;
    padding: .75rem 2rem;
}

/* --- Hero --- */
section.beautyrest-landing-hero {
    margin-top: 0;
}

section.beautyrest-landing-hero img {
    width: 100%;
    height: auto;
}

/* --- Glance --- */
section.beautyrest-landing-glance {
    background-color: #f6f2ed;
    padding: 2rem 1rem;
}

section.beautyrest-landing-glance h2 {
    padding: 1rem 0;
}

section.beautyrest-landing-glance .grid-container {
    width: 100%;
    max-width: 450px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    section.beautyrest-landing-glance .grid-container {
        padding: 0 1rem;
        max-width: 100%;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 992px) {
    section.beautyrest-landing-glance .grid-container {
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    section.beautyrest-landing-glance .grid-container {
        gap: 3rem;
        padding: 0 2rem;
    }
}

section.beautyrest-landing-glance .grid-item {
    background-color: #fff;
}

section.beautyrest-landing-glance .grid-item-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

@media (min-width: 1200px) {
    section.beautyrest-landing-glance .grid-item-content {
        padding: 2rem 1.5rem;
    }
}

section.beautyrest-landing-glance .grid-item-title {
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    section.beautyrest-landing-glance .grid-item-title {
        height: 50px;
    }
}

@media (min-width: 992px) {
    section.beautyrest-landing-glance .grid-item-title {
        font-size: 1.2rem;
    }
}

/* --- Collections --- */
section.beautyrest-landing-collections {
    padding: 1rem;
}

section.beautyrest-landing-collections .collections-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    max-width: 500px;
    margin: 0 auto;
    padding-top: 2rem;
    gap: 2rem;
}

section.beautyrest-landing-collections .collections-grid-item {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

section.beautyrest-landing-collections .collections-grid-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 1rem;
}

section.beautyrest-landing-collections .collections-grid-item-content p {
    font-size: 1.1rem;
}

section.beautyrest-landing-collections .collections-grid-item-content p small {
    font-size: 0.85rem;
}

section.beautyrest-landing-collections .collections-grid-item-content ul {
    list-style: disc;
    margin-left: 1rem;
}

section.beautyrest-landing-collections .collections-grid-item-content ul li {
    line-height: 1.5;
    font-size: .95rem;
}

section.beautyrest-landing-collections .collections-grid-item-logo {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
}

section.beautyrest-landing-collections .collections-grid-item-image {
    width: 100%;
    max-height: 550px;
}

section.beautyrest-landing-collections .collections-grid-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    section.beautyrest-landing-collections .collections-grid {
        max-width: 1100px;
        padding-top: 3rem;
        gap: 0;
    }

    section.beautyrest-landing-collections .collections-grid-item {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding-bottom: 0;
    }

    section.beautyrest-landing-collections .collections-grid-item-content {
        max-width: 500px;
    }

    section.beautyrest-landing-collections .collections-grid-item:nth-of-type(even) .collections-grid-item-content {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        padding-left: 2rem;
    }

    section.beautyrest-landing-collections .collections-grid-item:nth-of-type(even) .collections-grid-item-image {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    section.beautyrest-landing-collections .collections-grid-item:nth-of-type(odd) .collections-grid-item-content {
        padding-right: 2rem;
        padding-left: 1rem;
    }

    section.beautyrest-landing-collections .collections-grid-item-logo {
        margin: 0;
    }
}

@media (min-width: 1200px) {
    section.beautyrest-landing-collections .collections-grid-item:nth-of-type(even) .collections-grid-item-content {
        padding-left: 4rem;
    }

    section.beautyrest-landing-collections .collections-grid-item:nth-of-type(odd) .collections-grid-item-content {
        padding-right: 4rem;
    }

    section.beautyrest-landing-collections .collections-grid-item-logo {
        margin: 0;
    }
}

/* --- Comfort --- */
section.beautyrest-landing-comfort {
    position: relative;
    padding: 0 1rem;
    max-width: 500px;
}

section.beautyrest-landing-comfort .text-container {
    text-align: center;
    padding-bottom: 2rem;
}

section.beautyrest-landing-comfort .text-container h2 {
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    section.beautyrest-landing-comfort .text-container {
        position: absolute;
        top: 0;
        left: 50%;
        translate: -50% 0;
        width: 100%;
        max-width: 625px;
        color: #fff;
        padding: 2rem;
    }
}

section.beautyrest-landing-comfort img {
    width: 100%;
    height: auto;
}

section.beautyrest-landing-comfort .boxes {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem;
}

section.beautyrest-landing-comfort .boxes .box {
    width: 100%;
    background-color: #f6f2ed;
    padding: 1.5rem;
}

section.beautyrest-landing-comfort .boxes .box h4 {
    font-size: 1.125rem;
    padding-bottom: 1rem;
}

@media (min-width: 500px) {
    section.beautyrest-landing-comfort .boxes .box {
        width: calc(50% - 0.5rem);
    }
}

@media (min-width: 768px) {
    section.beautyrest-landing-comfort .boxes {
        margin-top: -125px;
        padding: 0 2rem;
    }

    section.beautyrest-landing-comfort .boxes .box {
        width: calc(25% - 0.75rem);
        height: 250px;
    }
}

@media (min-width: 992px) {
    section.beautyrest-landing-comfort .boxes {
        margin-top: -100px;
    }

    section.beautyrest-landing-comfort .boxes .box {
        height: 200px;
    }
}

@media (min-width: 1200px) {
    section.beautyrest-landing-comfort .boxes {
        margin-top: -90px;
        gap: 2rem;
    }

    section.beautyrest-landing-comfort .boxes .box {
        width: calc(25% - 1.5rem);
        height: 180px;
        padding: 1.5rem 2rem;
    }

    section.beautyrest-landing-comfort .boxes .box h4 {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    section.beautyrest-landing-comfort {
        max-width: 1300px;
    }
}

/* --- Bases --- */
section.beautyrest-landing-bases {
    padding: 0 1rem;
}

section.beautyrest-landing-bases .collections-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    max-width: 500px;
    margin: 0 auto;
    padding-top: 2rem;
    gap: 2rem;
}

section.beautyrest-landing-bases .collections-grid-item {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
}

section.beautyrest-landing-bases .collections-grid-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 1rem;
}

section.beautyrest-landing-bases .collections-grid-item-content h4 {
    line-height: 1.3;
    font-size: 1.25rem;
}

section.beautyrest-landing-bases .collections-grid-item-content h4.platinum-title {
    color: #adb0b1;
}

section.beautyrest-landing-bases .collections-grid-item-content h4.gold-title {
    color: #cbb375;
}

section.beautyrest-landing-bases .collections-grid-item-content h4.silver-title {
    color: #747b85;
}

section.beautyrest-landing-bases .collections-grid-item-content h4.bronze-title {
    color: #a7754b;
}

@media (min-width: 1200px) {
    section.beautyrest-landing-bases .collections-grid-item-content h4 {
        font-size: 1.5rem;
    }
}

section.beautyrest-landing-bases .collections-grid-item-image {
    width: 100%;
    max-height: 550px;
}

section.beautyrest-landing-bases .collections-grid-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    section.beautyrest-landing-bases .collections-grid {
        max-width: 1100px;
        padding-top: 3rem;
        gap: 4rem;
    }

    section.beautyrest-landing-bases .collections-grid-item {
        flex-direction: row;
        gap: 0;
    }

    section.beautyrest-landing-bases .collections-grid-item-content {
        width: 50%;
        padding-right: 2rem;
    }

    section.beautyrest-landing-bases .collections-grid-item-content p {
        max-width: 425px;
    }

    section.beautyrest-landing-bases .collections-grid-item-image {
        width: 50%;
    }
}

/* --- Difference --- */
section.beautyrest-landing-difference {
    background-color: #f6f2ed;
}

section.beautyrest-landing-difference .text-container {
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

section.beautyrest-landing-difference h2 {
    padding: 1rem 0 1.5rem;
}

section.beautyrest-landing-difference p {
    margin-bottom: 1rem;
}
