/* Hero Section */
.hero-section {
    position: relative; /* IMPORTANT: This makes it the positioning context for absolute children */
    width: 100%;
    height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center the text */
    align-items: center;
    padding-top: var(--header-height);
}
.hero-background-left,
.hero-background-right {
    position: absolute;
    top: 0;
    width: 50%; /* Each takes half the width */
    height: 100%;
    transition: all 0.8s ease-out;
    z-index:0; /* Behind text content */
}
.hero-background-left {
    left: 0;
    background-image: url(../images/hero-left.jpg);
    background-size: cover;
    background-position: center;
}
.hero-background-right {
    right: 0;
    background-image: url(../images/hero-right.jpg);
    background-size: cover;
    background-position: center;
}
.hero-cta-buttons {
    position: absolute;
    bottom: 20%;
    left:0;
    width: 100%;
    z-index: 3;
    height: auto;
}
.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 1;
}
/* Styles for the text content (headline and subheadline) */
.hero-text-content { /* Renamed from .hero-content */
    position: relative;
    z-index: 2;
    text-align: center;
    color: #FFFFFF;
    max-width: 1000px;
    margin-bottom: var(--spacing-xl); /* Space below text before button area */
}
.hero-headline {
    font-family: var(--font-heading-primary);
    font-size: 3.25em;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    color:#Ffd700;
}
.hero-subheadline {
    font-family: var(--font-body);
    font-size: 1.6em;
    margin-bottom: 0; /* Reset this, controlled by .hero-text-content's margin-bottom */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color:#ffffff;
}
.btn-hero {
    position: absolute;
    padding: 10px 35px;
    font-size: 1.2em;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    margin: 0;
    transition: transform 0.3s ease;
}

.btn-custom-order {
    background-color: var(--color-accent-gold);
    color: var(--color-sapphire-blue-dark);
    border: 2px solid var(--color-accent-gold);
    left: 25%;
    transform: translateX(-50%); /* Center horizontally */
}
.btn-custom-order:hover {
    background-color: var(--color-accent-gold-dark);
    border-color: var(--color-accent-gold-dark);
    transform: translateY(-3px) translateX(-50%); /* Maintain horizontal center */
    box-shadow: 0 8px 20px rgba(var(--color-accent-gold-rgb), 0.4);
}
.btn-explore-stock {
    background-color: #3c49fd; /* Sapphire blue */
    color: #FFFFFF; /* White text */
    border: 2px solid #3c49fd;
    left: 75%;
    transform: translateX(-50%); /* Center horizontally */
}
.btn-explore-stock:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    transform: translateY(-3px) translateX(-50%); /* Maintain horizontal center */
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}
/* General Section Styling */
.homepage-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}
.homepage-section:nth-child(even) { /* Alternate background colors for sections */
    background-color: var(--color-secondary-light);
}
.homepage-section:nth-child(odd) {
    background-color: var(--color-primary-light);
}
.homepage-section h2 {
    font-family: var(--font-heading-primary);
    color: var(--color-sapphire-blue);
    font-size: 2.8em;
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}
.section-subheading {
    font-family: var(--font-body);
    font-size: 1.2em;
    color: var(--color-text-fade-dark);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl) auto;
    line-height: 1.7;
}
/* Carousel Section (section-carousel) */
/* Container Spacing */
.section-featured {
    padding: 80px 0;
    background-color: #f9f9f7; /* Very light bone-white to make gem colors pop */
}

/* Swiper Container */
.gem-carousel {
    width: 100%;
    padding: 20px 0 60px; /* Extra bottom padding for pagination dots */
}

/* Slide Styling */
.swiper-slide {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s;
    opacity: 0.4; /* Dim inactive slides to focus on the center gem */
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1.05); /* Slightly enlarge the featured center gem */
}

