/* ==========================================================================
   SummitCare Medical Center - Responsive Stylesheet (responsive.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. EXTRA LARGE DESKTOPS & LARGE SCREENS (Max-width: 1400px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1400px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-img {
        height: 480px;
    }

    .glass-card-1 {
        left: -20px;
    }

    .glass-card-2 {
        right: -10px;
    }
}

/* --------------------------------------------------------------------------
   2. LAPTOPS & SMALL DESKTOPS (Max-width: 1200px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .hero-container {
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 2.65rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-trust-metrics {
        gap: 1.25rem;
    }

    .trust-item h4 {
        font-size: 1.15rem;
    }

    .trust-item p {
        font-size: 0.75rem;
    }

    /* Features / Why Choose Us */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Doctors */
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Insurance Grid */
    .insurance-logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: 2rem;
    }
}

/* --------------------------------------------------------------------------
   3. TABLETS & PORTRAIT TABLETS (Max-width: 992px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
    .section {
        padding: 4.5rem 0;
    }

    /* Top Bar */
    .top-bar-info span:nth-child(2) {
        display: none; /* Hide hours on smaller tablets to preserve layout */
    }

    /* Navigation / Hamburger Menu Active */
    .hamburger-menu {
        display: flex;
        z-index: 1001;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    .btn-nav-cta {
        display: none; /* Hide primary CTA from top bar, move to drawer */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 6rem 2rem 2.5rem 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.25rem;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .mobile-nav-footer {
        display: block;
        margin-top: 2rem;
    }

    /* Hero Section Stack */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust-metrics {
        justify-content: center;
    }

    .hero-image-wrapper {
        max-width: 580px;
        margin: 0 auto;
        width: 100%;
    }

    .glass-card-1 {
        left: 10px;
        top: 20px;
    }

    .glass-card-2 {
        right: 10px;
        bottom: 20px;
    }

    /* Section Header Flex */
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }

    /* About Section Grid Stack */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-main-img {
        height: 380px;
    }

    .experience-badge {
        right: 15px;
        bottom: -20px;
    }

    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-card:last-child {
        grid-column: span 2;
    }

    /* Appointment CTA Grid */
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cta-content {
        text-align: center;
    }

    .cta-features {
        justify-content: center;
    }

    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* --------------------------------------------------------------------------
   4. MOBILE PHONES & PHABLETS (Max-width: 768px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }

    .top-bar-info span:nth-child(1) {
        font-size: 0.75rem;
    }

    .top-bar-contact a {
        font-size: 0.75rem;
    }

    .top-socials {
        display: none; /* Hide header social icons on mobile */
    }

    .navbar-container {
        height: 70px;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .brand-sub {
        font-size: 0.625rem;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.15rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.85rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-trust-metrics {
        flex-direction: column;
        gap: 1.25rem;
    }

    .trust-divider {
        width: 60%;
        height: 1px;
    }

    .hero-glass-card {
        min-width: 180px;
        padding: 0.75rem;
    }

    .hero-glass-card h5 {
        font-size: 0.825rem;
    }

    .hero-glass-card p {
        font-size: 0.675rem;
    }

    /* Features & Services Grid */
    .features-grid,
    .services-grid,
    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .about-check-list {
        grid-template-columns: 1fr;
    }

    /* Insurance Grid */
    .insurance-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card:last-child {
        grid-column: span 1;
    }

    /* CTA Card */
    .cta-card {
        padding: 2rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-features {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    /* Testimonial Card */
    .testimonial-card {
        padding: 1.75rem 1.25rem;
    }

    .review-text {
        font-size: 0.975rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* --------------------------------------------------------------------------
   5. SMALL MOBILE DEVICES (Max-width: 480px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 0.35rem;
        text-align: center;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .nav-menu {
        width: 100%;
    }

    .about-main-img {
        height: 300px;
    }

    .experience-badge {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 1rem;
        width: 100%;
    }

    .map-img {
        height: 320px;
    }

    .map-overlay-card {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: 0.75rem;
        border-radius: var(--radius-sm);
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}