/* Google Fonts are now loaded via HTML link tags for better performance */

:root {
    --primary-1-deep-teal: #006978;
    --primary-2-slate-grey: #708090;
    --secondary-1-background-neutral: #F4F7F7;
    --secondary-2-accent-muted-gold: #C09E74;
    --accent-muted-gold-darker: #a0825e; /* For hovers */

    /* Enhanced shadows and transitions for modern feel */
    --soft-shadow: 0 4px 20px rgba(0,0,0,0.1);
    --subtle-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --card-hover-shadow: 0 8px 30px rgba(0,0,0,0.12);
    --button-shadow: 0 4px 15px rgba(192, 158, 116, 0.3);
    
    /* Enhanced transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-1-background-neutral);
    color: var(--primary-2-slate-grey);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-behavior: smooth;
}

#book-consultation {
    scroll-margin-top: 80px;
}

header {
    background-color: var(--primary-1-deep-teal);
    color: var(--secondary-1-background-neutral);
    width: 100%;
    box-sizing: border-box;
    border-bottom: 3px solid var(--secondary-2-accent-muted-gold);

    position: sticky;
    top: var(--promo-h, 0px);
    left: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: var(--soft-shadow);
}

.header-content-wrapper {
    display: flex;
    align-items: center;
    padding: 0.5rem 2rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
    gap: 1rem;
}

.header-logo {
    height: 55px;
    width: auto;
    flex-shrink: 0;
}

.top-right-cta {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-2-accent-muted-gold) 0%, var(--accent-muted-gold-darker) 100%);
    color: var(--primary-1-deep-teal);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9em;
    transition: var(--transition-bounce);
    flex-shrink: 0;
    margin-left: 1rem;
    box-shadow: var(--button-shadow);
    position: relative;
    overflow: hidden;
}

.top-right-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.top-right-cta:hover::before {
    left: 100%;
}

.top-right-cta:hover {
    background: linear-gradient(135deg, var(--accent-muted-gold-darker) 0%, var(--secondary-2-accent-muted-gold) 100%);
    color: var(--secondary-1-background-neutral);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(192, 158, 116, 0.4);
}

nav#main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    flex-wrap: nowrap;
    margin: 0 0.5rem;
}

.tab-button {
    background-color: transparent;
    border: none;
    color: var(--secondary-1-background-neutral);
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    position: relative;
    opacity: 0.8;
    text-decoration: none;
}

.tab-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-2-accent-muted-gold);
    transition: width 0.3s ease;
}

.tab-button:hover, .tab-button.active {
    opacity: 1;
    color: var(--secondary-1-background-neutral);
}

.tab-button.active::after {
    width: 60%;
}


.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2.2rem;
    height: 2.2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1050;
    margin-left: 1rem;
    flex-shrink: 0;
}

.burger-menu span {
    width: 2.2rem;
    height: 0.25rem;
    background: var(--secondary-1-background-neutral);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.burger-menu.open span:nth-child(1) {
    transform: rotate(45deg);
}
.burger-menu.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}
.burger-menu.open span:nth-child(3) {
    transform: rotate(-45deg);
}

main {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

section {
    padding: 2.5rem;
    background-color: #fff;
    margin-bottom: 2rem;
    border-radius: 16px;
    box-shadow: var(--subtle-shadow);
    border: 1px solid #EAEAEA;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-2-accent-muted-gold) 0%, var(--primary-1-deep-teal) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

section:hover::before {
    opacity: 1;
}

section:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
}

section h2 {
    color: var(--primary-1-deep-teal);
    margin-top: 0;
    border-bottom: 2px solid var(--secondary-2-accent-muted-gold);
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

section p a {
    color: var(--primary-2-slate-grey);
    text-decoration: underline;
}

section p a:hover {
    color: var(--primary-1-deep-teal);
}

/* ================== HERO VIDEO STYLES ================== */
#hero-video-section {
    position: relative;
    height: 65vh; /* Viewport height */
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin-bottom: 1rem; /* Reduced gap as requested */
    background-color: #333; /* Fallback color */
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
}

.hero-content {
    color: #fff;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.3;
}