.gem-item {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.gem-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

/* 2. Style the Pagination Container */
.gem-carousel .swiper-pagination {
    bottom: 10px !important;
    display: flex;
    justify-content: center;
    gap: 12px; /* Space between lines */
}

/* 3. Turn dots into Short Lines (Dashes) */
.gem-carousel .swiper-pagination-bullet {
    width: 24px;
    height: 3px;
    background: #444; /* Darker grey for luxury contrast */
    border-radius: 0;
    margin: 0 6px !important;
    vertical-align: middle;
}

.gem-carousel .swiper-pagination-bullet:hover {
    background: #D4AF37; /* Gold preview on hover */
}
/* 4. Active Line Style (Gold) */
.gem-carousel .swiper-pagination-bullet-active {
    width: 50px;          /* Active line expands slightly */
    background: #D4AF37;  /* Your Gold branding */
    opacity: 1;
}
/* Our Process Section (section-process) */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
}
.process-step-item {
    background-color: #FFFFFF;
    padding: var(--spacing-lg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.process-step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.process-step-item img {
    width: 70px;
    height: 70px;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.1));
}
.process-step-item h3 {
    font-family: var(--font-heading-secondary);
    color: var(--color-sapphire-blue);
    font-size: 1.6em;
    margin-bottom: var(--spacing-sm);
}
.process-step-item p {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

/* Featured Gems Section (section-featured-gems) */
.featured-gems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}
.featured-gem-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: var(--spacing-md);
}
.featured-gem-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.featured-gem-item img {
    width: 100%;
    height: 280px; /* Taller images */
    object-fit: cover;
    border-bottom: 1px solid var(--color-border-light-grey);
    margin-bottom: var(--spacing-md);
}
.featured-gem-item h3 {
    font-family: var(--font-heading-secondary);
    color: var(--color-sapphire-blue);
    font-size: 1.8em;
    margin-bottom: var(--spacing-sm);
    padding: 0 var(--spacing-md);
}
.featured-gem-item p {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-md);
}

/* --- Why Choose Éclat Gemmes Section Styling --- */
.section-why-choose-us {
    background-color: var(--color-sapphire-blue-dark, #0A192F); /* A deep, rich blue background */
    color: #FFFFFF; /* All text in this section will be white by default */
    padding: var(--spacing-xl, 100px) 0;
}

/* Ensure titles and intros are white on the dark background */
.section-why-choose-us .section-title,
.section-why-choose-us .section-intro {
    color: #FFFFFF;
}

.why-choose-us-points-grid {
    display: grid;
    /* Wider columns, potentially 2-column layout on desktop for substantial points */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg, 40px);
    margin-top: var(--spacing-xl, 100px);
}

.why-point {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white/light card, giving a frosted glass effect */
    backdrop-filter: blur(5px); /* Optional: Adds a subtle blur to content behind it */
    padding: var(--spacing-lg, 40px);
    border-radius: var(--border-radius-lg, 12px); /* More rounded corners for a softer, premium look */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Subtle light border */
    text-align: center; /* Keep text centered for balance with point-title */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.why-point:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly less transparent on hover */
    border-color: rgba(255, 255, 255, 0.3); /* Border becomes more visible on hover */
}

/* Optional: Icon/Image for each point (if you add them in HTML later) */
/*
.why-point .point-icon {
    font-size: 3em;
    color: var(--color-accent-gold, #FFD700);
    margin-bottom: var(--spacing-md, 20px);
}
*/

