/* ===========================
   GLOBAL & VARIABLES
=========================== */
:root {
    --primary-color: #111111;       /* Deep Black/Navy for luxury */
    --accent-color: #C0A062;        /* Muted Gold */
    --bg-color: #FAFAFA;            /* Off-white */
    --text-color: #333333;
    --light-gray: #E5E5E5;
    --font-heading: 'Playfair Display', serif; 
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   SHARED STYLES
=========================== */
.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

/* ===========================
   1. REVIEWS SECTION (AUTO SCROLL)
=========================== */
.reviews-section {
    max-width: 100%; /* Full width for marquee effect */
    margin: 60px 0 40px;
    padding: 0;
    overflow: hidden; /* Hide the scrollbar */
}

.section-header-wrapper {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 30px 20px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: center;
}

/* Reviews Container */
.reviews-container {
    width: 100%;
    overflow: hidden; /* Mask content */
    padding: 20px 0;
    position: relative;
    /* Masking effect to fade sides */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* Moving Track */
.reviews-track {
    display: flex;
    /* Using margin instead of gap for smoother loop */
    gap: 0; 
    width: max-content; 
    animation: scroll 40s linear infinite; 
    padding-left: 0;
}

/* Pause animation on hover */
.reviews-track:hover {
    animation-play-state: paused;
}

/* Infinite Scroll Keyframes */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move exactly 50% left. Since we duplicated content, 
           50% is exactly the width of one set of items. */
        transform: translateX(-50%);
    }
}

/* Individual Review Card */
.review-card {
    min-width: 350px;
    max-width: 350px;
    background: #fff;
    padding: 0; 
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border-bottom: 3px solid transparent; 
    
    /* :::: CRITICAL FOR LOOP :::: */
    /* Using margin instead of gap so margin persists after the last card */
    margin-right: 30px; 
}

.review-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--primary-color);
}

/* Product Image Styles */
.product-thumb {
    width: 100%;
    height: 220px;   
    overflow: hidden;
    background-color: #fff; 
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1; /* :::: ORDER 1: Image First :::: */
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Default desktop style */
    transition: transform 0.5s ease;
}

.review-card:hover .product-thumb img {
    transform: scale(1.05); 
}

/* Content Container inside Card */
.review-card .stars, 
.review-card .review-text,
.review-card .reviewer-info-wrapper {
    padding-left: 25px;
    padding-right: 25px;
}

.stars {
    color: #111;
    margin-top: 5px; /* Reduced space */
    margin-bottom: 15px;
    font-size: 14px;
    order: 3; /* :::: ORDER 3: Stars after Profile :::: */
}

.review-text {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-size: 15px;
    color: #555;
    margin-bottom: 30px; /* Space at the end of card */
    flex-grow: 0; /* :::: FIX: Don't force expand, prevents white gap :::: */
    order: 4; /* :::: ORDER 4: Text Last :::: */
}

.reviewer-info-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 25px; /* Space from image */
    padding-bottom: 5px; /* Small space to stars */
    border-top: none; /* Removed separator line */
    margin-top: 0; 
    order: 2; /* :::: ORDER 2: Profile above stars :::: */
}

.reviewer-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
}

.reviewer-details .name {
    font-weight: 700;
    font-size: 13px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reviewer-details .type {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* ===========================
   2. SEO / BRAND STORY
=========================== */
.seo-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 30px;
    text-align: center;
}

.seo-content {
    text-align: left;
}

.seo-container p {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    line-height: 1.9;
    font-size: 16px;
    color: #444;
    margin-bottom: 25px;
}

.seo-container strong {
    color: var(--primary-color);
    font-weight: 600;
}

.seo-container h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 20px;
    color: var(--primary-color);
    margin: 40px 0 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
}

.seo-container p a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.3s;
}

.seo-container p a:hover {
    opacity: 0.7;
}

/* ===========================
   3. FAQ SECTION
=========================== */
.faq-container {
    max-width: 800px;
    margin: 80px auto 120px;
    padding: 0 30px;
}

.faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    background: transparent;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s ease;
}

.faq-item:first-child {
    border-top: 1px solid #ddd;
}

.faq-item[open] {
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-bottom: 1px solid transparent;
}

.faq-item summary {
    padding: 25px 15px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.faq-item[open] summary .icon-wrapper {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 15px 25px;
    color: #666;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.8;
}

/* ===========================
   RESPONSIVE DESIGN (FIXED)
=========================== */
@media (max-width: 768px) {
    .review-card {
        min-width: 280px;
        max-width: 280px;
    }

    .section-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .faq-container {
        padding: 0 20px; 
    }

    .faq-item summary {
        padding: 20px 10px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 10px 20px;
        font-size: 14px;
    }
    
    /* :::: 2-COLUMN REVIEW CARD FIX FOR MOBILE :::: */
    .review-card {
        /* Reduced from 300px to ~160px to fit 2 items on screen */
        min-width: 160px;
        max-width: 160px; 
        margin-right: 15px; /* Reduced gap */
    }
    
    .product-thumb {
        height: 120px; /* Smaller image container */
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff;
    }

    /* Force full image visibility */
    .product-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        transform: none !important;
    }
    
    /* Disable hover zoom on mobile */
    .review-card:hover .product-thumb img {
        transform: none !important;
    }

    /* Adjust padding for smaller card */
    .review-card .stars, 
    .review-card .review-text,
    .review-card .reviewer-info-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }

    .stars {
        font-size: 10px;
        margin-top: 5px; /* Consistent with new order */
        margin-bottom: 5px;
    }

    .review-text {
        font-size: 11px; /* Smaller font for review text */
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .reviewer-info-wrapper {
        padding-top: 15px; /* Adjusted spacing */
        padding-bottom: 5px;
        gap: 8px;
    }

    .reviewer-img {
        width: 30px;
        height: 30px;
    }

    .reviewer-details .name {
        font-size: 9px;
    }

    .reviewer-details .type {
        font-size: 8px;
    }
}