/* ======================= BASE & VARIABLES ======================= */
:root {
    --primary-blue: #0D3B66;
    --light-cream: #FAF0CA;
    --accent-yellow: #F4D35E;
    --text-color: #333;
    --bg-color: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    
    --container-width: 1200px;
    --header-height: 80px;
    --transition-speed: 0.4s;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
a { color: var(--primary-blue); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--accent-yellow); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

section {
    padding: 6rem 0;
    overflow: hidden;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* ======================= BUTTONS ======================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    border-color: var(--accent-yellow);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-yellow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}
.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--bg-color);
}

/* ======================= HEADER ======================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
}
.logo:hover { color: var(--primary-blue); }

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}
.main-nav a.active::after,
.main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-yellow);
    transform: scaleX(1);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-speed) ease;
}

.nav-toggle { display: none; }


/* ======================= SECTION 1: HERO ======================= */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
    padding: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    z-index: -2;
    animation: zoom-in 20s ease-out forwards;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 59, 102, 0.6);
    z-index: -1;
}

@keyframes zoom-in {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    color: white;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.8;
}
.hero-section .btn-primary {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}
.hero-section .btn-primary:hover {
    background-color: transparent;
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}


/* ======================= SECTION 2: COLLECTIONS ======================= */
.collections-section {
    background-color: #f9f9f9;
}
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}
.collection-card {
    background: var(--bg-color);
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.collection-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.collection-info {
    padding: 1.5rem;
}
.collection-info a {
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

/* ======================= SECTION 3: WHY CHOOSE US ======================= */
.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-us-image-stack {
    position: relative;
    height: 450px;
}
.why-us-image-stack img {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    object-fit: cover;
}
.why-us-image-stack .img-1 {
    width: 70%;
    height: 80%;
    top: 0;
    left: 0;
}
.why-us-image-stack .img-2 {
    width: 60%;
    height: 70%;
    bottom: 0;
    right: 0;
    border: 5px solid white;
}
.why-us-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 1.5rem;
}
.why-us-text li {
    margin-bottom: 0.5rem;
}

/* ======================= SECTION 4: BESTSELLERS ======================= */
.bestsellers-section {
    background-color: var(--light-cream);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--bg-color);
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed) ease;
}
.product-card:hover {
    transform: scale(1.03);
}
.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.product-info {
    padding: 1.5rem;
}
.product-price {
    font-weight: 500;
    color: var(--text-color);
    margin: 0.5rem 0 1rem 0;
}

/* ======================= SECTION 5: SCIENCE OF SLEEP ======================= */
.science-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.science-image-wrapper {
    position: relative;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%, 0 20%);
    border-radius: 8px;
    overflow: hidden;
}
.science-image-wrapper img {
    transition: transform 0.6s ease;
    height: 400px;
    width: 100%;
    object-fit: cover;
}
.science-image-wrapper:hover img {
    transform: scale(1.05);
}

/* ======================= SECTION 6: TESTIMONIALS ======================= */
/* ======================= SECTION 6: TESTIMONIALS (REDESIGNED) ======================= */
.testimonials-section-v2 {
    position: relative;
    padding: 6rem 0;
    color: var(--text-color);
    overflow: hidden;
}

.testimonial-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    z-index: -2;
    animation: slow-pan 30s linear infinite alternate;
}

.testimonials-section-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 240, 202, 0.9); /* --light-cream with opacity */
    backdrop-filter: blur(5px);
    z-index: -1;
}

@keyframes slow-pan {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.testimonials-section-v2 .section-header h2 {
    color: var(--primary-blue);
}
.testimonials-section-v2 .section-header p {
    color: #555;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0 auto;
}

.testimonial-slider {
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 0 1rem; /* Padding for spacing between slides if needed */
}

.testimonial-content {
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.testimonial-content::before {
    content: '“';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: var(--font-heading);
    font-size: 6rem;
    color: rgba(13, 59, 102, 0.1);
    line-height: 1;
    z-index: 0;
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--accent-yellow);
    position: relative;
    z-index: 1;
}

.testimonial-rating {
    color: var(--accent-yellow);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-content blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--primary-blue);
    font-style: italic;
    border: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.testimonial-content cite {
    font-family: var(--font-body);
    font-weight: 500;
    font-style: normal;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-content cite .location {
    font-weight: 300;
    color: #777;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

.slider-nav.prev { left: -25px; }
.slider-nav.next { right: -25px; }

/* Slider Dots */
.slider-dots {
    text-align: center;
    margin-top: 1.5rem;
}

.slider-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(13, 59, 102, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dots .dot.active {
    background-color: var(--primary-blue);
}

@media (max-width: 992px) {
    .slider-nav.prev { left: 0; }
    .slider-nav.next { right: 0; }
}

@media (max-width: 576px) {
    .testimonial-content { padding: 2rem; }
    .testimonial-content::before { font-size: 4rem; }
}
/* ======================= SECTION 7: NEWSLETTER ======================= */
.newsletter-section {
    background-color: var(--light-cream);
    text-align: center;
}
.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}
.newsletter-form {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-family: var(--font-body);
}
.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* =================================================================== */
/* ======================= CATALOG PAGE STYLES ======================= */
/* =================================================================== */

/* ======================= SECTION 1: CATALOG HERO ======================= */
.catalog-hero-section {
    background-color: var(--light-cream);
    padding: 8rem 0;
}
.catalog-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.catalog-hero-text p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}
.catalog-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 10px 10px 0px var(--accent-yellow);
}
@media (max-width: 992px) {
    .catalog-hero-content {
        grid-template-columns: 1fr;
    }
    .catalog-hero-image {
        grid-row: 1;
        margin-bottom: 2rem;
    }
}

/* ======================= SECTION 2: CATEGORY NAV ======================= */
.category-nav-section {
    background-color: #f9f9f9;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.category-card {
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 59, 102, 0.8) 0%, rgba(13, 59, 102, 0) 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: background 0.5s ease;
}
.category-card-overlay h3 {
    color: white;
    font-size: 1.5rem;
    transform: translateY(10px);
    transition: transform 0.5s ease;
}
.category-card:hover img {
    transform: scale(1.05);
}
.category-card:hover .category-card-overlay {
    background: linear-gradient(to top, rgba(13, 59, 102, 0.9) 0%, rgba(13, 59, 102, 0.1) 70%);
}
.category-card:hover .category-card-overlay h3 {
    transform: translateY(0);
    color: var(--accent-yellow);
}

