/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .hero-container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablet */
@media (max-width: 991px) {
    body.nav-open {
        overflow: hidden;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 120px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 1rem;
        border-radius: 0;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--light-gray);
        border-radius: 0;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .nav-item.dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: 0.5rem 0;
    }
    
    .dropdown-menu li {
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu li a {
        padding: 0.75rem 2rem;
        background-color: transparent;
    }
    
    .nav-toggle {
        display: flex !important;
        z-index: 1001;
        position: relative;
    }
    
    .nav-toggle span {
        background-color: var(--text-dark);
        transition: all 0.3s ease;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .about-section {
        padding: 60px 0;
    }
    
    .about-content {
        gap: 1.5rem;
    }
    
    .features {
        text-align: left;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-info {
        align-items: flex-start;
    }
    
    .contact-item {
        align-items: flex-start;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Mobile Small */
@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .nav-buttons .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .about-text h2 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-container {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
}

/* Contact Forms Responsive */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container,
    .appointment-form-container {
        order: 1;
    }
    
    .map-container,
    .appointment-info {
        order: 2;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-form,
    .appointment-form {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
}

/* Appointment Info Responsive */
@media (max-width: 768px) {
    .appointment-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem 1rem;
    }
    
    .info-icon {
        font-size: 2.5rem;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .appointment-info {
        padding: 1rem;
        gap: 1rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .info-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .info-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .info-card p {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-buttons,
    .hero-buttons,
    .cta-section,
    .footer,
    .scroll-top {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: var(--text-dark) !important;
        padding: 20px 0 !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr !important;
    }
    
    .services {
        background: none !important;
    }
    
    .service-card {
        box-shadow: none !important;
        border: 1px solid var(--border-color) !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .service-card,
    .about-content {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --primary-dark: #000000;
        --text-dark: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }
    
    .btn-primary {
        border: 2px solid var(--white);
    }
    
    .btn-outline {
        border: 2px solid var(--primary-color);
    }
}

/* 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,
    .btn:hover {
        transform: none !important;
    }
}

/* Dark Mode Support */
/* @media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --text-dark: #ffffff;
        --text-light: #cccccc;
        --border-color: #404040;
    }
    
    .header {
        background-color: var(--white);
        border-bottom: 1px solid var(--border-color);
    }
    
    .service-card {
        background-color: var(--light-gray);
        border: 1px solid var(--border-color);
    }
    
    .dropdown-menu {
        background-color: var(--light-gray);
        border: 1px solid var(--border-color);
    }
} */

/* About Page Responsive */
@media (max-width: 991px) {
    .about-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .about-hero {
        padding: 60px 0;
    }
    
    .about-hero-text h2 {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-stat {
        padding: 1rem;
    }
    
    .about-stat .stat-number {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-hero-text h2 {
        font-size: 1.75rem;
    }
    
    .about-hero-text .lead {
        font-size: 1rem;
    }
    
    .about-stat .stat-number {
        font-size: 1.75rem;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
}

/* Services Page Responsive */
@media (max-width: 991px) {
    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .service-detail-text h2 {
        font-size: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .services-overview {
        padding: 60px 0;
    }
    
    .service-detail-section {
        padding: 60px 0;
    }
    
    .service-detail-text h2 {
        font-size: 1.75rem;
    }
    
    .service-detail-text p {
        font-size: 1rem;
    }
    
    .service-icon-large {
        font-size: 2.5rem;
    }
    
    .service-features li {
        padding: 0.5rem;
        font-size: 0.95rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    .service-detail-text h2 {
        font-size: 1.5rem;
    }
    
    .service-detail-text p {
        font-size: 0.95rem;
    }
    
    .service-icon-large {
        font-size: 2rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .industry-tags {
        gap: 0.5rem;
    }
    
    .industry-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-header .price {
        font-size: 2.5rem;
    }
}
