/**
 * Bathroom Cabinets Page Template Styles
 * Template: template-bathroom-cabinets.php
 * Enhanced with modern animations and hover effects
 */

/* ========== CSS Variables ========== */
:root {
    --bc-primary: #FF8C00;
    --bc-primary-dark: #e67e00;
    --bc-secondary: #1a1a1a;
    --bc-text: #333333;
    --bc-text-light: #666666;
    --bc-bg-light: #f8f9fa;
    --bc-bg-gray: #f5f5f5;
    --bc-white: #ffffff;
    --bc-border: #e0e0e0;
    --bc-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --bc-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --bc-radius: 8px;
    --bc-radius-lg: 16px;
    --bc-transition: all 0.3s ease;
    --bc-container-width: 1200px;
}

/* ========== Base Styles ========== */
.page-bathroom-cabinets {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--bc-text);
    line-height: 1.6;
}

.page-bathroom-cabinets .elementor-container {
    max-width: var(--bc-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.page-bathroom-cabinets .full-width {
    width: 100%;
    position: relative;
}

/* ========== Section 1: Hero ========== */
.bc-hero {
    padding: 0;
    position: relative;
    background: var(--bc-secondary);
}

.bc-hero .full-width {
    min-height: 500px;
}

.bc-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bc-hero .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.bc-hero:hover .hero-bg-image {
    transform: scale(1.05);
}

.bc-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.bc-hero .hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 500px;
    padding: 80px 20px;
}

.bc-hero .hero-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--bc-white);
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.bc-hero .hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    height: auto;
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    border-radius: 0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bc-hero .hero-button:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ========== Section 1b: Intro ========== */
.bc-intro {
    padding: 80px 0;
    background: var(--bc-white);
}

.bc-intro .intro-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--bc-secondary);
    margin: 0 0 20px 0;
    text-align: center;
    position: relative;
}

.bc-intro .intro-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--bc-primary);
    margin: 15px auto 0;
}

.bc-intro .intro-p {
    font-size: 16px;
    font-weight: 400;
    color: var(--bc-text-light);
    margin: 0;
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ========== Section 2: Product Grid ========== */
.bc-product-grid {
    padding: 80px 0;
    background: var(--bc-bg-light);
}

.bc-product-grid .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.bc-product-grid .product-card {
    background: var(--bc-white);
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.bc-product-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.bc-product-grid .card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.bc-product-grid .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bc-product-grid .product-card:hover .card-image img {
    transform: scale(1.05);
}

.bc-product-grid .card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 20px 15px 12px;
}

.bc-product-grid .card-desc {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin: 0 15px 15px;
    line-height: 1.6;
    flex: 1;
}

.bc-product-grid .card-button {
    display: inline-block;
    padding: 10px 20px;
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    border-radius: 0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.bc-product-grid .card-button:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* ========== Section 3: Material Options ========== */
    color: var(--bc-secondary);
    margin: 0;
    text-align: center;
    position: relative;
}

.bc-vanities-grid .materials-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--bc-primary);
    margin: 15px auto 0;
}

/* ========== Section 3: Material Options ========== */
.bc-material-options {
    padding: 40px 0 80px;
    background: var(--bc-white);
}

.bc-material-options .material-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.bc-material-options .material-cta {
    text-align: center;
    margin-top: 50px;
}

.bc-material-options .material-cta a {
    display: inline-block;
    padding: 12px 28px;
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    border-radius: 0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.bc-material-options .material-cta a:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
}

.bc-material-options .material-card {
    background: var(--bc-white);
    border: none;
    border-radius: var(--bc-radius-lg);
    overflow: hidden;
    box-shadow: var(--bc-shadow);
    transition: var(--bc-transition);
}

.bc-material-options .material-card:hover {
    box-shadow: var(--bc-shadow-hover);
    transform: translateY(-8px);
}

.bc-material-options .material-image-wrapper {
    overflow: hidden;
    position: relative;
}

.bc-material-options .material-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bc-material-options .material-card:hover .material-image-wrapper::after {
    opacity: 1;
}

.bc-material-options .material-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.bc-material-options .material-card:hover img {
    transform: scale(1.1);
}

