/* ==========================================================================
   Bluecap Advisory - Responsive Stylesheet
   Media queries for mobile, tablet, and desktop responsiveness
   ========================================================================== */

/* Large Desktop Screens */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .page-header h1 {
        font-size: 3.5rem;
    }
}

/* Desktop Screens */
@media screen and (max-width: 1199px) {
    .hero-content .container {
        gap: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .overview-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

/* Tablet Landscape */
@media screen and (max-width: 1024px) {
    /* Navigation */
    .nav-menu {
        gap: 1.5rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    /* Hero Section */
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        height: 300px;
    }
    
    /* About Content */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .main-services .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Company Overview */
    .overview-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    /* Contact Content */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Featured Article */
    .featured-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Newsletter */
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2rem;
    }
    
    /* Industry Tabs */
    .industry-tabs {
        gap: 0.5rem;
    }
    
    .tab-button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* Process Steps */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet Portrait */
@media screen and (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .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: var(--shadow-medium);
        padding: 2rem 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero-text h1 {
        font-size: 2.4rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    /* Sections */
    .section-spacing,
    .hero,
    .about-intro,
    .services-preview,
    .testimonials-carousel,
    .blog-preview,
    .cta-section,
    .company-overview,
    .mission-vision-values,
    .team-section,
    .company-stats,
    .trust-compliance,
    .services-overview,
    .main-services,
    .industries-served,
    .service-process,
    .contact-section,
    .map-section,
    .contact-faq,
    .testimonials-overview,
    .featured-testimonials,
    .industry-testimonials,
    .video-testimonials,
    .client-logos,
    .featured-article,
    .blog-articles,
    .newsletter-signup,
    .popular-tags,
    .faq-content,
    .still-questions,
    .popular-resources {
        padding: 60px 0;
    }
    
    .page-header {
        padding: 100px 0 40px;
    }
    
    /* Hero Section */
    .hero {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 0.8rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 32px;
        font-size: 1rem;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* About Stats */
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* MVV Grid */
    .mvv-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Compliance Grid */
    .compliance-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Industries Grid */
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Process Steps */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact Form */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* FAQ Grid */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card.featured {
        grid-column: span 1;
    }
    
    /* Video Grid */
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Logos Grid */
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Resources Grid */
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    /* Testimonial Text */
    .testimonial-text p::before,
    .testimonial-text p::after {
        display: none;
    }
    
    /* Newsletter Form */
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Carousel Controls */
    .carousel-controls {
        gap: 0.5rem;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    /* Industry Tabs */
    .industry-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .tab-button {
        width: 200px;
        text-align: center;
    }
    
    /* Categories Filter */
    .categories-filter {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .category-btn {
        width: 180px;
        text-align: center;
    }
    
    /* Contact Options */
    .contact-options {
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile Landscape */
@media screen and (max-width: 576px) {
    /* Typography */
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .newsletter-text h2 {
        font-size: 1.8rem;
    }
    
    /* Logo */
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    /* Hero Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Industries Grid */
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Logos Grid */
    .logos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Article Meta */
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Testimonial Stats */
    .testimonial-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* Search Input */
    .search-input input {
        padding: 14px 14px 14px 45px;
        font-size: 1rem;
    }
    
    /* Form Adjustments */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info-section {
        padding: 1.5rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 2rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    /* Team Members */
    .team-member {
        padding: 1.5rem;
    }
    
    /* FAQ Items */
    .faq-question {
        padding: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
    
    /* Blog Cards */
    .blog-card .blog-content {
        padding: 1.25rem;
    }
    
    /* Video Info */
    .video-info {
        padding: 1.25rem;
    }
    
    /* Resource Items */
    .resource-item {
        padding: 1.5rem;
    }
    
    /* Process Steps */
    .process-step {
        padding: 1.5rem;
    }
    
    /* MVV Cards */
    .mvv-card {
        padding: 2rem;
    }
    
    /* Testimonial Cards */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Featured Article Spacing */
    .featured-content {
        gap: 1.5rem;
    }
}

/* Mobile Portrait */
@media screen and (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 10px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 15px;
    }
    
    /* Typography */
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .btn-large {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    
    /* Service Icons */
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* MVP Icons */
    .mvv-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Stat Icons */
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Industry Icons */
    .industry-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Step Numbers */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Contact Icons */
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Social Links */
    .social-links a {
        width: 40px;
        height: 40px;
    }
    
    /* Member Social */
    .member-social a {
        width: 35px;
        height: 35px;
    }
    
    /* Carousel Controls */
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    /* Play Button */
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    /* Member Image */
    .member-image {
        width: 120px;
        height: 120px;
    }
    
    /* Hero Image */
    .hero-image img {
        height: 250px;
    }
    
    /* Blog Image */
    .blog-image {
        height: 180px;
    }
    
    /* Video Thumbnail */
    .video-thumbnail {
        height: 180px;
    }
    
    /* Featured Image */
    .featured-image img {
        height: 250px;
    }
    
    /* Overview Image */
    .overview-image img {
        height: 300px;
    }
    
    /* Padding Adjustments */
    .service-card,
    .mvv-card,
    .team-member,
    .service-item,
    .testimonial-card,
    .resource-item,
    .process-step {
        padding: 1.25rem;
    }
    
    .contact-form,
    .contact-info-section {
        padding: 1.25rem;
    }
    
    /* FAQ Toggle */
    .faq-toggle {
        width: 35px;
        height: 35px;
    }
    
    /* Tags */
    .tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Newsletter Text */
    .newsletter-text h2 {
        font-size: 1.6rem;
    }
    
    .newsletter-text p {
        font-size: 1rem;
    }
    
    /* CTA Content */
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .back-to-top,
    .carousel-controls,
    .carousel-indicators,
    .btn,
    .social-links,
    .member-social,
    .newsletter-signup,
    .map-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    .page-header {
        background: none;
        color: #000;
        padding: 20px 0;
    }
    
    .cta-section {
        background: none;
        color: #000;
    }
    
    .footer {
        background: none;
        color: #000;
        border-top: 1px solid #ccc;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .service-card,
    .mvv-card,
    .team-member,
    .testimonial-card,
    .blog-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-navy: #000080;
        --secondary-gold: #ff8c00;
        --text-dark: #000000;
        --text-gray: #333333;
        --border-color: #000000;
        --bg-light: #ffffff;
        --bg-section: #f5f5f5;
    }
    
    .btn-outline {
        border-width: 3px;
    }
    
    .nav-link::after {
        height: 3px;
    }
    
    .service-card,
    .mvv-card,
    .team-member,
    .testimonial-card,
    .blog-card {
        border: 2px solid var(--border-color);
    }
}

/* Reduced Motion */
@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;
    }
    
    .scroll-animate {
        opacity: 1;
        transform: none;
    }
    
    .fade-in,
    .slide-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Focus Styles for Accessibility */
@media (any-hover: none) {
    .btn:focus,
    .nav-link:focus,
    .carousel-btn:focus,
    .faq-toggle:focus,
    .tab-button:focus,
    .category-btn:focus {
        outline: 3px solid var(--secondary-gold);
        outline-offset: 2px;
    }
    
    input:focus,
    select:focus,
    textarea:focus {
        outline: 3px solid var(--primary-navy);
        outline-offset: 2px;
    }
}
