/* Pilates Packages Page Styles - Matching packages.css */

/* Fulham-style Hero Section */
.pilates-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    left: 0;
    right: 0;
}

.pilates-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}

.pilates-hero .hero-background img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 1;
}

.pilates-hero .hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
    display: block !important;
    z-index: 1;
}

.pilates-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.pilates-hero .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pilates-hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    color: #FFFFFF;
    padding: 0 2rem;
    max-width: 800px;
    margin-left: max(2rem, calc(50vw - 600px));
    margin-top: 2.5rem;
}

.pilates-hero .hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.pilates-hero .hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.pilates-hero .hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.pilates-hero .btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 180px;
    text-align: center;
    cursor: pointer;
    text-shadow: none;
}

.pilates-hero .btn-primary {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.pilates-hero .btn-primary:hover {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.pilates-hero .btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.pilates-hero .btn-secondary:hover {
    background-color: #FFFFFF;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.pilates-hero .fulham-studio-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.pilates-hero .badge-text {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Hide desktop tabs on mobile to prevent duplicate tabs */
@media (max-width: 768px) {
    .desktop-tabs {
        display: none !important;
    }
}

/* Mobile responsiveness for hero */
@media (max-width: 768px) {
    .pilates-hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .pilates-hero .hero-content {
        margin-left: 2rem;
        padding: 0 1rem;
        max-width: 90%;
    }
    
    .pilates-hero .hero-title {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .pilates-hero .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .pilates-hero .hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .pilates-hero .btn {
        min-width: 200px;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}

/* Package Layout - Exact copy from packages.css */
.packages-outer-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.packages-container.single-col-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.packages-main.single-col-main {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Title */
.kettlebells-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
    text-align: center !important;
    margin-bottom: 2rem;
}

/* Package Filter Tabs - Exact copy from packages.css */
.package-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.package-tab {
    background-color: #f5f5f5;
    color: #000;
    padding: 12px 18px;
    border-radius: 25px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    min-width: fit-content;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.package-tab:hover {
    background-color: #333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.package-tab.active {
    background-color: #000;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.package-tabs.desktop-tabs {
    display: flex;
}

/* Mobile Filter - exact copy from packages.css */
.mobile-filter-container {
    display: none;
    margin: 0 auto 25px auto;
    max-width: 350px;
    width: 100%;
}

.mobile-package-filter {
    width: 100%;
    padding: 12px 15px;
    border-radius: 25px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    cursor: pointer;
    text-align: center;
}

/* Packages Grid */
.packages-grid.single-col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: stretch;
    width: 100%;
}

/* Package Card - Exact copy from packages.css */
.package-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.package-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.package-card-link:hover .package-card {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12), 0 1.5px 6px rgba(0,0,0,0.09);
    transform: translateY(-2px) scale(1.015);
    border-color: #aaa;
}

.package-header {
    background-color: white;
    text-align: left;
    padding: 0;
}

.studio-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #666;
    color: #fff;
    padding: 10px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    border-radius: 0;
}

.package-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 20px 20px 15px;
    text-align: left;
    line-height: 1.4;
}

.price-container {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 20px 20px;
    gap: 1rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    line-height: 1.1;
    margin-right: 1rem;
    letter-spacing: -1px;
}

.price.promotional {
    color: #e74c3c;
    font-weight: 800;
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.savings {
    font-size: 0.9rem;
    color: #27ae60;
    font-weight: 600;
    background: #d5f4e6;
    padding: 2px 8px;
    border-radius: 12px;
}

.price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.classes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-left: 20px;
}

.classes-container:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: #ccc;
}

.classes-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-right: 0.25rem;
}

.class-label {
    font-size: 1rem;
    color: #555;
    font-weight: 400;
}

.package-content {
    padding: 0 20px 20px;
}

.package-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.package-features {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0 0 0;
}

/* Hidden state for filtering */
.package-card-link.hidden {
    display: none;
}

/* Modal Styles - Exact copy from packages.css */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 450px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-content h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.modal-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #222;
    margin: 10px 0;
}

.modal-classes {
    font-size: 1.2rem;
    color: #666;
    margin: 5px 0 20px 0;
}

.modal-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 15px 0 25px 0;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close:hover {
    color: #333;
}

.modal-actions {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-primary-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-primary-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Info Section */
.pilates-info-section {
    background: #f8f9fa;
    padding: 4rem 0;
    margin-top: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

/* Responsive Design - Match packages.css exactly */
@media (max-width: 1100px) {
    .packages-grid.single-col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile responsiveness for tabs - exact copy from packages.css */
@media (max-width: 768px) {
    .pilates-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .packages-outer-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .desktop-tabs {
        display: none;
    }
    
    .mobile-filter-container {
        display: block;
    }
    
    .packages-grid {
        padding: 0 10px;
    }
    
    .packages-grid.single-col-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .package-card {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .modal-price {
        font-size: 2rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .classes-count {
        font-size: 1.2rem;
    }
    
    .class-label {
        font-size: 0.95rem;
    }
    
    .package-tabs {
        gap: 6px;
        padding: 0 0.5rem;
        margin-bottom: 20px;
    }
    
    .package-tab {
        font-size: 11px;
        padding: 8px 12px;
        min-width: auto;
        flex: 1;
        max-width: 150px;
    }
}

/* Small mobile devices - exact copy from packages.css */
@media (max-width: 480px) {
    .pilates-hero {
        min-height: 40vh;
    }
    
    .pilates-hero-content h1 {
        font-size: 2rem;
    }
    
    .pilates-hero-content p {
        font-size: 1.1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .packages-grid {
        gap: 15px;
    }
    
    .package-tabs {
        gap: 4px;
        margin-bottom: 15px;
    }
    
    .package-tab {
        font-size: 10px;
        padding: 6px 10px;
        border-radius: 20px;
    }
    
    .price-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .classes-container {
        align-self: flex-end;
    }
}
