/**
 * Responsive Breakpoints
 */

/* Tablet and below */
@media (max-width: 1024px) {
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer__brand {
        grid-column: span 2;
        max-width: none;
    }

    .service-block {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .service-block:nth-child(even) {
        direction: ltr;
    }

    .service-block__content {
        padding: var(--space-lg);
    }

    /* Hide decorative icon boxes on tablet/mobile */
    .service-block > .glass-card:not(.service-block__content) {
        display: none !important;
    }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-3xl);
    }

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

    .hero__visual {
        display: none;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    /* Mobile Navigation */
    .nav__toggle {
        display: flex;
    }

    .nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 80px var(--space-xl) var(--space-xl);
        transition: right var(--transition-normal);
        border-left: 1px solid var(--glass-border);
        z-index: var(--z-overlay);
    }

    .nav__list--open {
        right: 0;
    }

    .nav__overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: calc(var(--z-header) - 1);
    }

    .nav__overlay--visible {
        display: block;
    }

    .nav .btn {
        display: none;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__brand {
        grid-column: span 1;
    }

    /* Stats */
    .stats {
        gap: var(--space-xl);
    }

    /* Process Steps */
    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .process-steps::before {
        top: 0;
        bottom: 0;
        left: 24px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .process-step {
        text-align: left;
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: var(--space-md);
    }

    .process-step__number {
        margin: 0;
    }

    .process-step__content {
        grid-column: 2;
    }

    /* Case Studies */
    .savings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .savings-value {
        font-size: 1.5rem;
    }

    .case-study__title {
        font-size: var(--font-size-base);
    }

    /* CTA Banner */
    .cta-banner {
        padding: var(--space-2xl) var(--space-lg);
    }

    /* Section spacing */
    .section {
        padding: var(--space-3xl) 0;
    }
}

/* Mobile - Enhanced background effects */
@media (max-width: 768px) {
    /* Make gradient orbs more visible on mobile */
    .gradient-orb {
        opacity: 0.6;
    }

    .gradient-orb--1 {
        width: 350px;
        height: 350px;
        top: -100px;
        right: -50px;
    }

    .gradient-orb--2 {
        width: 300px;
        height: 300px;
        bottom: -100px;
        left: -50px;
    }

    .gradient-orb--3 {
        width: 250px;
        height: 250px;
    }

    /* Make floating icons more visible on mobile */
    .floating-icon {
        opacity: 0.12;
    }

    .floating-icon--glow {
        opacity: 0.18;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .glass-card {
        padding: var(--space-lg);
    }

    .service-card__icon {
        width: 56px;
        height: 56px;
    }

    .service-card__icon svg {
        width: 28px;
        height: 28px;
    }

    .btn--large {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--font-size-base);
    }

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

/* Print styles */
@media print {
    .gradient-background,
    .header,
    .nav,
    .btn,
    .cta-banner {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .glass-card {
        background: #f5f5f5;
        border: 1px solid #ddd;
        backdrop-filter: none;
    }

    h1, h2, h3, h4, h5, h6 {
        color: black;
    }
}