.category-card-svg {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--primary-blue);
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    transition: all var(--transition-speed) ease;
}

.category-card-svg svg {
    transition: all var(--transition-speed) ease;
}

.category-card-svg h3 {
    margin: 0;
    color: var(--primary-blue);
    font-size: 1.25rem;
    transition: color var(--transition-speed) ease;
}

.category-card-svg:hover {
    background-color: var(--primary-blue);
    color: var(--accent-yellow); /* This will change the SVG stroke color! */
    transform: translateY(-10px);
}

.category-card-svg:hover h3 {
    color: white;
}

/* ======================= SECTION 3: SPOTLIGHT ======================= */
.spotlight-section {
    position: relative;
    padding: 8rem 0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spotlight-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/spotlight-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}
.spotlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 59, 102, 0.7);
    z-index: -1;
}
.spotlight-content-box {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
}
.spotlight-content-box h2 {
    color: white;
}
.spotlight-content-box .btn-secondary {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}
.spotlight-content-box .btn-secondary:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}

/* ======================= SECTION 4: PRODUCT GRID ======================= */
/* ======================= CATALOG PAGE - PRODUCT GRID (REDESIGNED) ======================= */
.product-grid-section-v2 {
    background-color: #f9f9f9;
}

/* --- Filter Buttons --- */
.product-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-color);
    border: 1px solid #ddd;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--light-cream);
    border-color: var(--accent-yellow);
}

.filter-btn.active {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* --- Product Grid --- */
.product-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card-v2 {
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.product-card-v2.is-hidden {
    transform: scale(0.8);
    opacity: 0;
    /* We use a class to hide instead of display:none for transitions */
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.product-image-v2 {
    position: relative;
    overflow: hidden;
}

.product-image-v2 img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card-v2:hover .product-image-v2 img {
    transform: scale(1.05);
}

/* --- Overlay and Actions --- */
.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 59, 102, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-v2:hover .product-image-overlay {
    opacity: 1;
}

.product-actions {
    position: absolute;
    bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s; /* Slight delay */
}

.product-card-v2:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-actions .btn-secondary {
    background-color: white;
    border-color: white;
    color: var(--primary-blue);
}
.product-actions .btn-secondary:hover {
    background-color: transparent;
    color: white;
}


/* --- Product Tag --- */
.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

/* --- Product Info --- */
.product-info-v2 {
    padding: 1rem 1.25rem;
    text-align: center;
}
.product-info-v2 h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.product-price {
    font-weight: 500;
    color: var(--text-color);
    margin-top: 0.75rem;
}

/* --- Color Swatches --- */
.product-swatches {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    height: 14px; /* Reserve space to prevent layout shift */
}
.product-swatches .swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .product-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .product-grid-v2 { grid-template-columns: 1fr; }
}

.view-all-cta {
    text-align: center;
    margin-top: 3rem;
}
/* ======================= SECTION 5: BUILD A BUNDLE ======================= */
/* ======================= CATALOG PAGE - BUILD A BUNDLE (REDESIGNED) ======================= */
.bundle-section-v2 {
    background-color: var(--light-cream);
    padding: 6rem 0;
}

.bundle-content-v2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* --- Column 1: Intro --- */
.bundle-intro h2 {
    margin-bottom: 1.5rem;
}

/* --- Column 2: Image Stack --- */
.bundle-image-stack {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bundle-image-stack img {
    position: absolute;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.bundle-img-back {
    width: 60%;
    height: 60%;
    top: 0;
    left: 0;
    transform: rotate(-8deg);
    z-index: 1;
}

.bundle-img-front {
    width: 80%;
    height: 85%;
    z-index: 2;
}

/* --- Column 3: Steps --- */
.bundle-steps-wrapper {
    display: flex;
    flex-direction: column;
}
.bundle-steps-v2 {
    margin-bottom: 2.5rem;
}
.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(13, 59, 102, 0.1);
}
.step-item:first-child {
    padding-top: 0;
}
.step-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background-color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}
.step-icon svg {
    width: 22px;
    height: 22px;
}

.step-text h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin: 0 0 0.25rem 0;
}
.step-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .bundle-content-v2 {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    .bundle-image-stack {
        height: 400px; /* Adjust height for smaller screens */
    }
    .bundle-steps-wrapper {
        align-items: center;
    }
    .step-item {
        text-align: left;
    }
}

/* ======================= SECTION 6: SWATCH SHOWCASE ======================= */
.swatch-section {
    background-color: var(--light-cream);
}
.swatch-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.swatch-image-wrapper {
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
}
.swatch-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.color-swatches {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px var(--bg-color), 0 0 0 6px var(--primary-blue);
}
@media (max-width: 992px) {
    .swatch-content {
        grid-template-columns: 1fr;
    }
    .swatch-image-wrapper {
        grid-row: 1;
    }
}

/* ======================= SECTION 7: SHOPPING GUIDE ======================= */
.guide-section {
    background-color: #f9f9f9;
}
.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.guide-faq .faq-item {
    margin-bottom: 2rem;
    border-left: 3px solid var(--accent-yellow);
    padding-left: 1.5rem;
}
.guide-faq .faq-item h4 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}
.guide-faq .faq-item p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}
@media (max-width: 992px) {
    .guide-content {
        grid-template-columns: 1fr;
    }
}