.why-point .point-title {
    font-family: var(--font-heading-secondary, 'Playfair Display', serif);
    font-size: 1.7em; /* Slightly larger, more prominent title */
    color: var(--color-accent-gold, #FFD700); /* Gold title for a strong luxury emphasis */
    margin-bottom: var(--spacing-sm, 10px);
    line-height: 1.3;
}

.why-point p {
    font-family: var(--font-body, 'Roboto', sans-serif);
    font-size: 1em;
    line-height: 1.6;
    color: #FFFFFF; /* Ensure body text is white on the dark background */
}

/* Responsive adjustments for Why Choose Us section */
@media (max-width: 768px) {
    .why-choose-us-points-grid {
        grid-template-columns: 1fr; /* Stack columns on small screens */
        gap: var(--spacing-md, 20px);
    }
    .why-point {
        padding: var(--spacing-md, 20px);
    }
    .why-point .point-title {
        font-size: 1.4em;
    }
}
/* Testimonial Section (section-testimonials) */
.section-testimonials {
    background-color: var(--color-primary-light); /* Or pearl white if it contrasts well */
}
.testimonial-carousel { /* If you implement a JS carousel later, these styles can be adjusted */
    max-width: 900px;
    margin: 0 auto;
}
.testimonial-card {
    background-color: #FFFFFF;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}
.testimonial-card::before {
    content: "“";
    font-family: Georgia, serif; /* Classic serif for quotes */
    font-size: 8em; /* Large quote icon */
    color: var(--color-accent-gold);
    position: absolute;
    top: -20px;
    left: 20px;
    opacity: 0.15; /* Subtler opacity */
    z-index: 0;
}
.testimonial-quote {
    font-family: var(--font-body);
    font-size: 1.4em;
    color: var(--color-text-dark);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: var(--spacing-md);
    position: relative; /* Ensure text is above pseudo-element */
    z-index: 1;
}
.testimonial-author {
    font-family: var(--font-heading-secondary);
    font-size: 1.2em;
    color: var(--color-sapphire-blue);
    font-weight: 600;
    margin-top: var(--spacing-sm);
    position: relative;
    z-index: 1;
}
/* Final Call to Action Section (section-final-cta) */
.section-final-cta {
    background-color: var(--color-sapphire-blue); /* Strong, inviting background */
    color: #FFFFFF;
}
.section-final-cta h2 {
    color: #FFFFFF; /* White heading */
    text-shadow: none;
}
.section-final-cta .section-subheading {
    color: rgba(255, 255, 255, 0.8); /* Lighter subtext */
}
.section-final-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}
.section-final-cta .btn-primary {
    background-color: var(--color-accent-gold);
    color: var(--color-sapphire-blue-dark);
    border: 2px solid var(--color-accent-gold);
}
.section-final-cta .btn-primary:hover {
    background-color: var(--color-accent-gold-dark);
    border-color: var(--color-accent-gold-dark);
}
.section-final-cta .btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}
.section-final-cta .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-headline {
        font-size: 3.8em;
    }
    .hero-subheadline {
        font-size: 1.4em;
    }
    .homepage-section h2 {
        font-size: 2.5em;
    }
    .section-subheading {
        font-size: 1.1em;
    }
    .testimonial-quote {
        font-size: 1.2em;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        height: 80vh;
    }
    .hero-headline {
        font-size: 3.2em;
    }
    .hero-subheadline {
        font-size: 1.2em;
    }
    .btn-hero {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    .homepage-section h2 {
        font-size: 2.2em;
    }
    .process-step-item h3, .featured-gem-item h3, .why-us-item h3 {
        font-size: 1.5em;
    }
    .process-step-item p, .featured-gem-item p, .why-us-item p {
        font-size: 0.9em;
    }
    .testimonial-card::before {
        font-size: 6em;
        top: -15px;
        left: 15px;
    }
    .testimonial-quote {
        font-size: 1.1em;
    }
    .testimonial-author {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 75vh;
    }
    .hero-background-left {
        width: 100%;
        height: 50%;
        top: 0;
        left: 0;
    }
    .hero-background-right {
        width: 100%;
        height: 50%;
        top: 50%; /* Starts halfway down */
        right: auto;
        left: 0;
    }
    .hero-headline {
        font-size: 2.5em;
    }
    .hero-subheadline {
        font-size: 1em;
        margin-bottom: var(--spacing-lg);
    }
    .hero-cta-buttons {
        display: flex; 
        flex-direction: column; 
        align-items: center; /* Center the stacked column */
        bottom: 5%;
        gap: 15px; 
        position: absolute;
    }
    .btn-hero {
        position: relative; /* Make it a flow item again */
        left: auto; /* Reset desktop positioning */
        transform: none; /* Reset desktop positioning */
        width: 80%;
        max-width: 350px;
        font-size: 1em;
        padding: 15px 20px;
    }
    .homepage-section {
        padding: var(--spacing-lg) 0;
    }
    .homepage-section h2 {
        font-size: 2em;
    }
    .section-subheading {
        font-size: 1em;
        margin-bottom: var(--spacing-lg);
    }
    .process-steps-grid,
    .featured-gems-grid,
    .why-us-grid {
        grid-template-columns: 1fr; /* Stack items */
        padding: 0 var(--spacing-md);
    }
    .process-step-item, .featured-gem-item, .why-us-item {
        margin-bottom: var(--spacing-md);
    }
    .featured-gem-item img {
        height: 250px;
    }
    .testimonial-card {
        padding: var(--spacing-md);
    }
    .testimonial-card::before {
        font-size: 5em;
        top: -10px;
        left: 10px;
    }
    .testimonial-quote {
        font-size: 1em;
    }
    .testimonial-author {
        font-size: 0.9em;
    }
    .section-final-cta .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    .section-final-cta .btn {
        width: 80%;
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2em;
    }
    .hero-subheadline {
        font-size: 0.9em;
    }
    .homepage-section h2 {
        font-size: 1.8em;
    }
    .section-subheading {
        font-size: 0.9em;
    }
    .process-step-item img, .why-us-item img {
        width: 60px;
        height: 60px;
    }
    .process-step-item h3, .featured-gem-item h3, .why-us-item h3 {
        font-size: 1.3em;
    }
    .featured-gem-item img {
        height: 200px;
    }
    .testimonial-card::before {
        font-size: 4em;
        top: -5px;
        left: 5px;
    }
    .testimonial-quote {
        font-size: 0.9em;
    }
}

/* Adjustments for custom color variables if needed */
:root {
    --color-sapphire-blue-dark: #0A1C2A; /* Deeper blue for gradients */
    --color-pearl-white: #F8F8F8; /* Brighter white for pearl */
    --color-pearl-light: #F0F0E8; /* Slightly off-white for pearl gradient */
}