/* index.php landing — Warung Lalagung */
:root {
    --wl-green: #55b84a;
    --wl-dark: #1a1a1a;
    --wl-muted: #e8e8e8;
    --wl-card: #ffffff;
    --wl-text: #2a2a2a;
}
* { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    margin: 0;
    font-family: "Barlow Condensed", "Inter", sans-serif;
    letter-spacing: 0.06em;
    color: var(--wl-text);
    background: var(--wl-dark);
    overflow-x: hidden;
    /* Space for floating WhatsApp + iPhone home indicator */
    padding-bottom: max(5.5rem, calc(env(safe-area-inset-bottom, 0px) + 4rem));
}
a { color: inherit; }

/* --- Sticky nav (Mobile first) --- */
.wl-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #000;
    border-bottom: 2px solid var(--wl-green);
    box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.wl-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem max(1rem, env(safe-area-inset-left)) 1.25rem max(1rem, env(safe-area-inset-right));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}
.wl-brand {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}
.wl-nav-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.25rem 0 0.5rem;
    justify-content: flex-start;
    scrollbar-width: thin;
}
.wl-nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: .9;
    flex: 0 0 auto;
    padding: 0.35rem 0;
}
.wl-nav-links a:hover { color: var(--wl-green); }
.wl-nav-links a:active { opacity: 0.85; }

/* --- Hero (Mobile first) --- */
.wl-hero {
    background: linear-gradient(165deg, #243222 0%, #121512 55%, #0d0f0d 100%);
    color: #f5f5f5;
    padding: 2.5rem max(1rem, env(safe-area-inset-left)) 3rem max(1rem, env(safe-area-inset-right));
}
.wl-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    text-align: center;
}
.wl-kicker {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: .2em;
    color: var(--wl-green);
    margin-bottom: 0.5rem;
}
.wl-hero h1 {
    margin: 0 0 1rem;
    font-size: 2.1rem;
    line-height: 1.15;
    font-weight: 700;
}
.wl-hero p.lead {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 100%;
    opacity: .92;
    letter-spacing: .04em;
}
.wl-cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}
.wl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    letter-spacing: .08em;
    font-family: inherit;
    min-height: 48px;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.wl-btn-primary {
    background: var(--wl-green);
    color: #0b0b0b;
}
.wl-btn-primary:hover { filter: brightness(1.05); }
.wl-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
}
.wl-hero-art {
    text-align: center;
    margin-top: 1rem;
}
.wl-hero-art img {
    max-width: min(300px, 100%);
    height: auto;
    filter: drop-shadow(0 20px 35px rgba(0,0,0,.55));
}

/* --- Sections (Mobile first) --- */
.wl-section {
    background: #f0f2ef;
    padding: 2.5rem max(1rem, env(safe-area-inset-left)) 2.5rem max(1rem, env(safe-area-inset-right));
}
.wl-section.alt { background: #fff; }
.wl-section-inner {
    max-width: 900px;
    margin: 0 auto;
}
.wl-section h2 {
    margin: 0 0 1rem;
    font-size: 1.6rem;
    letter-spacing: .08em;
}
.wl-section p {
    margin: 0 0 1rem;
    line-height: 1.6;
    font-size: 1.05rem;
    letter-spacing: .05em;
}

/* --- Packages (Mobile first) --- */
.wl-packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.wl-package {
    background: var(--wl-card);
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* --- Direct Package Card Styles (Mobile First) --- */
.wl-package-banner {
    width: 100%;
    height: 160px;
    overflow: hidden;
}
.wl-package-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.wl-package:hover .wl-package-banner img {
    transform: scale(1.05);
}
.wl-package-body {
    padding: 1.25rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}
.wl-package-header {
    border-bottom: 2px solid var(--wl-muted);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.wl-package-price {
    font-size: 1.05rem;
    color: #2e7d32;
    font-weight: 700;
    flex-shrink: 0;
}
.wl-package h3 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: .06em;
    flex-grow: 1;
    font-weight: 700;
}
.wl-package ul {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.6;
    font-size: 1rem;
    color: #4a4a4a;
}
.wl-btn-order-direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    margin-top: auto;
    width: 100%;
    min-height: 40px;
}
.wl-btn-order-direct:hover {
    background: var(--wl-green);
    color: #000;
    box-shadow: 0 6px 15px rgba(85, 184, 74, 0.3);
}

/* --- Gallery strip (Mobile first) --- */
.wl-strip {
    background: #2b3a28;
    padding: 1.5rem max(1rem, env(safe-area-inset-left)) 1.5rem max(1rem, env(safe-area-inset-right));
}
.wl-strip-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}
.wl-strip img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,.4));
}

