/*
Theme Name: Pirouette Child
Theme URI:
Author: Curly Themes
Author URI:
Description: Child Theme for Pirouette Dance Theme
Version: 1
Template: pirouette

*/

/* Royal Ballet School Exact Structure - White Theme */

/* Override header styling to match main MDSB site exactly */
.ct-header {
    color: rgb(91,91,91) !important;
}

.ct-header__logo-nav a {
    color: rgb(91,91,91) !important;
}

.ct-header__logo-nav a:hover {
    color: rgba(91,91,91,0.65) !important;
}

/* Override default footer structure to match main MDSB site exactly */
.ct-footer {
    background: #ffffff;
    color: #333333;
    border-top: 1px solid #e0e0e0;
}

.ct-footer__logo {
    display: none; /* Hide the original logo section */
}

.ct-footer .container-fluid {
    background: #ffffff;
    padding: 60px 0;
    position: relative;
}

/* Footer 3-Column Layout */
.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 200px;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 1.5rem 0;
    color: #333333;
    font-family: 'Montserrat', sans-serif;
}

.footer-column .contact-info p {
    margin: 0 0 1rem 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    font-family: 'Montserrat', sans-serif;
}

.footer-links-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-links-list li {
    margin: 0 0 0.75rem 0 !important;
    text-align: left !important;
    display: list-item !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-links-list a {
    color: #666666 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-family: 'Montserrat', sans-serif !important;
    transition: color 0.3s ease !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-links-list a:hover {
    color: #333333 !important;
}

/* Social Media Icons (Royal Ballet Style) */
.social-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
    position: relative;
}

.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    margin: 0 6px;
}

.footer-social-links a:hover {
    color: #666666;
    transform: scale(1.1);
}

/* 3. Bottom Copyright Section (equivalent to Royal Ballet's dark gray) */
#absolute-footer {
    background: #ffffff;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-copyright .container {
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0 !important;
}

.copyright-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem;
    width: 100%;
}

.copyright-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem;
    text-align: center !important;
    width: 100%;
}

.copyright-main p {
    margin: 0 auto !important;
    font-size: 14px;
    color: #666666;
    font-family: 'Montserrat', sans-serif;
    text-align: center !important;
    width: 100%;
}

.copyright-content p {
    margin: 0 auto !important;
    font-size: 14px;
    color: #666666;
    font-family: 'Montserrat', sans-serif;
    text-align: center !important;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal-links a {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #333333;
}

.platform-credit {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.platform-credit p {
    font-size: 12px;
    color: #999999;
    margin: 0 auto !important;
    text-align: center !important;
    width: 100%;
}

.platform-credit a {
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.platform-credit a:hover {
    color: #333333;
}

/* 1. Call-to-Action Section (equivalent to Royal Ballet's yellow section) */
.footer-cta-section {
    background: #ffffff;
    padding: 4rem 0;
    min-height: 140px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.footer-cta-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    color: #333333;
    font-family: 'Montserrat', sans-serif;
}

.cta-content p {
    font-size: 1rem;
    color: #666666;
    margin: 0 0 2rem 0;
    font-family: 'Montserrat', sans-serif;
}

.cta-form {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 400px;
    margin: 0 auto;
}

.cta-email {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.cta-button {
    padding: 12px 24px;
    background: #333333;
    color: white;
    border: 1px solid #333333;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #555555;
}

/* 2. Main Footer Section (equivalent to Royal Ballet's black section) */
.ct-footer {
    background: #ffffff;
    color: #333333;
    border-top: 1px solid #e0e0e0;
}

.ct-footer__logo {
    display: none; /* Hide the original logo section */
}

.ct-footer .container-fluid {
    background: #ffffff;
    padding: 60px 0;
    position: relative;
}

/* Footer 3-Column Layout */
.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 200px;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 1.5rem 0;
    color: #333333;
    font-family: 'Montserrat', sans-serif;
}

.footer-column .contact-info p {
    margin: 0 0 1rem 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    font-family: 'Montserrat', sans-serif;
}

.footer-links-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-links-list li {
    margin: 0 0 0.75rem 0 !important;
    text-align: left !important;
    display: list-item !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-links-list a {
    color: #666666 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-family: 'Montserrat', sans-serif !important;
    transition: color 0.3s ease !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-links-list a:hover {
    color: #333333 !important;
}

/* Social Media Icons (Royal Ballet Style) */
.social-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
    position: relative;
}

.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    margin: 0 6px;
}

.footer-social-links a:hover {
    color: #666666;
    transform: scale(1.1);
}

/* 3. Bottom Copyright Section (equivalent to Royal Ballet's dark gray) */
#absolute-footer {
    background: #ffffff;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-copyright .container {
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0 !important;
}

.copyright-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem;
    width: 100%;
}

.copyright-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem;
    text-align: center !important;
    width: 100%;
}

