/* Responsive Styles */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .about-grid {
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        gap: 40px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 80px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px var(--shadow);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
    }
    
    .nav-menu .nav-link {
        color: #333333 !important;
        font-size: 1.2rem;
        text-shadow: none !important;
        display: block;
        padding: 15px 0;
        text-decoration: none;
        font-weight: 400;
    }
    
    .nav-menu .nav-link:hover {
        color: #d4a574 !important;
    }
    
    .nav-menu .nav-link::after {
        background: #d4a574;
    }
    
    /* Hero */
    .hero-title {
        margin-top: 60px;
    }
    
    .hero-background img {
        object-position: center 15%; /* Keep face and upper body visible */
    }
    
    /* About Section */
    .about {
        padding: 60px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
    
    /* Services Tabbed */
    .services-tabs {
        margin-bottom: 20px;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid rgba(212, 165, 116, 0.2);
        padding-bottom: 15px;
        /* Visual hint for scrollability */
        box-shadow: inset -10px 0 10px -10px rgba(0,0,0,0.1);
    }
    
    .service-tab {
        padding: 8px 16px;
        font-size: 0.8rem;
        flex-shrink: 0;
        background: transparent;
        border-radius: 0;
        margin-bottom: 0;
        border-bottom: 2px solid transparent;
        color: #999;
    }
    
    .service-tab.active {
        background: transparent;
        color: var(--accent-gold);
        border-bottom-color: var(--accent-gold);
    }
    
    .services-content {
        display: block;
    }
    
    .services-static {
        display: none;
    }
    
    .services-dynamic {
        min-height: 0;
        padding-bottom: 0;
    }
    
    .service-content {
        position: static !important;
        opacity: 0;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        transform: none !important;
        transition: none;
    }
    
    .service-content.active {
        opacity: 1;
        visibility: visible;
        height: auto;
    }
    
    .service-content h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        margin-top: 0;
    }
    
    .service-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .service-learn-more {
        margin-bottom: 0;
    }
    
    /* Sections */
    .services,
    .contact {
        padding: 60px 0;
    }
    
    .section-subtitle {
        margin-bottom: 40px;
    }
    
    /* Events */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .event-type {
        padding: 30px 20px;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-info {
        order: -1;
    }
    
    /* Contact CTA Section */
    .contact-cta {
        padding: 60px 0;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button {
        min-width: 250px;
    }
    
    /* Testimonials */
    .testimonials {
        margin-bottom: 40px;
    }
    
    .testimonial-carousel {
        min-height: auto;
        margin-bottom: 2rem;
    }
    
    .testimonial {
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
    }
    
    .testimonial.active {
        display: block;
    }
    
    .testimonial p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .testimonial-dots {
        display: none;
    }
    
    .cta-section {
        margin-top: 40px;
    }
    
    /* Video section spacing */
    .video-section {
        margin-top: 30px;
        padding-top: 0;
    }
    
    .video-section h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    /* Hero image adjustments for small screens */
    .hero {
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile */
    }
    
    .hero-background img {
        object-fit: cover;
        object-position: 70% 30%; /* Perfect positioning for full body */
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
        min-width: 200px;
    }
    
    .contact-cta {
        padding: 40px 0;
    }
    
    .cta-content {
        gap: 30px;
    }
    
    .cta-main .section-title {
        font-size: 1.6rem;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .info-section h3 {
        font-size: 1.1rem;
    }
    
    /* Services Tabs on Small Mobile */
    .services-tabs {
        gap: 5px;
        position: relative;
        padding-right: 0;
        /* Add gradient fade on right to indicate scrollability */
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }
    
    .service-tab {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    /* Video section on small mobile */
    .video-section {
        margin-top: 25px;
        padding-top: 0;
    }
    
    .video-section h3 {
        font-size: 1.4rem;
    }
    
    .services-static h3 {
        font-size: 1.5rem;
    }
    
    .services-static .formats-title {
        font-size: 0.8rem;
    }
    
    .services-static .format-badge {
        padding: 6px 15px;
        font-size: 0.75rem;
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        margin-top: 40px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .video-section,
    .contact-form,
    .cta-button {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .hero {
        height: auto;
        padding: 40px 0;
    }
    
    .hero-background {
        display: none;
    }
    
    .hero-content {
        color: var(--primary-dark);
    }
    
    section {
        page-break-inside: avoid;
        padding: 30px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-link::after {
        height: 1px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-dark: #ffffff;
        --primary-light: #ffffff;
        --text-light: #999999;
        --text-dark: #e0e0e0;
        --bg-light: #2a2a2a;
        --bg-section: #252525;
        --shadow: rgba(255, 255, 255, 0.1);
    }
    
    
    .service-card,
    .event-type,
    .contact-form,
    .repertoire-preview,
    .service-category,
    .format-badge {
        background: var(--bg-light);
    }
    
    .category-header {
        background: linear-gradient(135deg, #444, #555);
    }
    
    .ideal-for {
        background: var(--bg-section);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--bg-section);
        border-color: #444;
        color: var(--text-dark);
    }
}