/**
 * Page Section Styles
 * Frontend rendering of page builder sections
 */

.page-container {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* Hero Section */
.section-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    background: #d4af37;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    transition: background 0.3s;
}

.hero-button:hover {
    background: #b8941f;
}

/* Text Block Section */
.section-text-block {
    padding: 20px;
    background: white;
}

.text-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
}

.text-content p {
    margin-bottom: 15px;
}

.text-content h1, .text-content h2, .text-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.text-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* Product Grid Section */
.section-product-grid {
    padding: 20px;
    background: #f9f9f9;
}

.section-product-grid .container {
    width: 100%;
}

.product-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 36px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 8px;
}

.product-original-price {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.product-add-cart {
    width: 100%;
    padding: 12px;
    background: #d4af37;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.product-add-cart:hover {
    background: #b8941f;
}

/* Product Carousel Section */
.section-product-carousel {
    padding: 20px;
    background: white;
}

.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
}

.carousel-item {
    min-width: 280px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    scroll-snap-align: start;
    text-align: center;
}

.carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.carousel-item h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.carousel-item p {
    font-size: 18px;
    font-weight: 700;
    color: #d4af37;
}

/* Contact Form Section */
.section-contact-form {
    padding: 20px;
    background: #f9f9f9;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.form-group textarea {
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: #d4af37;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.form-submit:hover {
    background: #b8941f;
}

/* Newsletter Form Section */
.section-newsletter-form {
    padding: 20px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
    text-align: center;
}

.section-newsletter-form .section-title,
.section-newsletter-form .section-subtitle {
    color: white;
}

.newsletter-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 15px 30px;
    background: white;
    color: #d4af37;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: #f5f5f5;
}

.privacy-text {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.9;
}

/* Image Gallery Section */
.section-image-gallery {
    padding: 20px;
    background: white;
}

.image-gallery {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Heading Section */
.section-heading {
    padding: 10px 20px;
}

/* Image Section */
.section-image {
    padding: 0;
    margin: 0;
}

/* Video Section */
.section-video {
    padding: 10px 20px;
}

/* Button Section */
.section-button {
    padding: 10px 20px;
}

.btn-custom:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Divider Section */
.section-divider {
    padding: 5px 20px;
}

/* Spacer Section */
.section-spacer {
    width: 100%;
}

/* Gallery Section */
.section-gallery {
    padding: 10px 20px;
}

.section-gallery .gallery-item {
    transition: transform 0.3s;
}

.section-gallery .gallery-item:hover {
    transform: scale(1.02);
}

/* Testimonial Section */
.section-testimonial {
    padding: 20px;
}

.testimonial-card blockquote::before {
    content: '"';
    font-size: 60px;
    position: absolute;
    top: -20px;
    left: 20px;
    opacity: 0.1;
}

/* Social Icons Section */
.section-social-icons {
    padding: 10px 20px;
}

.section-social-icons a:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

/* Map Section */
.section-map {
    padding: 10px 20px;
}

/* Newsletter Section */
.section-newsletter {
    padding: 20px;
}

/* FAQ Section */
.section-faq {
    padding: 20px;
}

.faq-question:hover {
    background: #f3f4f6;
}

/* Pricing Table Section */
.section-pricing-table {
    padding: 20px;
}

.pricing-card {
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: scale(1.02) !important;
}

/* HTML Section */
.section-html {
    padding: 20px;
}

/* Columns Section */
.section-columns {
    padding: 0;
}

.section-columns .container {
    padding: 0;
}

/* Responsive Visibility Classes */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hide-tablet {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
    }

    .columns-layout {
        flex-direction: column !important;
    }

    .columns-layout .column {
        flex: 1 1 100% !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .product-grid {
        gap: 20px;
    }

    .image-gallery {
        gap: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .product-grid {
        grid-template-columns: 1fr !important;
    }

    .image-gallery {
        grid-template-columns: 1fr !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    .social-icons {
        flex-wrap: wrap;
        justify-content: center;
    }
}
