/* ==============================================
   PT Green Solution Lestari - Mobile Responsive
   Target: Galaxy S8+ (360px), iPhone 12 Pro (390px), iPhone 14 Pro Max (430px)
   This file MUST be loaded LAST to override all other CSS
   ============================================== */

/* ==========================================
   1. GLOBAL / LAYOUT
   ========================================== */

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* --- Tablet-to-Mobile (max-width: 768px) --- */
@media (max-width: 768px) {

    /* Page header banner — reduce top padding */
    .page-header {
        padding: 7rem 0 2.5rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    /* Sections padding reduction */
    .section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* FAQ Section */
    .faq-content-wrapper {
        flex-direction: column;
    }

    .faq-tabs {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .faq-main-title {
        font-size: 1.75rem;
    }
}

/* --- Core Mobile (max-width: 480px) — covers all 3 target devices --- */
@media (max-width: 480px) {

    /* Container tighter padding */
    :root {
        --container-padding: 1rem;
    }

    /* Page header — tighter on mobile */
    .page-header {
        padding: 6rem 0 2rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    /* Grids — force single column */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Buttons — full width on mobile */
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- Smallest devices (360px) --- */
@media (max-width: 390px) {
    :root {
        --container-padding: 0.875rem;
    }

    .page-header {
        padding: 5.5rem 0 1.75rem;
    }

    .page-title {
        font-size: 1.35rem;
    }
}


/* ==========================================
   2. HEADER & NAVIGATION (ALL PAGES)
   ========================================== */
@media (max-width: 768px) {

    /* New header — reduce padding */
    .header-new {
        padding: 1rem 1.25rem;
    }

    .header-new.header-scrolled {
        padding: 0.75rem 1.25rem;
    }

    .header-new .header-logo img {
        height: 56px !important;
        max-width: none !important;
        flex-shrink: 0;
    }

    .header-new.header-scrolled .header-logo img {
        height: 48px !important;
    }

    .header-new .header-logo {
        font-size: 18px;
    }

    /* Hamburger — ensure minimum touch target 44px */
    .header-hamburger {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile nav overlay — improve usability */
    .mobile-nav-overlay {
        gap: 1.5rem;
        padding: 2rem;
    }

    .mobile-nav-overlay a {
        font-size: 18px;
        padding: 0.5rem 0;
    }

    .mobile-nav-close {
        top: 1.25rem;
        right: 1.25rem;
        font-size: 32px;
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .header-new {
        padding: 0.875rem 1rem;
    }

    .header-new.header-scrolled {
        padding: 0.625rem 1rem;
    }

    .header-new .header-logo img {
        height: 48px !important;
        max-width: none !important;
        flex-shrink: 0;
    }

    .header-new.header-scrolled .header-logo img {
        height: 40px !important;
    }

    .header-new .header-logo {
        font-size: 16px;
        gap: 0.5rem;
    }
}


/* ==========================================
   3. HOME — HERO SECTION
   ========================================== */
@media (max-width: 768px) {
    .hero-new {
        min-height: 100vh;
        min-height: 100svh;
        /* safe viewport height for mobile browsers */
        padding: 5rem 0;
    }

    .hero-new-content {
        padding: 3rem 1.25rem 5rem;
        max-width: 100%;
    }

    /* CRITICAL: Remove white-space: nowrap causing horizontal overflow */
    .hero-new-content .hero-title {
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.1;
    }

    .hero-new-content .hero-subtitle {
        font-size: 13px;
    }

    .hero-new-content .hero-desc {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .hero-cta-pill {
        padding: 0.2rem 0.2rem 0.2rem 1.25rem;
    }

    .hero-cta-pill .cta-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-new-content .hero-title {
        font-size: clamp(1.5rem, 7.5vw, 2rem);
    }

    .hero-new-content .hero-desc {
        font-size: 13px;
        max-width: 100%;
    }

    .hero-wave-bottom svg {
        height: 35px;
    }
}

@media (max-width: 390px) {
    .hero-new-content .hero-title {
        font-size: 1.5rem;
    }

    .hero-new-content .hero-subtitle {
        font-size: 12px;
        margin-bottom: 1rem;
    }

    .hero-new-content .hero-desc {
        font-size: 12.5px;
    }

    .hero-cta-pill .cta-text {
        font-size: 13px;
    }

    .hero-cta-pill .cta-icon {
        width: 30px;
        height: 30px;
    }
}


/* ==========================================
   4. HOME — SERVICE FLOAT CARDS
   ========================================== */
@media (max-width: 480px) {
    .services-float-section {
        margin-top: -2rem;
        padding: 0 0.875rem 3rem;
    }

    .services-float-row {
        border-radius: 14px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    }

    .service-float-card {
        min-height: 120px;
        height: auto;
    }

    .service-float-default {
        padding: 1rem;
        gap: 0.75rem;
    }

    .service-float-default .sfc-title {
        font-size: 13px;
    }

    .service-float-default .sfc-desc {
        font-size: 11.5px;
        -webkit-line-clamp: 3;
    }

    .service-float-default .sfc-icon svg {
        width: 22px;
        height: 22px;
    }

    /* Mobile: tap-to-expand via .active class (mirrors :hover behavior) */
    .service-float-card.active .service-float-default {
        opacity: 0;
        pointer-events: none;
    }

    .service-float-card.active .service-float-expanded {
        opacity: 1;
        height: 300px;
        pointer-events: auto;
        transform: scale(1.02) translateY(0);
    }

    .service-float-card.active .service-float-expanded .sfe-image-wrap {
        height: 160px;
        opacity: 1;
    }
}

@media (max-width: 390px) {
    .services-float-section {
        padding: 0 0.75rem 2.5rem;
    }

    .service-float-default .sfc-title {
        font-size: 12.5px;
    }

    .service-float-default .sfc-desc {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
}


/* ==========================================
   5. HOME — STATS SECTION
   ========================================== */
@media (max-width: 480px) {
    .stats-new-section {
        padding: 1rem 1rem 2rem;
    }

    .stats-new-item {
        padding: 1.25rem 0;
    }

    .stats-new-item .stat-number {
        font-size: 2.5rem;
    }

    .stats-new-item .stat-label {
        font-size: 13px;
    }

    .stats-new-divider-h {
        width: 100px;
    }
}

@media (max-width: 390px) {
    .stats-new-item .stat-number {
        font-size: 2.25rem;
    }

    .stats-new-item .stat-label {
        font-size: 12px;
    }
}


/* ==========================================
   6. HOME — WHAT WE DO, GLIMPSE
   ========================================== */
@media (max-width: 480px) {

    /* What We Do */
    .what-we-do-section {
        padding: 3rem 0;
    }

    .what-we-do-inner {
        padding: 0 1rem;
        gap: 2rem;
    }

    .wwd-images-wrapper {
        width: 100%;
        max-width: 260px;
        height: 280px;
    }

    .wwd-text .section-heading {
        font-size: 1.5rem;
    }

    .wwd-text .section-paragraph {
        font-size: 14px;
    }

    .wwd-text .section-label {
        font-size: 11px;
    }

    .btn-outline-green {
        font-size: 13px;
        padding: 0.5rem 1.5rem;
    }

    /* Glimpse */
    .glimpse-inner {
        padding: 3rem 1rem 2rem;
        gap: 2rem;
    }

    .glimpse-text .section-heading {
        font-size: 1.5rem;
    }

    .glimpse-text .section-paragraph {
        font-size: 14px;
    }

    .glimpse-video-card {
        transform: translateY(2rem);
        aspect-ratio: 16/10;
    }
}

@media (max-width: 390px) {
    .wwd-images-wrapper {
        max-width: 240px;
        height: 260px;
    }

    .wwd-text .section-heading {
        font-size: 1.35rem;
    }
}


/* ==========================================
   7. HOME — PRODUCTS GRID / CATEGORY CARDS (LAYANAN KAMI)
   ========================================== */
@media (max-width: 480px) {
    .products-grid-section {
        padding: 3rem 0 4rem;
    }

    .products-grid-section.has-glimpse-overlap {
        padding-top: 4rem;
    }

    .products-grid-inner {
        padding: 0 1rem;
    }

    .products-grid-header {
        margin-bottom: 1.5rem;
    }

    .products-grid-header .section-heading {
        font-size: 1.35rem;
    }

    /* Convert grid wrapper to horizontal scroll carousel */
    .products-grid-wrapper {
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        /* Hide scrollbar but keep functionality */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE */
        /* Fade edges to hint scrollability */
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
        padding-bottom: 0.5rem;
    }

    .products-grid-wrapper::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari */
    }

    /* Convert grid to horizontal flow with larger cards */
    .products-grid {
        grid-auto-columns: 72% !important;
        gap: 1rem !important;
        padding-right: 1rem;
    }

    .product-card {
        scroll-snap-align: start;
        aspect-ratio: 3 / 4;
        border-radius: 18px;
    }

    .product-card img {
        border-radius: 18px;
    }

    .product-card .product-info {
        padding: 1rem 1.15rem;
    }

    .product-card .product-info h3 {
        font-size: 15px;
        line-height: 1.3;
    }

    .product-card .product-info .arrow-icon svg {
        width: 22px;
        height: 22px;
    }

    /* Home category cards — also carousel-friendly */
    .products-grid-inner [style*="grid-template-columns"] {
        display: flex !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .products-grid-inner [style*="grid-template-columns"]::-webkit-scrollbar {
        display: none;
    }

    .home-category-card {
        min-width: 70%;
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 1.5rem 1.25rem;
    }

    .home-cat-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        margin-bottom: 1rem;
    }

    .home-cat-title {
        font-size: 0.95rem;
    }

    .home-cat-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 390px) {
    .products-grid {
        grid-auto-columns: 75% !important;
    }

    .home-category-card {
        min-width: 72%;
    }
}

@media (max-width: 360px) {
    .products-grid {
        grid-auto-columns: 78% !important;
    }

    .home-category-card {
        min-width: 75%;
    }
}


/* ==========================================
   8. HOME — PROJECTS SECTION
   ========================================== */
@media (max-width: 480px) {
    .projects-section {
        padding: 3rem 0 4rem;
    }

    .projects-inner {
        padding: 0 1rem;
    }

    .projects-header {
        margin-bottom: 1.75rem;
        gap: 1rem;
    }

    .projects-header-left h2 {
        font-size: 1.35rem;
    }

    .projects-header-left p {
        font-size: 13px;
    }

    /* 1 large + 2 small layout */
    .projects-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem;
    }

    /* Large card — full width, tall */
    .project-card-large {
        grid-column: 1 / -1 !important;
        height: 280px;
        border-radius: 18px;
    }

    .project-card-large .project-content {
        padding: 1.5rem;
    }

    .project-card-large .project-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .project-card-large .project-content p {
        font-size: 12px;
        margin-bottom: 1rem;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Small cards — side by side, compact */
    .project-card-small {
        grid-column: span 1 !important;
        height: 200px;
        border-radius: 14px;
    }

    .project-card-small .project-content {
        padding: 1rem;
    }

    .project-card-small .project-content h3 {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .btn-detail-white {
        font-size: 12px;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 390px) {
    .project-card-large {
        height: 250px;
    }

    .project-card-small {
        height: 180px;
    }

    .project-card-small .project-content h3 {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .project-card-large {
        height: 230px;
    }

    .project-card-small {
        height: 165px;
    }
}


/* ==========================================
   9. HOME — QUOTES / TESTIMONIAL
   ========================================== */
@media (max-width: 480px) {
    .quotes-section {
        padding: 3rem 0 4rem;
    }

    .quotes-inner {
        padding: 0 1rem;
    }

    .quotes-profile .profile-avatar {
        width: 64px;
        height: 64px;
    }

    .quotes-profile h4 {
        font-size: 1.25rem;
    }

    .quotes-content .quote-icon svg {
        width: 30px;
        height: 24px;
    }

    .quotes-content .quote-text {
        font-size: 1rem;
        line-height: 1.5;
    }

    .quotes-content {
        gap: 1rem;
    }
}


/* ==========================================
   10. HOME — ARTICLES SECTION (CAROUSEL)
   ========================================== */
@media (max-width: 480px) {
    .articles-new-section {
        padding: 3rem 0 2rem;
    }

    .articles-new-inner {
        padding: 0 1rem;
    }

    .articles-new-header {
        margin-bottom: 1.5rem;
    }

    .articles-new-header-left h2 {
        font-size: 1.35rem;
    }

    .articles-new-header-left span {
        font-size: 13px;
    }

    /* Horizontal scroll carousel */
    .articles-new-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }

    .articles-new-grid::-webkit-scrollbar {
        display: none;
    }

    /* ---- MAIN ARTICLE: tall vertical portrait card ---- */
    .article-main {
        position: relative;
        min-width: 55%;
        flex-shrink: 0;
        scroll-snap-align: start;
        aspect-ratio: 3 / 5;
        border-radius: 16px;
        overflow: hidden;
        display: flex !important;
        flex-direction: column;
    }

    /* Image fills entire card */
    .article-main .article-main-image {
        position: absolute !important;
        inset: 0;
        height: 100% !important;
        width: 100%;
        border-radius: 16px;
        z-index: 0;
    }

    .article-main .article-main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Gradient overlay */
    .article-main::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
        z-index: 1;
        border-radius: 16px;
        pointer-events: none;
    }

    /* Text overlaid at bottom */
    .article-main h3 {
        position: absolute;
        bottom: 2.75rem;
        left: 1rem;
        right: 1rem;
        z-index: 2;
        color: #fff !important;
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.35;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }

    .article-main>div:last-child {
        position: absolute;
        bottom: 0.875rem;
        left: 1rem;
        z-index: 2;
    }

    .article-main .article-tag {
        background: rgba(255, 255, 255, 0.2) !important;
        color: #fff !important;
        backdrop-filter: blur(6px);
        border-color: transparent !important;
        font-size: 10px;
        padding: 0.25rem 0.6rem;
    }

    /* ---- SIDEBAR: flatten into carousel flow ---- */
    .articles-sidebar {
        display: contents !important;
    }

    /* ---- SIDEBAR ITEMS: same tall vertical card ---- */
    .article-sidebar-item {
        position: relative;
        min-width: 55%;
        flex-shrink: 0;
        scroll-snap-align: start;
        aspect-ratio: 3 / 5;
        border-radius: 16px;
        overflow: hidden;
        display: flex !important;
        flex-direction: column;
    }

    /* Image fills entire card */
    .article-sidebar-item .article-thumb {
        position: absolute !important;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
        border-radius: 16px;
        z-index: 0;
        flex-shrink: 0;
    }

    .article-sidebar-item .article-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 16px;
    }

    /* Gradient overlay */
    .article-sidebar-item::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
        z-index: 1;
        border-radius: 16px;
        pointer-events: none;
    }

    /* Text container overlaid at bottom */
    .article-sidebar-item .article-sidebar-text {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2;
        padding: 1rem;
        width: 100%;
    }

    .article-sidebar-item .article-sidebar-text h4 {
        color: #fff !important;
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.35;
        margin: 0 0 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }

    .article-sidebar-item .article-sidebar-text p {
        display: none;
    }

    .article-sidebar-item .article-tag {
        background: rgba(255, 255, 255, 0.2) !important;
        color: #fff !important;
        backdrop-filter: blur(6px);
        border-color: transparent !important;
        font-size: 10px;
        padding: 0.25rem 0.6rem;
    }
}

@media (max-width: 390px) {

    .article-main,
    .article-sidebar-item {
        min-width: 58%;
    }
}


/* ==========================================
   11. HOME — CLIENT CLOUD
   ========================================== */
@media (max-width: 480px) {
    .client-cloud-section {
        padding: 2rem 0 3rem;
    }

    .client-cloud-header {
        margin-bottom: 1.5rem;
    }

    .client-cloud-title {
        font-size: 1.15rem;
    }

    .client-cloud-track {
        padding: 1.5rem 0;
    }
}


/* ==========================================
   12. HOME — FAQ SECTION
   ========================================== */
@media (max-width: 768px) {
    .faq-section-modern {
        padding: 4rem 0;
    }

    .faq-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-tabs {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0.5rem;
        gap: 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .faq-tabs::-webkit-scrollbar {
        display: none;
    }

    .faq-tab {
        white-space: nowrap;
        width: auto;
        padding: 10px 18px;
        font-size: 0.9rem;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .faq-bg-image {
        opacity: 0.15;
        right: -200px;
    }
}

@media (max-width: 480px) {
    .faq-section-modern {
        padding: 3rem 0;
        /* Remove bottom margin so no white gap to footer */
        margin-bottom: 0;
    }

    .faq-container {
        padding: 0 1.25rem;
    }

    .faq-main-title {
        font-size: 1.35rem;
        margin-bottom: 1.75rem;
    }

    /* Fix accordion item spacing — more breathing room */
    .faq-item {
        padding: 0.35rem 0;
    }

    .faq-question {
        font-size: 14px;
        padding: 1.25rem 0;
        gap: 14px;
    }

    .faq-icon {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    /* Fix answer margin — remove the 52px indent */
    .faq-answer {
        margin-left: 44px;
        padding: 0 0 1.25rem;
    }

    .faq-answer p {
        font-size: 13px;
        line-height: 1.7;
    }

    .faq-item.active .faq-answer {
        padding-bottom: 1.25rem;
    }

    .faq-bg-image {
        display: none;
    }
}

@media (max-width: 390px) {
    .faq-main-title {
        font-size: 1.25rem;
    }

    .faq-question {
        font-size: 13px;
    }

    .faq-answer {
        margin-left: 36px;
    }

    .faq-answer p {
        font-size: 12.5px;
    }
}


/* ==========================================
   13. FOOTER (ALL PAGES)
   ========================================== */
@media (max-width: 768px) {

    /* Footer grid — collapse to 2 columns */
    .footer-new-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* Brand spans full width */
    .footer-new-brand {
        grid-column: 1 / -1;
    }

    .footer-new-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {

    /* Footer — eliminate white gap to FAQ above */
    .footer-new {
        padding-top: 4rem;
        margin-top: -2px;
        /* overlap to kill any sub-pixel white line */
    }

    /* Curve — subtle transition, not a giant swoosh */
    .footer-new-curve svg {
        height: 30px;
    }

    /* Newsletter CTA */
    .footer-newsletter-wrap {
        margin-top: -50px;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .footer-newsletter-card {
        padding: 2rem 1.5rem;
        border-radius: 22px;
    }

    .footer-newsletter-card h2 {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .footer-newsletter-card p {
        font-size: 13px;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }

    /* Stack the form vertically */
    .footer-newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Email input — override flex:1 from original, make prominent */
    .footer-newsletter-form input {
        flex: none !important;
        width: 100% !important;
        height: 52px !important;
        min-height: 52px;
        font-size: 15px;
        padding: 0.875rem 1.25rem;
        border-radius: 14px;
        border: 2px solid rgba(0, 0, 0, 0.08);
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        box-sizing: border-box;
    }

    .footer-newsletter-form input::placeholder {
        color: #999;
        font-size: 14px;
    }

    .footer-newsletter-form button {
        width: 100%;
        height: 52px;
        font-size: 15px;
        padding: 0 1.5rem;
        border-radius: 12px;
        justify-content: center;
    }

    /* Footer grid — single column on mobile */
    .footer-new-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-new-brand {
        grid-column: auto;
    }

    .footer-new-content {
        padding: 1.5rem 1.25rem 2rem;
    }

    .footer-new-brand .brand-logo span {
        font-size: 20px;
    }

    .footer-new-brand .brand-logo img {
        height: 28px;
    }

    .footer-new-brand .brand-desc {
        font-size: 13px;
        max-width: 100%;
        margin-bottom: 1.25rem;
    }

    .footer-new-col h4 {
        font-size: 15px;
        margin-bottom: 0.875rem;
    }

    .footer-new-col ul {
        gap: 0.625rem;
    }

    .footer-new-col ul li a {
        font-size: 13px;
    }

    .footer-new-col .contact-item {
        font-size: 13px;
    }

    /* Footer bottom */
    .footer-new-bottom {
        padding-top: 1.5rem;
        font-size: 12px;
        gap: 0.75rem;
    }

    .footer-new-bottom-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-new-bottom-links a {
        font-size: 12px;
    }

    /* Grass image */
    .footer-grass {
        height: 70px;
        margin-top: -1.5rem;
    }

    /* Social bar */
    .footer-social-bar {
        border-radius: 10px;
    }

    .footer-social-bar a {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 390px) {
    .footer-new {
        padding-top: 5rem;
    }

    .footer-new-curve svg {
        height: 28px;
    }

    .footer-newsletter-wrap {
        margin-top: -70px;
    }

    .footer-newsletter-card {
        padding: 1.75rem 1.25rem;
    }

    .footer-newsletter-card h2 {
        font-size: 1.15rem;
    }

    .footer-grass {
        height: 55px;
    }
}


/* ==========================================
   14. ABOUT PAGE
   ========================================== */
@media (max-width: 480px) {

    /* Section 1: Company Profile */
    .about-company-section {
        padding: 4rem 0;
    }

    .about-title {
        font-size: 1.5rem;
    }

    .about-subtitle {
        font-size: 0.75rem;
        padding-left: 1.5rem;
    }

    .about-subtitle::before {
        width: 14px;
    }

    .about-lead-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .bullet-item {
        padding: 1rem;
        border-radius: 16px;
        gap: 1rem;
    }

    .bullet-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
        border-radius: 10px;
    }

    .bullet-content h5 {
        font-size: 1rem;
    }

    .bullet-content p {
        font-size: 0.85rem;
    }

    /* Visual content — mobile */
    .about-visual-content {
        min-height: auto;
    }

    .about-main-image {
        position: relative;
        width: 100%;
        height: 280px;
        border-radius: 20px;
    }

    /* Section 2: Vision & Mission */
    .about-vm-section {
        padding: 4rem 0;
    }

    .vision-glass-card {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .vision-title-gradient {
        font-size: 1.5rem;
    }

    .vision-text-premium {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .vision-watermark-icon {
        font-size: 10rem;
        top: -20px;
        right: -20px;
    }

    .vision-centerpiece {
        margin-bottom: 4rem;
    }

    .vision-centerpiece::after {
        height: 8rem;
        bottom: -7rem;
    }

    .glowing-pill-badge {
        font-size: 0.9rem;
        padding: 0.6rem 1.75rem;
        letter-spacing: 1px;
        border-width: 6px;
    }

    .timeline-item {
        margin-bottom: 2.5rem;
        padding-left: 50px;
    }

    .timeline-leaf {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .timeline-stem {
        left: 15px;
    }

    .timeline-leaf {
        left: 15px;
    }

    .timeline-content.glass-card {
        padding: 1.75rem 1.25rem;
        border-radius: 18px;
    }

    .mission-number {
        font-size: 2rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    /* Section 3: Core Values */
    .about-values-section {
        padding: 4rem 0 5rem;
    }

    .value-card {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }

    .value-icon {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
    }

    .value-title {
        font-size: 1.15rem;
    }

    .value-desc {
        font-size: 0.85rem;
    }

    /* Section 4: Green House / Facilities */
    .about-greenhouse-section {
        padding: 4rem 0;
    }

    .about-greenhouse-section::before,
    .about-greenhouse-section::after {
        display: none;
        /* Hide giant leaf watermarks on mobile */
    }

    .greenhouse-header {
        margin-bottom: 3rem;
    }

    .greenhouse-intro {
        font-size: 0.95rem;
    }

    .twin-card {
        border-radius: 24px;
    }

    .card-map-cover {
        height: 180px;
    }

    .card-content-body {
        padding: 0 1.5rem 2rem;
    }

    .hub-icon-box {
        width: 60px;
        height: 60px;
        margin-top: -30px;
        font-size: 1.5rem;
    }

    .hub-title-wrap h4 {
        font-size: 1.15rem;
    }

    .hub-title-wrap p {
        font-size: 0.85rem;
    }

    .gh-counter,
    .gh-plus {
        font-size: 1.75rem;
    }

    .plant-tag {
        font-size: 0.72rem;
        padding: 0.3rem 0.75rem;
    }

    .btn-hub-action {
        font-size: 0.85rem;
        padding: 0.65rem 1.5rem;
    }
}

@media (max-width: 390px) {
    .about-company-section {
        padding: 3rem 0;
    }

    .about-title {
        font-size: 1.35rem;
    }

    .about-main-image {
        height: 240px;
    }

    .vision-glass-card {
        padding: 2rem 1.25rem;
    }

    .vision-title-gradient {
        font-size: 1.35rem;
    }

    .vision-text-premium {
        font-size: 0.95rem;
    }

    .card-map-cover {
        height: 160px;
    }
}


/* ==========================================
   15. SERVICES PAGE
   ========================================== */
@media (max-width: 480px) {

    /* Category section */
    .svc-kategori-section {
        padding: 3rem 0 4rem;
    }

    .svc-section-header {
        margin-bottom: 2rem;
    }

    .svc-section-title {
        font-size: 1.5rem;
    }

    .svc-section-subtitle {
        font-size: 0.9rem;
    }

    .svc-section-eyebrow {
        font-size: 0.7rem;
    }

    /* Showcase banner */
    .svc-showcase-banner {
        padding: 1.5rem 1.25rem;
        border-radius: 18px;
        margin-bottom: 2.5rem;
    }

    .svc-showcase-title {
        font-size: 1.25rem;
    }

    .svc-showcase-desc {
        font-size: 0.85rem;
    }

    .svc-hero-num {
        font-size: 3.5rem;
    }

    .svc-hero-num-fill {
        font-size: 3.5rem;
    }

    .svc-hero-num-plus {
        font-size: 1.5rem;
    }

    .svc-hero-num-label {
        font-size: 0.7rem;
    }

    /* Stat items */
    .svc-stat-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .svc-stat-number {
        font-size: 1.75rem;
    }

    .svc-stat-label {
        font-size: 0.72rem;
    }

    /* Service cards */
    .svc-card-img-wrap {
        height: 180px;
    }

    .svc-card-content {
        padding: 1.25rem 1.25rem 0;
    }

    .svc-card-title {
        font-size: 1rem;
    }

    .svc-card-text {
        font-size: 0.825rem;
    }

    .svc-card-footer {
        padding: 1rem 1.25rem;
    }

    .svc-card-link {
        font-size: 0.8rem;
    }

    .svc-card-link-arrow {
        width: 30px;
        height: 30px;
    }

    /* CTA Section */
    .svc-cta-section {
        padding: 4rem 0;
    }

    .svc-cta-title {
        font-size: 1.35rem;
    }

    .svc-cta-text {
        font-size: 0.9rem;
    }

    .svc-cta-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1.25rem;
    }
}

@media (max-width: 390px) {
    .svc-section-title {
        font-size: 1.35rem;
    }

    .svc-showcase-title {
        font-size: 1.15rem;
    }

    .svc-hero-num {
        font-size: 3rem;
    }

    .svc-hero-num-fill {
        font-size: 3rem;
    }
}


/* ==========================================
   16. PRODUCTS PAGE
   ========================================== */
@media (max-width: 768px) {
    .product-page-wrap {
        padding: 0 1rem;
    }

    .product-hero-banner-content {
        padding: 2rem 1.5rem;
    }

    .product-hero-banner-content h1 {
        font-size: 1.5rem;
    }

    .product-hero-banner-content p {
        font-size: 0.85rem;
    }

    .my-listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .sub-category-pills {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .product-hero-banner {
        margin-bottom: 2rem;
        border-radius: 0.75rem;
    }

    .product-hero-banner-content {
        padding: 1.5rem 1.25rem;
    }

    .product-hero-banner-content h1 {
        font-size: 1.25rem;
    }

    .product-hero-banner-content p {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        padding: 0.5rem 1rem;
        font-size: 12px;
    }

    .my-listings-section {
        margin-bottom: 3rem;
    }

    .my-listings-header h2 {
        font-size: 1.15rem;
    }

    .my-listings-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .listing-card {
        padding: 1rem;
        border-radius: 0.75rem;
    }

    .listing-card h3 {
        font-size: 0.85rem;
    }

    .feature-header h2 {
        font-size: 1.25rem;
    }

    .feature-tab {
        font-size: 12px;
        padding: 0.5rem 1rem;
    }

    .sub-pill {
        font-size: 11px;
        padding: 0.35rem 0.75rem;
    }

    .product-search-wrap {
        max-width: 100%;
    }

    .product-search-wrap input {
        font-size: 13px;
    }

    .product-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .pcard {
        padding: 0.75rem;
        border-radius: 0.75rem;
    }

    .pcard-name {
        font-size: 11.5px;
    }

    .pcard-desc {
        font-size: 10px;
    }

    .pcard-price {
        font-size: 11px;
    }

    .pcard-type-pill {
        font-size: 9px;
    }

    .product-result-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .result-bar-sort {
        width: 100%;
    }

    .sort-select {
        flex: 1;
    }

    .product-pagination .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .product-hero-banner-content h1 {
        font-size: 1.1rem;
    }

    .pcard-name {
        font-size: 11px;
    }

    .pcard {
        padding: 0.625rem;
    }
}


/* ==========================================
   17. PORTFOLIO PAGE
   ========================================== */
@media (max-width: 480px) {

    /* Portfolio shares classes with home project cards & card system from app.css */
    .card-image {
        height: 180px;
    }

    .card-body {
        padding: 1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.8rem;
    }

    .card-meta {
        font-size: 0.65rem;
        gap: 0.5rem;
    }

    .card-footer {
        padding: 0.75rem 1rem;
    }
}


/* ==========================================
   18. ARTICLES / BERITA PAGE
   ========================================== */
@media (max-width: 480px) {

    /* News hero */
    .news-hero {
        height: 260px;
        border-radius: 0.75rem;
        margin-bottom: 1rem;
    }

    .news-hero-content {
        padding: 1.25rem;
    }

    .news-hero-category {
        font-size: 10px;
        padding: 0.2rem 0.75rem;
        margin-bottom: 0.5rem;
    }

    .news-hero-content h1 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    /* Carousel dots */
    .news-carousel-dots {
        margin-top: 1rem;
        margin-bottom: 2rem;
        gap: 0.5rem;
    }

    .news-carousel-dot {
        width: 8px;
        height: 8px;
    }

    /* Filter bar */
    .news-filter-bar {
        margin-bottom: 1.5rem;
        gap: 1rem;
    }

    .news-filter-bar h2 {
        font-size: 1.15rem;
    }

    .news-category-tabs {
        gap: 1rem;
    }

    .news-category-tabs a {
        font-size: 12px;
    }

    .news-search-bar input {
        font-size: 13px;
    }

    /* News cards */
    .news-card-image {
        height: 180px;
    }

    .news-card-body {
        padding: 1rem;
    }

    .news-card-body h3 {
        font-size: 0.925rem;
    }

    .news-card-body .news-card-excerpt {
        font-size: 12px;
        margin-bottom: 1rem;
    }

    .news-card-footer {
        padding-top: 0.75rem;
    }

    .news-card-meta {
        font-size: 10px;
    }

    .news-card-readmore {
        font-size: 11px;
    }

    /* News pagination */
    .news-pagination {
        gap: 0.35rem;
    }
}

@media (max-width: 390px) {
    .news-hero {
        height: 230px;
    }

    .news-hero-content h1 {
        font-size: 1rem;
    }

    .news-card-image {
        height: 160px;
    }
}


/* ==========================================
   19. CONTACT PAGE
   ========================================== */
@media (max-width: 480px) {
    .contact-section {
        padding: 3rem 0 5rem;
    }

    .contact-grid {
        gap: 3rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .contact-desc {
        font-size: 14px;
        margin-bottom: 1.5rem;
    }

    .contact-input {
        padding: 0.75rem 1rem;
        font-size: 14px;
        border-radius: 10px;
    }

    .contact-label {
        font-size: 13px;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 14px;
    }

    .contact-info-wrap {
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
    }

    .contact-info-item {
        gap: 1rem;
    }

    .contact-info-text strong {
        font-size: 14px;
    }

    .contact-info-text p,
    .contact-info-text a {
        font-size: 13px;
    }

    /* Google Maps iframe */
    .section-gray [style*="height: 400px"] {
        height: 280px !important;
    }
}

@media (max-width: 390px) {
    .contact-title {
        font-size: 1.35rem;
    }

    .contact-info-wrap {
        padding: 1.5rem 1rem;
    }
}


/* ==========================================
   20. MISC — COMMON COMPONENTS
   ========================================== */

/* WhatsApp floating button */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 4.5rem;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* Breadcrumb on mobile */
@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.7rem;
        gap: 0.35rem;
    }
}

/* Old Header (app.blade.php pages) — ensure compatibility */
@media (max-width: 480px) {
    .header {
        z-index: 1000;
    }

    .logo img {
        height: 36px;
    }

    .logo-primary {
        font-size: 1rem;
    }

    .logo-secondary {
        font-size: 0.7rem;
    }
}

/* Pagination — touch friendly on all pages */
@media (max-width: 480px) {

    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }
}