/* ==========================================================================
   Rumah Tortilla — Landing Page (gaya bento playful)
   Palet brand: espresso + amber tortilla, aksen biru & coral, hijau pill
   ========================================================================== */

:root {
    --espresso: #1a120d;
    --amber: #eeb04f;
    --amber-deep: #e7a13a;
    --blue: #a7d5e7;
    --coral: #e8825a;
    --green: #2f6b4f;
    --green-dark: #245439;
    --cream: #f4efe6;
    --cream-2: #fffdf8;
    --line: #e8dcc9;
    --ink: #1c1917;
    --muted: #6f6a63;
    --white: #ffffff;
    --radius: 30px;
    --radius-sm: 16px;
    --shadow: 0 14px 34px rgba(26, 18, 13, 0.10);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink); background: var(--cream); line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.display { font-family: 'Fredoka', 'Inter', sans-serif; font-weight: 700; letter-spacing: .01em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
    cursor: pointer; border: 0; transition: var(--transition); white-space: nowrap;
}
.btn-sm { padding: .6rem 1.2rem; font-size: .88rem; }
.btn-dark { background: var(--espresso); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(26,18,13,.25); }
.btn-green { background: var(--green); color: #fff; }
.w-full { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(244, 239, 230, .82); backdrop-filter: saturate(180%) blur(12px);
    transition: var(--transition);
}
.nav.scrolled { box-shadow: 0 3px 16px rgba(26,18,13,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.25rem; }
.brand img { border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-weight: 600; font-size: .95rem; transition: var(--transition); }
.nav-links a:hover { color: var(--amber-deep); }
.nav-links .nav-cta { background: var(--green); color: #fff; padding: .6rem 1.2rem; border-radius: 999px; }
.nav-links .nav-cta:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* ---------- Bento grid ---------- */
.wrap { padding: 1.25rem 0 2rem; }
.bento {
    display: grid; gap: 1rem;
    grid-template-columns: 1fr;
    grid-template-areas: "hero" "blue" "coral" "products";
}
.card { border-radius: var(--radius); position: relative; overflow: hidden; }

/* Hero */
.card-hero {
    grid-area: hero; background: linear-gradient(160deg, var(--amber), var(--amber-deep));
    display: flex; flex-direction: column; gap: 1rem; padding: 2rem;
    min-height: 340px;
}
.hero-text { position: relative; z-index: 2; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .74rem; font-weight: 700; color: var(--amber-deep); margin-bottom: .6rem; }
.eyebrow-dark { color: var(--espresso); opacity: .7; }
.hero-title { font-size: clamp(3rem, 12vw, 5.5rem); line-height: .9; color: var(--white); text-shadow: 0 3px 0 rgba(26,18,13,.12); margin-bottom: .8rem; }
.hero-sub { color: var(--espresso); font-weight: 500; max-width: 30ch; margin-bottom: 1.4rem; }
.hero-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.rating { line-height: 1.1; }
.rating-num { display: block; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--espresso); }
.rating-sub { font-size: .8rem; color: var(--espresso); opacity: .7; }
.hero-media { position: relative; align-self: center; margin-top: auto; }
.hero-media img { width: min(100%, 380px); aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }

/* Badges */
.badge-pill {
    position: absolute; font-family: 'Fredoka', sans-serif; font-weight: 700;
    color: #fff; background: var(--green); border-radius: 999px; padding: .5rem 1.1rem;
    font-size: .95rem; box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.badge-halal { top: 14px; right: 14px; }
.badge-fresh { bottom: 34px; left: 34px; }
.badge-pill { transition: transform .3s ease; }

/* ---------- Interaksi hover kartu bento ---------- */
.card-hero, .card-blue, .card-coral {
    transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
    will-change: transform;
}
.card-hero:hover, .card-blue:hover, .card-coral:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(26,18,13,.18);
}
.card-blue:hover .card-img, .card-coral:hover .card-img { transform: scale(1.06); }
.hero-media img { transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.card-hero:hover .hero-media img { transform: scale(1.06); }
.card-hero:hover .badge-halal, .card-coral:hover .badge-fresh { transform: scale(1.1) rotate(-3deg); }

/* Kartu warna (blue/coral) — copy di atas, gambar sebagai pita di bawah (anti-tumpuk) */
.card-blue { grid-area: blue; background: linear-gradient(160deg, #b6dced, var(--blue)); }
.card-coral { grid-area: coral; background: linear-gradient(160deg, #ef9068, var(--coral)); }
.card-blue, .card-coral {
    display: flex; flex-direction: column; justify-content: space-between; gap: 1.1rem;
    padding: 1.75rem; min-height: 240px;
}
.card-copy { position: relative; z-index: 2; }
.card-title { font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: .95; color: var(--espresso); margin-bottom: .5rem; }
.card-coral .card-title { color: var(--white); text-shadow: 0 2px 0 rgba(26,18,13,.12); }
.card-blue .card-copy p, .card-coral .card-copy p { font-weight: 500; margin-bottom: 1rem; }
.card-coral .card-copy p { color: #fff5ee; }
.card-blue .card-copy p { color: var(--espresso); }
.card-img {
    width: 100%; height: 150px; object-fit: cover;
    border-radius: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.14);
    transition: transform .5s cubic-bezier(.22,.61,.36,1);
}

/* Kartu produk */
.card-products {
    grid-area: products; background: var(--white); padding: 1.75rem;
    display: grid; gap: 1.25rem; align-content: start;
}
.products-title { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: .95; }
.product-list { list-style: none; display: grid; gap: .35rem; }
.product-list li { display: flex; align-items: center; gap: 1rem; padding: .7rem; border-radius: var(--radius-sm); transition: var(--transition); cursor: default; }
.product-list li:hover { background: var(--cream); transform: translateX(6px); box-shadow: 0 8px 20px rgba(26,18,13,.06); }
.product-list img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; transition: var(--transition); }
.product-list li:hover img { transform: scale(1.08); box-shadow: 0 6px 14px rgba(26,18,13,.16); }
.p-info { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.p-info strong { font-weight: 700; transition: color .25s ease; }
.product-list li:hover .p-info strong { color: var(--amber-deep); }
.p-info span { font-size: .85rem; color: var(--muted); }
.p-tag { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: .8rem; color: #fff; background: var(--green); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; transition: var(--transition); }
.product-list li:hover .p-tag { background: var(--green-dark); transform: rotate(-8deg) scale(1.08); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--cream-2); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
.section-head .eyebrow { color: var(--amber-deep); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.feature { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.9rem 1.6rem; transition: var(--transition); }
.section-alt .feature { background: var(--cream); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.2rem; color: #fff; }
.feature-icon svg { width: 27px; height: 27px; }
.fi-amber { background: var(--amber-deep); }
.fi-blue  { background: #5aa7c4; }
.fi-coral { background: var(--coral); }
.fi-green { background: var(--green); }
.feature h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.contact-info p { color: var(--muted); margin-bottom: 1.5rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.contact-list svg { width: 22px; height: 22px; color: var(--amber-deep); flex-shrink: 0; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .45rem; }
.form-row input, .form-row textarea {
    width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
    font-family: inherit; font-size: .95rem; background: var(--cream-2); color: var(--ink);
    transition: var(--transition); resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--amber-deep); box-shadow: 0 0 0 3px rgba(238,176,79,.25); background: #fff; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 1rem; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }

/* Footer */
.footer { background: var(--espresso); color: #d6cec4; padding: 2.5rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { border-radius: 9px; }
.footer-brand strong { color: #fff; font-family: 'Fredoka', sans-serif; }
.footer-brand small { color: #a8a29e; }
.footer-copy { font-size: .88rem; color: #a8a29e; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet: 2 kolom, kartu biru & coral berdampingan */
@media (min-width: 680px) {
    .bento {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "hero hero"
            "blue coral"
            "products products";
    }
    .card-hero { flex-direction: row; align-items: center; padding: 2.5rem; }
    .hero-text { max-width: 52%; }
    /* Foto memenuhi sisi kanan, menyatu ke warna amber lewat overlay */
    .hero-media {
        position: absolute; inset: 0 0 0 auto; width: 47%; margin: 0; align-self: stretch;
    }
    .hero-media img {
        width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover;
        border-radius: 0; box-shadow: none;
    }
    .hero-media::after {
        content: ""; position: absolute; inset: 0; pointer-events: none;
        background: linear-gradient(90deg,
            var(--amber) 0%, rgba(238,176,79,.7) 22%, rgba(238,176,79,0) 60%);
    }
    .badge-halal { top: 18px; right: 18px; z-index: 3; }
    .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 3rem; }
}

/* Laptop: bento penuh — hero tinggi di kiri, 2 kartu di kanan, produk full-width */
@media (min-width: 1000px) {
    .bento {
        grid-template-columns: 2fr 1fr;
        grid-template-areas:
            "hero blue"
            "hero coral"
            "products products";
    }
    .card-hero { min-height: 480px; }
    .hero-media { width: 48%; }
    .hero-text { max-width: 50%; }
}

/* Mobile: menu hamburger */
@media (max-width: 767px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
        background: var(--cream-2); padding: 1rem 1.25rem; align-items: stretch;
        transform: translateY(-130%); transition: var(--transition); box-shadow: var(--shadow);
        border-bottom: 1px solid var(--line);
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
    .nav-links .nav-cta { text-align: center; margin-top: .6rem; border-bottom: 0; }
    .card-blue, .card-coral { min-height: 0; }
}