.hero-content .cta-button {
    background-color: var(--secondary-2-accent-muted-gold);
    color: var(--primary-1-deep-teal);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.hero-content .cta-button:hover {
    background-color: var(--accent-muted-gold-darker);
    color: var(--secondary-1-background-neutral);
}
/* --- Hero Word-by-Word Reveal Animation --- */
@keyframes wordReveal {
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: translateY(16px);
    }
    60% {
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.hero-animate .word {
    display: inline-block;
    opacity: 0;
    animation: wordReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: calc(var(--i) * 0.1s + 0.3s);
    margin-right: 0.25em;
}

.hero-content .hero-subtitle {
    font-weight: 400;
    margin-top: -0.5rem;
}
/* ======================================================== */

#benefits ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

#benefits li {
    background: linear-gradient(135deg, var(--secondary-1-background-neutral) 0%, #fff 100%);
    color: var(--primary-1-deep-teal);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid transparent;
    font-weight: 600;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

#benefits li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-2-accent-muted-gold), var(--primary-1-deep-teal));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

#benefits li:hover::before {
    opacity: 0.1;
}

#benefits li:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--secondary-2-accent-muted-gold);
    color: var(--primary-1-deep-teal);
}


#services-offered ul, #qualifications ul {
    list-style: none;
    padding: 0;
}

#services-offered li, #qualifications li {
    background-color: #fcfcfc;
    margin-bottom: 0.75rem;
    padding: 1rem;
    border-left: 4px solid var(--secondary-2-accent-muted-gold);
    color: var(--primary-2-slate-grey);
    border-radius: 0 8px 8px 0;
}


.button-center-wrapper {
    text-align: center; /* Centers inline-block elements like your button */
    margin-top: 1.5rem; /* Adds some space above the button */
    margin-bottom: 1.5rem; /* Adds some space below the button */
}

#testimonials-home {
    position: relative;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

#testimonials-home h2 {
    padding: 1rem 2.5rem;
    background-color: #fff;
    border-radius: 12px 12px 0 0;
    border: 1px solid #EAEAEA;
    border-bottom: none;
    margin-bottom: 0;
}

.testimonial-carousel-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--secondary-1-background-neutral);
    padding: 2rem 0;
    border-radius: 0 0 12px 12px;
    position: relative;
    background: #fff;
    border: 1px solid #EAEAEA;
    border-top: none;
}

.testimonial-slider {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.testimonial-slider li {
    flex: 0 0 auto;
    width: 320px;
    margin-right: 1.5rem;
    background-color: var(--secondary-1-background-neutral);
    color: var(--primary-2-slate-grey);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}
.testimonial-slider li:last-child {
    margin-right: 0;
}

.testimonial-text {
    margin-bottom: 1rem;
    flex-grow: 1;
    font-weight: 300;
}

.testimonial-details {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.testimonial-details .name-age {
    font-size: 0.9em;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-1-deep-teal);
    margin-bottom: 0.25rem;
    text-align: right;
}

.testimonial-details .star-rating {
    font-size: 1.1em;
    color: var(--secondary-2-accent-muted-gold);
    text-align: right;
    letter-spacing: 2px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    color: var(--primary-1-deep-teal);
    border: 1px solid #ddd;
    padding: 0.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: none;
    transition: all 0.3s ease;
    box-shadow: var(--subtle-shadow);
}

.carousel-button:hover, .carousel-button:focus {
    background-color: var(--primary-1-deep-teal);
    color: #fff;
    outline: none;
    transform: translateY(-50%) scale(1.05);
}

.carousel-button.prev {
    left: -20px;
}
.carousel-button.next {
    right: -20px;
}


@keyframes continuous-slide {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

#contact-home, #contact-about {
    text-align: center;
}

#studio img#studio-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto 1.5rem auto;
    border-radius: 12px;
}

.contact-info {
    text-align: center;
    font-weight: 600;
    color: var(--primary-2-slate-grey);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--secondary-2-accent-muted-gold) 0%, var(--accent-muted-gold-darker) 100%);
    color: var(--primary-1-deep-teal);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-bounce);
    box-shadow: var(--button-shadow);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--accent-muted-gold-darker) 0%, var(--secondary-2-accent-muted-gold) 100%);
    color: var(--secondary-1-background-neutral);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(192, 158, 116, 0.4);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

