/* ========================================
   Home Page Specific Styles
   ======================================== */

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    padding-top: 2rem;
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-slide.active .hero-content {
    animation: fadeInUp 1s ease 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-base);
}

.slider-control:hover {
    background: white;
    color: var(--primary-dark);
}

.slider-control.prev {
    left: 2rem;
}

.slider-control.next {
    right: 2rem;
}

.carousel-indicators-custom {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-base);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Feature Horizontal Scroll Section */
.feature-scroll-section {
    background: var(--primary-dark);
    padding: 2rem 0;
}

.feature-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
    gap: 1.5rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
    /* Added bottom padding for scrollbar */
    cursor: grab;
}

.feature-scroll-container.active {
    cursor: grabbing;
    scroll-behavior: auto;
}

.feature-scroll-container::-webkit-scrollbar {
    height: 8px;
    /* Height of horizontal scrollbar */
}

.feature-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.feature-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.feature-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.feature-scroll-item {
    flex: 0 0 320px;
    /* Fixed width */
    height: 200px;
    /* Reduced height to match reference aspect ratio approx 16:9 */
}

.feature-card {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
    /* Sharp edges as per reference */
    box-shadow: var(--shadow-md);
}

.feature-overlay {
    display: none;
    /* Removed gradient overlay */
}

.feature-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Dark strip background */
    padding: 0.8rem 1.5rem;
    color: white;
    z-index: 2;
    transform: none;
    /* Always visible */
    text-align: center;
    /* Center text within the strip */
}

.feature-content h3 {
    font-family: sans-serif;
    /* Match reference */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.feature-content p {
    display: none;
    /* Hide description */
}

/* Scroll Control */
.feature-scroll-container.no-scroll {
    overflow-x: hidden;
    justify-content: center;
    flex-wrap: wrap;
    /* Stack if they don't fit, no horizontal scroll */
}

.feature-scroll-container.no-scroll .feature-scroll-item {
    flex: 0 0 320px;
    /* Maintain width */
    margin-bottom: 1.5rem;
    /* Add gap for wrapped items */
}

/* Collections Grid (Replaces Vertical Scroll) */
.collection-card {
    background: white;
    height: 100%;
    transition: var(--transition-base);
}

.collection-img {
    position: relative;
    padding-bottom: 65%;
    /* Aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.collection-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.collection-card:hover .collection-img img {
    transform: scale(1.05);
}

.collection-content {
    padding: 1.5rem 0;
}

.collection-content h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.collection-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 3em;
    /* Align buttons */
}

.collection-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition-base);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
}

.collection-link:hover {
    gap: 0.8rem;
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

/* Customer Favorites */
.favorite-card {
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
    border: 1px solid var(--border-color);
}

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.favorite-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.favorite-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.favorite-card:hover .favorite-img-wrapper img {
    transform: scale(1.1);
}

.review-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.customer-review {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 4px;
    position: relative;
    margin-top: 1rem;
}

.customer-review .fa-quote-left {
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 1.5rem;
}

/* Sustainability Section */
.sustainability-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.sustainability-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Taller for parallax */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.sustainability-content {
    position: relative;
    z-index: 2;
    background: white;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    max-width: 600px;
}

/* Services Section */
.services-section {
    background: var(--bg-light);
}

.services-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.crown-icon {
    width: 50px;
    height: auto;
}

.material-collage-container {
    position: relative;
    height: 400px;
    width: 100%;
    margin-top: 2rem;
}

.collage-img {
    position: absolute;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    object-fit: cover;
}

.collage-img:hover {
    z-index: 10;
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.img-1 {
    width: 55%;
    height: 65%;
    top: 0;
    right: 10%;
    z-index: 1;
}

.img-2 {
    width: 45%;
    height: 55%;
    bottom: 5%;
    left: 5%;
    z-index: 2;
}

.img-3 {
    width: 35%;
    height: 45%;
    bottom: 20%;
    right: 0;
    z-index: 3;
    border: 4px solid white;
}

.collage-accent {
    position: absolute;
    top: -20px;
    right: 5%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

/* Minimal Service Cards */
.service-card-minimal {
    padding: 1rem;
    height: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.service-icon-minimal {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.service-card-minimal h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.service-card-minimal p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    /* min-height removed */
}

.btn-minimal {
    display: inline-block;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-base);
    width: 100%;
    text-align: center;
    white-space: nowrap;
    margin-top: auto;
    /* Push to bottom */
}

.btn-minimal:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .sustainability-content {
        margin: 1rem;
        padding: 2rem;
    }

    .material-collage-container {
        height: 300px;
        margin-bottom: 3rem;
    }
}