/* ================================================================= */
/* ======================= STORY PAGE STYLES ======================= */
/* ================================================================= */

/* ======================= SECTION 1: STORY HERO ======================= */
.story-hero-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
}
.story-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}
.story-hero-text .subtitle {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}
.story-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 85%);
}
@media (max-width: 992px) {
    .story-hero-content { grid-template-columns: 1fr; }
}

/* ======================= SECTION 2: FOUNDER'S VISION ======================= */
/* ======================= STORY PAGE - FOUNDER'S VISION (REDESIGNED) ======================= */
.founder-section-v2 {
    background-color: #f9f9f9;
    padding: 8rem 0; /* Add more vertical space for a premium feel */
}

.founder-content-v2 {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* Use a 12-column grid for flexible overlap */
    align-items: center;
    gap: 1.5rem;
}

.founder-image-wrapper-v2 {
    grid-column: 1 / 8; /* Image spans from column 1 to 7 */
    grid-row: 1 / 2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.founder-image-wrapper-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.founder-image-wrapper-v2:hover img {
    transform: scale(1.05);
}

.founder-text-card {
    grid-column: 7 / 13; /* Text card starts at column 7, creating the overlap */
    grid-row: 1 / 2;
    background: var(--bg-color);
    padding: clamp(2rem, 5vw, 4rem); /* Responsive padding */
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-left: 5px solid var(--accent-yellow);
    z-index: 2; /* Ensure the text card is on top */
}

.founder-quote {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.founder-quote blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    line-height: 1.4;
    color: var(--primary-blue);
    margin: 0 0 1.5rem 0;
    padding: 0;
    border: none;
    font-style: italic;
}

.signature {
    text-align: right;
}

.signature .name {
    display: block;
    font-family: 'Playfair Display', serif; /* Or a custom script font */
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-color);
}

.signature .title {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #777;
    margin-top: 0.25rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .founder-content-v2 {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
    .founder-image-wrapper-v2,
    .founder-text-card {
        grid-column: 1 / -1; /* Both elements span the full width */
    }
    .founder-text-card {
        margin-top: -4rem; /* Pull the text card up over the image */
        position: relative; /* Needed for z-index to work with margin-top */
    }
}

@media (max-width: 576px) {
    .founder-text-card {
        padding: 2rem;
    }
}

/* ======================= SECTION 3: TIMELINE ======================= */
.timeline-section {
    background-color: var(--light-cream);
}
.timeline {
    position: relative;
    max-width: 900px;
    margin: 2rem auto 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: rgba(13, 59, 102, 0.2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-item::after { /* The circles on the timeline */
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--accent-yellow);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(even)::after {
    left: -10px;
}
.timeline-content {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
}
.timeline-content img {
    margin-top: 1rem;
    border-radius: 4px;
}
@media (max-width: 768px) {
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 10px; }
}

/* ======================= SECTION 4: CRAFTSMANSHIP ======================= */
.craftsmanship-section {
    background-color: var(--bg-color);
}
.craftsmanship-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.craftsmanship-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1rem;
}
.craftsmanship-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.craftsmanship-gallery img:first-child {
    grid-column: 1 / 3; /* Span 2 columns */
}
@media (max-width: 992px) {
    .craftsmanship-content { grid-template-columns: 1fr; }
}

/* ======================= SECTION 5: MEET THE MAKERS ======================= */
.makers-section {
    background-color: #f9f9f9;
}
.makers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}
.maker-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
}
.maker-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
}
.maker-info {
    padding: 1.5rem;
}
.maker-info h3 {
    font-size: 1.4rem;
}

