/**
 * responsive.css
 * Mobile and tablet breakpoints for Hybrid Counselling website
 */

/* ============================================
   TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__text {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__visual {
        order: -1;
    }

    .hero__image-wrapper {
        max-width: 350px;
    }

    .hero__floating-card--top {
        right: 0;
    }

    .hero__floating-card--bottom {
        left: 5%;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about__image {
        max-width: 400px;
        margin: 0 auto;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qualifications__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .booking__grid {
        grid-template-columns: 1fr;
    }

    .booking__summary {
        position: static;
    }

    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }
}

/* ============================================
   MOBILE NAV
   ============================================ */
@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-bg);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        z-index: 999;
        overflow-y: auto;
    }

    .nav--open {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        padding: var(--space-2xl);
        gap: 0;
    }

    .nav__link {
        display: block;
        padding: var(--space-md) 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .nav__link::after {
        display: none;
    }

    .nav__cta {
        margin-top: var(--space-md);
        text-align: center;
        display: block;
        border-bottom: none !important;
    }
}

/* ============================================
   MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --space-4xl: 3rem;
        --space-3xl: 2.5rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--space-2xl));
        padding-bottom: var(--space-2xl);
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__badge {
        font-size: 0.8rem;
    }

    .hero__image-wrapper {
        max-width: 280px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .qualifications__list {
        grid-template-columns: 1fr;
    }

    .approach__grid {
        grid-template-columns: 1fr;
    }

    .about__highlights {
        grid-template-columns: 1fr;
    }

    .blog__grid {
        grid-template-columns: 1fr;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .time-slots__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quote-section__text {
        font-size: 1.3rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .page-header {
        padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .btn--large {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .hero__title {
        font-size: 1.7rem;
    }

    .hero__text {
        font-size: 1rem;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__buttons .btn {
        text-align: center;
    }

    .hero__floating-card {
        display: none;
    }

    .calendar__weekday {
        font-size: 0.7rem;
    }

    .calendar__day {
        font-size: 0.8rem;
    }
}
