/***************************************************
*                                                  *
*          WPD Homepage CSS - Part 3               *
*          Location Section & CTA                  *
*                                                  *
***************************************************/

/***************************************************
*                                                  *
*           Homepage Finding WPD Styles            *
*                                                  *
***************************************************/

/* Wrapper for full-width background */
.wpd-location-wrapper {
    background-color: #f3f3f3;
    width: 100%;
    padding: 120px 0;
}

/* Main container */
.wpd-location {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    min-height: 400px;
    gap: 100px;
    padding: 0 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Image styles */
.wpd-location__image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.wpd-location__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

/* Subtle zoom effect on hover */
.wpd-location__bg:hover {
    transform: scale(1.05);
}

/* Content container */
.wpd-location__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
}

.wpd-location__content {
    max-width: 600px;
}

/* Title styles */
.wpd-location__title {
    font-family: 'Prata', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #333;
    margin: 0 0 30px;
    padding-bottom: 20px;
    position: relative;
}

/* Underline effect matching previous section */
.wpd-location__title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #8f4c73;
    transition: width 0.3s ease;
}

.wpd-location__title:hover:after {
    width: 120px;
}

/* Text styles */
.wpd-location__address {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.6;
}

.wpd-location__description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Button styles */
.wpd-location__btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    background-color: #8f4c73;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: none;
    font-weight: 300;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

.wpd-location__btn:hover {
    background-color: #723d5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(143, 76, 115, 0.2);
}

/* Location Section Responsive Styles */

/* Tablet styles */
@media screen and (max-width: 1024px) {
    .wpd-location-wrapper {
        padding: 100px 0;
    }
    
    .wpd-location {
        padding: 0 40px;
        gap: 80px;
        grid-template-columns: 1fr 0.55fr;
    }

    .wpd-location__image {
        min-height: 360px;
    }

    .wpd-location__title {
        font-size: 2rem;
    }

    .wpd-location__address {
        font-size: 1.1rem;
    }
}

/* Small tablet styles */
@media screen and (max-width: 768px) {
    .wpd-location-wrapper {
        padding: 80px 0;
    }
    
    .wpd-location {
        grid-template-columns: 1fr;
        padding: 0 30px;
        gap: 60px;
    }

    .wpd-location__image {
        min-height: 300px;
        width: 90%;
        margin: 0 auto;
        order: 1;
    }

    .wpd-location__container {
        padding-right: 0;
        order: 2;
    }

    .wpd-location__content {
        max-width: 100%;
    }
}

/* Mobile styles */
@media screen and (max-width: 480px) {
    .wpd-location-wrapper {
        padding: 60px 0;
    }
    
    .wpd-location {
        padding: 0 20px;
        gap: 50px;
    }

    .wpd-location__image {
        min-height: 240px;
        width: 100%;
    }

    .wpd-location__title {
        font-size: 1.75rem;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .wpd-location__address {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .wpd-location__description {
        margin-bottom: 25px;
        font-size: 0.9rem;
    }

    .wpd-location__btn {
        display: block;
        text-align: center;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

/***************************************************
*                                                  *
*              CTA Section Styles                  *
*                                                  *
***************************************************/

.wpd-cta-section {
    background: linear-gradient(135deg, #2F855A 0%, #1e5a3a 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Remove pattern overlay - commented out */
/*
.wpd-cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="25" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="25" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}
*/

.wpd-cta-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.wpd-cta-section__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.wpd-cta-section__title {
    font-family: 'Prata', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.wpd-cta-section__button-wrapper {
    flex-shrink: 0;
}

.wpd-cta-section__button {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background-color: #8f4c73;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(143, 76, 115, 0.2);
}

.wpd-cta-section__button:hover {
    background-color: #631641;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(143, 76, 115, 0.3);
}

/* CTA Section Responsive Styles */

/* Tablet styles */
@media screen and (max-width: 1024px) {
    .wpd-cta-section {
        padding: 70px 0;
    }
    
    .wpd-cta-section__title {
        font-size: 2.25rem;
    }
    
    .wpd-cta-section__button {
        padding: 1.125rem 2.25rem;
        font-size: 1.05rem;
    }
}

/* Small tablet styles */
@media screen and (max-width: 768px) {
    .wpd-cta-section {
        padding: 60px 0;
    }
    
    .wpd-cta-section__content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .wpd-cta-section__title {
        font-size: 2rem;
    }
    
    .wpd-cta-section__button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Mobile styles */
@media screen and (max-width: 480px) {
    .wpd-cta-section {
        padding: 50px 0;
    }
    
    .wpd-cta-section__container {
        padding: 0 15px;
    }
    
    .wpd-cta-section__content {
        gap: 25px;
    }
    
    .wpd-cta-section__title {
        font-size: 1.75rem;
        padding: 0 10px;
    }
    
    .wpd-cta-section__button {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        width: auto;
        min-width: 200px;
    }
}

/***************************************************
*                                                  *
*              Additional Utility Styles           *
*                                                  *
***************************************************/

/* Focus styles for accessibility */
.wpd-location__btn:focus,
.wpd-cta-section__button:focus,
.wpd-why-dance__btn:focus,
.wpd-hero-home__button:focus,
.wpd-homepage-boxes__button:focus {
    outline: 3px solid #8f4c73;
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .wpd-why-dance__bg-move,
    .wpd-location__bg,
    .wpd-icons-and-istd__bg {
        animation: none;
        transition: none;
    }
    
    .wpd-why-dance__tagline,
    .wpd-why-dance__description,
    .wpd-why-dance__btn {
        animation: none;
        opacity: 1;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wpd-cta-section__button {
        border-width: 3px;
    }
    
    .wpd-location__title:after,
    .wpd-icons-and-istd__title:after,
    .wpd-why-dance__divider {
        height: 4px;
    }
}