.copyright-main p {
    margin: 0 auto !important;
    font-size: 14px;
    color: #666666;
    font-family: 'Montserrat', sans-serif;
    text-align: center !important;
    width: 100%;
}

.copyright-content p {
    margin: 0 auto !important;
    font-size: 14px;
    color: #666666;
    font-family: 'Montserrat', sans-serif;
    text-align: center !important;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal-links a {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #333333;
}

.platform-credit {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.platform-credit p {
    font-size: 12px;
    color: #999999;
    margin: 0 auto !important;
    text-align: center !important;
    width: 100%;
}

.platform-credit a {
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.platform-credit a:hover {
    color: #333333;
}

/* Additional footer centering overrides */
#absolute-footer {
    text-align: center !important;
}

#absolute-footer * {
    text-align: center !important;
}

#absolute-footer .container {
    text-align: center !important;
}

#absolute-footer .footer-copyright {
    text-align: center !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta-content h3 {
        font-size: 1.5rem;
    }

    .cta-form {
        flex-direction: column;
        max-width: 300px;
    }

    .cta-email,
    .cta-button {
        border-radius: 4px;
        border: 1px solid #ddd;
    }

    .cta-button {
        margin-top: 0.5rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-column {
        text-align: left;
    }

    .social-column {
        text-align: center;
        justify-content: center;
    }

    .copyright-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-cta-section {
        padding: 2rem 0;
    }

    .footer-columns {
        padding: 0 1rem;
    }

    .footer-copyright .container {
        padding: 0 !important;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Fix for social media icons visibility */
.footer-social-links a i {
    display: inline-block !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure social links are visible */
.footer-social-links a {
    display: flex !important;
    color: #333333 !important;
    font-size: 18px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Change all WooCommerce buttons from blue to gold */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button,
.woocommerce-page button.button,
.woocommerce-page a.button,
.woocommerce-page input.button,
.woocommerce-page #respond input#submit,
button.single_add_to_cart_button,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.checkout-button,
.woocommerce-Button,
.wp-element-button {
    background-color: #C9AC8C !important;
    border-color: #C9AC8C !important;
    color: #ffffff !important;
}

/* Style text blocks with pink background as buttons */
p[style*="background"],
.has-background {
    padding: 12px 24px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

/* Specific styling for pink background elements */
p[style*="background"][style*="pink"],
p[style*="background"][style*="#"],
.has-pink-background-color {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

p[style*="background"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button:hover,
button.single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.checkout-button:hover,
.woocommerce-Button:hover,
.wp-element-button:hover {
    background-color: #b89a7a !important;
    border-color: #b89a7a !important;
    color: #ffffff !important;
}

/* Rounded corners for details blocks (black boxes on performance pages) */
.wp-block-details {
    border-radius: 12px !important;
    overflow: hidden;
}

.wp-block-details summary {
    border-radius: 12px !important;
}

/* Additional styling for opened details blocks */
.wp-block-details[open] summary {
    border-radius: 12px 12px 0 0 !important;
}