.enquiry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0;
    border: none;
    background-color: transparent;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
    color: var(--primary-2-slate-grey);
    font-size: 0.9em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fdfdfd;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-1-deep-teal);
    box-shadow: 0 0 0 3px rgba(0, 105, 120, 0.1);
}


.form-group textarea {
    min-height: 60px;
    resize: vertical;
}

button[type="submit"] {
    grid-column: 1 / -1;
    background-color: var(--secondary-2-accent-muted-gold);
    color: var(--primary-1-deep-teal);
    padding: 8px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background-color: var(--accent-muted-gold-darker);
    color: var(--secondary-1-background-neutral);
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

footer {
    background-color: var(--primary-1-deep-teal);
    color: var(--secondary-1-background-neutral);
    text-align: center;
    padding: 3rem 1rem;
    width: 100%;
    margin-top: 2rem;
    box-sizing: border-box;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

footer p {
    margin: 0.5rem auto;
    font-size: 0.9em;
    line-height: 1.6;
    max-width: 800px;
    opacity: 0.9;
}

.footer-social a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-disclaimer {
    font-size: 0.8em;
    font-style: italic;
    opacity: 0.7;
    margin-top: 1.5rem;
}

/* ================== RESULTS PREVIEW (Homepage) ================== */

.results-preview-intro {
    max-width: 650px;
    color: var(--primary-2-slate-grey);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.rc-carousel {
    overflow: hidden;
    position: relative;
    cursor: grab;
    padding: 1rem 0;
}

.rc-carousel::before,
.rc-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.rc-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--secondary-1-background-neutral), transparent);
}

.rc-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--secondary-1-background-neutral), transparent);
}

.rc-track {
    display: flex;
    gap: 16px;
    will-change: transform;
}

.rc-card {
    flex: 0 0 280px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.rc-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.rc-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.2rem 1.2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.rc-label {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
}

.rc-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.03em;
}

.results-preview-cta {
    text-align: center;
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
    .rc-card {
        flex: 0 0 200px;
        border-radius: 16px;
    }
    .rc-label {
        font-size: 1rem;
    }
    .rc-carousel::before,
    .rc-carousel::after {
        width: 30px;
    }
}

/* ================== MY PROGRESS SECTION ================== */
#my-progress {
    text-align: center;
}

#my-progress h2 {
    text-align: left;
}

#my-progress .progress-caption {
    margin-top: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.progress-video-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.video-wrapper {
    flex: 1;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.video-wrapper .rc-overlay {
    border-radius: 0 0 20px 20px;
    text-align: left;
}


/* ================== MEDIA QUERIES (Enhanced Responsive Design) ================== */

@media (max-width: 880px) {
    main {
        width: 95%; /* More space on tablets */
    }
    
    /* Improved spacing for tablet views */
    section {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Better hero sizing on tablets */
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    /* Improved benefits grid */
    #benefits ul {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }

    .header-content-wrapper {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .header-logo {
        height: 45px;
    }

    nav#main-nav {
        display: none !important;
        order: 99;
        width: 100%;
        margin: 0;
    }

    nav#main-nav.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-1-deep-teal);
        z-index: 1000;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: none;
    }

    nav#main-nav.mobile-active .tab-button {
        width: calc(100% - 2rem);
        margin: 0.5rem auto;
        padding: 1rem;
        font-size: 1.1em;
        color: var(--secondary-1-background-neutral);
        border: 1px solid rgba(244, 247, 247, 0.5);
        opacity: 1;
    }
    
    nav#main-nav.mobile-active .tab-button::after {
        display: none;
    }

    nav#main-nav.mobile-active .tab-button:hover,
    nav#main-nav.mobile-active .tab-button.active {
        background-color: var(--secondary-2-accent-muted-gold);
        color: var(--primary-1-deep-teal);
        border-color: var(--secondary-2-accent-muted-gold);
    }
    
    .top-right-cta {
        font-size: 0.8em;
        padding: 0.6rem 1rem;
        margin-left: auto;
    }

    .burger-menu {
        display: flex;
        margin-left: 0.75rem;
    }

    /* Hero video mobile */
    #hero-video-section {
        height: 55vh;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content .cta-button {
        font-size: 1rem;
        padding: 0.8rem 1.8rem;
    }
}