/* --- Order form (Mobile first) --- */
.wl-order {
    background: linear-gradient(180deg, #e9ece8 0%, #dfe6dd 100%);
    padding: 2.5rem max(1rem, env(safe-area-inset-left)) 3rem max(1rem, env(safe-area-inset-right));
}
.wl-order-inner {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1rem 1.75rem;
    box-shadow: 0 16px 45px rgba(0,0,0,.1);
}
.wl-order-inner h2 { margin-top: 0; }
.wl-field {
    margin-bottom: 1rem;
}
.wl-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.95rem;
}
.wl-field input[type="text"],
.wl-field input[type="tel"],
.wl-field textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: max(1rem, 16px);
    font-family: inherit;
}
.wl-field textarea { min-height: 88px; resize: vertical; }
.wl-products {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: #fafafa;
}
.wl-product-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e5e5;
}
.wl-product-row:last-child { border-bottom: none; }
.wl-product-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #ddd;
    background: #f0f0f0;
}
.wl-product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.15rem;
}
.wl-product-name {
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 600;
}
.wl-product-price {
    font-size: 0.9rem;
    color: #2e7d32;
    font-weight: 700;
}
.wl-product-row input[type="number"] {
    width: 64px;
    min-height: 44px;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #bbb;
    font-size: max(1rem, 16px);
    text-align: center;
}

