:root {
    --shifman-gold-lite: #B8A686;
    --shifman-gold: #c5a059;
    --gallery-cream: #f4f1ea;
    --hero-white: #ffffff;
    --shifman-bone: #e3dfd9;
    --charcoal-bg: #2a2d30; /* The singular background color */
    --hatch-line: rgba(197, 160, 89, 0.08); /* Subtle gold for the lines */
}

.luxury-hero {
    position: relative;
    height: 80vh; /* Adjust height based on preference */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('https://shifmanmattresses.com/wp-content/uploads/2021/01/original-delivary-trucks.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* The Cinematic Tint Overlay */
.hero-tint-overlay {
    position: absolute;
    inset: 0;
    /* This creates the dark, moody look while keeping text readable */
    background: linear-gradient(
        rgba(30, 25, 20, 0.7), 
        rgba(30, 25, 20, 0.7)
    );
    z-index: 1;
}

.hero-content-container {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
    margin-top: 50px;
}

/* Typography Hierarchy */
.hero-pre-label {
    display: block;
    font-family: 'Montserrat', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: clamp(14px, 2vw, 18px);
    color: var(--shifman-bone);
    margin-bottom: 20px;
}

.hero-main-title {
    font-family: 'Serif Display', serif; /* Use your site's premium serif font */
    font-size: clamp(40px, 8vw, 90px);
    line-height: 1.1;
    color: var(--shifman-bone);
    margin: 0;
}

.gold-italic {
    font-family: 'Serif Display', serif;
    font-style: italic;
    color: var(--shifman-gold);
}

.hero-gold-divider {
    width: 80px;
    height: 1px;
    background-color: var(--shifman-gold);
    margin: 30px auto;
}

.shifman-hero-caption {
    font-family: 'Playfair Display', 'Inter', sans-serif;
    font-size: clamp(16px, 1.5vw, 22px);
    line-height: 1.6;
    color: var(--shifman-bone);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Tablet/Mobile Scaling */
@media (max-width: 820px) {
    .luxury-hero {
        height: 60vh;
    }
}

/* SECTION 1 STYLING */
.foundation-section {
    padding: 100px 10%;
    background-color: #ffffff;
    overflow: hidden; /* Prevents horizontal scroll if the frame is large */
}

.foundation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.foundation-content {
    flex: 1; /* Allows text to take up remaining space */
    min-width: 300px; /* Ensures text doesn't get too thin before stacking */
}

/* THE DIAMOND HATCH PATTERN */
.textured-hatch-section {
    padding: 120px 10%;
    background-color: #2c1011;
    /* Diagonal cross-hatch pattern to match your image */
    background-image: 
        linear-gradient(45deg, var(--hatch-line) 25%, transparent 25%, transparent 75%, var(--hatch-line) 75%, var(--hatch-line)),
        linear-gradient(-45deg, var(--hatch-line) 25%, transparent 25%, transparent 75%, var(--hatch-line) 75%, var(--hatch-line));
    background-size: 100px 100px; /* Large scale diamond hatch */
    color: #ffffff;
}

.matted-frame-portrait {
    /* Adjusting to roughly a 1:1.28 ratio to match 650x832 source */
    flex: 0 0 500px; 
    height: 640px; 
    
    background: #ffffff;
    padding: 45px; /* Increased matting for the taller frame */
    box-shadow: 0 50px 100px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    z-index: 5;
    /* Centers the frame on the transition line between background colors */
    transform: translateX(30px); 
}

/* LUXURY MATTED FRAMES */
.matted-frame-sm {
    flex: 0 0 600px;
    height: 400px;
    background: #ffffff;
    padding: 40px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column; /* Allows caption to sit below the image */
    overflow: hidden;
}

.matted-frame-lg {
    background: #ffffff;
    padding: 30px; /* The white 'mat' */
    box-shadow: 0 40px 100px rgba(0,0,0,0.15);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.inner-gold-border {
    border: 1px solid #c5a059;
    padding: 2px;
    width: 100%;
    flex-grow: 1; /* Makes image fill space above the caption */
    overflow: hidden;
    position: relative;
}

.inner-gold-border img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Focus on the right-center of the truck fleet */
    object-position: 57% center; 
    /* The cleaner way to 'zoom' without breaking the width */
    display: block;
}

.matted-frame-lg img {
    display: block;
    max-width: 450px;
    height: auto;
}

/* TYPOGRAPHY DETAILS */

.gold-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--shifman-gold);
    margin-bottom: 15px;
}

/* THE SHORT DESCRIPTION (Caption) */
.image-caption {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c5a059;
    margin-top: 15px;
    text-align: right;
}

.family-heritage-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background-color: var(--charcoal-bg); /* Fallback for the sketch side */
}

