/* Sri Venkateshwara Healthcare - Responsive Styles */
/* assets/css/responsive.css */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
    
    .header-container {
        max-width: 1600px;
    }
    
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .section-title h2 {
        font-size: 3.25rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .hero-content {
        padding: 0 20px;
        gap: 3rem;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.75rem;
    }
    
    .doctor-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .section {
        padding: 80px 0;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    /* Header Responsive */
    .header-container {
        padding: 0 16px;
        height: 75px;
    }
    
    .logo h1 {
        font-size: 1.375rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide desktop navigation */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
      box-shadow: var(--shadow-lg);
        border-radius: 0 0 20px 20px;
        padding: 1rem 0;
        border-top: 1px solid var(--gray-200);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid var(--gray-200);
        width: 100%;
        text-align: left;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Main content adjustment */
    .main-content {
        margin-top: 75px;
    }
    
    /* Hero responsive */
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content {
        padding: 0 16px;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 1.125rem;
    }
    
    /* Section adjustments */
    .section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .section-title {
        margin-bottom: 3rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title p {
        font-size: 1.125rem;
    }
    
    /* Services grid responsive */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    /* Stats grid responsive */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Footer responsive */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Floating buttons adjustment */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .scroll-top {
        bottom: 85px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Mobile Large */
@media (max-width: 640px) {
    /* Typography adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Header mobile */
    .header-container {
        height: 70px;
        padding: 0 12px;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin-right: 8px;
    }
    
    .hamburger-line {
        width: 24px;
        height: 2px;
    }
    
    /* Main content mobile */
    .main-content {
        margin-top: 70px;
    }
    
    /* Hero mobile */
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-content {
        padding: 0 12px;
        gap: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Buttons mobile */
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    /* Section mobile */
    .section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    /* Doctor profile mobile */
    .doctor-profile {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .doctor-image img {
        max-width: 280px;
        border-radius: 16px;
    }
    
    .doctor-info h3 {
        font-size: 1.75rem;
    }
    
    .doctor-qualification {
        font-size: 1rem;
    }
    
    .experience-badge {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Service cards mobile */
    .service-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-card h4 {
        font-size: 1.25rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    /* Stats mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* Specializations mobile */
    .specializations {
        padding: 1.5rem;
    }
    
    .specializations ul {
        grid-template-columns: 1fr;
    }
    
    /* Footer mobile */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section h4 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .contact-item {
        margin-bottom: 0.75rem;
    }
    
    .social-links {
        gap: 0.75rem;
        justify-content: center;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
    
    /* Breadcrumbs mobile */
    .breadcrumb-list {
        padding: 0 12px;
        font-size: 0.875rem;
    }
    
    /* Floating buttons mobile */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
    
    .scroll-top {
        bottom: 75px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .scroll-top svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .doctor-info h3 {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.375rem;
    }
    
    .doctor-info h3 {
        font-size: 1.375rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .header-container {
        padding: 0 8px;
    }
    
    .hero-content {
        padding: 0 8px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .header-container {
        height: 60px;
    }
    
    .main-content {
        margin-top: 60px;
    }
}

/* Print Styles */
@media print {
    .header,
    .whatsapp-float,
    .scroll-top,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .section {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    .service-card {
        break-inside: avoid;
        margin-bottom: 1rem;
        border: 1px solid #ccc;
    }
    
    .hero-section {
        background: none !important;
        padding: 1rem 0;
    }
    
    .btn-primary,
    .btn-secondary {
        background: none !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
    
    .footer {
        background: none !important;
        color: #000 !important;
        border-top: 1px solid #ccc;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1f2937;
        --black: #f9fafb;
        --gray-100: #374151;
        --gray-200: #4b5563;
        --gray-300: #6b7280;
        --gray-600: #d1d5db;
        --gray-800: #f3f4f6;
    }
    
    body {
        background-color: var(--white);
        color: var(--black);
    }
    
    .service-card,
    .stat-card {
        background-color: #374151;
        border-color: #4b5563;
    }
    
    .header {
        background-color: #1f2937;
        border-bottom-color: #374151;
    }
    
    .breadcrumbs {
        background-color: #374151;
        border-bottom-color: #4b5563;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid var(--primary-green);
    }
    
    .nav-link:focus,
    .btn-primary:focus,
    .btn-secondary:focus,
    .whatsapp-float:focus,
    .scroll-top:focus {
        outline: 3px solid var(--light-green);
        outline-offset: 2px;
    }
    
    .service-icon {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-card:hover,
    .stat-card:hover,
    .whatsapp-float:hover,
    .scroll-top:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none !important;
    }
}

/* Add this to your existing responsive.css file */

/* Clinic Hours Responsive Styles */
.hours-desktop {
    display: block;
}

.hours-collapsible {
    display: none;
}

/* Mobile Clinic Hours Collapsible */
@media (max-width: 768px) {
    .hours-desktop {
        display: none;
    }
    
    .hours-collapsible {
        display: block;
    }
    
    .hours-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        background: var(--white);
        border: 1px solid var(--light-green);
        border-radius: 8px;
        margin-bottom: 0.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    .hours-toggle:hover {
        background: var(--very-light-green);
        transform: translateY(-1px);
    }
    
    .hours-toggle.active {
        background: var(--very-light-green);
        border-color: var(--primary-green);
        box-shadow: var(--shadow);
    }
    
    .hours-toggle strong {
        color: var(--primary-green);
        font-size: 0.95rem;
    }
    
    .hours-toggle-icon {
        width: 16px;
        height: 16px;
        color: var(--primary-green);
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }
    
   .hours-toggle.active .hours-toggle-icon {
        transform: rotate(180deg);
    }
    
    .hours-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: var(--white);
        border-radius: 6px;
        margin-bottom: 0.5rem;
        border: 1px solid transparent;
    }
    
    .hours-content.active {
        max-height: 100px;
        padding: 0.75rem;
        border-color: var(--gray-200);
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .hours-content span {
        color: var(--gray-600);
        font-size: 0.9rem;
        font-weight: 500;
    }
}

/* Mobile responsive adjustments for contact page */
@media (max-width: 640px) {
    .hours-toggle {
        padding: 0.6rem;
    }
    
    .hours-toggle strong {
        font-size: 0.875rem;
    }
    
    .hours-toggle-icon {
        width: 14px;
        height: 14px;
    }
    
    .hours-content.active {
        padding: 0.6rem;
        max-height: 80px;
    }
    
    .hours-content span {
        font-size: 0.85rem;
    }
}

/* Extra responsive styles for better mobile experience */
@media (max-width: 480px) {
    .clinic-hours {
        padding: 1.25rem;
    }
    
    .clinic-hours h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .hours-toggle {
        padding: 0.5rem;
        border-radius: 6px;
    }
    
    .hours-content.active {
        padding: 0.5rem;
        max-height: 70px;
    }
}