@media (max-width: 767px) {
    main {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    .enquiry-form {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    #testimonials-home h2 {
        padding: 1rem 1.5rem;
    }

    .testimonial-carousel-container {
        padding: 1rem 0;
    }

    .testimonial-slider {
        transition: transform 0.4s ease-in-out;
    }

    .testimonial-slider li {
        width: 100%;
        flex-shrink: 0;
        margin-right: 0;
        min-height: auto;
        padding: 1.5rem;
    }
    .testimonial-slider li.testimonial-slide-clone {
        display: none !important;
    }
    
    .carousel-button {
        display: block;
        top: 50%;
        transform: translateY(-50%);
    }

    .carousel-button.prev {
        left: 5px;
    }
    .carousel-button.next {
        right: 5px;
    }

    /* My Progress Videos on mobile */
    .progress-video-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .video-wrapper {
        width: 100%;
        max-width: 450px;
    }
    
}


@media (max-width: 480px) {
     main {
        width: 100%;
    }
    .header-content-wrapper {
        padding: 0.5rem 0.8rem;
    }
    .header-logo {
        height: 40px;
    }
    .top-right-cta {
        font-size: 0.75em;
        padding: 0.5rem 0.8rem;
    }
     .burger-menu {
        margin-left: 0.5rem;
        width: 2rem;
        height: 2rem;
    }
    .burger-menu span {
        width: 2rem;
        height: 0.2rem;
    }

    /* Hero video smaller mobile */
    #hero-video-section {
        height: 60vh;
        margin-bottom: 1rem;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .testimonial-slider li {
        padding: 1.2rem;
    }
    .testimonial-details .name-age, .testimonial-details .star-rating {
        font-size: 0.8em;
    }

    footer p {
        font-size: 0.85em;
    }
    .footer-disclaimer {
        font-size: 0.75em;
    }
    .footer-logo {
        height: 40px;
    }
}

/* Add this to the end of your styles.css file */

.form-submission-message {
    padding: 3rem 2rem;
    border: 2px solid var(--secondary-2-accent-muted-gold);
    border-radius: 12px;
    text-align: center;
    background-color: var(--secondary-1-background-neutral);
}

.form-submission-message h3 {
    color: var(--primary-1-deep-teal);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.form-submission-message p {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}


/* --- Add this to your styles.css file for the discount --- */

/* Styles the promotional box */
.offer-box {
    background-color: #e6f7ff; /* A light, friendly blue */
    border: 1px dashed #096dd9;  /* A dashed blue border */
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0; /* Adds space above and below the box */
    text-align: center;
}

.offer-box p {
    margin: 0;
    font-size: 1.1em; /* Makes the text slightly larger */
}

/* Styles the new, discounted price */
.sale-price {
    color: #28a745; /* A success/money green color */
    font-size: 1.2em; /* Makes the new price pop */
    font-weight: bold;
}

/* Styles the old, crossed-out price */
del {
    color: #6c757d; /* A muted grey color */
    font-size: 1em;
    margin-right: 10px; /* Adds space between old and new price */
}

/* ================== PROMO BAR STYLES ================== */

/* Style for the promo bar itself */
.promo-bar {
    background-color: var(--secondary-2-accent-muted-gold);
    color: var(--primary-1-deep-teal);
    padding: 12px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001; /* Higher than the header's z-index */
    box-shadow: var(--subtle-shadow);
    box-sizing: border-box;
}

/* This class makes the promo bar visible */
.promo-bar.enabled {
    display: flex;
}

.promo-message strong {
    font-weight: 700;
}

/* Style for the close button '×' */
.close-promo {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--primary-1-deep-teal);
    cursor: pointer;
    padding: 0 0.5rem;
    transition: transform 0.2s ease;
}

.close-promo:hover {
    transform: scale(1.1);
}

/* Header & main offsets are handled dynamically by script.js */

@media (max-width: 767px) {
    .promo-bar {
        font-size: 0.85rem;
        padding: 10px 10px;
        gap: 0.5rem;
    }

    .promo-message {
        flex-grow: 1;
        text-align: center;
    }

    .close-promo {
        font-size: 2.1rem;
        font-weight: 400;
        padding: 0 15px;
        flex-shrink: 0;
    }
}

/* ================== ACCESSIBILITY STYLES ================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.help-text {
    display: block;
    color: var(--primary-2-slate-grey);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.label-description {
    font-weight: 400;
    color: var(--primary-2-slate-grey);
}

/* Focus indicators for better accessibility */
*:focus {
    outline: 3px solid rgba(0, 105, 120, 0.5);
    outline-offset: 2px;
}

.tab-button:focus-visible,
.cta-button:focus-visible,
.top-right-cta:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(192, 158, 116, 0.7);
    outline-offset: 2px;
}