.wl-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.wl-msg {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: none;
    font-size: 0.95rem;
}
.wl-msg.ok { background: #e6f6e8; color: #1b4d22; display: block; }
.wl-msg.err { background: #fdeaea; color: #6b1c1c; display: block; }

/* --- Footer (Mobile first) --- */
.wl-footer {
    background: var(--wl-green);
    color: #fff;
    padding: 2.5rem 1rem 1.75rem;
    text-align: center;
}
.wl-footer img.logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 12px 22px rgba(0,0,0,.25));
}
.wl-footer p { margin: 0.35rem 0; letter-spacing: .08em; font-size: 0.95rem; }
.wl-footer a { color: #fff; text-decoration: underline; }
.wl-footer a:hover { color: #eee; }

.wl-scroll-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0.65rem 1.25rem;
    background: #000;
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.wl-scroll-top:hover {
    background: #111;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.wl-scroll-top:active {
    transform: translateY(0);
}

/* ==========================================================================
   DESKTOP MEDIA QUERIES (min-width: 600px, 768px, 900px)
   ========================================================================== */

/* Medium Devices (e.g. Tablets) */
@media (min-width: 600px) {
    .wl-packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    .wl-package {
        padding: 1.5rem 1.35rem;
    }
    .wl-package h3 {
        font-size: 1.25rem;
    }
    .wl-package ul {
        font-size: 1.05rem;
    }
    .wl-product-row {
        gap: 1rem;
    }
    .wl-product-img {
        width: 64px;
        height: 64px;
    }
    .wl-product-name {
        font-size: 1.05rem;
    }
    .wl-product-price {
        font-size: 0.95rem;
    }
    .wl-product-row input[type="number"] {
        width: 72px;
    }
}

/* Tablets and Up (e.g. Navigation wrap and general sections) */
@media (min-width: 768px) {
    .wl-nav-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 1.25rem 1.25rem;
    }
    .wl-brand {
        text-align: left;
    }
    .wl-nav-links {
        flex-wrap: wrap;
        padding: 0;
        overflow-x: visible;
        justify-content: flex-end;
    }
    .wl-nav-links a {
        font-size: 1rem;
        padding: 0;
    }
    .wl-cta-row {
        flex-direction: row;
        align-items: center;
    }
    .wl-btn {
        width: auto;
    }
    .wl-section {
        padding: 3.5rem 1.25rem;
    }
    .wl-section h2 {
        font-size: 2.1rem;
    }
    .wl-packages-grid {
        margin-top: 2rem;
    }
    .wl-strip {
        padding: 2.5rem 1rem;
    }
    .wl-strip-inner {
        gap: 1.5rem;
    }
    .wl-order {
        padding: 3.5rem 1.25rem 4rem;
    }
    .wl-order-inner {
        padding: 2rem 1.5rem 2.25rem;
    }
    .wl-footer {
        padding: 3rem 1.25rem 2rem;
    }
    .wl-footer img.logo {
        max-width: 200px;
    }
}

/* Large Screens (Hero split-view) */
@media (min-width: 900px) {
    .wl-hero {
        padding: 3.5rem 1.25rem 4.5rem;
    }
    .wl-hero-inner {
        grid-template-columns: 1.1fr 0.9fr;
        display: grid;
        text-align: left;
        gap: 2.5rem;
    }
    .wl-hero h1 {
        font-size: 3.2rem;
    }
    .wl-hero p.lead {
        font-size: 1.15rem;
        margin-bottom: 1.5rem;
    }
    .wl-hero-art {
        margin-top: 0;
    }
    .wl-hero-art img {
        max-width: min(420px, 100%);
    }
}

/* ==========================================================================
   PREMIUM POLISH MODULES (SEO, Lightbox, Total price, Animations)
   ========================================================================== */

/* --- Live Total Display Box --- */
.wl-order-total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    border: 2px solid var(--wl-green);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(85,184,74,0.08);
}
.wl-order-total-box span {
    font-weight: 700;
    font-size: 1.05rem;
}
.wl-order-total-box strong {
    font-size: 1.4rem;
    color: #2e7d32;
    font-weight: 700;
}
.wl-form-note {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin-top: 0.75rem;
}

/* --- Row Highlight Flash Animation --- */
.wl-row-highlight {
    animation: flashRow 1s ease;
}
@keyframes flashRow {
    0% { background-color: transparent; }
    30% { background-color: rgba(85, 184, 74, 0.25); }
    100% { background-color: transparent; }
}

/* --- Interactive Input Focus Effects --- */
.wl-field input:focus, 
.wl-field textarea:focus {
    border-color: var(--wl-green) !important;
    box-shadow: 0 0 8px rgba(85, 184, 74, 0.4);
    outline: none;
    transition: all 0.2s ease;
}

/* --- Entrance Hero Animations --- */
.wl-hero-inner > div {
    animation: fadeInUp 0.8s ease forwards;
}
.wl-hero-art img {
    animation: scaleIn 0.8s ease forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Lightbox Modal --- */
.wl-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}
.wl-lightbox.active {
    display: flex;
}
.wl-lightbox-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}
.wl-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}
.wl-lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Desktop Adaptations for Card Layout --- */
@media (min-width: 600px) {
    .wl-package {
        padding: 0; /* remove default padding so image spans edge-to-edge */
    }
    .wl-package-banner {
        height: 180px;
    }
    .wl-package-body {
        padding: 1.5rem 1.35rem;
        gap: 1rem;
    }
    .wl-package-header {
        padding-bottom: 0.75rem;
    }
    .wl-package h3 {
        font-size: 1.25rem;
    }
    .wl-package-price {
        font-size: 1.15rem;
    }
    .wl-package ul {
        font-size: 1.05rem;
    }
    .wl-btn-order-direct {
        font-size: 0.95rem;
    }
}
@media (min-width: 768px) {
    .wl-packages-grid {
        margin-top: 2rem;
    }
}