/**
 * Responsive Styles
 * Media Queries for all breakpoints
 *
 * @package Ivanchovandpartners
 */

/* =============================================
   Laptop (992px - 1199px)
   ============================================= */
@media (max-width: 1199px) {
    :root {
        --container-padding: 32px;
    }

    /* Typography */
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }

    /* Hero */
    .hero-headline {
        font-size: 3rem;
    }

    .hero-content {
        padding-left: 0;
    }

    /* Practice Cards */
    .practice-cards-wrapper {
        margin-top: -100px;
    }

    .practice-card {
        padding: var(--space-6);
    }

    /* About */
    .about-grid {
        gap: var(--space-10);
    }

    .stats-badge-years {
        left: -20px;
    }

    .stats-badge-cases {
        right: -20px;
    }

    /* Team */
    .team-grid {
        gap: 20px;
    }

    .team-card-name {
        font-size: 20px;
    }

    .team-card-position {
        font-size: 16px;
    }

    /* Footer */
    .footer-grid {
        gap: var(--space-8);
    }
}

/* =============================================
   Tablet (768px - 991px)
   ============================================= */
@media (max-width: 991px) {
    :root {
        --header-height: 80px;
        --header-height-scrolled: 70px;
        --container-padding: 24px;
    }

    /* Hero */
    .hero-section {
        min-height: 85vh;
        padding-top: 100px;
        padding-bottom: 150px;
    }

    .hero-section::before {
        background: linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.5) 0%,
            rgba(15, 23, 42, 0.3) 50%,
            rgba(15, 23, 42, 0.2) 100%
        );
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    /* Practice Cards */
    .practice-cards-wrapper {
        margin-top: -80px;
    }

    .practice-section-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .practice-section-header {
        padding-top: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .practice-slider-btn {
        margin-top: 15px;
    }

    .practice-cards-container {
        margin-right: calc(-1 * var(--container-padding));
        width: calc(100% + var(--container-padding));
        border-radius: 20px 0 0 20px;
    }

    .practice-card {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
    }

    .practice-carousel-nav {
        margin-top: 20px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .about-content {
        padding-right: 0;
        order: 1;
    }

    .about-media {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-badge-years {
        left: var(--space-4);
        right: auto;
        top: -15px;
        width: 100px;
        height: 75px;
    }

    .stats-badge-cases {
        right: var(--space-4);
        bottom: 10px;
        width: 100px;
        height: 75px;
    }

    .stats-badge-number {
        font-size: var(--text-xl);
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* CTA */
    .cta-grid {
        flex-direction: column;
    }

    .cta-form-wrapper {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }

    .cta-contact-wrapper {
        width: 100%;
        left: 0;
        border-radius: 0 0 16px 16px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }

    .footer-cta {
        grid-column: span 2;
        padding-right: 0;
        text-align: center;
        padding-bottom: var(--space-8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Two column layout */
    .two-col {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .two-col-content {
        padding-right: 0;
    }
}

/* =============================================
   Mobile (320px - 767px)
   ============================================= */
@media (max-width: 767px) {
    :root {
        --container-padding: 1rem;
        --header-height: 70px;
        --header-height-scrolled: 60px;
    }

    /* Typography */
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }

    .section-headline {
        font-size: var(--text-2xl);
    }

    /* Sections */
    .section {
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }

    .section-lg {
        padding-top: var(--space-16);
        padding-bottom: var(--space-16);
    }

    .section-header {
        margin-bottom: var(--space-8);
    }

    /* Hero */
    .hero-section {
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-content {
        padding: var(--space-8) 0;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-cta {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-sm);
    }

    /* Practice Cards */
    .practice-cards-wrapper {
        margin-top: -60px;
        padding-bottom: var(--space-8);
    }

    .practice-section-header {
        margin-bottom: var(--space-4);
    }

    .practice-headline {
        font-size: var(--text-2xl);
    }

    .practice-card {
        flex: 0 0 260px;
        min-width: 260px;
        max-width: 260px;
    }

    .practice-card-title {
        font-size: var(--text-lg);
    }

    .practice-cards-container {
        padding: 20px;
        padding-right: 0;
        margin-right: calc(-1 * var(--container-padding));
        width: calc(100% + var(--container-padding));
    }

    /* About */
    .about-section {
        padding: var(--space-12) 0;
    }

    .about-headline {
        font-size: var(--text-2xl);
    }

    .about-tabs-nav {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .about-tab-link {
        font-size: var(--text-xs);
    }

    .stats-badge {
        width: 90px;
        height: 70px;
    }

    .stats-badge-number {
        font-size: var(--text-xl);
    }

    .stats-badge-text {
        font-size: 8px;
        max-width: 70px;
    }

    /* Industries */
    .industries-section {
        padding: 80px 0;
    }

    .industries-headline {
        font-size: var(--text-2xl);
    }

    .industry-tag {
        padding: 0;
        padding-right: 16px;
        font-size: 16px;
        gap: 8px;
    }

    .industry-icon {
        width: 40px;
        height: 40px;
    }

    /* Team */
    .team-section {
        padding: var(--space-12) 0;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .team-card-image {
        height: 250px;
    }

    .team-card-name {
        font-size: 18px;
    }

    .team-card-position {
        font-size: 16px;
    }

    /* Testimonials */
    .testimonials-section {
        padding: var(--space-16) 0;
    }

    .testimonials-headline {
        font-size: var(--text-2xl);
    }

    .testimonial-card {
        padding: var(--space-6);
    }

    /* Blog */
    .blog-section {
        padding: var(--space-12) 0;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-headline {
        font-size: var(--text-2xl);
    }

    /* CTA */
    .cta-section {
        padding: var(--space-12) 0;
    }

    .cta-headline {
        font-size: var(--text-2xl);
    }

    .cta-form-wrapper,
    .cta-contact-wrapper {
        padding: var(--space-6);
    }

    .cta-form-title {
        font-size: 24px;
    }

    .cta-contact-title {
        font-size: 22px;
    }

    .cta-contact-item {
        gap: var(--space-3);
    }

    .cta-contact-icon {
        width: 42px;
        height: 42px;
        border-radius: 50%;
    }

    .cta-contact-value {
        font-size: var(--text-base);
    }

    /* Footer */
    .footer-main {
        padding: var(--space-10) 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-cta {
        grid-column: span 1;
        text-align: left;
    }

    .footer-cta-headline {
        font-size: var(--text-2xl);
    }

    .footer-col-title {
        font-size: var(--text-base);
        margin-bottom: var(--space-4);
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-4);
    }

    /* Scroll to top */
    .scroll-to-top {
        right: var(--space-4);
        bottom: var(--space-4);
        width: 40px;
        height: 40px;
    }

    /* Grids */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    /* Page with sidebar */
    .page-with-sidebar {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        position: static;
    }

    /* Buttons */
    .btn {
        padding: var(--space-3) var(--space-5);
    }

    .btn-lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }
}

/* =============================================
   Small Mobile (320px - 374px)
   ============================================= */
@media (max-width: 374px) {
    :root {
        --container-padding: 0.75rem;
    }

    h1 { font-size: var(--text-2xl); }

    .hero-headline {
        font-size: 1.75rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* =============================================
   Large Desktop (1400px+)
   ============================================= */
@media (min-width: 1400px) {
    :root {
        --container-max: 1400px;
    }

    .hero-headline {
        font-size: 4.5rem;
    }

    .about-grid {
        gap: var(--space-20);
    }

    .stats-badge {
        width: 150px;
        height: 150px;
    }

    .stats-badge-number {
        font-size: var(--text-5xl);
    }
}

/* =============================================
   Print Styles
   ============================================= */
@media print {
    .site-header,
    .site-footer,
    .scroll-to-top,
    .menu-toggle,
    .mobile-nav {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .section {
        padding: 20pt 0;
    }

    /* Show URLs after links */
    .content a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
}

/* =============================================
   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;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* =============================================
   High Contrast Mode
   ============================================= */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #0052cc;
        --color-gray: #333;
        --color-gray-light: #666;
    }

    .btn {
        border-width: 2px;
    }

    a:focus,
    button:focus {
        outline: 3px solid currentColor;
        outline-offset: 3px;
    }
}

/* =============================================
   Dark Mode (if needed in future)
   ============================================= */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --color-dark: #f8fafc;
        --color-white: #1e293b;
        --color-light: #334155;
        --color-lighter: #1e293b;
    }
}
*/