/* Remove focus ring on mouse click; keep it for keyboard nav */
.tab-button:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Improve contrast for better readability */
.testimonial-text {
    color: #333;
    line-height: 1.6;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-2-slate-grey: #2c3e50;
        --secondary-1-background-neutral: #ffffff;
    }
    
    section {
        border: 2px solid #333;
    }
    
    .cta-button, .top-right-cta {
        border: 2px solid var(--primary-1-deep-teal);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .testimonial-slider {
        animation: none !important;
    }
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  cursor: pointer;
  color: var(--primary-1-deep-teal);
}

.faq-question:hover,
.faq-question:focus {
  background-color: rgba(0, 105, 120, 0.05);
}

.faq-icon {
  margin-left: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--secondary-2-accent-muted-gold);
}

/* Instagram carousel */
.ig-carousel { margin-top: 1.25rem; }
.ig-carousel-header {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem;
}
.ig-carousel-header h3 { font-size: 1.1rem; margin: 0; }
.ig-controls { display: flex; gap: .5rem; }
.ig-btn {
  border: 1px solid #e0e0e0; background: #fff; padding: .35rem .6rem;
  border-radius: .5rem; font-size: 1rem; cursor: pointer;
}
.ig-btn:focus { outline: 2px solid #006978; outline-offset: 2px; }
.ig-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: .25rem;
}
.ig-embed { flex: 0 0 90%; max-width: 560px; scroll-snap-align: start; }
@media (min-width: 768px) { .ig-embed { flex-basis: 560px; } }
.ig-fallback { font-size: .9rem; opacity: .8; margin-top: .5rem; }

/* Training environment image */
.fp-environment-figure { margin: 2rem 0 0; }
.fp-environment-img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.fp-environment-figure figcaption {
  font-size: .9rem; opacity: .85; margin-top: .5rem;
}


/* =======================
   Scoliosis page helpers
   ======================= */
.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap: 0.8rem;
  align-items:center;
  justify-content:center;
  width: 100%;
}

.microcopy{
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 1rem;
}

.offer-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.offer-box{
  background: linear-gradient(135deg, var(--secondary-1-background-neutral) 0%, #fff 100%);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  border: 2px solid rgba(192, 158, 116, 0.35);
}

.offer-box ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.offer-box li{
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.offer-box li:last-child{
  border-bottom: none;
}

/* ================== CLIENT RESULTS PAGE ================== */

/* Hero intro */
.results-hero {
    background: var(--primary-1-deep-teal);
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.results-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(192,158,116,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 80%, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.results-hero-inner {
    position: relative;
    text-align: center;
    padding: 2.5rem 2rem 2rem;
}

.results-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--secondary-2-accent-muted-gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.results-hero h2 {
    font-size: 2.2rem;
    color: #fff;
    margin: 0 0 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.results-hero p {
    max-width: 560px;
    margin: 0 auto 1.75rem;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(244,247,247,0.7);
}

.results-hero p strong {
    color: rgba(255,255,255,0.9);
}

.results-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.stat-number {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary-2-accent-muted-gold);
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(244,247,247,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.15);
}

/* Client section card */
.client-result-section {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--subtle-shadow);
}

.client-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.client-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary-1-deep-teal);
}

.client-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    background: rgba(0, 105, 120, 0.08);
    color: var(--primary-1-deep-teal);
}

/* Result status pill — sits above each client result to flag whether the
   transformation is an FP-approved result or still in progress. */
.result-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

.result-status-pill--approved {
    background: var(--primary-1-deep-teal);
    color: #fff;
    border: 1.5px solid var(--primary-1-deep-teal);
}

