/* Shared styles for about, experience, pricing, faq, gallery pages */
:root {
    --gold: #C9A961;
    --gold-dark: #B8941F;
    --gold-light: #E8D7AE;
    --cream: #F7F3ED;
    --champagne: #FAF9F6;
    --charcoal: #0D0D0D;
    --black: #1A1A1A;
    --off-white: #FAF9F6;
    --white: #FFFFFF;
    --grey: #4A4A4A;
    --grey-light: #E5E5E5;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(180deg, var(--champagne) 0%, var(--cream) 100%);
    color: var(--charcoal);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    letter-spacing: 0.08em;
}

.section-subtitle {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1rem;
}

.elegant-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    width: 150px;
    margin: 1.5rem auto;
    opacity: 0.4;
}

/* Fade-in scroll animation (used by shared.js IntersectionObserver) */
.fade-in {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Hero (subpages) */
.page-hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem;
}

/* Navigation */
.nav-bar {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-link {
    color: var(--grey);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.logo-white {
    filter: brightness(0) invert(1);
}

.nav-link-active {
    color: var(--gold);
}

.nav-link-active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: rgba(245, 241, 232, 0.99);
    border-top: 1px solid rgba(201, 169, 97, 0.15);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.mobile-menu.active {
    display: block;
    max-height: 400px;
}

.mobile-menu-link {
    display: block;
    padding: 16px 24px;
    color: var(--grey);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 2px;
    font-weight: 500;
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    color: var(--gold);
    background: rgba(201, 169, 97, 0.05);
    padding-left: 32px;
}

/* Floating Action Button */
.fab-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 2px solid var(--gold);
}

.fab-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(201, 169, 97, 0.6);
}

.fab-icon {
    font-size: 28px;
    color: var(--white);
}

/* Contact Popup - HIDDEN by default, shown only when .active */
.contact-popup {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 320px;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: 0;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
}

.contact-popup.active {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.popup-header {
    padding: 20px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-close {
    cursor: pointer;
    font-size: 24px;
    color: var(--grey);
    transition: all 0.3s ease;
}

.popup-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.popup-content {
    padding: 10px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 15px;
    margin: 5px 0;
    background: var(--cream);
    border: 1px solid rgba(201, 169, 97, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-option:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateX(5px);
}

.contact-option:hover .option-icon {
    color: var(--white);
}

.contact-option:hover .option-text h4,
.contact-option:hover .option-text p {
    color: var(--white);
}

.option-icon {
    font-size: 24px;
    color: var(--gold);
    transition: all 0.3s ease;
}

.option-text h4 {
    color: var(--black);
    font-weight: 500;
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.option-text p {
    color: var(--grey);
    margin: 0;
    font-size: 11px;
    margin-top: 2px;
}

/* Buttons */
.gold-btn {
    background: var(--gold);
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.gold-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

.outline-btn {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.outline-btn:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

/* Premium Cards */
.premium-card {
    background: var(--off-white);
    border: 1px solid rgba(201, 169, 97, 0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    position: relative;
}

.premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 24px 48px rgba(201, 169, 97, 0.12);
    border-color: rgba(201, 169, 97, 0.35);
}

.premium-card:hover .expand-icon {
    color: var(--gold-dark);
    transform: scale(1.1);
}

.premium-card.expanded {
    transform: translateY(0);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(201, 169, 97, 0.15);
    border-color: rgba(201, 169, 97, 0.4);
}

/* Expandable Content (Experience page cards) */
.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
    border-top: 0 solid rgba(201, 169, 97, 0.2);
}

.expandable-content.active {
    max-height: 1200px;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
    margin-top: 20px;
    padding-top: 20px;
}

/* Mini Carousel (Experience page – one image at a time, slider) */
.mini-carousel {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid rgba(201, 169, 97, 0.15);
}

.mini-carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.mini-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.mini-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-carousel-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.mini-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.mini-carousel-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* Coach carousel – consistent portrait proportions on About page */
.coach-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 320px;
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid rgba(201, 169, 97, 0.15);
}

.coach-carousel .mini-carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.coach-carousel .mini-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.coach-carousel .mini-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.coach-carousel .mini-carousel-controls {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.coach-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Trevor gym image – person on left, shift crop to center him */
.coach-carousel .mini-carousel-slide img.trevor-gym-center {
    object-position: 15% center;
    transform: scale(1.15);
}

/* Claire professional image – zoomed in slightly */
.coach-carousel .mini-carousel-slide img.claire-professional-zoom {
    object-position: center 25%;
    transform: scale(1.12);
}


.expand-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: var(--gold);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.premium-card.expanded .expand-icon {
    transform: rotate(45deg);
}

.card-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
}

.premium-card:hover .card-hint {
    opacity: 1;
}

.premium-card.expanded .card-hint {
    opacity: 0;
}

.close-expanded-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: var(--gold);
    color: var(--white);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.close-expanded-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

/* Image grid (about page – An Exclusive Fitness Experience) */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Section backgrounds (pricing, about, etc.) */
.bg-cream {
    background-color: var(--cream);
}

.bg-white-section {
    background-color: var(--white);
}

.bg-light {
    background-color: #FAFAF8;
}

/* Most Popular Badge */
.most-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--charcoal) 0%, #2a2a2a 100%);
    color: var(--gold-light) !important;
    padding: 10px 24px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 2px var(--gold);
    z-index: 10;
    white-space: nowrap;
}

/* Price strikethrough (red) */
.price-strike {
    text-decoration: line-through;
    color: #b91c1c;
    font-size: 1.25rem;
    font-weight: 500;
}

/* Modals – hidden by default, shown as overlay when opened */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--cream);
    border: 2px solid var(--gold);
    border-radius: 0;
    max-width: 600px;
    width: 100%;
    padding: 50px 40px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
}

