/**
 * Responsive Styles - Realnih Digital
 * Mobile-first responsive breakpoints
 */

/* =============================================================================
   DESKTOP (min-width: 769px) - Hero Section Horizontal Layout
   ============================================================================= */

@media (min-width: 769px) {
    .hero-section-new .hero-cta {
        flex-direction: row !important;
    }

    .hero-section-new .hero-cta .btn {
        width: auto !important;
    }
}

/* =============================================================================
   TABLET (max-width: 1024px)
   ============================================================================= */

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    /* Hero New - Tablet */
    .hero-section-new {
        padding: 7rem 0 4rem;
    }

    .hero-grid {
        gap: 3rem;
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        order: 1;
        text-align: center;
    }

    .hero-image {
        order: 2;
        margin-top: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        text-align: center;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-section-new .hero-cta {
        justify-content: center;
        align-items: center;
    }

    /* Footer responsive for tablet */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    /* Landing Page - Benefits Grid Tablet */
    .benefits-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-6);
    }

    .section-title-main {
        font-size: 2.25rem;
    }

    /* Advantages Grid Tablet */
    .advantages-grid-new {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
    }

    .advantages-left-col {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Website Types Grid Tablet */
    .website-types-grid-new {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .website-type-content {
        padding: 2rem;
    }

    .website-type-title-new {
        font-size: 1.375rem;
    }

    .website-type-image {
        height: 220px;
    }

    /* Work Process Carousel Tablet */
    .work-process-carousel-wrapper {
        gap: 1rem;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-nav-btn svg {
        width: 20px;
        height: 20px;
    }

    .work-process-card-new {
        flex: 0 0 calc((100% - 3rem) / 2);
        padding: 2rem 1.75rem;
    }

    .process-card-title {
        font-size: 1.25rem;
    }

    /* Pricing Grid Tablet */
    .pricing-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        max-width: 100%;
        padding: 0 1.5rem;
    }

    .pricing-card-new {
        padding: 1.75rem;
    }

    .pricing-name-new {
        font-size: 1.125rem;
    }

    .pricing-price-new {
        font-size: 1.75rem;
    }

    /* Portfolio Grid Tablet */
    .portfolio-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .portfolio-image-wrapper {
        height: 220px;
    }

    .portfolio-info {
        padding: 1.125rem 1.25rem 1.25rem;
    }

    .portfolio-title {
        font-size: 1.0625rem;
    }

    /* Testimonials Grid Tablet */
    .testimonials-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .testimonial-card-new {
        padding: 1.75rem;
    }

    .testimonial-logo {
        font-size: 1.125rem;
    }

    /* FAQ CTA Combined Section Tablet */
    .faq-cta-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cta-main-title {
        font-size: 2.75rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-stats-grid {
        gap: 1.5rem;
    }
}

/* =============================================================================
   MOBILE (max-width: 768px)
   ============================================================================= */

@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

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

    /* Container */
    .container {
        padding: 0 var(--spacing-4);
        max-width: 100%;
    }

    /* Sections */
    .section {
        padding: var(--spacing-12) 0;
    }

    /* Logo size for mobile */
    .nav-logo .logo-image,
    .nav-logo img {
        height: 45px !important;
    }

    /* Navigation */
    .desktop-only {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background: var(--white);
        padding: 6rem 2rem 2rem;
        box-shadow: none;
        transform: translateX(100%);
        opacity: 0;
        transition: all 0.3s ease;
        gap: 1.5rem;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        color: var(--dark) !important;
        font-size: 1.125rem;
        display: block;
        padding: 0.75rem 0;
    }

    .nav-menu a::after {
        display: none;
    }

    /* Search button on mobile - always visible */
    .search-btn {
        display: inline-flex !important;
        margin-right: 12px;
        color: var(--white);
    }
    
    .header.scrolled .search-btn {
        color: var(--dark);
    }
    
    /* Search Modal Mobile Fixes */
    .search-modal {
        padding: 20px;
        align-items: flex-start;
        padding-top: 100px;
    }
    
    .search-modal-content {
        width: 100%;
        max-width: 100%;
    }
    
    .search-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-form .search-input {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .search-form .btn {
        width: 100%;
    }
    
    .search-close {
        top: -60px;
        right: 0;
        font-size: 36px;
    }

    /* Dropdown Menu - Mobile */
    .nav-menu .has-dropdown {
        position: relative;
    }

    .nav-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #F9FAFB;
        margin-top: 0;
        margin-left: var(--spacing-4);
        border-radius: 8px;
        padding: var(--spacing-2) 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .nav-menu .has-dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: var(--spacing-2) 0;
    }

    .nav-menu .dropdown-menu a {
        font-size: 1rem;
        padding: var(--spacing-2) var(--spacing-4);
    }

    .nav-menu .has-dropdown > a::before {
        float: right;
        margin-top: 8px;
    }

    .nav-menu .has-dropdown.active > a::before {
        transform: rotate(180deg);
    }

    .nav-toggle {
        display: flex !important;
        position: relative;
        z-index: 1001;
    }

    .nav-toggle.active span {
        background: var(--dark) !important;
    }

    body.menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-6);
    }

    /* Hero */
    .hero-section {
        min-height: auto;
        padding: var(--spacing-16) var(--spacing-4);
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Hero New - Mobile Responsive */
    .hero-section-new {
        min-height: auto;
        padding: 7rem 0 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }

    /* Content first, then image on mobile */
    .hero-content {
        order: 1;
        text-align: center;
    }

    .hero-image {
        order: 2;
        margin-top: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-section-new .hero-cta {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        align-items: center;
    }

    .hero-section-new .hero-cta .btn {
        width: 100%;
        max-width: 350px;
        justify-content: center;
        text-align: center;
    }

    .hero-img,
    .hero-placeholder {
        max-width: 100%;
        height: auto;
    }

    .hero-placeholder svg {
        width: 100%;
        height: auto;
        max-height: 300px;
    }

    /* Cards */
    .card {
        padding: var(--spacing-6);
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: var(--text-sm);
    }

    .btn-large {
        padding: 14px 28px;
        font-size: var(--text-base);
    }

    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }

    /* Section Title */
    .section-title {
        margin-bottom: var(--spacing-12);
    }

    .section-title h2 {
        font-size: var(--text-3xl);
    }

    .section-title p {
        font-size: var(--text-base);
    }

    /* Icon Box */
    .icon-box {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    /* About Us Section - Mobile */
    .about-image-horizontal {
        padding: 0;
        max-width: 100%;
    }

    /* FAQ Section - Mobile */
    .faq-homepage-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
    }

    .faq-left {
        position: static;
        text-align: center;
    }

    .faq-badge {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }

    .faq-main-title {
        font-size: 2.25rem;
    }

    .faq-description {
        font-size: 0.9375rem;
    }

    .btn-clients-area {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
    }

    .faq-question-homepage {
        padding: 1.25rem;
    }

    .faq-question-homepage h4 {
        font-size: 1rem;
    }

    .faq-item-homepage.active .faq-answer-homepage {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    /* Testimonials Section - Mobile */
    .testimonials-main-title {
        font-size: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }

    .testimonial-card-new {
        padding: var(--spacing-5);
    }

    .testimonial-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-3);
    }

    .btn-read-more {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
    }

    /* Landing Page - Benefits Grid */
    .benefits-grid-new {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }

    .section-title-main {
        font-size: 2rem;
    }

    .section-description-main {
        font-size: 1rem;
    }

    .benefit-card-new {
        padding: var(--spacing-6);
    }

    .benefit-icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .benefit-icon-svg {
        width: 28px;
        height: 28px;
    }

    .benefit-title-new {
        font-size: 1.125rem;
    }

    .benefit-description-new {
        font-size: 0.875rem;
    }

    /* Advantages Grid Mobile */
    .advantages-grid-new {
        grid-template-columns: 1fr;
    }

    .advantages-left-col {
        grid-template-columns: 1fr;
    }

    .advantage-card-new {
        padding: var(--spacing-6);
    }

    .advantage-card-large {
        padding: var(--spacing-8);
    }

    .advantage-subtitle-large {
        font-size: 1.5rem;
    }

    .advantage-description-large {
        font-size: 0.9375rem;
    }

    .section-tagline {
        font-size: 1rem;
        padding: var(--spacing-3) var(--spacing-4);
    }

    /* Website Types Grid Mobile - All Stacked */
    .section-header-left {
        text-align: center;
    }

    .website-types-grid-new {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .website-type-content {
        padding: 1.75rem;
        gap: 1rem;
    }

    .website-type-title-new {
        font-size: 1.25rem;
    }

    .website-type-description {
        font-size: 0.9375rem;
    }

    .website-type-image {
        height: 200px;
    }

    .website-type-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    /* Work Process Carousel Mobile */
    .work-process-carousel-wrapper {
        gap: 0.75rem;
    }

    .carousel-nav-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .work-process-card-new {
        flex: 0 0 100%;
        padding: 1.75rem 1.5rem;
        gap: 1rem;
    }

    .process-card-number {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .process-card-title {
        font-size: 1.125rem;
    }

    .process-card-description {
        font-size: 0.9375rem;
    }

    .process-card-duration {
        font-size: 0.875rem;
        padding: 0.5rem 0.875rem;
    }

    /* Pricing Grid Mobile */
    .pricing-grid-new {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .pricing-card-new {
        padding: 1.5rem;
    }

    .pricing-name-new {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }

    .pricing-price-new {
        font-size: 1.5rem;
    }

    .pricing-description-new {
        font-size: 0.875rem;
        min-height: auto;
    }

    .pricing-features-new li {
        font-size: 0.875rem;
    }

    /* Portfolio Grid Mobile */
    .portfolio-grid-new {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-image-wrapper {
        height: 200px;
    }

    .portfolio-info {
        padding: 1rem 1.25rem 1.25rem;
    }

    .portfolio-title {
        font-size: 1rem;
    }

    .portfolio-distance {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .portfolio-km {
        font-size: 0.8125rem;
    }

    /* Testimonials Grid Mobile */
    .testimonials-grid-new {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .testimonial-card-new {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .testimonial-logo {
        font-size: 1rem;
    }

    .testimonial-text-new {
        font-size: 0.9375rem;
    }

    .author-name-new {
        font-size: 0.9375rem;
    }

    .author-username {
        font-size: 0.8125rem;
    }

    /* FAQ CTA Combined Section Mobile */
    .faq-cta-combined-section {
        padding: 4rem 0;
    }

    .faq-cta-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cta-main-title {
        font-size: 2rem;
        line-height: 1.15;
    }

    .cta-description {
        font-size: 0.9375rem;
        margin-bottom: 2rem;
    }

    .cta-stats-grid {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    .cta-whatsapp-button {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .faq-question-combined {
        padding: 1.25rem;
    }

    .faq-question-combined h4 {
        font-size: 1rem;
    }

    .faq-icon-combined {
        width: 24px;
        height: 24px;
        font-size: 1.125rem;
    }

    .faq-item-combined.active .faq-answer-combined {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    .faq-answer-combined p {
        font-size: 0.875rem;
    }
}

/* =============================================================================
   SMALL MOBILE (max-width: 480px)
   ============================================================================= */

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: var(--text-4xl);
    }

    .hero-title {
        font-size: var(--text-2xl);
    }
}
