/* ============================================
   STAVEBNÁ FIRMA - Responsive Styles
   ============================================ */

/* ── TABLET (max 1024px) ── */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .about-grid {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-bar-grid {
        gap: 30px;
    }
}

/* ── TABLET PORTRAIT (max 768px) ── */
@media (max-width: 768px) {
    /* Header */
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        transition: right var(--transition);
        padding: 100px 30px 30px;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav a {
        display: block;
        padding: 14px 16px;
        font-size: 0.95rem;
        border-radius: var(--radius);
    }

    .main-nav a:hover {
        background: var(--gray-100);
    }

    .btn-nav {
        text-align: center;
        margin-top: 10px;
    }

    /* Mobile overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hero */
    .hero,
    .hero-new {
        min-height: 60vh;
        height: 500px;
    }

    .hero-overlay {
        width: 100%;
        background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    }

    .hero-dark-side {
        width: 100%;
        clip-path: none;
    }

    .hero-image-side {
        width: 100%;
        opacity: 0.3;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        padding: 0 20px;
    }

    .hero-title-mockup {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Services bar */
    .services-bar-grid {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-section .section-header {
        text-align: center;
    }

    .services-section .section-header h2::after {
        margin: 12px auto 0;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        order: -1;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 1.8rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Footer info bar */
    .footer-info-grid {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Section spacing */
    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }
}

/* ── MOBILE (max 480px) ── */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .site-header .container {
        height: 65px;
    }

    .hero {
        min-height: 50vh;
        margin-top: 65px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content {
        padding: 20px 0;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.8rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 0.85rem;
    }

    .service-card-image {
        height: 180px;
    }

    .project-card-image {
        height: 200px;
    }

    .section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 20px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 40px 0;
    }

    .about-image-accent {
        display: none;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-text i {
        font-size: 1.4rem;
    }
}

/* ── LARGE DESKTOP (min 1400px) ── */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }
}

/* ── PRINT ── */
@media print {
    .site-header,
    .hamburger,
    .back-to-top,
    .cta-section {
        display: none;
    }

    .hero {
        min-height: auto;
        margin-top: 0;
    }

    body {
        color: #000;
    }
}
