/* ============================================
   RESPONSIVE CSS
   Breakpoints: 981px (tablet), 768px, 480px (mobile)
   ============================================ */

/* --- Tablet: 981px and below --- */
@media (max-width: 981px) {
    /* Navigation - show hamburger */
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: #222222;
        flex-direction: column;
        padding: 80px 20px 30px;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links a {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    /* Dropdown in mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0;
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        color: rgba(255, 255, 255, 0.8);
        padding: 10px 30px;
        font-size: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu a:hover {
        color: var(--color-primary);
        background: transparent;
    }

    /* Mobile nav overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hero adjustments */
    .hero {
        min-height: 400px;
        padding: 80px 20px 100px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero p {
        font-size: 28px;
    }

    .hero-small {
        min-height: 250px;
    }

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

    /* Service content - stack on tablet */
    .service-content .container {
        flex-direction: column;
    }

    /* Service cards - single column */
    .service-cards {
        grid-template-columns: 1fr;
    }

    /* Homepage services - 2 columns on tablet */
    .home-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* CTA section */
    .cta-section h2 {
        font-size: 28px;
    }

    /* Steps grid - single column on tablet */
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    /* Info cards - 2 columns */
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-card {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .info-card:last-child {
        border-bottom: none;
    }
}

/* --- 768px and below --- */
@media (max-width: 768px) {
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }

    .container {
        width: 90%;
        padding: 0 15px;
    }

    .header-inner {
        width: 90%;
        padding: 0 15px;
    }

    .section {
        padding: 60px 0;
    }

    /* Section title */
    .section-title {
        font-size: 28px;
    }

    /* Section subtitle */
    .section-subtitle {
        margin: 0 auto 30px;
        font-size: 15px;
    }

    /* Text after section titles */
    .section-title + p {
        font-size: 15px;
    }

    /* Service content */
    .service-content h2 {
        font-size: 24px;
    }

    .service-content p {
        font-size: 15px;
    }

    /* Wiki section */
    .wiki-section h2 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Contact form */
    .contact-form-section h2 {
        font-size: 24px;
    }

    /* Standardize all inner-page h2 at tablet */
    .blog-post-content h2,
    .privacy-content h2 {
        font-size: 24px;
    }

    /* Blog grid - single column */
    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Stats grid - 2 columns on tablet */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item h3 {
        font-size: 32px;
    }

    /* Lightbox responsive */
    .lightbox-nav {
        font-size: 36px;
        padding: 10px;
    }

    .lightbox-overlay img {
        max-width: 95%;
        max-height: 75vh;
    }

    /* Contact info section */
    .contact-info-section {
        padding: 60px 20px;
    }

    .contact-form-section {
        padding: 60px 20px;
    }

    /* Info cards - single column */
    .info-cards {
        grid-template-columns: 1fr;
    }

    /* Hero */
    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 24px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* --- Mobile: 480px and below --- */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .hero {
        min-height: 350px;
        padding: 70px 15px 90px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 20px;
    }

    .hero-small {
        min-height: 200px;
        padding: 60px 15px 80px;
    }

    /* Stats grid - single column on mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Homepage services - single column on mobile */
    .home-services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Portfolio grid - single column */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Lightbox responsive */
    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    /* Blog cards */
    .blog-card-content {
        padding: 20px 20px 0;
    }

    .blog-card-link {
        padding: 0 20px 20px;
    }

    /* Blog pagination */
    .pagination-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* Buttons */
    .btn {
        padding: 12px 25px;
        font-size: 12px;
    }

    /* CTA */
    .cta-section {
        padding: 80px 15px;
    }

    .cta-content {
        padding: 35px 25px;
    }

    .cta-section .overline {
        font-size: 16px;
    }

    .cta-section h2 {
        font-size: 22px;
    }

    .cta-section .btn-cta {
        padding: 14px 30px;
        font-size: 13px;
    }

    /* Steps (web design page) */
    .step-item {
        flex-direction: column;
        gap: 8px;
    }

    /* Step cards (homepage) */
    .step-card {
        padding: 30px 20px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* Contact form box */
    .contact-form-inner {
        padding: 30px 20px;
    }

    /* Captcha */
    .captcha-question {
        min-width: auto;
        padding: 8px 12px;
        font-size: 14px;
    }

    .captcha-input {
        width: 80px;
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Wiki forms */
    .wiki-form {
        padding: 30px 20px;
    }

    /* Service content */
    .service-content .image-col img {
        border-radius: 6px;
    }
}
