/* ============================================================
   landing.css — SPK Hama | Fully Responsive
   ============================================================ */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-dark:   #1b5e20;
    --green-mid:    #2e7d32;
    --green-light:  #4caf50;
    --green-pale:   #a5d6a7;
    --green-bg:     #f4f8f4;
    --green-bg2:    #f0f7f0;
    --white:        #ffffff;
    --shadow-sm:    0 4px 15px rgba(0,0,0,0.08);
    --shadow-md:    0 10px 30px rgba(0,0,0,0.12);
    --shadow-lg:    0 20px 50px rgba(0,0,0,0.15);
    --radius:       14px;
    --radius-sm:    8px;
    --transition:   0.3s ease;
    --nav-h:        68px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--green-bg);
    color: var(--green-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    height: var(--nav-h);
    position: fixed;
    inset-block-start: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
    gap: 16px;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Logo */
.logo {
    font-weight: 700;
    font-size: 20px;
    color: var(--white);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.3px;
    text-decoration: none;
}

.navbar.scrolled .logo { color: var(--green-dark); }

/* Nav Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255,255,255,0.92);
    font-weight: 500;
    font-size: 14.5px;
    position: relative;
    transition: color var(--transition);
    white-space: nowrap;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--green-pale);
    left: 0;
    bottom: -5px;
    transition: width var(--transition);
    border-radius: 2px;
}

.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after { width: 100%; }

.navbar.scrolled .nav-menu a { color: var(--green-dark); }
.navbar.scrolled .nav-menu a:hover { color: var(--green-mid); }
.navbar.scrolled .nav-menu a::after { background: var(--green-light); }

/* Login button (desktop) */
.btn-login {
    background: linear-gradient(135deg, var(--green-mid), #66bb6a);
    color: var(--white) !important;
    padding: 9px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.btn-login::after { display: none !important; }

/* Mobile login (inside drawer) */
.btn-login-mobile { display: none !important; }

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--white);
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    transition: color var(--transition);
    flex-shrink: 0;
}

.navbar.scrolled .menu-toggle { color: var(--green-dark); }

/* Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
    backdrop-filter: blur(2px);
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0,0,0,0.52), rgba(0,0,0,0.52)),
        url('https://images.unsplash.com/photo-1500382017468-9049fed747ef')
        center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: calc(var(--nav-h) + 40px) 24px 60px;
}

.hero-inner {
    max-width: 680px;
    width: 100%;
    animation: fadeUp 0.9s ease both;
}

.hero h1 {
    font-size: clamp(26px, 5vw, 54px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: clamp(13px, 2vw, 17px);
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero .btn {
    background: linear-gradient(135deg, var(--green-mid), #66bb6a);
    padding: 13px 32px;
    border-radius: 30px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(0,0,0,0.28);
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero .btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 90px 60px;
    text-align: center;
}

.section:nth-child(even) { background: var(--green-bg2); }

.section h2 {
    font-size: clamp(20px, 3.5vw, 34px);
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 14px;
}

.section > p {
    font-size: clamp(13px, 1.6vw, 16px);
    color: #444;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ============================================================
   GRID & CARDS
   ============================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 50px;
    text-align: left;
}

.card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(27,94,32,0.06);
}

.card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: var(--shadow-lg);
}

.card h1,
.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.card p { font-size: 14px; color: #555; line-height: 1.65; }

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 14px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Steps (Cara Kerja) */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.steps > div {
    background: var(--white);
    padding: 28px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--green-light);
    transition: transform 0.3s ease;
}

.steps > div:hover { transform: translateY(-6px); }

.steps h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.steps p { font-size: 14px; color: #555; }

/* Stat cards */
.card h3:is(.stat) { font-size: 32px; font-weight: 700; color: var(--green-mid); }

/* ============================================================
   FORM
   ============================================================ */
form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

form input,
form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid #dde;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: #fafcfa;
    transition: border-color var(--transition), box-shadow var(--transition);
    color: var(--green-dark);
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
    background: var(--white);
}

form textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   BUTTON
   ============================================================ */
.btn {
    background: linear-gradient(135deg, var(--green-mid), var(--green-light));
    color: var(--white);
    padding: 11px 24px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}

.btn:hover {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.85);
    padding: 32px 24px;
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
}

/* ============================================================
   MAP
   ============================================================ */
.map-wrapper {
    margin-top: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-wrapper iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

/* Alert success */
.alert-success {
    background: #e8f5e9;
    border-left: 4px solid var(--green-light);
    color: var(--green-dark);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-top: 14px;
}

/* ============================================================
   HERO COMPONENTS
   ============================================================ */
.hero-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 12px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn-outline {
    background: rgba(255,255,255,0.18) !important;
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255,255,255,0.4) !important;
    box-shadow: none !important;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.28) !important;
}

.hero-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat { text-align: center; }

.hero-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-stat-label {
    display: block;
    font-size: 12px;
    opacity: 0.75;
    margin-top: 4px;
}

/* ============================================================
   CARD VARIANTS
   ============================================================ */
