/* Product Pages Shared Styles */

/* Hero Section */
.hero h1 {
    font-size: 4rem;
    letter-spacing: 1.5rem;
    padding-left: 0.75rem;
}

.product-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
    overflow: hidden;
}

.product-hero .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.product-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Product Hero Content */
.product-hero .hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.product-hero .hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 200;
    padding-left: 0.5rem;
    letter-spacing: 1rem;
}

.product-hero .hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Products Grid */
.products-grid {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

/* Product Section Title */
.product-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.product-section .section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.product-section .section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Pricing CTA Section */
.pricing-cta {
    padding: 5rem 0;
    background-color: var(--light-bg);
    text-align: center;
}

.pricing-cta .cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pricing-cta h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.pricing-cta p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 1.5rem;
}

.product-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.product-details p {
    color: #666;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: #fff;
}

/* Product Contact Form */
.product-contact .contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Product Form Group */
.product-contact .form-group {
    margin-bottom: 1.5rem;
}

.product-contact .form-group input,
.product-contact .form-group select,
.product-contact .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.product-contact .form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Modal for Gallery */
.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Slide animations */
.slide-left {
    animation: slideInLeft 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.slide-right {
    animation: slideInRight 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 0.7;
    border: none;
    outline: none;
}

.modal-nav:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

/* Pricing Page Styles */
.pricing-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

#beam-length-container {
    margin-top: 20px;
}

.pricing-intro h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.pricing-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.pricing-disclaimer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: rgba(139, 90, 43, 0.05);
    border-radius: 8px;
}

.pricing-disclaimer h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.back-to-products {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-to-products:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gallery-item {
    background: white;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image {
    height: 250px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-content {
    padding: 1.5rem;
}

.gallery-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.gallery-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.gallery-item .cta-button.secondary {
    display: inline-block;
    width: 100%;
    padding: 0.25rem;
    background-color: #f8f9fa;
    color: var(--primary-color);
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    border-radius: 0;
}

.gallery-item .cta-button.secondary:hover {
    background-color: #fff;
}

/* Hero Background Styles */
.hero-mantels {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/mantel.jpg') center/cover no-repeat;
}


/* Utility Classes */
.full-width {
    width: 100%;
}

.about-white {
    background-color: #fff;
}

.footer-logo {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-description {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.price-value {
    color: #c8a97e;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-hero .hero-content h1, .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 0.25rem;
    }

    .product-hero .hero-content p {
        font-size: 1.2rem;
    }

    .products-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .product-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    /* Fix CTA layout for mobile - video above content */
    .cta-grid {
        grid-template-columns: 1fr !important;
        grid-template-areas: "image" "content" !important;
        text-align: center;
    }
    
    .cta-grid.reverse {
        grid-template-areas: "image" "content" !important;
    }
    
    /* Reduce padding for customization-cta on mobile */
    .customization-cta {
        padding: 3rem 0 !important;
    }
    
    /* Reduce padding for gallery-section on mobile */
    .gallery-section {
        padding: 3rem 0 !important;
    }
    
    /* Reduce padding for custom-order-cta on mobile */
    .custom-order-cta {
        padding: 3rem 0 !important;
    }
}