.bc-material-options .material-content {
    padding: 25px;
}

.bc-material-options .material-card .card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--bc-secondary);
    margin: 0 0 12px 0;
}

.bc-material-options .material-card .card-desc {
    font-size: 15px;
    font-weight: 400;
    color: var(--bc-text-light);
    margin: 0;
    line-height: 1.7;
}

/* ========== Section 4: Buying Guide + FAQ ========== */
.bc-buying-guide {
    padding: 80px 0;
    background: var(--bc-bg-light);
}

.bc-buying-guide .guide-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--bc-secondary);
    margin: 0 0 25px 0;
    position: relative;
}

.bc-buying-guide .guide-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--bc-primary);
    margin: 15px 0 0;
}

.bc-buying-guide .guide-p {
    font-size: 16px;
    font-weight: 400;
    color: var(--bc-text-light);
    margin: 0 0 20px 0;
    line-height: 1.8;
}

.bc-buying-guide .faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bc-buying-guide .faq-item {
    background: var(--bc-white);
    border: none;
    border-radius: var(--bc-radius);
    overflow: hidden;
    box-shadow: var(--bc-shadow);
    transition: var(--bc-transition);
}

.bc-buying-guide .faq-item:hover {
    box-shadow: var(--bc-shadow-hover);
}

.bc-buying-guide .faq-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 25px;
    cursor: pointer;
    transition: var(--bc-transition);
}

.bc-buying-guide .faq-header:hover {
    background: var(--bc-bg-gray);
}

.bc-buying-guide .faq-icon {
    width: 32px;
    height: 32px;
    background: var(--bc-primary);
    color: var(--bc-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    flex-shrink: 0;
    transition: var(--bc-transition);
}

.bc-buying-guide .faq-item.active .faq-icon {
    background: var(--bc-secondary);
    transform: rotate(180deg);
}

.bc-buying-guide .faq-q {
    font-size: 16px;
    font-weight: 600;
    color: var(--bc-secondary);
    margin: 0;
}

.bc-buying-guide .faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.bc-buying-guide .faq-item.active .faq-content {
    max-height: 500px;
}

.bc-buying-guide .faq-content p {
    padding: 0 25px 25px 73px;
    margin: 0;
    color: var(--bc-text-light);
    font-size: 15px;
    line-height: 1.8;
}

/* ========== Section 5: Contact Form ========== */
.bc-contact-form {
    padding: 80px 0 100px;
    background: var(--bc-white);
}

.bc-contact-form .quote-form-wrapper {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 50px;
    align-items: start;
    background: var(--bc-bg-light);
    border-radius: var(--bc-radius-lg);
    padding: 40px;
    box-shadow: var(--bc-shadow);
}

.bc-contact-form .quote-form-image {
    position: relative;
    border-radius: var(--bc-radius-lg);
    overflow: hidden;
}

.bc-contact-form .quote-form-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    border-radius: var(--bc-radius-lg);
    transition: transform 0.5s ease;
}

.bc-contact-form .quote-form-wrapper:hover .quote-form-image img {
    transform: scale(1.02);
}

.bc-contact-form .quote-form-fields {
    padding: 10px 0;
}

.bc-contact-form .quote-form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bc-secondary);
    margin: 0 0 10px 0;
}

.bc-contact-form .quote-form-desc {
    font-size: 15px;
    font-weight: 400;
    color: var(--bc-text-light);
    margin: 0 0 30px 0;
    line-height: 1.7;
}

.bc-contact-form .quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bc-contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bc-contact-form .form-group-full {
    width: 100%;
}

.bc-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bc-contact-form label {
    font-size: 14px;
    font-weight: 500;
    color: var(--bc-secondary);
}

.bc-contact-form input[type="text"],
.bc-contact-form input[type="email"],
.bc-contact-form input[type="tel"],
.bc-contact-form select,
.bc-contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    height: auto;
    min-height: 48px;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    font-size: 15px;
    font-family: inherit;
    background: var(--bc-white);
    transition: var(--bc-transition);
}

