/* Responsive overrides. Must load LAST — these override every file above.
   Load order: 5th of 5 — base, header, content, footer, responsive.
*/

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    /* Menu links take on the site's outline-button styling. Scoped away from
       .nav-cta, which is already a filled .btn and sets its own box. */
    .nav-links li:not(.nav-cta) {
        width: 100%;
        margin: 8px 0;
        padding: 0 20px;
    }

    .nav-links li:not(.nav-cta) a {
        display: block;
        max-width: 280px;
        margin: 0 auto;
        padding: 12px 30px;
        border: 2px solid var(--primary);
        border-radius: 50px;
        color: var(--primary);
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-align: center;
        transition: all 0.3s ease;
    }

    .nav-links li:not(.nav-cta) a:hover {
        background-color: var(--primary);
        color: var(--text-light);
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    /* Animate hamburger to X when active */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Swap the standalone nav CTA for the one inside the hamburger menu */
    .nav-book {
        display: none;
    }

    .nav-cta {
        display: block;
        width: 100%;
        padding: 20px 20px 0;
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav-cta .btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        text-align: center;
        color: var(--text-light);
    }

    /* The shared nav underline animation doesn't belong on buttons */
    .nav-links a::after {
        content: none;
    }

    /* Centre the "Meet Your Practitioner" CTA once the about grid has stacked.
       .about-section is only on index.html, so this is scoped to that button. */
    .about-section .btn {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    /* Stack hero buttons vertically */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content .btn {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title h2,
    .about-content h2 {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .service-card {
        padding: 25px;
    }

    footer {
        padding: 50px 0 20px;
    }

    .footer-grid {
        gap: 30px;
    }
}