/* ======================= SECTION 6: SUSTAINABILITY ======================= */
.sustainability-section {
    background-color: var(--bg-color);
}
.sustainability-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}
.sustainability-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}
.commitments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
.commitment-item h4 {
    color: var(--primary-blue);
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.commitment-item p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}
@media (max-width: 992px) {
    .sustainability-content { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .commitments-grid { grid-template-columns: 1fr; }
}

/* ======================= SECTION 7: THE FUTURE ======================= */
.future-section {
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
}
.future-content {
    max-width: 800px;
    margin: 0 auto;
}
.future-content h2 {
    color: white;
}
.future-content p {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* ==================================================================== */
/* ======================= DELIVERY PAGE STYLES ======================= */
/* ==================================================================== */

/* ======================= SECTION 1: DELIVERY HERO ======================= */
/* ======================= DELIVERY PAGE - HERO (REDESIGNED) ======================= */
.delivery-hero-section-v2 {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 8rem 0;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/delivery-hero.webp');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 240, 202, 0.5); /* --light-cream with opacity */
    z-index: -1;
}

.delivery-hero-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* For Safari */
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.delivery-hero-text .subtitle {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.delivery-hero-interactive-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.delivery-truck-wrapper {
    width: 150px;
    height: 150px;
    border: 2px dashed rgba(13, 59, 102, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.4s ease;
}

.delivery-truck-wrapper:hover {
    border-color: var(--primary-blue);
}

/* --- The SVG Animation --- */
.delivery-truck-svg {
    color: var(--primary-blue);
}

.delivery-truck-svg .truck-path {
    stroke-dasharray: 150; /* Estimated length of the path */
    stroke-dashoffset: 150;
    transition: stroke-dashoffset 1s ease-in-out;
}

.delivery-truck-svg .wheel-path {
    stroke-dasharray: 50; /* Estimated length */
    stroke-dashoffset: 50;
    transition: stroke-dashoffset 0.5s ease-in-out 0.5s; /* Delay the wheels */
}

.delivery-truck-wrapper:hover .delivery-truck-svg .truck-path,
.delivery-truck-wrapper:hover .delivery-truck-svg .wheel-path {
    stroke-dashoffset: 0;
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .delivery-hero-section-v2 {
        min-height: auto;
        padding: 6rem 0;
    }
    .delivery-hero-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .delivery-hero-interactive-graphic {
        margin-top: 2rem;
    }
}
/* ======================= SECTION 2: SHIPPING OPTIONS ======================= */
/* ======================= DELIVERY PAGE - SHIPPING OPTIONS (TABS V2) ======================= */
.shipping-options-section-v2 {
    background-color: #f9f9f9;
}

.shipping-tabs-container {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    background-color: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* --- Tab Navigation --- */
.tabs-nav {
    display: flex;
    background-color: #f0f0f0;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.4s ease;
    position: relative;
    z-index: 2;
}

.tab-btn.active {
    color: var(--primary-blue);
}

.active-tab-indicator {
    position: absolute;
    bottom: -1px; /* Sits on top of the border */
    left: 0;
    height: 3px;
    background-color: var(--primary-blue);
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Tab Content --- */
.tabs-content {
    padding: clamp(2rem, 5vw, 3rem);
}

.tab-pane {
    display: none; /* JS will handle visibility */
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: translateY(10px);
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.pane-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.pane-icon {
    flex-shrink: 0;
    color: var(--primary-blue);
}

.pane-text .price {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.pane-text .eta {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

.pane-text .details {
    font-size: 0.95rem;
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .pane-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
/* ======================= SECTION 3: PROCESS VISUALIZED ======================= */
.process-section {
    background-color: var(--bg-color);
}
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}
.process-timeline::before { /* The connecting line */
    content: '';
    position: absolute;
    top: 35px; /* Aligns with the middle of the icon */
    left: 12.5%;
    width: 75%;
    height: 2px;
    background-color: rgba(13, 59, 102, 0.2);
    z-index: 0;
}
.process-step {
    text-align: center;
    position: relative;
}
.step-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    background-color: var(--light-cream);
    border: 3px solid var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-blue);
    position: relative;
    z-index: 1;
}
.process-step h4 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--primary-blue);
}
@media (max-width: 992px) {
    .process-timeline { grid-template-columns: 1fr 1fr; }
    .process-timeline::before { display: none; }
}
@media (max-width: 576px) {
    .process-timeline { grid-template-columns: 1fr; }
}


/* ======================= SECTION 4: CONSCIOUS PACKAGING ======================= */
.packaging-section {
    background-color: var(--light-cream);
}
.packaging-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.packaging-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.packaging-gallery img {
    border-radius: 8px;
    width: 100%;
    height: 250px;
    object-fit: cover;
}
@media (max-width: 992px) {
    .packaging-content {
        grid-template-columns: 1fr;
    }
    .packaging-gallery {
        grid-row: 1;
        margin-bottom: 2rem;
    }
}

/* ======================= SECTION 5: INTERNATIONAL SHIPPING ======================= */
.international-section {
    position: relative;
    padding: 8rem 0;
    background-image: url('images/inter-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}
.international-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(13, 59, 102, 0.85);
}
.international-content-box {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}
.international-content-box h2 {
    color: white;
}
.international-content-box p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* ======================= SECTION 6: ORDER TRACKING ======================= */
.tracking-section {
    background-color: #f9f9f9;
}
.tracking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.tracking-form {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}
.tracking-form input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-family: var(--font-body);
}
.tracking-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
}
.tracking-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.tracking-images img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tracking-images img:first-child {
    transform: rotate(-5deg);
}
.tracking-images img:last-child {
    transform: rotate(5deg);
    margin-top: -20px;
}
@media (max-width: 992px) {
    .tracking-content { grid-template-columns: 1fr; }
    .tracking-images { max-width: 500px; margin: 2rem auto 0 auto; }
}
@media (max-width: 576px) {
    .tracking-form { flex-direction: column; }
}

/* ======================= SECTION 7: DELIVERY FAQ ======================= */
.faq-section {
    background-color: var(--bg-color);
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
}
.faq-item h4 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}
.faq-item p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .faq-grid { grid-template-columns: 1fr; }
}

/* =================================================================== */
/* ======================= RETURNS PAGE STYLES ======================= */
/* =================================================================== */

/* ======================= SECTION 1: RETURNS HERO ======================= */
.returns-hero-section {
    padding: 8rem 0;
    position: relative;
    background-image: url('images/return.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
}
.returns-hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 59, 102, 0.75);
}
.returns-hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}
.returns-hero-content h1 {
    color: white;
}
.returns-hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}
.returns-hero-content .btn-primary:hover {
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

/* ======================= SECTION 2: SLEEP TRIAL ======================= */
.sleep-trial-section {
    background-color: var(--light-cream);
}
.sleep-trial-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.trial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.trial-header h2 {
    font-size: clamp(6rem, 15vw, 10rem);
    line-height: 1;
    color: var(--primary-blue);
}
.trial-subheader span {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-family: var(--font-heading);
    color: var(--primary-blue);
    line-height: 1.1;
}
.sleep-trial-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.sleep-trial-gallery img {
    border-radius: 8px;
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.sleep-trial-gallery img:first-child {
    grid-column: 1 / 3;
    height: 250px;
}
@media (max-width: 992px) {
    .sleep-trial-content { grid-template-columns: 1fr; }
}

/* ======================= SECTION 3: PROCESS STEPS ======================= */
/* ======================= RETURNS PAGE - PROCESS SLIDER (V2) ======================= */
.process-slider-section-v2 {
    background-color: #f9f9f9;
}

.process-slider-container {
    background-color: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    overflow: hidden;
}

.slider-viewport {
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
    box-sizing: border-box;
}

.slide-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.slide-content {
    position: relative;
    padding-left: 1rem;
}

.step-number {
    position: absolute;
    top: -2rem;
    left: 0;
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 700;
    color: rgba(13, 59, 102, 0.08);
    z-index: 0;
    line-height: 1;
}

.slide-content h3, .slide-content p {
    position: relative;
    z-index: 1;
}

.slide-content h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* --- Slick Content Animations --- */
.slide-image, .step-number, .slide-content h3, .slide-content p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.slide.is-active .slide-image {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}
.slide.is-active .step-number {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}
.slide.is-active .slide-content h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}
.slide.is-active .slide-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* --- Controls --- */
.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: #f0f0f0;
    border-top: 1px solid #e0e0e0;
}

