/* ============================================
   TechGrowth Solutions - Responsive Styles
   Lead Generation Website for IT Companies
   ============================================ */

/* Large Desktop (1400px and up) */
@media screen and (min-width: 1400px) {
    :root {
        --container-max: 1280px;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-stats {
        gap: var(--space-3xl);
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
}

/* Desktop (1200px and below) */
@media screen and (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: var(--space-lg);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-contact {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-contact-item {
        justify-content: center;
    }
}

/* Tablet Landscape (1024px and below) */
@media screen and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-3xl);
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .about-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .contact-form-container {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Tablet Portrait (768px and below) */
@media screen and (max-width: 768px) {
    :root {
        --container-padding: 1.25rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--color-gray-100);
        width: 100%;
        text-align: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .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(5px, -5px);
    }
    
    .nav-cta {
        display: none;
    }
    
    /* Hero */
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
        padding-top: var(--space-lg);
    }
    
    .stat {
        text-align: center;
    }
    
    .hero-graphic {
        max-width: 300px;
    }
    
    .graphic-element {
        width: 60px;
        height: 60px;
    }
    
    .graphic-element .icon-svg {
        width: 30px;
        height: 30px;
    }
    
    .floating-card {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Trust Strip */
    .trust-logos {
        gap: var(--space-xl);
    }
    
    .logo-item {
        transform: scale(0.85);
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Services */
    .services {
        padding: var(--space-3xl) 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .service-card {
        padding: var(--space-xl);
    }
    
    /* Process */
    .process {
        padding: var(--space-3xl) 0;
    }
    
    .process-step {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .step-number {
        font-size: 2rem;
    }
    
    /* Testimonials */
    .testimonials {
        padding: var(--space-3xl) 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    /* About */
    .about {
        padding: var(--space-3xl) 0;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: var(--space-xl);
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    /* Contact */
    .contact {
        padding: var(--space-3xl) 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: var(--space-xl);
    }
    
    /* Footer */
    .footer {
        padding: var(--space-3xl) 0 var(--space-lg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
    
    .footer-links:last-child {
        grid-column: 1 / -1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .footer-compliance {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        min-width: 100%;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Mobile Landscape (600px and below) */
@media screen and (max-width: 600px) {
    :root {
        --container-padding: 1rem;
    }
    
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.875rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .trust-logos {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-column: 1 / -1;
    }
    
    .footer-contact-item {
        flex-direction: row;
        text-align: left;
    }
    
    .modal-content {
        margin: var(--space-md);
        max-height: calc(100vh - 2rem);
    }
    
    .modal-body {
        padding: var(--space-md);
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toggle-label {
        margin-bottom: var(--space-sm);
    }
}

/* Mobile Portrait (480px and below) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.625rem;
    }
    
    .hero-graphic {
        max-width: 250px;
    }
    
    .graphic-element {
        width: 50px;
        height: 50px;
    }
    
    .graphic-element .icon-svg {
        width: 24px;
        height: 24px;
    }
    
    .floating-card {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .card-1,
    .card-2 {
        right: 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-form-container {
        padding: var(--space-lg);
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    .footer-compliance {
        flex-direction: column;
        align-items: center;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #0000ff;
        --color-gray-500: #333;
        --color-gray-600: #444;
    }
    
    .service-card,
    .testimonial-card,
    .contact-form-container {
        border-width: 2px;
        border-color: #000;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-white: #1e293b;
        --color-gray-50: #0f172a;
        --color-gray-100: #1e293b;
        --color-gray-200: #334155;
        --color-gray-300: #475569;
        --color-gray-400: #64748b;
        --color-gray-500: #94a3b8;
        --color-gray-600: #cbd5e1;
        --color-gray-700: #e2e8f0;
        --color-gray-800: #f1f5f9;
        --color-gray-900: #ffffff;
    }
    
    .header {
        background-color: var(--color-gray-900);
        border-bottom: 1px solid var(--color-gray-700);
    }
    
    .nav-logo,
    .nav-link {
        color: var(--color-gray-200);
    }
    
    .nav-toggle span {
        background-color: var(--color-gray-200);
    }
    
    .service-card,
    .testimonial-card,
    .contact-form-container,
    .about-card,
    .process-step,
    .graphic-element,
    .floating-card {
        background-color: var(--color-gray-800);
    }
    
    .cookie-banner {
        background-color: var(--color-gray-900);
    }
}

/* Print Styles */
@media print {
    .nav-menu,
    .nav-toggle,
    .cookie-banner,
    .modal {
        display: none !important;
    }
    
    .header {
        position: relative;
        box-shadow: none;
    }
    
    .hero {
        padding: 0;
        min-height: auto;
    }
    
    .hero-cta,
    .hero-stats {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .footer {
        background: none;
        color: #000;
        padding: 2rem 0;
    }
    
    .footer-grid {
        display: block;
    }
    
    .footer-links,
    .footer-contact,
    .social-links {
        display: none;
    }
}

/* Fix for iOS Safari address bar appearance */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
    }
}

/* Landscape orientation on mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .hero-container {
        gap: var(--space-xl);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-graphic {
        max-width: 200px;
    }
    
    .services,
    .process,
    .testimonials,
    .about,
    .contact {
        padding: var(--space-2xl) 0;
    }
}
