/* ========================================
   RESPONSIVE CSS - SANMATI MEDICALS
   Mobile First Approach
   ======================================== */

/* ========================================
   TABLET - 768px and below
   ======================================== */

@media (max-width: 1024px) {
    .header-content {
        padding: 12px var(--spacing-md);
    }

    .nav-menu {
        gap: var(--spacing-lg);
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

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

    .why-choose-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-sm);
    }

    .location-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .location-map {
        height: 300px;
    }

    .reviews-content {
        grid-template-columns: 1fr;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

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

    .services-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .essentials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

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

    .map-container {
        height: 400px;
    }

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

    .product-image {
        height: 260px;
    }
}

/* ========================================
   MOBILE - 768px and below
   ======================================== */

@media (max-width: 768px) {
    :root {
        --spacing-lg: 20px;
        --spacing-2xl: 32px;
        --spacing-3xl: 40px;
    }

    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.95rem;
    }

    /* Header */
    .header-content {
        gap: var(--spacing-md);
        padding: 10px var(--spacing-md);
    }

    .navbar-logo {
        height: 50px;
        max-width: 240px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-right {
        gap: var(--spacing-sm);
        flex-wrap: wrap;
    }

    .delivery-badge {
        display: none;
    }

    .btn-call-header {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .btn-call-header svg {
        width: 14px;
        height: 14px;
    }

    /* Hero Section */
    .hero {
        padding: 0;
        min-height: 280px;
    }

    .hero-container {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: var(--spacing-md);
    }

    .hero-content {
        max-width: 90%;
    }

    .hero-text {
        padding: var(--spacing-lg);
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
    }

    .hero-label {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    /* Trust Strip */
    .trust-strip {
        padding: var(--spacing-2xl) 0;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trust-item {
        padding: 24px 20px;
    }

    .trust-item-icon {
        width: 48px;
        height: 48px;
    }

    .trust-item svg {
        width: 24px;
        height: 24px;
    }

    /* Sections */
    section {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .section-header {
        margin-bottom: var(--spacing-2xl);
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .service-card {
        padding: var(--spacing-lg);
        gap: var(--spacing-sm);
    }

    .service-card p {
        font-size: 0.9rem;
        margin: 0;
    }

    .service-icon {
        width: 48px;
        height: 48px;
    }

    /* Why Choose */
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .why-choose-card {
        padding: var(--spacing-lg);
    }

    /* Location */
    .location-map {
        height: 250px;
    }

    .detail-item {
        gap: var(--spacing-sm);
    }

    .location-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    /* Reviews */
    .reviews-rating {
        padding: var(--spacing-lg);
    }

    .rating-number {
        font-size: 2.5rem;
    }

    .reviews-quote {
        font-size: 1.25rem;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-lg);
    }

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

    .footer-logo {
        font-size: 0.85rem;
    }

    /* Floating Action Bar */
    .floating-action-bar {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .fab-button {
        width: 48px;
        height: 48px;
    }

    .fab-button svg {
        width: 20px;
        height: 20px;
    }

    /* About Section */
    .about-image {
        order: -1;
    }

    .about-points {
        gap: var(--spacing-lg);
        margin: var(--spacing-lg) 0;
    }

    /* Services Compact */
    .services-grid-compact {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .service-card-compact {
        padding: var(--spacing-lg);
    }

    /* Essentials */
    .essentials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .essential-icon {
        width: 60px;
        height: 60px;
    }

    /* Contact Section */
    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons .btn {
        width: 100%;
    }

    /* Forms */
    .contact-form {
        gap: var(--spacing-md);
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    /* Map */
    .map-container {
        height: 300px;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .product-card {
        padding: 0;
    }

    .product-image {
        height: 240px;
    }

    .product-content {
        padding: var(--spacing-md);
    }
}

/* ========================================
   SMALL MOBILE - 480px and below
   ======================================== */

@media (max-width: 480px) {
    :root {
        --spacing-md: 12px;
        --spacing-lg: 16px;
        --spacing-xl: 20px;
        --spacing-2xl: 24px;
        --spacing-3xl: 32px;
    }

    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 0.9rem;
    }

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

    /* Header */
    .navbar-logo {
        height: 45px;
        max-width: 200px;
    }

    .logo-text-primary {
        font-size: 0.75rem;
    }

    .logo-text-secondary {
        font-size: 0.7rem;
    }

    .btn-call-header {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .btn-call-header svg {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 0;
        min-height: auto;
    }

    .hero .container {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: var(--spacing-xl);
        padding: var(--spacing-lg) var(--spacing-md);
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    /* Sections */
    section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .eyebrow {
        font-size: 0.75rem;
    }

    /* Service Cards */
    .service-card {
        padding: var(--spacing-lg);
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    .service-icon {
        width: 40px;
        height: 40px;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

    /* Trust Strip */
    .trust-item svg {
        width: 18px;
        height: 18px;
    }

    .trust-label {
        font-size: 0.7rem;
    }

    .trust-value {
        font-size: 0.9rem;
    }

    /* Why Choose */
    .why-choose-card {
        padding: var(--spacing-lg);
    }

    .why-choose-card svg {
        width: 32px;
        height: 32px;
    }

    .why-choose-card h3 {
        font-size: 1rem;
    }

    .why-choose-card p {
        font-size: 0.85rem;
    }

    /* Reviews */
    .reviews-rating {
        padding: var(--spacing-lg);
    }

    .rating-number {
        font-size: 2rem;
    }

    .reviews-quote {
        font-size: 1.1rem;
    }

    .reviews-description {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
    }

    .footer-logo {
        font-size: 0.8rem;
    }

    .footer-column h4 {
        font-size: 0.95rem;
    }

    .footer-phone {
        font-size: 0.95rem;
    }

    .footer-address,
    .footer-links a,
    .footer-description {
        font-size: 0.8rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    /* Floating Action Bar */
    .floating-action-bar {
        bottom: 12px;
        right: 12px;
        flex-direction: row;
    }

    .fab-button {
        width: 44px;
        height: 44px;
    }

    .fab-button svg {
        width: 18px;
        height: 18px;
    }

    /* Contact Methods */
    .contact-method-icon {
        width: 44px;
        height: 44px;
    }

    .contact-method-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-method h4 {
        font-size: 0.95rem;
    }

    /* Forms */
    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .btn-full {
        font-size: 0.9rem;
    }

    /* Maps */
    .map-container {
        height: 250px;
    }

    .location-map-iframe {
        height: 250px;
    }

    /* About */
    .about-point-icon {
        width: 40px;
        height: 40px;
    }

    .about-point h4 {
        font-size: 0.9rem;
    }

    .about-point p {
        font-size: 0.8rem;
    }

    /* Mission */
    .mission-card {
        padding: var(--spacing-lg);
    }

    .mission-card h3 {
        font-size: 1rem;
    }

    .mission-card p {
        font-size: 0.85rem;
    }

    /* Services Compact */
    .service-card-compact h4 {
        font-size: 0.9rem;
    }

    /* Essentials */
    .essential-card h3 {
        font-size: 0.95rem;
    }

    .essential-icon {
        width: 50px;
        height: 50px;
    }

    /* Products */
    .product-card {
        padding: var(--spacing-lg);
    }

    .product-card h4 {
        font-size: 0.95rem;
    }

    .product-card p {
        font-size: 0.8rem;
    }

    /* Availability Notice */
    .availability-notice {
        padding: var(--spacing-lg);
        font-size: 0.85rem;
    }

    /* Category Contact */
    .category-contact {
        padding: var(--spacing-lg);
    }

    .category-contact h3 {
        font-size: 1rem;
    }

    .category-contact p {
        font-size: 0.85rem;
    }
}

/* ========================================
   EXTRA SMALL - 360px and below
   ======================================== */

@media (max-width: 360px) {
    :root {
        --spacing-sm: 6px;
        --spacing-md: 10px;
        --spacing-lg: 14px;
        --spacing-xl: 18px;
    }

    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 0.95rem;
    }

    p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 4px;
    }

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

    .eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }

    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .service-card {
        padding: var(--spacing-lg);
        gap: var(--spacing-sm);
    }

    .service-icon {
        width: 36px;
        height: 36px;
    }

    .footer-grid {
        gap: var(--spacing-lg);
    }

    .floating-action-bar {
        bottom: 10px;
        right: 10px;
    }

    .fab-button {
        width: 40px;
        height: 40px;
    }

    /* Hide less critical elements */
    .hero-label {
        display: none;
    }

    .contact-method-icon {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   LANDSCAPE MODE - 480px wide and below
   ======================================== */

@media (max-width: 768px) and (orientation: landscape) {
    section {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .hero {
        min-height: 250px;
    }

    .hero-container {
        gap: var(--spacing-lg);
    }

    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .trust-item {
        padding: 20px 16px;
    }

    .trust-item-icon {
        width: 44px;
        height: 44px;
    }

    .trust-item svg {
        width: 20px;
        height: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .why-choose-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
    }

    .location-map {
        height: 200px;
    }

    .map-container {
        height: 250px;
    }

    .floating-action-bar {
        flex-direction: row;
        gap: var(--spacing-sm);
    }

    .fab-button {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   LARGE DESKTOP - 1440px and above
   ======================================== */

@media (min-width: 1440px) {
    .container {
        max-width: 1280px;
    }

    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2.75rem;
    }

    section {
        padding: var(--spacing-3xl) var(--spacing-md);
    }

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

    .section-header {
        max-width: 700px;
    }
}

/* ========================================
   XLARGE DESKTOP - 1920px and above
   ======================================== */

@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    h1 {
        font-size: 4.5rem;
    }

    h2 {
        font-size: 3rem;
    }

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

    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-2xl);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .header,
    .mobile-menu,
    .floating-action-bar,
    .footer {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ========================================
   DARK MODE SUPPORT (Future Ready)
   ======================================== */

@media (prefers-color-scheme: dark) {
    /* CSS variables for dark mode can be added here */
    /* Currently the light theme is the primary design */
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Call Modal Responsive Styles */
@media (max-width: 1024px) {
    .call-modal-content {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .call-modal-content {
        max-width: 95%;
        border-radius: 12px;
    }

    .call-modal-header {
        padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
    }

    .call-modal-header h3 {
        font-size: 1rem;
    }

    .call-modal-body {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }

    .call-branch-label {
        font-size: 0.8rem;
    }

    .call-number-link {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
    }

    .call-number-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (prefers-contrast: more) {
    .btn-secondary {
        border-width: 3px;
    }

    .header {
        border-bottom-width: 2px;
    }

    .service-card {
        border-width: 2px;
    }
}
