
/* === LUXURY HERO SECTION === */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    padding-top: 140px;
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), 
                      url('https://shifmanmattresses.com/wp-content/uploads/2025/07/1500x983-Bodaciousness-1893_Bird_filmic-copy.jpg');
    background-size: cover;
    background-position: center; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* CONTENT OVERLAY */
.content-overlay {
    padding: 0 8% 80px 8%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    /* Changed to column to put text ABOVE buttons */
    display: flex;
    flex-direction: column; 
    align-items: flex-start; 
}

.hero-title {
    font-family: 'Playfair Display', serif;
    color: #fff;
    /* Your adjusted tasteful size */
    font-size: clamp(2rem, 3.5vw, 3.25rem); 
    line-height: 1.15;
    max-width: 850px; 
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    /* Space between text and buttons */
    margin-bottom: 40px; 
}
.hero-title span { font-style: italic; font-weight: 400; }

.cta-container { 
    display: flex; 
    gap: 20px; 
}

.btn-luxury {
    display: inline-block;
    padding: 18px 35px;
    background-color: #1a0f0d;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.2em;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-luxury:hover { background-color: #fff; color: #1a0f0d; }

/* TABLET OPTIMIZATION (720px WP Preview) */
@media (max-width: 1024px) {
    .hero-section { 
        background-position: 72% center; 
        height: 80vh;
    }

    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 30px;
    }

    .cta-container {
        /* On tablet, we can stack buttons to save horizontal space */
        flex-direction: row; 
        gap: 12px;
    }
}

/* MOBILE OPTIMIZATION (Up to 480px) */
@media (max-width: 480px) {
    .hero-section {
        height: 80vh; /* Adjusted height to frame the bed well */
        padding-top: 120px; /* Space for the header/logo */
    }

    .content-overlay {
        height: 100%;
        display: flex;
        flex-direction: column;
        /* Pushes the title to the top and buttons to the bottom */
        justify-content: space-between; 
        padding: 140px 25px 40px 25px;
        align-items: flex-start;
    }

    .hero-title {
        /* Static font size to avoid clamp conflicts */
        font-size: 1.95rem !important; 
        line-height: 1.2;
        max-width: 350px;
        margin-bottom: 0; /* Remove bottom margin since we are using space-between */
        text-align: left;
    }

    .cta-container {
        /* Keeps buttons stacked and aligned to the right */
        display: flex;
        flex-direction: column; 
        gap: 12px;
        width: 100%;
        align-items: flex-end; 
    }

    .btn-luxury {
        width: 200px;
        padding: 14px;
        font-size: 11px;
        text-align: center;
    }
}

/* --- Home Ethos Canvas Section --- */
.home-ethos-canvas {
    background-color: #ffffff;
    width: 100%;
    overflow: hidden;
}

.home-ethos-canvas .ethos-flex-container {
    display: flex;
    align-items: stretch;
    max-width: 100%; /* Spans full width for a more immersive feel */
}

/* --- Image Side --- */
.home-ethos-canvas .ethos-image-wrap {
    flex: 1.2; /* Slightly wider than the text side */
    position: relative;
    height: 90vh;
    min-height: 600px;
    background-color: #000;
}

.home-ethos-canvas .ethos-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tagline: Upper Right */
.image-tagline-top-right {
    position: absolute;
    top: 5%;
    right: 5%; /* Pushes to the right side */
    text-align: right;
    color: #ffffff;
    max-width: 350px;
    z-index: 10;
}

.image-tagline-top-right p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    line-height: 1.2;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    white-space: nowrap;
}

/* --- Text Side --- */
.home-ethos-canvas .ethos-text-wrap {
    flex: 1;
    background-color: var(--shifman-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
}

.home-ethos-canvas .ethos-text-inner {
    max-width: 480px;
}

.gold-label {
    font-family: 'Montserrat', sans-serif;
}

.serif-display {
    color: #4a3633;
    font-family: 'Playfair Display', serif;
    margin-bottom: 22px;
}

/* --- Mobile Logic --- */
@media (max-width: 1024px) {
    .home-ethos-canvas .ethos-flex-container {
        flex-direction: column;
    }

    .home-ethos-canvas .ethos-image-wrap {
        height: 75vh;
        width: 100%;
    }

    /* Adjust tagline for mobile center-alignment */
    .image-tagline-top-right {
        top: 8%;
        right: 0;
        left: 0;
        width: 100%;
        text-align: center;
        max-width: 90%;
        margin: 0 auto;
    }

    .home-ethos-canvas .ethos-text-wrap {
        padding: 60px 30px;
    }
}

@media (max-width: 768px) {
    .home-ethos-canvas .ethos-image-wrap {
        min-height: auto;
    }

    .image-tagline-top-right {
        top: 4%;
    }
}