.modal-close:hover {
    transform: rotate(90deg);
    opacity: 0.7;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--cream);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Payment buttons in modals */
.payment-btn {
    display: block;
    width: 100%;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.payment-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4);
}

.payment-btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
}

.payment-btn-outline:hover {
    background: var(--gold);
}

.payment-btn-title {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.payment-btn-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 300;
}

.payment-btn-outline .payment-btn-title {
    color: var(--gold);
}

.payment-btn-outline .payment-btn-subtitle {
    color: var(--grey);
}

.payment-btn-outline:hover .payment-btn-title,
.payment-btn-outline:hover .payment-btn-subtitle {
    color: var(--white);
}

/* FAQ Accordion */
.faq-item {
    border: 1px solid rgba(201, 169, 97, 0.2);
    background: var(--white);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--gold);
}

.faq-item.active {
    border-color: rgba(201, 169, 97, 0.5);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    cursor: pointer;
    gap: 16px;
}

.faq-question h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--black);
    letter-spacing: 0.3px;
    margin: 0;
}

.faq-toggle {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 30px 24px 30px;
    color: var(--grey);
    font-size: 0.875rem;
    line-height: 1.8;
}

/* Footer */
.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--gold);
}

footer {
    background-color: var(--black) !important;
}

.footer-social-icon {
    color: #ffffff !important;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-social-icon:hover {
    color: var(--gold-light) !important;
    transform: translateY(-2px);
}

.footer-social-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Text utilities */
.text-grey {
    color: var(--grey);
}

.text-gold {
    color: var(--gold);
}

/* Mobile */
@media (max-width: 768px) {
    .page-hero {
        min-height: 40vh;
    }

    .page-hero-content {
        padding: 2rem 1.5rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        height: 280px;
    }

    .fab-button {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    .fab-icon {
        font-size: 24px;
    }

    .contact-popup {
        bottom: 95px;
        right: 20px;
        width: calc(100vw - 40px);
        max-width: 320px;
    }
}

/* Apply form inputs - matches site aesthetic */
.apply-form input,
.apply-form select,
.apply-form-input {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    background: var(--white);
    border: 1px solid rgba(201, 169, 97, 0.25);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px rgba(201, 169, 97, 0.3);
    outline: none;
}