.bc-contact-form input:focus,
.bc-contact-form select:focus,
.bc-contact-form textarea:focus {
    outline: none;
    border-color: var(--bc-primary);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.bc-contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.bc-contact-form .checkbox-group {
    background: var(--bc-white);
    padding: 20px;
    border-radius: var(--bc-radius);
    border: 1px solid var(--bc-border);
}

.bc-contact-form .checkbox-group > label {
    margin-bottom: 15px;
    font-weight: 600;
}

.bc-contact-form .checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.bc-contact-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    color: var(--bc-text-light);
    cursor: pointer;
}

.bc-contact-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--bc-primary);
}

.bc-contact-form .submit-button {
    padding: 16px 40px;
    height: auto;
    background: var(--bc-primary);
    color: var(--bc-white);
    border: none;
    border-radius: var(--bc-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--bc-transition);
    align-self: flex-start;
}

.bc-contact-form .submit-button:hover {
    background: var(--bc-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Stagger animation delays */
.bc-product-grid .product-card:nth-child(1) { transition-delay: 0.1s; }
.bc-product-grid .product-card:nth-child(2) { transition-delay: 0.2s; }
.bc-product-grid .product-card:nth-child(3) { transition-delay: 0.3s; }

.bc-vanities-grid .vanity-card:nth-child(1) { transition-delay: 0.1s; }
.bc-vanities-grid .vanity-card:nth-child(2) { transition-delay: 0.2s; }
.bc-vanities-grid .vanity-card:nth-child(3) { transition-delay: 0.3s; }

.bc-material-options .material-card:nth-child(1) { transition-delay: 0.1s; }
.bc-material-options .material-card:nth-child(2) { transition-delay: 0.2s; }
.bc-material-options .material-card:nth-child(3) { transition-delay: 0.3s; }
.bc-material-options .material-card:nth-child(4) { transition-delay: 0.4s; }

/* ========== Responsive Styles ========== */
@media (max-width: 1024px) {
    .bc-product-grid .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bc-vanities-grid .vanities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bc-material-options .material-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bc-contact-form .quote-form-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bc-contact-form .quote-form-image img {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .bc-hero .hero-title {
        font-size: 32px;
    }

    .bc-hero .hero-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        padding: 60px 20px;
        min-height: 400px;
    }

    .bc-intro {
        padding: 50px 0;
    }

    .bc-intro .intro-title {
        font-size: 26px;
    }

    .bc-product-grid,
    .bc-vanities-grid,
    .bc-material-options,
    .bc-buying-guide,
    .bc-contact-form {
        padding: 50px 0;
    }

    .bc-vanities-grid {
        padding: 50px 0 30px;
    }

    .bc-vanities-grid .vanities-grid {
        margin-bottom: 40px;
        grid-template-columns: 1fr;
    }

    .bc-material-options {
        padding: 30px 0 50px;
    }

    .bc-contact-form {
        padding-bottom: 70px;
    }

    .bc-product-grid .products-grid {
        grid-template-columns: 1fr;
    }

    .bc-buying-guide .guide-title {
        font-size: 28px;
    }

    .bc-contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .bc-contact-form .checkboxes {
        grid-template-columns: 1fr;
    }

    .bc-contact-form .quote-form-wrapper {
        padding: 25px;
        gap: 25px;
    }

    .bc-contact-form .quote-form-image img {
        min-height: 250px;
    }

    .bc-faqs .faq-content p {
        padding-left: 25px;
    }
}

@media (max-width: 480px) {
    .bc-hero .hero-title {
        font-size: 26px;
    }

    .bc-hero .hero-button {
        font-size: 14px;
        padding: 12px 24px;
    }

    .bc-intro .intro-title {
        font-size: 22px;
    }

    .bc-buying-guide .guide-title {
        font-size: 24px;
    }

    .bc-contact-form .quote-form-title {
        font-size: 24px;
    }

    .bc-material-options .material-card img {
        height: 180px;
    }

    .bc-product-grid .card-title,
    .bc-vanities-grid .card-title,
    .bc-material-options .material-card .card-title {
        font-size: 20px;
    }
}
