/* Responsive Styles for Dignity Complex Care */

/* Tablet Styles */
@media (max-width: 992px) {
    /* Grid adjustments */
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-8 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Typography adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
    
    /* Hero section */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Spacing adjustments */
    :root {
        --spacing-xl: 2.5rem;
        --spacing-xxl: 3rem;
    }
    
    /* Navigation adjustments */
    .navbar-nav {
        gap: var(--spacing-md);
    }
    
    /* Features section */
    .feature-card {
        margin-bottom: var(--spacing-lg);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Grid - all columns become full width */
    [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Container padding */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 200px;
        text-align: center;
    }
    
    /* Navigation */
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-sm);
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    
    /* Dropdown adjustments */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--light-gray);
        margin-top: var(--spacing-xs);
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile toggle animation */
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Section spacing */
    :root {
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: var(--spacing-xl) 0;
    }
    
    /* Features section */
    .features-section .row {
        flex-direction: column;
    }
    
    .feature-card {
        margin-bottom: var(--spacing-md);
    }
    
    /* About preview */
    .about-preview .row {
        flex-direction: column-reverse;
    }
    
    .about-preview .col-md-6:last-child {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Footer adjustments */
    .footer-main {
        padding: var(--spacing-lg) 0;
    }
    
    .footer-bottom .row {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .footer-links {
        justify-content: center;
    }
    
    /* Contact info stacking */
    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: var(--spacing-xs);
    }
    
    /* Social links centering */
    .social-links {
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    /* Further reduce spacing */
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2rem;
    }
    
    /* Container padding */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Typography */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.15rem; }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .hero-buttons .btn {
        width: 180px;
    }
    
    /* Logo adjustments */
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 50px;
    }
    
    /* Feature icons */
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Footer widget titles */
    .footer-widget h3,
    .footer-widget h4 {
        font-size: 1.1rem;
    }
    
    /* Social links */
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: var(--spacing-lg) 0;
    }
    
    .navbar-menu {
        height: calc(100vh - 60px);
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images and icons for retina displays */
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}