.result-status-pill__tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    line-height: 1;
}

.result-status-pill--progress {
    background: rgba(0, 105, 120, 0.05);
    color: var(--primary-1-deep-teal);
    border: 1.5px dashed rgba(0, 105, 120, 0.4);
}

/* Testimonial blockquote */
.client-testimonial {
    border-left: 3px solid var(--secondary-2-accent-muted-gold);
    padding: 1.25rem 1.5rem;
    margin: 0 0 1.5rem 0;
    background: var(--secondary-1-background-neutral);
    border-radius: 0 10px 10px 0;
}

.client-testimonial p {
    margin: 0;
    font-style: italic;
    line-height: 1.75;
    color: var(--primary-2-slate-grey);
    font-size: 0.95rem;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.client-testimonial cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-1-deep-teal);
    font-size: 0.9rem;
}

.client-testimonial .star-rating {
    color: var(--secondary-2-accent-muted-gold);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Carousel */
.results-carousel {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 50%;
    min-width: 50%;
    padding: 0 0.5rem;
    box-sizing: border-box;
    text-align: center;
}

.before-after-labels {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0.35rem;
}

.label-before,
.label-after {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}

.label-before {
    color: #888;
    background: rgba(0,0,0,0.05);
}

.label-after {
    color: var(--primary-1-deep-teal);
    background: rgba(0, 105, 120, 0.08);
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.view-label {
    margin: 0.3rem 0 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-2-slate-grey);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 105, 120, 0.2);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active {
    background: var(--primary-1-deep-teal);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: var(--primary-1-deep-teal);
}

/* ===== INSTAGRAM SHOWCASE ===== */
/* ===== INSTAGRAM SHOWCASE ===== */
.ig-showcase {
    background: var(--primary-1-deep-teal);
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.ig-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 20%, rgba(192,158,116,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.ig-showcase-inner {
    position: relative;
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    justify-content: center;
}

/* Left: text content */
.ig-showcase-content {
    flex: 1;
    min-width: 0;
    max-width: 440px;
}

.ig-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--secondary-2-accent-muted-gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ig-showcase-badge:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.ig-showcase-badge svg {
    flex-shrink: 0;
}

.ig-showcase-content h3 {
    font-size: 1.75rem;
    color: #fff;
    margin: 0 0 0.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.ig-showcase-content p {
    color: rgba(244,247,247,0.65);
    font-size: 1rem;
    margin: 0 0 1.75rem;
    line-height: 1.6;
    max-width: 360px;
}

.ig-showcase-follow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 100px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.ig-showcase-follow:hover {
    background: var(--secondary-2-accent-muted-gold);
    border-color: var(--secondary-2-accent-muted-gold);
    color: var(--primary-1-deep-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(192,158,116,0.3);
}

.ig-showcase-follow svg {
    flex-shrink: 0;
}

/* Right: video */
.ig-showcase-video {
    flex-shrink: 0;
    width: 280px;
}

.ig-showcase-video video {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.06);
}

.ig-showcase-video-link {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.ig-showcase-video-link:hover {
    color: var(--secondary-2-accent-muted-gold);
}

/* Reviews grid on results page */
.results-reviews-section {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--subtle-shadow);
}

.results-reviews-section h3 {
    text-align: center;
    font-size: 1.3rem;
    color: var(--primary-1-deep-teal);
    margin: 0 0 1.5rem 0;
}

.results-reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
}

.review-card {
    background: var(--secondary-1-background-neutral);
    border-radius: 12px;
    padding: 1.25rem 1.3rem;
    margin: 0;
    border-left: 3px solid var(--secondary-2-accent-muted-gold);
}

.review-card .star-rating {
    color: var(--secondary-2-accent-muted-gold);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.review-card p {
    font-style: italic;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--primary-2-slate-grey);
    margin: 0 0 0.75rem 0;
}

.review-card cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-1-deep-teal);
    font-size: 0.85rem;
}

/* Video post link */
.video-post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-1-deep-teal);
    background: rgba(26,77,79,0.06);
    border: 1px solid rgba(26,77,79,0.15);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.video-post-link:hover {
    background: var(--primary-1-deep-teal);
    border-color: var(--primary-1-deep-teal);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26,77,79,0.2);
}

