/**
 * Career Care India - Responsive Breakpoints
 * Smooth mobile-first to widescreen adaptation
 */

/* Laptops & Medium Screens (max-width: 1199px) */
@media (max-width: 1199px) {
    .trust-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .journey-connecting-line {
        display: none;
    }

    .admission-steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* Tablets (max-width: 991px) */
@media (max-width: 991px) {
    /* Navbar Hamburger Activation */
    .nav-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .nav-container {
        position: relative;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 1.75rem 2rem 1.75rem;
        gap: 1.25rem;
        box-shadow: 0 16px 30px rgba(35, 57, 93, 0.12);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0.3s;
        border-bottom: 3px solid var(--color-pastel-blue);
        z-index: 999;
    }

    .nav-menu.open {
        max-height: 480px;
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.65rem 0;
        font-size: 1.15rem;
        border-bottom: 1px solid var(--color-border-subtle);
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta-wrap {
        width: 100%;
        margin-top: 0.5rem;
    }

    .btn-enquire-nav {
        width: 100%;
        padding: 0.85rem 1.5rem;
    }

    /* Hero Section */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-benefit-pills {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-art-wrapper {
        max-width: 440px;
        height: 400px;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Working Mothers Section */
    .mothers-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .mothers-visual {
        order: -1;
    }

    /* Why Section */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Activities */
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .nav-container {
        height: 64px;
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }

    .brand-logo {
        height: 36px;
    }

    .brand-partner-badge {
        display: none !important;
    }

    .hero-section {
        padding: 2.5rem 0 3.5rem 0;
        overflow: hidden;
    }

    .hero-title {
        font-size: 2.15rem;
        line-height: 1.2;
    }

    .hero-lead {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 0.4rem 0.85rem;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 2.2rem;
    }

    .trust-section,
    .about-section,
    .programs-section,
    .journey-section,
    .working-mothers-section,
    .activities-section,
    .why-section,
    .gallery-section,
    .admission-section,
    .testimonials-section,
    .faq-section {
        padding: 3.5rem 0;
    }

    .trust-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .trust-card {
        padding: 1.5rem 1.25rem;
    }

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

    /* Vertical Journey Timeline for Mobile */
    .journey-steps-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        position: relative;
        padding-left: 2rem;
    }

    .journey-steps-grid::before {
        content: '';
        position: absolute;
        top: 20px;
        bottom: 20px;
        left: 14px;
        width: 4px;
        background: var(--color-sky-blue);
        border-radius: 4px;
    }

    .journey-step-card {
        text-align: left;
        align-items: flex-start;
        padding: 1.4rem 1.2rem;
    }

    .step-circle {
        margin-bottom: 0.75rem;
    }

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

    .about-card-hero {
        padding: 1rem;
    }

    .about-badge-overlay {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

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

    .activity-card {
        padding: 1.6rem 1.3rem;
    }

    .why-item {
        padding: 1.2rem 1.3rem;
    }

    .why-feature-card {
        padding: 1.8rem 1.2rem;
    }

    .admission-steps-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .admission-step-card {
        padding: 1.6rem 1.2rem;
    }

    .testimonial-slide {
        padding: 2rem 1.25rem;
    }

    .testimonial-quote {
        font-size: 1.05rem;
    }

    .final-cta-section {
        padding: 3.5rem 0;
    }

    .final-cta-card {
        padding: 2.2rem 1.25rem;
    }

    .cta-headline {
        font-size: 1.95rem;
    }

    .cta-subtext {
        font-size: 1.02rem;
        margin-bottom: 1.5rem;
    }

    /* Contact Dual Grid for Mobile */
    .contact-dual-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .contact-full-section {
        padding: 3.5rem 0 !important;
    }

    .footer-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Responsive Inner Page Grids (About Us, Contact Us, Enquire, etc.) */
    .about-vision-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-vision-grid > div:last-child {
        order: -1;
    }

    .about-partnership-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .about-mother-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-mother-grid > div:first-child {
        order: -1;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .contact-map-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .enquire-dual-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .why-pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .parent-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 3rem;
    }

    .parent-hero-grid > div:first-child {
        order: -1;
    }

    .parent-features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .page-banner {
        padding: 2.5rem 0 2.8rem 0;
    }

    .banner-title {
        font-size: 2.1rem;
        line-height: 1.25;
    }

    .banner-lead {
        font-size: 1.05rem;
    }

    .breadcrumbs {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    /* Working Mothers Section on Mobile */
    .mothers-image-frame {
        padding: 0.85rem;
    }

    .mothers-image-frame img {
        height: 280px;
    }

    .mother-peace-card {
        position: static;
        margin-top: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* Modal Form on Mobile */
    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-card {
        padding: 1.5rem 1rem;
        max-width: 95vw;
        border-radius: var(--radius-lg);
    }

    /* Hero Art Elements on Mobile */
    .hero-art-wrapper {
        height: 300px;
        max-width: 100%;
    }

    .stat-card-top-left {
        left: 0;
        top: 0;
        transform: scale(0.8);
        transform-origin: top left;
    }

    .stat-card-bottom-right {
        right: 0;
        bottom: 0;
        transform: scale(0.8);
        transform-origin: bottom right;
    }

    .float-sun {
        width: 60px;
        height: 60px;
        top: -10px;
        right: 0;
    }

    .float-cloud {
        width: 80px;
        top: 10px;
        left: 0;
    }

    .float-blocks {
        width: 65px;
        bottom: 0;
        right: 15px;
    }

    /* Gallery on Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Floating WhatsApp & Back to Top on Mobile */
    .whatsapp-widget-container {
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .whatsapp-popup-card {
        width: calc(100vw - 2.5rem);
        right: 0;
        max-height: 80vh;
    }

    .back-to-top {
        bottom: 5.5rem;
        right: 1.25rem;
        width: 42px;
        height: 42px;
    }

    /* CTA buttons full width on small screens */
    .hero-actions .btn,
    .final-cta-card .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.95rem;
        line-height: 1.22;
    }

    .hero-lead {
        font-size: 1.02rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .hero-art-wrapper {
        height: 260px;
    }

    .mothers-image-frame img {
        height: 240px;
    }

    .mini-stat-card {
        padding: 0.5rem 0.75rem;
        font-size: 0.78rem;
    }

    .mini-stat-card strong {
        font-size: 0.85rem;
    }

    .whatsapp-toggle-btn {
        width: 52px;
        height: 52px;
    }

    .whatsapp-toggle-btn .wa-icon-main {
        font-size: 1.8rem;
    }
}