.slider-progress {
    flex-grow: 1;
    margin-right: 2rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #ddd;
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    width: 33.33%; /* Initial state */
    height: 100%;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.pagination-dots {
    display: flex;
    gap: 0.5rem;
}
.pagination-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.pagination-dots .dot.active {
    background-color: var(--primary-blue);
}

.slider-nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 1px solid #ccc;
    color: var(--primary-blue);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.slider-btn:hover:not(:disabled) {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}
.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* --- Responsive --- */
@media (max-width: 992px) {
    .slide {
        grid-template-columns: 1fr;
        padding: 2rem;
        text-align: center;
    }
    .slide-image img { height: 300px; }
    .slide-content { padding-left: 0; }
    .step-number {
        left: 50%;
        transform: translateX(-50%);
    }
    .slider-controls { padding: 1rem 2rem; }
}

/* ======================= SECTION 4: REFUNDS & EXCHANGES ======================= */
.refund-exchange-section {
    background-color: var(--bg-color);
}
.refund-exchange-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.option-column {
    border-left: 3px solid var(--light-cream);
    padding-left: 2rem;
}
.option-column img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.option-column h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
}
@media (max-width: 768px) {
    .refund-exchange-content { grid-template-columns: 1fr; }
}

/* ======================= SECTION 5: POLICY DETAILS ======================= */
/* ======================= RETURNS PAGE - POLICY DETAILS (ACCORDION V2) ======================= */
.policy-details-section-v2 {
    background-color: #f9f9f9;
}

.policy-accordion {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.policy-item {
    background: var(--bg-color);
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.4s ease;
}

.policy-item.is-open {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.policy-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    cursor: pointer;
    user-select: none; /* Prevents text selection on click */
}

.policy-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-cream);
    color: var(--primary-blue);
    border-radius: 50%;
}

.policy-item.is-open .policy-icon {
    background-color: var(--primary-blue);
    color: var(--accent-yellow);
}

.policy-header h4 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    flex-grow: 1;
    transition: color 0.4s ease;
}

.policy-item.is-open .policy-header h4 {
    color: var(--primary-blue);
}

.chevron-icon {
    color: #aaa;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.policy-item.is-open .chevron-icon {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

.policy-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-wrapper {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #eee;
    margin: 0 1.5rem;
}

.content-wrapper p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.8;
}
/* ======================= SECTION 6: DONATION PARTNERSHIP ======================= */
.donation-section {
    background-color: var(--light-cream);
}
.donation-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}
.donation-image img {
    border-radius: 50%;
    width: 100%;
    max-width: 400px;
    height: 400px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}
@media (max-width: 992px) {
    .donation-content { grid-template-columns: 1fr; }
    .donation-image {
        margin-bottom: 2rem;
    }
}

/* =================================================================== */
/* ======================= REVIEWS PAGE STYLES ======================= */
/* =================================================================== */

/* ======================= SECTION 1: REVIEWS HERO ======================= */
.reviews-hero-section {
    padding: 8rem 0;
    background-image: url('images/rev-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}
.reviews-hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 59, 102, 0.6);
}
.reviews-hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    color: white;
}
.reviews-hero-content h1 {
    color: white;
}
.reviews-hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* ======================= SECTION 2: STATS & RATINGS ======================= */
.stats-section {
    background-color: #f9f9f9;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.stat-bars
{
    background-color: #0D3B66;
    padding: 10px;
    border-radius: 8px;
}
.main-stat-card {
    background-color: var(--primary-blue);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}
.main-stat-card .rating-value {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    line-height: 1;
}
.star-rating {
    color: var(--accent-yellow);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}
.main-stat-card p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}
.bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.bar-item span
{
    color: #fff;
}
.progress-bar {
    flex-grow: 1;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}