.video-post-link svg {
    flex-shrink: 0;
}

/* Inline CTA between sections */
.inline-cta {
    text-align: center;
    margin-top: 1.5rem;
}

.inline-cta .cta-button {
    font-size: 0.95rem;
}

/* Final CTA section */
.results-final-cta {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--primary-1-deep-teal);
    border-radius: 16px;
    margin-bottom: 1rem;
}

.results-final-cta h2 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.results-final-cta p {
    color: rgba(255,255,255,0.85);
    max-width: 550px;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
    font-size: 1rem;
}

.results-final-cta .cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.results-final-cta .cta-primary {
    background: linear-gradient(135deg, var(--secondary-2-accent-muted-gold) 0%, var(--accent-muted-gold-darker) 100%);
    color: #fff;
    font-size: 1.05rem;
    padding: 0.9rem 2rem;
}

.results-final-cta .cta-secondary {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border: 1.5px solid rgba(255,255,255,0.4);
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
}

.results-final-cta .cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

@media (max-width: 768px) {
    .client-result-section {
        padding: 1.25rem 1rem;
    }

    .client-testimonial {
        padding: 1rem 1.1rem;
    }

    .results-final-cta {
        padding: 2rem 1.25rem;
        border-radius: 12px;
    }

    .results-hero-inner {
        padding: 2rem 1.25rem 1.75rem;
    }

    .results-hero h2 {
        font-size: 1.5rem;
    }

    .results-hero-stats {
        gap: 1.25rem;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .client-header {
        flex-wrap: wrap;
    }

    .ig-showcase-inner {
        flex-direction: column;
        padding: 2rem 1.25rem;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }

    .ig-showcase-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .ig-showcase-content h3 {
        font-size: 1.3rem;
    }

    .ig-showcase-follow {
        font-size: 0.8rem;
        padding: 0.55rem 1.2rem;
    }

    .ig-showcase-video {
        width: 100%;
        max-width: 280px;
        max-height: 400px;
    }

    .results-reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .results-reviews-section {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

/* ================== RESOURCES PAGE ================== */

.resources-intro p {
    max-width: 700px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.resource-category {
    padding-bottom: 2rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

/* Featured video embed in resources */
.resource-video-feature {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: var(--primary-1-deep-teal);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.resource-video-embed {
    flex-shrink: 0;
    width: 400px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

.resource-video-embed iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.resource-video-info h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.resource-video-info p {
    color: rgba(244,247,247,0.65);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.55;
}

.resource-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--secondary-1-background-neutral) 0%, #fff 100%);
    border: 1.5px solid #EAEAEA;
    border-radius: 14px;
    padding: 1.5rem 1.4rem;
    text-decoration: none;
    color: var(--primary-2-slate-grey);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-2-accent-muted-gold) 0%, var(--primary-1-deep-teal) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.resource-card:hover::before {
    opacity: 1;
}

.resource-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--secondary-2-accent-muted-gold);
}

.resource-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.resource-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-1-deep-teal);
    margin: 0 0 0.5rem 0;
}

.resource-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
    flex-grow: 1;
}

.resource-link-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-2-accent-muted-gold);
    transition: color 0.3s ease;
}

.resource-card:hover .resource-link-text {
    color: var(--accent-muted-gold-darker);
}

.resource-cta-section {
    text-align: center;
    background: var(--primary-1-deep-teal);
    border-radius: 16px;
    padding: 2.5rem 2rem;
}

.resource-cta-section h2 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.25);
}

.resource-cta-section p {
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

@media (max-width: 767px) {
    .resource-video-feature {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1rem;
        text-align: center;
    }

    .resource-video-embed {
        width: 100%;
        max-width: 100%;
    }

    .resource-video-info h3 {
        font-size: 1.05rem;
    }

    .resource-video-info p {
        font-size: 0.88rem;
    }

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

    .resource-card {
        padding: 1.25rem 1.1rem;
    }

    .resource-cta-section {
        padding: 2rem 1.25rem;
        border-radius: 12px;
    }
}

/* ================== NAV DROPDOWN ================== */

/* Desktop: sit inline with other nav items */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* The toggle button inherits .tab-button styles; reset browser button defaults */
.dropdown-toggle {
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.dropdown-arrow {
    font-size: 0.6em;
    transition: transform 0.3s ease;
    line-height: 1;
    margin-left: 0.15rem;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Desktop dropdown panel */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background-color: var(--primary-1-deep-teal);
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    z-index: 1100;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Triangle pointer */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--primary-1-deep-teal);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateX(-50%) rotate(45deg);
}

/* Show on hover (desktop) and on click (.show) */
.nav-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Invisible bridge so hover doesn't break crossing the gap */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px;
}