/* Background Logic */
.heritage-bg-split {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 1;
}

.hatch-overlay {
    flex: 0 0 55%;
    background-color: var(--charcoal-bg);
    
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 59px, var(--hatch-line) 59px, var(--hatch-line) 61px),
        repeating-linear-gradient(-45deg, transparent, transparent 59px, var(--hatch-line) 59px, var(--hatch-line) 61px);
    
    background-color: var(--charcoal-bg);
}

.blueprint-sketch-side {
    flex: 0 0 45%;
    background-color: var(--charcoal-bg);
}

/* Content Layout */
.heritage-container {
    position: relative;
    z-index: 2;
    max-width: 1300px; /* Slightly wider for the larger portrait */
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 0 5%;
}

.heritage-text-content {
    flex: 1;
    color: #ffffff;
}

.heritage-narrative {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 17px;
    opacity: 0.9;
}

/* Quote Styling */
.bill-hammer-quote {
    border-left: 2px solid var(--shifman-gold);
    padding-left: 30px;
    margin: 0;
}

.bill-hammer-quote p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.bill-hammer-quote cite {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--shifman-gold);
    font-style: normal;
}

/* PORTRAIT MATTED FRAME: Sized for 650x832 source */
.matted-frame-portrait {
    flex: 0 0 450px; /* Width remains elegant */
    height: 600px;  /* Taller to support the portrait orientation */
    background: #ffffff;
    padding: 45px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(40px); /* Overlap effect */
}


/* TABLET SCALING (820px to 1024px) */
@media screen and (min-width: 820px) and (max-width: 1024px) {
    .hatch-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .matted-frame-lg {
        /* Scaling the matting thickness as we discussed earlier */
        padding: calc(20px + (40 - 20) * ((100vw - 820px) / (1024 - 820)));
        margin-top: 50px;
    }

}

/* MOBILE STACKING */
@media screen and (max-width: 820px) {
    .foundation-container {
        flex-direction: column; /* Put image on top or bottom for mobile */
        text-align: center;
        gap: 40px;
    }
    
    .matted-frame-sm {
        flex: 0 0 auto;
        width: 100%;
        height: 280px; /* Shorter height for mobile as requested */
        padding: 20px; /* Reduced padding to maximize image visibility */
    }

    .inner-gold-border img {
        transform: scale(1.05); /* Slightly less zoom on mobile to see more context */
        object-position: 57% center; /* Re-center for vertical mobile screens */
    }
}

/* Mobile Stacking */
@media (max-width: 900px) {
    .heritage-container {
        flex-direction: column;
        text-align: left;
    }
    .matted-frame-portrait {
        flex: 0 0 auto;
        width: 100%;
        height: 500px;
        transform: none;
    }
}

.quilted-pattern {
  background-color: #e5e5e5;
  background-image: 
    linear-gradient(45deg, rgba(255,255,255,0.5) 25%, transparent 25%), /* Highlight */
    linear-gradient(-45deg, rgba(0,0,0,0.1) 25%, transparent 25%);    /* Shadow */
  background-size: 40px 40px;
}

.difference-preview-section {
    padding: 120px 10%;
    background-color: #ffffff; /* Clean white to contrast the previous charcoal */
    text-align: center;
}