.card-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.card-icon-box {
    width: 48px;
    height: 48px;
    background: #e8f5e9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.card-accent-light { border-left: 4px solid var(--green-light); }
.card-accent-mid   { border-left: 4px solid #66bb6a; }
.card-accent-dark  { border-left: 4px solid var(--green-mid); }

.grid-tentang {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   STEPS VARIANTS
   ============================================================ */
.steps-center {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.step-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.table-wrapper {
    max-width: 860px;
    margin: 40px auto 0;
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 500px;
}

.compare-table thead tr {
    background: var(--green-dark);
    color: var(--white);
}

.compare-table thead th {
    padding: 14px 18px;
    font-weight: 600;
    text-align: center;
}

.compare-table thead th.col-aspek {
    text-align: left;
    border-radius: 14px 0 0 0;
}

.compare-table thead th:last-child {
    border-radius: 0 14px 0 0;
}

.compare-table tbody tr { background: var(--white); }
.compare-table tbody tr.row-alt { background: #f9fdf9; }

.compare-table tbody td {
    padding: 13px 18px;
    border-bottom: 1px solid #e8f5e9;
}

.compare-table tbody td.aspek {
    font-weight: 500;
    color: var(--green-dark);
}

.compare-table tbody td.val-manual {
    text-align: center;
    color: #aaa;
}

.compare-table tbody td.val-spk {
    text-align: center;
    color: var(--green-mid);
    font-weight: 600;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.section-cta {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid)) !important;
    color: var(--white);
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    color: var(--white) !important;
    font-size: clamp(22px, 4vw, 34px);
}

.cta-desc {
    color: rgba(255,255,255,0.85);
    margin: 14px 0 30px;
    font-size: clamp(13px, 1.8vw, 16px);
    max-width: 100%;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-white {
    background: var(--white) !important;
    color: var(--green-dark) !important;
    padding: 13px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-cta-white:hover {
    background: #f0f7f0 !important;
    transform: scale(1.05);
}

.btn-cta-outline {
    background: transparent !important;
    color: var(--white) !important;
    padding: 13px 32px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    border: 1.5px solid rgba(255,255,255,0.6) !important;
    box-shadow: none !important;
}

.btn-cta-outline:hover {
    background: rgba(255,255,255,0.15) !important;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media screen and (max-width: 1024px) {

    .navbar { padding: 0 32px; }

    .section { padding: 70px 36px; }

    .grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
    .steps { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media screen and (max-width: 768px) {

    :root { --nav-h: 60px; }

    /* NAVBAR */
    .navbar { padding: 0 16px; }

    .btn-login { display: none; }

    .menu-toggle { display: block; }

    /* DRAWER */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 270px;
        height: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 24px 32px;
        gap: 0;
        box-shadow: -6px 0 24px rgba(0,0,0,0.12);
        transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-menu.active { right: 0; }

    .nav-menu a {
        color: var(--green-dark) !important;
        width: 100%;
        padding: 13px 0;
        border-bottom: 1px solid #e8f5e9;
        font-size: 15px;
        transition: padding-left 0.2s;
    }

    .nav-menu a:hover {
        color: var(--green-mid) !important;
        padding-left: 8px;
    }

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

    /* Mobile login inside drawer */
    .btn-login-mobile {
        display: block !important;
        background: linear-gradient(135deg, var(--green-mid), #66bb6a) !important;
        color: var(--white) !important;
        padding: 12px 18px !important;
        border-radius: 30px !important;
        text-align: center;
        margin-top: 14px;
        font-weight: 500;
        font-size: 14px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.18);
        border-bottom: none !important;
        width: 100%;
        transition: opacity 0.2s;
    }

    .btn-login-mobile:hover {
        opacity: 0.9;
        padding-left: 18px !important;
    }

    /* HERO */
    .hero {
        padding: calc(var(--nav-h) + 32px) 20px 50px;
        min-height: 92vh;
    }

    .hero .btn { display: block; width: 100%; text-align: center; }

    /* SECTION */
    .section { padding: 52px 18px; }

    /* GRIDS */
    .grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 32px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
    }

    /* BUTTON */
    .btn { width: 100%; text-align: center; }

    /* MAP */
    .map-wrapper iframe { height: 300px; }

    /* FOOTER */
    .footer { padding: 24px 14px; font-size: 12px; }

}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 420px)
   ============================================================ */
@media screen and (max-width: 420px) {

    .navbar { padding: 0 12px; }

    .section { padding: 42px 14px; }

    .card { padding: 22px 18px; }

    .hero h1 { font-size: clamp(22px, 7vw, 30px); }

}

/* =====================================
   MOBILE ADDITIONS 
   ====================================== */
@media screen and (max-width: 768px) {

    .btn-cta-white,
    .btn-cta-outline { width: 100%; text-align: center; }

    .hero-stats   { gap: 20px; margin-top: 32px; padding-top: 24px; }
    .hero-stat-number { font-size: 22px; }
    .hero-cta     { flex-direction: column; }
    .btn-outline  { width: 100%; }

    .compare-table              { font-size: 13px; }
    .compare-table thead th,
    .compare-table tbody td     { padding: 10px 12px; }

}