/* =====================================================
   WEBSITES VALLEY - RESPONSIVE FIXES
   Add this file after style.css, or paste at bottom of style.css
===================================================== */

/* Header actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s ease;
}

.menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--accent);
}

.menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--accent);
}

/* Mobile drawer */
.mobile-drawer {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    padding: 30px 5%;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    display: none;
    overflow-y: auto;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.drawer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.drawer-links a span {
    color: var(--accent);
}

.drawer-cta {
    margin-top: 30px;
    display: block;
    text-align: center;
    background: var(--accent);
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
}

.drawer-stats {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.drawer-stats div {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
}

.drawer-stats strong {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    color: var(--text);
}

.drawer-stats span {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 4px;
}

body.drawer-open {
    overflow: hidden;
}

/* Desktop/Mobile copy switching */
.desktop-copy {
    display: inline;
}

.mobile-copy {
    display: none;
}

/* Default responsive hardening */
img {
    max-width: 100%;
}

.pricing-scroller,
.portfolio-grid,
.services-grid,
.reviews-grid {
    max-width: 100%;
}

/* Mobile */
@media screen and (max-width: 900px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    nav,
    .site-nav {
        height: 70px;
        padding: 0 5%;
    }

    .custom-logo {
        height: 42px;
    }

    .nav-links,
    .nav-cta {
        display: none !important;
    }

    .menu-btn {
        display: flex;
    }

    .mobile-drawer {
        display: block;
    }

    .theme-toggle {
        width: 42px;
        height: 42px;
    }

    .desktop-copy {
        display: none !important;
    }

    .mobile-copy {
        display: inline !important;
    }

    section {
        padding: 56px 18px;
    }

    h1 {
        font-size: clamp(2rem, 9vw, 2.7rem);
        line-height: 1.08;
    }

    h2 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    .hero {
        min-height: auto;
        padding: 110px 18px 56px;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 28px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-visual {
        display: none !important;
    }

    .hero-actions,
    .hero-btns {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary,
    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100%;
        max-width: 360px;
        justify-content: center;
    }

    .hero-stats {
        width: 100%;
        max-width: 420px;
        margin-top: 34px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1px;
        background: var(--border);
        border: 1px solid var(--border);
        border-radius: 14px;
        overflow: hidden;
    }

    .stat {
        background: var(--surface);
        padding: 14px 6px;
    }

    .stat-num {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.62rem;
        line-height: 1.25;
    }

    .trust-bar {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        white-space: normal;
        gap: 10px;
        padding: 18px;
        overflow: visible;
    }

    .trust-track {
        display: contents;
        animation: none !important;
    }

    .trust-track[aria-hidden="true"] {
        display: none !important;
    }

    .trust-badge {
        font-size: 0.72rem;
        align-items: flex-start;
        white-space: normal;
        gap: 6px;
        line-height: 1.35;
    }

    .trust-badge::before {
        content: "✓";
        color: var(--green);
        font-weight: 700;
    }

    .trust-badge svg {
        display: none;
    }

    .trust-bar::before,
    .trust-bar::after {
        display: none !important;
    }

    .services-header {
        display: block;
        margin-bottom: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2px;
    }

    .service-card {
        padding: 20px 16px;
    }

    .service-icon {
        font-size: 1.35rem;
        margin-bottom: 8px;
    }

    .service-title {
        font-size: 0.9rem;
        line-height: 1.25;
    }

    .service-desc {
        font-size: 0.76rem;
        line-height: 1.45;
    }

    .service-cta {
        display: none;
    }

    .process-steps {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .process-step {
        padding: 20px 0;
        border-bottom: 1px solid var(--border);
        display: grid;
        grid-template-columns: 42px 1fr;
        column-gap: 14px;
        align-items: start;
    }

    .process-step:last-child {
        border-bottom: 0;
    }

    .process-step .step-title,
    .process-step .step-desc {
        grid-column: 2;
    }

    .step-num {
        grid-row: 1 / span 2;
        width: 40px;
        height: 40px;
    }

    .why-grid {
        grid-template-columns: 1fr !important;
        gap: 26px;
    }

    .why-item {
        gap: 14px;
        padding: 18px 0;
        border-bottom: 1px solid var(--border);
    }

    .why-item:last-child {
        border-bottom: 0;
    }

    .why-text p {
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .why-visual {
        padding: 24px;
    }

    .guarantee-items,
    .g-items {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }

    .g-item {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .pricing-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .pricing-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .scroll-btn,
    .scroll-fade-left,
    .scroll-fade-right {
        display: none !important;
    }

    .pricing-scroller {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 18px;
    }

    .pricing-card {
        flex: 0 0 86%;
        max-width: 340px;
        scroll-snap-align: start;
    }

    .portfolio-header,
    .testimonials-header,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 28px;
    }

    .portfolio-grid,
    .reviews-grid {
        grid-template-columns: 1fr !important;
    }

    .cta-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta-actions a {
        width: 100%;
        max-width: 360px;
        justify-content: center;
    }

    .contact-grid {
        display: grid;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 34px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

@media screen and (max-width: 420px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .guarantee-items,
    .g-items {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (min-width: 901px) {
    .mobile-drawer,
    .menu-btn {
        display: none !important;
    }
}


/* =====================================================
   HOME PAGE MOBILE HERO SPACING FIX
   Header ke baad extra blank space remove
===================================================== */

@media screen and (max-width: 900px) {
  .hero {
    min-height: auto !important;
    padding: 32px 18px 44px !important;
    text-align: center !important;
  }

  .hero-container {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    text-align: center !important;
  }

  .hero-content {
    align-items: center !important;
  }

  .hero-badge {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
  }

  .hero h1,
  .hero-title-final {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
  }

  .hero-sub {
    margin-bottom: 24px !important;
  }

  .hero-actions,
  .hero-btns {
    margin-top: 0 !important;
  }

  .hero-stats {
    margin-top: 26px !important;
  }
}

@media screen and (max-width: 420px) {
  .hero {
    padding: 22px 16px 40px !important;
  }

  .hero-badge {
    margin-bottom: 16px !important;
  }

  .hero h1,
  .hero-title-final {
    margin-bottom: 16px !important;
  }

  .hero-sub {
    margin-bottom: 22px !important;
  }
}