.difference-header {
    max-width: 700px;
    margin: 0 auto 80px;
}

.difference-header h2 {
    font-size: 42px;
}

.section-intro {
    font-family: 'Inter', sans-serif;
    color: #666;
    line-height: 1.6;
    font-size: 18px;
    margin-top: 20px;
}

/* THE PILLARS GRID */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

/* THE ICON CONTAINER */
.pillar-icon-wrap {
    height: 60px; /* Set your desired height */
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-icon-wrap img {
    max-width: 100%;
    max-height: 100%;
    /* 'contain' ensures the whole logo is visible without being cropped */
    object-fit: contain; 
}

.pillar-item {
    padding: 60px 30px;
    border: 1px solid #f0f0f0; /* Very subtle framing */
    transition: all 0.4s ease;
    position: relative;
}

.pillar-item:hover {
    border-color: var(--shifman-gold); /* Subtle hover tie-in */
    transform: translateY(-10px);
}

.pillar-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 15px;
    color: #2a2d30;
}

.pillar-item p {
    font-size: 14px;
    line-height: 1.7;
    color: #777;
}

/* CTA BUTTON */
.cta-button-gold {
    display: inline-flex;
    align-items: center;
    padding: 18px 40px;
    border: 1px solid var(--shifman-gold);
    background-color: var(--shifman-gold);
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.arrow-right {
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.cta-button-gold:hover .arrow-right {
    transform: translateX(5px);
}

/* RESPONSIVE STACKING */
@media (max-width: 1100px) {
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
    .pillars-grid { grid-template-columns: 1fr; }
    .difference-preview-section { padding: 80px 5%; }

    .difference-header h2 {
        font-size: 30px;
    }
}

/* --- MOBILE BACKGROUND CONSISTENCY --- */
@media (max-width: 900px) {
    /* Force the hatch pattern to span the full width of the section */
    .hatch-overlay {
        flex: 0 0 100%;
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    /* Hide the non-hatched side to prevent the split look */
    .blueprint-sketch-side {
        display: none;
    }

    /* Ensure the container content stays above the new full-width background */
    .heritage-container {
        position: relative;
        z-index: 2;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    /* Optional: Soften the hatch intensity for better text readability on small screens */
    .hatch-overlay {
        opacity: 0.6; 
    }
}

/* --- HERITAGE MONOGRAM WATERMARK --- */
.heritage-watermark-wrap {
    position: absolute;
    top: -20px;
    left: 12px;
    z-index: -1; /* Sits behind the text */
    opacity: 0.1; /* Very subtle Arhaus-style watermark */
    pointer-events: none;
}

.heritage-watermark {
    width: 250px; /* Large scale for impact */
    height: auto;
    /* Tints the monogram to your heritage gold #B8A46B */
    filter: invert(72%) sepia(13%) saturate(763%) hue-rotate(9deg) brightness(91%) contrast(85%);
}

/* Mobile adjustments for the watermark */
@media (max-width: 900px) {
    .heritage-watermark-wrap {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0.07; /* Even lighter on mobile */
    }
    
    .heritage-watermark {
        width: 180px;
    }
}


/* --- Heritage Cinematic Video Section --- */
.heritage-cinematic-video {
    background-color: #111; /* Deep charcoal background for theater effect */
    padding: 100px 0;
    width: 100%;
}

.video-canvas {
    max-width: 1200px; /* Contained width for an editorial feel */
    margin: 0 auto;
    padding: 0 40px;
}

.heritage-cinematic-video .video-frame-container {
    position: relative;
    padding-bottom: 56.25%; /* Perfect 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    /* Subtle glow instead of a heavy shadow */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.heritage-cinematic-video .video-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle scale-up for a seamless fit */
    transform: scale(1.01); 
}

/* Responsive Padding */
@media (max-width: 768px) {
    .heritage-cinematic-video {
        padding: 60px 0;
    }
    .video-canvas {
        padding: 0 20px;
    }
}