.progress {
    height: 100%;
    background-color: var(--accent-yellow);
    border-radius: 5px;
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ======================= SECTION 3: DETAILED REVIEWS GRID ======================= */
.reviews-grid-section {
    background-color: var(--bg-color);
}
.reviews-masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}
.review-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #eee;
}
.review-card h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0;
}
.review-card blockquote {
    font-style: italic;
    border: none;
    padding: 0;
    margin: 0 0 1rem 0;
    color: #555;
}
.review-card cite {
    font-weight: 500;
    font-style: normal;
}
.review-card .verified {
    font-size: 0.8rem;
    color: #0b7a75;
    font-weight: bold;
    margin-left: 0.5rem;
}
@media (max-width: 992px) {
    .reviews-masonry-grid { column-count: 2; }
}
@media (max-width: 768px) {
    .reviews-masonry-grid { column-count: 1; }
}

/* ======================= SECTION 4: REVIEWS BY PRODUCT ======================= */
/* ======================= REVIEWS PAGE - TOP-RATED PRODUCTS (T-LAYOUT V2) ======================= */
.product-reviews-section-v2 {
    background-color: var(--light-cream);
}

.product-reviews-t-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* --- General Card Styling --- */
.product-review-card-v2 {
    background-color: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-review-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.product-card-image {
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-review-card-v2:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-content {
    padding: 1.5rem;
}

.product-card-content h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.product-card-content .star-rating {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.product-quote {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
}

.view-product-link {
    font-weight: 500;
    color: var(--primary-blue);
    text-decoration: none;
}

/* --- Specific Layout Styling for "T" Shape --- */
.t-layout-top {
    grid-column: 1 / -1; /* Span the full width */
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.t-layout-top .product-card-image img {
    height: 100%;
    min-height: 350px;
    object-fit: cover;
}

.t-layout-top .product-card-content {
    padding: 2rem;
}

.t-layout-top h3 {
    font-size: 1.8rem;
}

/* --- Bottom Card Image Sizing --- */
.product-reviews-t-layout .product-review-card-v2:not(.t-layout-top) .product-card-image img {
    height: 250px;
    object-fit: cover;
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    /* Stack the top card's content */
    .t-layout-top {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .t-layout-top .product-card-content {
        padding: 1.5rem;
    }
    .t-layout-top .product-card-image img {
        height: 400px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    /* Stack all cards */
    .product-reviews-t-layout {
        grid-template-columns: 1fr;
    }
}

/* ======================= SECTION 5: VISUAL REVIEWS GALLERY ======================= */
.visual-gallery-section {
    background-color: #f9f9f9;
}
.visual-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 200px);
    grid-auto-flow: dense;
    gap: 1rem;
}
.visual-gallery-grid figure {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.visual-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.visual-gallery-grid figure:hover img {
    transform: scale(1.05);
}
.visual-gallery-grid figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}
.visual-gallery-grid figure:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}
/* Spanning rules for gallery */
.visual-gallery-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.visual-gallery-grid figure:nth-child(4) { grid-column: span 2; }
.visual-gallery-grid figure:nth-child(5) { grid-row: span 2; }
@media (max-width: 992px) {
    .visual-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(auto, 250px); }
    .visual-gallery-grid figure { grid-column: auto !important; grid-row: auto !important; }
}
@media (max-width: 576px) {
    .visual-gallery-grid { grid-template-columns: 1fr; }
}

/* ======================= SECTION 6: THEMES FROM REVIEWS ======================= */
.themes-section {
    background-color: var(--bg-color);
}
.themes-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}
.themes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.theme-card {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
}
.theme-card h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
}
.theme-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}
@media (max-width: 992px) {
    .themes-content { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .themes-grid { grid-template-columns: 1fr; }
}

/* ======================= SECTION 7: CTA SECTION ======================= */
.cta-section {
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
}
.cta-content h2 {
    color: white;
}
.cta-content p {
    max-width: 600px;
    margin: 1rem auto 2rem auto;
    font-size: 1.1rem;
    font-weight: 300;
}
.cta-content .btn-primary:hover {
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

/* =================================================================== */
/* ======================== SIZING PAGE STYLES ======================= */
/* =================================================================== */

/* ======================= SECTION 1: SIZING HERO ======================= */
.sizing-hero-section {
    background-color: var(--primary-blue);
    padding: 6rem 0;
    text-align: center;
    color: white;
}
.sizing-hero-content h1 {
    color: white;
}
.sizing-hero-content p {
    max-width: 600px;
    margin: 1rem auto 0 auto;
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* ======================= SECTION 2: HOW TO MEASURE GUIDE ======================= */
.measure-guide-section {
    background-color: #f9f9f9;
}
.measure-guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.steps-list {
    list-style: none;
    counter-reset: steps-counter;
    margin-top: 1.5rem;
}
.steps-list li {
    counter-increment: steps-counter;
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.steps-list li::before {
    content: counter(steps-counter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    margin-right: 1rem;
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
}
.measure-images {
    position: relative;
    height: 400px;
}
.measure-images img {
    position: absolute;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.measure-images .img-1 {
    width: 75%;
    height: 90%;
    top: 0;
    left: 0;
}
.measure-images .img-2 {
    width: 50%;
    height: 50%;
    bottom: 0;
    right: 0;
    border: 5px solid white;
}
@media (max-width: 992px) {
    .measure-guide-content { grid-template-columns: 1fr; }
    .measure-images { grid-row: 1; margin-bottom: 2rem; }
}

/* ======================= SECTION 3: BEDDING SIZE CHART ======================= */
.size-chart-section {
    background-color: var(--bg-color);
}
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
table {
    width: 100%;
    min-width: 800px; /* Ensures columns don't get too squished */
    border-collapse: collapse;
    text-align: left;
}
th, td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}
thead {
    background-color: #f9f9f9;
}
th {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--primary-blue);
}
td {
    font-size: 0.95rem;
}

/* ======================= SECTION 4: DEEP POCKET FIT ======================= */
/* ======================= SIZING PAGE - DEEP POCKET (REDESIGNED V2) ======================= */
.deep-pocket-section-v2 {
    background-color: var(--light-cream);
}

.deep-pocket-content-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- Image Column & Interaction --- */
.deep-pocket-image-v2 {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    cursor: help; /* Indicates interactivity */
}
.deep-pocket-image-v2 img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.deep-pocket-image-v2:hover img {
    transform: scale(1.05);
}

.interactive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 59, 102, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.deep-pocket-image-v2:hover .interactive-overlay {
    opacity: 1;
}

.measurement-line {
    position: absolute;
    background-color: var(--accent-yellow);
}
.measurement-line.vertical {
    top: 10%;
    right: 15%;
    width: 2px;
    height: 0;
    transition: height 0.5s ease 0.1s;
}
.measurement-line.horizontal {
    bottom: 10%;
    left: 10%;
    height: 2px;
    width: 0;
    transition: width 0.5s ease 0.1s;
}
.deep-pocket-image-v2:hover .measurement-line.vertical { height: 80%; }
.deep-pocket-image-v2:hover .measurement-line.horizontal { width: 80%; }

.measurement-label {
    position: absolute;
    color: white;
    background: rgba(13, 59, 102, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
}
.measurement-label.depth {
    top: 50%;
    right: calc(15% + 1rem);
    transform: translateY(-50%) scale(0.9);
}
.measurement-label.elastic {
    bottom: calc(10% + 1rem);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
}
.deep-pocket-image-v2:hover .measurement-label {
    opacity: 1;
    transform: scale(1);
}
.deep-pocket-image-v2:hover .measurement-label.depth { transform: translateY(-50%) scale(1); }
.deep-pocket-image-v2:hover .measurement-label.elastic { transform: translateX(-50%) scale(1); }

/* --- Text Column --- */
.highlight-text {
    background-color: var(--accent-yellow);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-weight: 500;
    color: var(--primary-blue);
}

.key-features {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(13, 59, 102, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border-radius: 50%;
    color: var(--primary-blue);
}
.feature-item span {
    font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .deep-pocket-content-v2 {
        grid-template-columns: 1fr;
    }
    .deep-pocket-image-v2 {
        grid-row: 1;
    }
}

/* ======================= SECTION 5: PILLOW SIZING GUIDE ======================= */
/* ======================= SIZING PAGE - PILLOW GUIDE (REDESIGNED V2) ======================= */
.pillow-guide-section-v2 {
    background-color: #f9f9f9;
}

.pillow-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center; /* Vertically align items */
    margin-top: 4rem;
}

.pillow-card-v2 {
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pillow-card-v2:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* --- Asymmetric Positioning --- */
.pos-left { transform: translateY(-30px); }
.pos-center { z-index: 2; } /* Bring center card to the front */
.pos-right { transform: translateY(30px); }

.pillow-card-image img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.pillow-card-title {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: white;
    background: rgba(13, 59, 102, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: 0;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.pillow-card-v2:hover .pillow-card-title {
    opacity: 0;
}

/* --- Interactive Overlay --- */
.pillow-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(13, 59, 102, 0.95), rgba(13, 59, 102, 0.8));
    color: white;
    
    /* Animation: slide up from bottom */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
}

.pillow-card-v2:hover .pillow-card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.pillow-card-content {
    padding: 1.5rem;
}

/* --- Visual Scale --- */
.pillow-scale {
    margin-bottom: 1rem;
}
.scale-bar {
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}
.scale-bar::after { /* The fill */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--scale-width, 0); /* JS could set this, but we'll use CSS transition */
    background-color: var(--accent-yellow);
    border-radius: 3px;
    
    /* Animation: grow from left */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease 0.2s; /* Delay the animation slightly */
}

/* Set the bar width via inline style, then animate it with the class */
.pillow-card-v2.pos-left:hover .scale-bar::after { transform: scaleX(0.72); } /* 26" / 36" */
.pillow-card-v2.pos-center:hover .scale-bar::after { transform: scaleX(0.83); } /* 30" / 36" */
.pillow-card-v2.pos-right:hover .scale-bar::after { transform: scaleX(1.0); } /* 36" / 36" */

.scale-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
    text-align: right;
}
.pillow-card-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(255,255,255,0.8);
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .pillow-grid-v2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .pillow-card-v2 {
        /* Reset asymmetric positioning */
        transform: translateY(0) !important;
    }
    .pillow-card-image img { height: 300px; }
}
/* ======================= SECTION 6: VISUAL REFERENCE GALLERY ======================= */
.visual-reference-section {
    background-color: var(--bg-color);
}
.visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.visual-grid figure {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
}
.visual-grid img {
    transition: transform 0.4s ease;
}
.visual-grid figure:hover img {
    transform: scale(1.05);
}
.visual-grid figcaption {
    background-color: var(--bg-color);
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ======================= SECTION 7: SIZING FAQ ======================= */
/* Re-using .faq-section class from returns page, with slight layout adjustments */
/* ======================= SIZING PAGE - FAQ (REDESIGNED V2) ======================= */
.faq-section-v2 {
    background-color: #f9f9f9;
}

.faq-content-v2 {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: flex-start;
}

/* --- Left Column: CTA Panel --- */
.faq-header-v2 {
    background-color: var(--light-cream);
    padding: 2.5rem;
    border-radius: 12px;
    position: sticky; /* Sticks within its container on scroll */
    top: 120px; /* Offset for the fixed header */
}
.faq-header-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}
.faq-header-v2 h2 {
    margin-bottom: 1rem;
}
.faq-header-v2 p {
    margin-bottom: 2rem;
}
.faq-header-v2 .btn-primary { /* Changed from secondary for better contrast */
    width: 100%;
    text-align: center;
}

/* --- Right Column: Accordion --- */
.faq-accordion {
    border-top: 1px solid #ddd;
}
.faq-item-v2 {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0;
    cursor: pointer;
    user-select: none;
}
.faq-question h4 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}
.faq-item-v2.is-active .faq-question h4 {
    color: var(--primary-blue);
}

.faq-toggle-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--primary-blue);
}
.faq-toggle-icon svg {
    position: absolute;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.icon-minus {
    opacity: 0;
    transform: rotate(-90deg);
}
.faq-item-v2.is-active .icon-plus {
    opacity: 0;
    transform: rotate(90deg);
}
.faq-item-v2.is-active .icon-minus {
    opacity: 1;
    transform: rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.faq-item-v2.is-active .faq-answer {
    grid-template-rows: 1fr; /* Active state: expanded */
}
.answer-content {
    overflow: hidden;
}
.answer-content p {
    padding-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .faq-content-v2 {
        grid-template-columns: 1fr;
    }
    .faq-header-v2 {
        position: static; /* Unstick the header */
        text-align: center;
    }
    .faq-header-icon {
        margin-left: auto;
        margin-right: auto;
    }
}
/* ======================= FOOTER ======================= */
.site-footer {
    background-color: var(--primary-blue);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-column .logo { color: white; }
.footer-column h4 {
    color: white;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.footer-column ul li {
    margin-bottom: 0.5rem;
}
.footer-column a {
    color: rgba(255,255,255,0.8);
}
.footer-column a:hover {
    color: var(--accent-yellow);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ======================= SCROLL ANIMATIONS ======================= */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}
.fade-in { transform: translateY(30px); }
.slide-up { transform: translateY(50px); }
.zoom-in { transform: scale(0.9); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* ======================= RESPONSIVE DESIGN ======================= */
@media (max-width: 992px) {
    .why-us-content, .science-content {
        grid-template-columns: 1fr;
    }
    .science-content .science-image-wrapper {
        grid-row: 1; /* Move image to top on mobile */
    }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    section { padding: 4rem 0; }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-color);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }
    .main-nav.nav-active {
        transform: translateX(0);
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 2.5rem;
    }
    .main-nav a { font-size: 1.2rem; }
    
    .nav-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1000;
    }
    .hamburger {
        display: block;
        position: relative;
        width: 25px;
        height: 2px;
        background-color: var(--primary-blue);
        transition: transform 0.3s ease;
    }
    .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--primary-blue);
        transition: transform 0.3s ease, top 0.3s ease;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { top: 8px; }

    .nav-active + .nav-toggle .hamburger { background: transparent; }
    .nav-active + .nav-toggle .hamburger::before { top: 0; transform: rotate(45deg); }
    .nav-active + .nav-toggle .hamburger::after { top: 0; transform: rotate(-45deg); }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* =================================================================== */
/* ===================== LEGAL PAGES (PRIVACY, ETC.) ================= */
/* =================================================================== */

.legal-hero {
    background-color: var(--primary-blue);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.legal-page-title {
    color: white;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.legal-page-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.legal-content {
    background-color: var(--bg-color);
    padding: 4rem 0;
}

.legal-content-container {
    max-width: 800px; /* Constrain width for readability */
}

.last-updated {
    font-style: italic;
    color: #777;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.legal-content article {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-left: 1rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
}

/* =================================================================== */
/* ===================== THANK YOU / UTILITY PAGE ==================== */
/* =================================================================== */

.utility-page-body {
    background-color: var(--light-cream);
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.thank-you-box {
    background-color: var(--bg-color);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 550px;
    
    /* Entrance Animation */
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInScaleUp 0.8s ease-out 1.2s forwards; /* Delay to let checkmark finish */
}

@keyframes fadeInScaleUp {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.thank-you-box h1 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.thank-you-box p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.thank-you-box .btn-primary {
    min-width: 200px;
}

/* --- SVG Checkmark Animation --- */
.checkmark-container {
    height: 100px; /* Give it space */
    margin-bottom: 1rem;
}

.checkmark-svg {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke: #ccc;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: var(--primary-blue);
    stroke-linecap: round;
    animation: stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards; /* Delayed start */
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}