/* Dropdown link items */
.dropdown-item {
    display: block;
    padding: 0.65rem 1.3rem;
    color: var(--secondary-1-background-neutral);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-2-accent-muted-gold);
    padding-left: 1.5rem;
}

.dropdown-item.active {
    color: var(--secondary-2-accent-muted-gold);
    font-weight: 600;
}

.dropdown-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background-color: var(--secondary-2-accent-muted-gold);
    border-radius: 0 2px 2px 0;
}

/* ================== NAV DROPDOWN — MOBILE ================== */

@media (max-width: 880px) {
    /*
     * The wrapper becomes a flex-column container at full nav width.
     * Explicit width:100% is needed because the parent nav has
     * align-items:center (from desktop rule) which would otherwise
     * shrink-wrap this element. We avoid display:contents because
     * <button> elements don't blockify reliably across browsers.
     */
    .nav-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* Hide the desktop hover-bridge pseudo-element */
    .nav-dropdown::after {
        display: none;
    }

    /*
     * Force the <button> to display:flex (block-level) and replicate
     * the exact same sizing as every other nav .tab-button.
     * Specificity (0,1,3,1) beats the base rule (0,1,2,1).
     */
    nav#main-nav.mobile-active .nav-dropdown .tab-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: calc(100% - 2rem);
        margin: 0.5rem auto;
        box-sizing: border-box;
    }

    /* When expanded, merge button bottom into the dropdown visually */
    nav#main-nav.mobile-active .dropdown-toggle[aria-expanded="true"] {
        margin-bottom: 0;
        border-radius: 8px 8px 0 0;
        border-bottom-color: transparent;
    }

    /*
     * Disable desktop hover — mobile uses tap/click (.show class).
     * CRITICAL: override transform+left here because
     * .nav-dropdown:hover .dropdown-menu has specificity (0,0,3,0)
     * which beats .dropdown-menu.show (0,0,2,0). On touch devices
     * tap triggers :hover, so the desktop translateX(-50%) would
     * win and push the menu off-screen without these overrides.
     */
    .nav-dropdown:hover .dropdown-menu {
        display: none;
        transform: none;
        left: auto;
    }
    .nav-dropdown:hover .dropdown-menu.show {
        display: block;
        opacity: 1;
        transform: none;
        left: auto;
    }

    /*
     * Dropdown menu: static, centered, same width as the toggle button.
     */
    .dropdown-menu {
        position: static;
        transform: none;
        left: auto;
        width: calc(100% - 2rem);
        min-width: unset;
        margin: 0 auto;
        border-radius: 0 0 8px 8px;
        padding: 0;
        border: 1px solid rgba(244, 247, 247, 0.5);
        border-top: none;
        box-shadow: none;
        background-color: rgba(0, 80, 92, 0.5);
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu.show {
        display: block;
        opacity: 1;
        transform: none;
    }

    .dropdown-item {
        padding: 0.85rem 1.5rem;
        text-align: center;
        font-size: 1rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover {
        padding-left: 1.5rem;
        background-color: rgba(255, 255, 255, 0.08);
    }

    .dropdown-item.active {
        color: var(--secondary-2-accent-muted-gold);
    }

    .dropdown-item.active::before {
        display: none;
    }
}

.waitlist-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgb(0, 105, 120);
    color: #ffffff;
    text-decoration: none;
    border: 0;
    border-radius: 4px;
    font-family: "Google Sans Text", "Google Sans", Roboto, Arial, sans-serif;
    font-size: 13.3333px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.25px;
    text-transform: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.waitlist-button:hover {
    background-color: #00505c;
    color: #ffffff;
}
