/* Responsive Design */

/* Tablet Styles */
@media (max-width: 768px) {
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .appointment-btn {
        display: none;
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
        position: relative;
    }

    .btn-appointment {
        position: fixed;
        top: 10px;
        right: 10px;
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
        border-radius: 25px;
        box-shadow: 0 3px 10px rgba(30, 58, 138, 0.3);
        z-index: 1000;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-family: 'Poppins', sans-serif;
        font-size: 2.5rem;
        font-weight: 700;
    }

    .hero-text p {
        font-family: 'Lato', sans-serif;
        font-size: 1.1rem;
    }

    /* Responsive style for chiropractic description list */
    .hero-text ul {
        max-width: 100%;
        padding-left: 1rem;
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
    }

/* Services Grid */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 1.5rem;
}

/* Videos Grid */
.videos-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.video-card {
    height: 180px;
    font-size: 1rem;
}

/* Footer Section */
.footer-section iframe {
    width: 100%;
    border-radius: 10px;
    border: none;
    height: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 1rem;
}

.service-img {
    max-width: 100%;
    height: auto;
}

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .info-card i {
        margin-top: 0;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }

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

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .nav-container {
        padding: 0 15px;
    }

    .logo h2 {
        font-size: 1.5rem;
    }

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

    /* Hero Section */
    .hero {
        padding: 80px 0 40px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        text-align: center;
        display: block;
    }

    /* Sections */
    .about,
    .services,
    .contact {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    /* About Section */
    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1rem;
    }

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

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

    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }

    .contact-form h3 {
        font-size: 1.3rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }

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

    .contact-form h3 {
        font-size: 1.2rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text p {
        font-size: 1.3rem;
    }

    .section-header h2 {
        font-size: 3rem;
    }

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

/* Responsive styles for services section titles and grid */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
    .services-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .services-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
        font-weight: bold;
        color: var(--primary-blue);
    }
    .service-card {
        padding: 1.2rem;
    }
}

/* Responsive About Section */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .about-image {
        margin-top: 2rem;
    }
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-form {
        margin-top: 2rem;
    }
}

/* Responsive Services Section */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .service-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 600px) {
    .about-content {
        padding: 1rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .service-card {
        padding: 1.2rem 0.7rem;
    }
    .service-img {
        width: 100%;
        max-width: 220px;
        height: auto;
    }
    .contact {
        padding: 40px 0;
    }
    .contact-form,
    .info-card {
        padding: 1rem;
    }
    .contact-form h3 {
        font-size: 1.05rem;
    }
    .videos-grid {
        display: flex;
        flex-direction: column;
        gap: 32px; /* Increased gap for more space between videos */
        padding-bottom: 32px;
    }
    .video-card {
        box-sizing: border-box;
        padding: 8px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(30,60,90,0.08);
        width: 100%;
        max-width: 100%;
    }
    .video-card video {
        width: 100%;
        max-width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 12px;
        display: block;
        margin: 0 auto;
        background: #000;
    }
    section.videos {
        margin-bottom: 40px !important;
        padding-top: 24px;
        padding-bottom: 24px;
    }
    section.contact {
        margin-top: 0 !important;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #000080;
        --secondary-blue: #0000FF;
        --gray: #000000;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .contact-form {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        padding: 0;
        background: white;
    }

    .section-header h2 {
        color: black;
    }
}