/* ============================================================
   FOGGYSIDE — permukaan air hutan
   Palet & tipografi diambil dari foto: air sage, riak,
   dan kelopak putih kecil berpusar emas.
   ============================================================ */

:root {
    /* Warna */
    --deep:      #313e2d;   /* lumut tua — teks utama          */
    --moss:      #56684c;   /* hijau sekunder                  */
    --water:     #7b9070;   /* hijau air                       */
    --sage:      #9fb191;   /* sage terang                     */
    --mist:      #c6d2bb;   /* air pucat                       */
    --haze:      #dde5d3;   /* kabut sangat pucat              */
    --surface:   #eaefe2;   /* latar halaman                   */
    --paper:     #f8f9f3;   /* kartu / kertas                  */
    --petal:     #ffffff;   /* bunga putih                     */
    --pollen:    #d7ce86;   /* inti bunga — aksen emas lembut  */
    --pollen-dp: #b0a558;   /* aksen emas lebih pekat          */
    --line:      rgba(49, 62, 45, .12);
    --line-soft: rgba(49, 62, 45, .07);

    /* Bayangan hijau lembut */
    --shadow-sm: 0 2px 10px rgba(49, 62, 45, .06);
    --shadow-md: 0 14px 40px -18px rgba(49, 62, 45, .32);
    --shadow-lg: 0 30px 70px -32px rgba(49, 62, 45, .45);

    /* Bentuk */
    --r-sm: 10px;
    --r-md: 18px;
    --r-lg: 26px;

    --shell: 1140px;

    --serif: "Fraunces", Georgia, serif;
    --sans:  "Nunito Sans", system-ui, -apple-system, sans-serif;
}

/* ---------- dasar ---------- */
* { box-sizing: border-box; }

/* Pastikan elemen dengan atribut [hidden] benar-benar tersembunyi,
   meski induknya memakai display flex/grid. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--deep);
    background:
        radial-gradient(1200px 700px at 78% -8%, #dfe8d4 0%, transparent 60%),
        radial-gradient(1000px 800px at 8% 108%, #d5e0c9 0%, transparent 55%),
        var(--surface);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 40px);
}

/* Container lebih lebar khusus grid koleksi, supaya di layar besar
   kartunya mengisi lebih penuh dan tidak menyisakan ruang kosong. */
.shell--wide { max-width: 1600px; }

/* ============================================================
   LATAR AIR + KELOPAK MENGAMBANG (dekoratif, di belakang semua)
   ============================================================ */
.water {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.ripples {
    position: absolute;
    inset: -20%;
    opacity: .5;
    background:
        repeating-radial-gradient(circle at 24% 30%, transparent 0 26px,
            rgba(255,255,255,.16) 26px 27px, transparent 27px 60px),
        repeating-radial-gradient(circle at 82% 64%, transparent 0 30px,
            rgba(123,144,112,.10) 30px 31px, transparent 31px 66px),
        repeating-radial-gradient(circle at 55% 92%, transparent 0 22px,
            rgba(255,255,255,.10) 22px 23px, transparent 23px 52px);
    animation: breathe 22s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1);    opacity: .5; }
    50%      { transform: scale(1.04); opacity: .62; }
}

.petals { position: absolute; inset: 0; }

.petal {
    position: absolute;
    width: 30px; height: 30px;
    background: no-repeat center/contain
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='5' r='3.3' fill='%23ffffff'/%3E%3Ccircle cx='18.6' cy='9.6' r='3.3' fill='%23fbfaf3'/%3E%3Ccircle cx='16' cy='17.2' r='3.3' fill='%23ffffff'/%3E%3Ccircle cx='8' cy='17.2' r='3.3' fill='%23fbfaf3'/%3E%3Ccircle cx='5.4' cy='9.6' r='3.3' fill='%23ffffff'/%3E%3Ccircle cx='12' cy='11.6' r='2.5' fill='%23d7ce86'/%3E%3C/svg%3E");
    opacity: .55;
    filter: drop-shadow(0 4px 6px rgba(49,62,45,.18));
}

.p1 { top: 12%; left: 9%;  width: 26px; height: 26px; animation: float 15s ease-in-out infinite; }
.p2 { top: 32%; left: 84%; width: 34px; height: 34px; animation: float 19s ease-in-out infinite reverse; }
.p3 { top: 63%; left: 16%; width: 22px; height: 22px; animation: float 17s ease-in-out infinite 1s; }
.p4 { top: 74%; left: 72%; width: 30px; height: 30px; animation: float 21s ease-in-out infinite reverse 2s; }
.p5 { top: 46%; left: 48%; width: 20px; height: 20px; opacity: .4; animation: float 24s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(14px, -12px) rotate(8deg); }
    50%      { transform: translate(-8px, 10px) rotate(-6deg); }
    75%      { transform: translate(10px, 8px) rotate(5deg); }
}

/* ============================================================
   TOPBAR / NAVIGASI
   ============================================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(234,239,226,.9), rgba(234,239,226,.66));
    border-bottom: 1px solid var(--line-soft);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--deep);
}
.brand__mark { color: var(--water); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
    font-family: var(--serif);
    font-weight: 560;
    font-size: 1.34rem;
    letter-spacing: .01em;
}
.brand__tag {
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--moss);
    margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
    text-decoration: none;
    color: var(--moss);
    font-size: .92rem;
    font-weight: 600;
    padding: 9px 15px;
    border-radius: 999px;
    transition: color .2s, background .2s;
}
.nav__link:hover  { color: var(--deep); background: rgba(123,144,112,.14); }
.nav__link.is-active { color: var(--deep); background: rgba(123,144,112,.2); }
.nav__link--ghost {
    border: 1px solid var(--line);
    color: var(--deep);
}
.nav__link--ghost:hover { background: var(--deep); color: var(--paper); border-color: var(--deep); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--deep);
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
}

/* ============================================================
   HERO — kolam
   ============================================================ */
.main { display: block; }

.hero { padding: clamp(30px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); }

.pond {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    padding: clamp(38px, 6vw, 72px) clamp(26px, 5vw, 60px);
    color: var(--paper);
    background:
        radial-gradient(120% 120% at 20% 0%, #7f9573 0%, #63795a 45%, #465a41 100%);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

/* Di layar lebar, hero jadi 2 kolom: teks kiri, pajangan kanan */
@media (min-width: 900px) {
    .pond {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        align-items: center;
        gap: clamp(30px, 4vw, 56px);
    }
}

/* Saat pond melebar penuh (di layar besar), jaga agar isinya tetap
   proporsional dengan menambah padding dalam supaya kolom tidak
   meregang terlalu jauh ke tepi. */
@media (min-width: 1400px) {
    .pond { padding-inline: clamp(60px, 6vw, 120px); }
}

.pond__text { position: relative; z-index: 2; }

/* Panel visual kanan (kartu tanaman mengambang) — HANYA untuk desktop.
   Di mobile benar-benar disembunyikan supaya tidak mengganggu. */
.pond__art { display: none !important; }

@media (min-width: 900px) {
    .pond__art {
        display: block !important;
        position: relative;
        z-index: 2;
        align-self: stretch;
        min-height: 340px;
    }
}

.pond-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 10px;
    background: rgba(255, 255, 255, .96);
    border-radius: 18px;
    box-shadow: 0 20px 45px -20px rgba(0, 0, 0, .5);
    animation: bob 7s ease-in-out infinite;
}
.pond-chip__img {
    width: 62px; height: 62px;
    flex: none;
    border-radius: 13px;
    background: radial-gradient(140% 120% at 50% 0%, #eef2e6 0%, #d6e0ca 100%);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.pond-chip__img img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.pond-chip__meta { display: flex; flex-direction: column; padding-right: 4px; }
.pond-chip__genus {
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--water);
    font-weight: 700;
}
.pond-chip__name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.02rem;
    color: var(--deep);
    line-height: 1.15;
    white-space: nowrap;
}

/* Posisi tiga kartu supaya terlihat mengambang bertumpuk */
.pond-chip--1 { top: 6%;  right: 0;   animation-delay: 0s;    }
.pond-chip--2 { top: 39%; right: 30%; animation-delay: 1.4s;  z-index: 3; }
.pond-chip--3 { top: 72%; right: 6%;  animation-delay: 2.6s;  }

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.pond::before {   /* riak dalam kolam */
    content: "";
    position: absolute;
    inset: -30%;
    z-index: -1;
    opacity: .6;
    background:
        repeating-radial-gradient(circle at 30% 24%, transparent 0 34px,
            rgba(255,255,255,.14) 34px 35px, transparent 35px 74px),
        repeating-radial-gradient(circle at 78% 78%, transparent 0 28px,
            rgba(255,255,255,.09) 28px 29px, transparent 29px 64px);
    animation: breathe 18s ease-in-out infinite;
}
.pond::after {    /* satu kelopak dekoratif di kolam */
    content: "";
    position: absolute;
    top: 14%; left: 8%;
    width: 40px; height: 40px;
    background: no-repeat center/contain
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='5' r='3.3' fill='%23ffffff'/%3E%3Ccircle cx='18.6' cy='9.6' r='3.3' fill='%23fbfaf3'/%3E%3Ccircle cx='16' cy='17.2' r='3.3' fill='%23ffffff'/%3E%3Ccircle cx='8' cy='17.2' r='3.3' fill='%23fbfaf3'/%3E%3Ccircle cx='5.4' cy='9.6' r='3.3' fill='%23ffffff'/%3E%3Ccircle cx='12' cy='11.6' r='2.5' fill='%23d7ce86'/%3E%3C/svg%3E");
    opacity: .5;
    filter: drop-shadow(0 6px 8px rgba(0,0,0,.2));
    animation: float 16s ease-in-out infinite;
    z-index: 1;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .24em;
    color: rgba(255,255,255,.82);
    margin: 0 0 18px;
}
.hero__eyebrow::before {
    content: "";
    width: 24px; height: 1px;
    background: rgba(255,255,255,.6);
}
.hero__title {
    font-family: var(--serif);
    font-weight: 340;
    font-size: clamp(2.2rem, 5.4vw, 4rem);
    line-height: 1.04;
    letter-spacing: -.01em;
    margin: 0 0 18px;
    max-width: 15ch;
}
.hero__title em {
    font-style: italic;
    font-weight: 440;
    color: #f4f2df;
}
.hero__lead {
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    color: rgba(255,255,255,.9);
    max-width: 52ch;
    margin: 0 0 30px;
}

/* Kotak pencarian */
.search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 460px;
    background: rgba(255,255,255,.94);
    border-radius: 999px;
    padding: 7px 8px 7px 18px;
    box-shadow: var(--shadow-md);
}
.search svg { color: var(--water); flex: none; }
.search input {
    flex: 1;
    border: 0;
    background: none;
    outline: none;
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--deep);
    padding: 8px 0;
}
.search input::placeholder { color: #9aa892; }
.search button {
    flex: none;
    border: 0;
    cursor: pointer;
    font-family: var(--sans);
    font-weight: 700;
    font-size: .9rem;
    color: var(--paper);
    background: var(--deep);
    padding: 10px 22px;
    border-radius: 999px;
    transition: background .2s;
}
.search button:hover { background: #26311f; }

/* ============================================================
   BARIS FILTER
   ============================================================ */
.collection { padding: clamp(6px, 2vw, 14px) 0 clamp(40px, 6vw, 72px); }

.collection__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 22px;
}
.collection__title {
    font-family: var(--serif);
    font-weight: 440;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
}
.collection__count { color: var(--moss); font-size: .92rem; margin: 4px 0 0; }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}
.chip {
    text-decoration: none;
    font-size: .84rem;
    font-weight: 600;
    color: var(--moss);
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 999px;
    transition: all .18s;
    white-space: nowrap;
}
.chip:hover { border-color: var(--water); color: var(--deep); }
.chip.is-active {
    background: var(--deep);
    color: var(--paper);
    border-color: var(--deep);
}

/* ============================================================
   GRID KARTU TANAMAN
   ============================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(16px, 2.2vw, 28px);
}

/* Di layar lebar, kunci maksimal 4 kolom supaya kartu tidak jadi kekecilan */
@media (min-width: 1200px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--deep);
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card__figure {
    position: relative;
    aspect-ratio: 5 / 4;
    background:
        radial-gradient(140% 120% at 50% 0%, #eef2e6 0%, #dbe4cf 100%);
    overflow: hidden;
}
.card__figure img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform .5s ease;
}
.card:hover .card__figure img { transform: scale(1.05); }

.card__ripple {           /* cincin riak halus di sudut gambar */
    position: absolute;
    right: -30px; bottom: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 9px,
        rgba(123,144,112,.12) 9px 10px, transparent 10px 22px);
    opacity: 0;
    transition: opacity .4s;
}
.card:hover .card__ripple { opacity: 1; }

.badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    white-space: nowrap;
    color: var(--deep);
    background: rgba(255,255,255,.92);
    padding: 5px 12px 5px 9px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.badge::before {
    content: "";
    flex: none;
    width: 13px; height: 13px;
    background: no-repeat center/contain
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='5' r='3.3' fill='%23d7ce86'/%3E%3Ccircle cx='18.6' cy='9.6' r='3.3' fill='%23d7ce86'/%3E%3Ccircle cx='16' cy='17.2' r='3.3' fill='%23d7ce86'/%3E%3Ccircle cx='8' cy='17.2' r='3.3' fill='%23d7ce86'/%3E%3Ccircle cx='5.4' cy='9.6' r='3.3' fill='%23d7ce86'/%3E%3Ccircle cx='12' cy='11.6' r='2.6' fill='%23b0a558'/%3E%3C/svg%3E");
}

.card__body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card__genus {
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .17em;
    color: var(--water);
    font-weight: 700;
    margin-bottom: 7px;
}
.card__name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.28rem;
    line-height: 1.15;
    margin: 0 0 3px;
}
.card__sci { font-style: italic; font-size: .86rem; color: var(--moss); margin: 0 0 12px; }
.card__teaser { font-size: .88rem; color: var(--moss); margin: 0 0 16px; }
.card__more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--deep);
}
.card__more svg { transition: transform .25s; }
.card:hover .card__more svg { transform: translateX(4px); }

/* Kondisi kosong (pencarian nihil) */
.empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: var(--r-md);
    color: var(--moss);
}
.empty h3 { font-family: var(--serif); font-weight: 440; color: var(--deep); font-size: 1.4rem; margin: 0 0 8px; }
.empty a { color: var(--pollen-dp); font-weight: 700; text-decoration: none; }

/* ============================================================
   HALAMAN DETAIL
   ============================================================ */
.detail { padding: clamp(24px, 4vw, 44px) 0 clamp(40px, 6vw, 72px); }

.back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--moss);
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 22px;
    transition: color .2s;
}
.back:hover { color: var(--deep); }
.back svg { transition: transform .25s; }
.back:hover svg { transform: translateX(-4px); }

.plant {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(24px, 4vw, 54px);
    align-items: start;
}

.plant__figure {
    position: sticky;
    top: 96px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: radial-gradient(150% 120% at 50% 0%, #eef2e6 0%, #cfdcc4 100%);
    box-shadow: var(--shadow-md);
    aspect-ratio: 1 / 1;
}
.plant__figure::after {   /* riak lembut di kartu gambar */
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-radial-gradient(circle at 60% 88%, transparent 0 20px,
        rgba(123,144,112,.08) 20px 21px, transparent 21px 46px);
    pointer-events: none;
}
.plant__figure img {
    position: relative;
    z-index: 1;
    width: 100%; height: 100%;
    object-fit: contain;
    padding: clamp(24px, 5vw, 48px);
}

/* ---------- Slider galeri foto ---------- */
.gallery__track {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}
.gallery__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
}
.gallery__slide.is-active { opacity: 1; pointer-events: auto; }
.gallery__slide img { width: 100%; height: 100%; }

.gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: var(--deep);
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-md);
    transition: background .2s, transform .2s;
}
.gallery__nav:hover { background: #fff; }
.gallery__nav:active { transform: translateY(-50%) scale(.94); }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }

.gallery__dots {
    position: absolute;
    left: 0; right: 0; bottom: 16px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.gallery__dot {
    width: 9px; height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(49, 62, 45, .28);
    transition: background .2s, transform .2s;
}
.gallery__dot:hover { background: rgba(49, 62, 45, .5); }
.gallery__dot.is-active { background: var(--water); transform: scale(1.25); }

.plant__genus {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--water);
    font-weight: 700;
    margin: 0 0 12px;
}
.plant__name {
    font-family: var(--serif);
    font-weight: 340;
    font-size: clamp(2rem, 4.4vw, 3rem);
    line-height: 1.05;
    margin: 0 0 8px;
}
.plant__sci {
    font-style: italic;
    font-size: 1.12rem;
    color: var(--moss);
    margin: 0 0 22px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tag {
    font-size: .76rem;
    font-weight: 600;
    color: var(--moss);
    background: rgba(123,144,112,.12);
    border-radius: 999px;
    padding: 6px 14px;
}
.tag b { color: var(--deep); font-weight: 700; }

.section { margin-bottom: 28px; }
.section__label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--water);
    font-weight: 700;
    margin: 0 0 10px;
}
.section__label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.section p { margin: 0; font-size: 1.02rem; color: #46543d; }

/* Panduan perawatan */
.care {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 6px;
}
.care__item {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 16px 16px 18px;
    box-shadow: var(--shadow-sm);
}
.care__icon {
    width: 34px; height: 34px;
    color: var(--water);
    margin-bottom: 10px;
}
.care__key {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--moss);
    font-weight: 700;
    margin: 0 0 3px;
}
.care__val { font-size: .94rem; font-weight: 600; color: var(--deep); margin: 0; line-height: 1.35; }

/* Tanaman sekerabat */
.related { margin-top: clamp(46px, 6vw, 72px); }
.related__title {
    font-family: var(--serif);
    font-weight: 440;
    font-size: 1.6rem;
    margin: 0 0 6px;
}
.related__sub { color: var(--moss); font-size: .92rem; margin: 0 0 24px; }

/* ============================================================
   HALAMAN IDENTIFIKASI (SCAN)
   ============================================================ */
.pond--sm { padding: clamp(30px, 4vw, 48px) clamp(26px, 5vw, 50px); }

.scan { padding: 0 0 clamp(40px, 6vw, 72px); }

.scan-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(18px, 3vw, 28px);
    align-items: stretch;
    margin-top: clamp(20px, 3vw, 32px);
}

.scan-panel {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(18px, 3vw, 26px);
    display: flex;
    flex-direction: column;
}

.scan-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    aspect-ratio: 4 / 3;
    border: 2px dashed var(--line);
    border-radius: var(--r-md);
    background: radial-gradient(140% 120% at 50% 0%, #eef2e6 0%, #dbe4cf 100%);
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s, background .2s;
}
.scan-drop:hover { border-color: var(--water); }

.scan-drop__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    color: var(--moss);
}
.scan-drop__empty svg { color: var(--water); }
.scan-drop__title { font-family: var(--serif); font-size: 1.1rem; color: var(--deep); font-weight: 500; }
.scan-drop__hint { font-size: .82rem; max-width: 30ch; }

.scan-drop__preview {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.scan-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.scan-actions .btn { flex: 1; justify-content: center; }
.scan-actions .btn--ghost { flex: none; }

.scan-panel--results { justify-content: flex-start; }

.scan-status {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    color: var(--moss);
    min-height: 220px;
    padding: 20px;
}
.scan-status svg { color: var(--sage); }
.scan-status p { margin: 0; max-width: 34ch; font-size: .94rem; }

.scan-spinner {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 3px solid var(--line);
    border-top-color: var(--water);
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.scan-results { display: flex; flex-direction: column; gap: 14px; }

.scan-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 16px 18px 18px;
    background: #fcfdf9;
}
.scan-card--top { border-color: var(--water); box-shadow: 0 0 0 3px rgba(123,144,112,.12); }

.scan-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.scan-card__name { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; margin: 0 0 2px; }
.scan-card__sci { font-style: italic; color: var(--moss); font-size: .84rem; margin: 0; }
.scan-card__score {
    flex: none;
    font-family: var(--serif);
    font-weight: 560;
    font-size: 1.3rem;
    color: var(--water);
}

.scan-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--line-soft);
    overflow: hidden;
    margin: 12px 0 12px;
}
.scan-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--water), var(--pollen));
}

.scan-card__local {
    display: inline-block;
    font-size: .86rem;
    color: var(--deep);
    background: rgba(215,206,134,.22);
    border-radius: 999px;
    padding: 7px 14px;
    text-decoration: none;
    margin-bottom: 12px;
}
.scan-card__local:hover { background: rgba(215,206,134,.36); }

.scan-card__links { display: flex; gap: 16px; flex-wrap: wrap; }
.scan-card__links a { font-size: .84rem; font-weight: 700; color: var(--water); text-decoration: none; }
.scan-card__links a:hover { color: var(--deep); text-decoration: underline; }

.scan-note {
    margin-top: 22px;
    font-size: .88rem;
    color: var(--moss);
    background: rgba(123,144,112,.08);
    border-radius: var(--r-sm);
    padding: 14px 18px;
}
.scan-note a { color: var(--deep); font-weight: 700; }

@media (max-width: 780px) {
    .scan-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   HALAMAN TENTANG
   ============================================================ */
.about { padding: clamp(30px, 5vw, 60px) 0 clamp(40px, 6vw, 72px); }
.about__hero { max-width: 720px; margin-bottom: 48px; }
.about__eyebrow {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .22em;
    color: var(--water); font-weight: 700; margin: 0 0 16px;
}
.about__title {
    font-family: var(--serif); font-weight: 340;
    font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.06;
    margin: 0 0 20px;
}
.about__title em { font-style: italic; font-weight: 440; }
.about__lead { font-size: 1.14rem; color: #46543d; margin: 0; }

.notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.note {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
}
.note__num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--pollen-dp);
    margin-bottom: 10px;
}
.note h3 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin: 0 0 8px; }
.note p  { margin: 0; font-size: .94rem; color: var(--moss); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
    border-top: 1px solid var(--line-soft);
    background: rgba(248,249,243,.6);
    backdrop-filter: blur(6px);
    padding: clamp(34px, 5vw, 52px) 0;
    margin-top: 20px;
}
.foot__inner { display: grid; gap: 12px; }
.foot__brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.foot__name { font-family: var(--serif); font-size: 1.4rem; font-weight: 560; }
.foot__tag  { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--water); }
.foot__note { max-width: 46ch; color: var(--moss); margin: 4px 0 0; font-size: .95rem; }
.foot__credit { color: var(--sage); font-size: .82rem; margin: 6px 0 0; }

/* ============================================================
   PANEL ADMIN
   ============================================================ */
.admin-bar {
    position: sticky; top: 0; z-index: 50;
    background: var(--deep); color: var(--paper);
    box-shadow: var(--shadow-md);
}
.admin-bar__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; min-height: 66px; flex-wrap: wrap;
}
.admin-bar__brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.2rem; text-decoration: none; color: var(--paper); }
.admin-bar__brand small { font-family: var(--sans); font-size: .62rem; text-transform: uppercase; letter-spacing: .18em; color: var(--sage); }
.admin-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-nav a {
    text-decoration: none; color: rgba(255,255,255,.82);
    font-size: .88rem; font-weight: 600; padding: 8px 14px; border-radius: 999px;
    transition: background .2s, color .2s;
}
.admin-nav a:hover, .admin-nav a.is-active { background: rgba(255,255,255,.14); color: #fff; }
.admin-nav a.danger:hover { background: #7c3b3b; }

.admin-main { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); }

.admin-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 26px;
}
.admin-head h1 { font-family: var(--serif); font-weight: 440; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.admin-head p { color: var(--moss); margin: 4px 0 0; font-size: .95rem; }

/* Tombol */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--sans); font-weight: 700; font-size: .9rem;
    text-decoration: none; cursor: pointer;
    border: 1px solid transparent; border-radius: 999px;
    padding: 11px 20px; transition: all .2s;
}
.btn--primary { background: var(--deep); color: var(--paper); }
.btn--primary:hover { background: #26311f; }
.btn--ghost { background: var(--paper); color: var(--deep); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--water); }
.btn--danger { background: #8a4141; color: #fff; }
.btn--danger:hover { background: #713535; }
.btn--sm { padding: 8px 14px; font-size: .82rem; }

/* Pesan flash */
.flash {
    border-radius: var(--r-sm);
    padding: 13px 18px;
    margin-bottom: 22px;
    font-size: .92rem;
    font-weight: 600;
}
.flash--ok   { background: #e3ecd8; color: #3a5230; border: 1px solid #cadbb8; }
.flash--err  { background: #f3dede; color: #7c3b3b; border: 1px solid #e6c4c4; }

/* Tabel data */
.panel {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
table.data th {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
    color: var(--moss); background: rgba(123,144,112,.08); font-weight: 700;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: rgba(123,144,112,.05); }
.data__thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: #e7eede; padding: 4px; }
.data__name { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; }
.data__sci  { font-style: italic; color: var(--moss); font-size: .82rem; }
.data__actions { display: flex; gap: 8px; white-space: nowrap; }
.pill-star {
    display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
    color: var(--pollen-dp); background: rgba(215,206,134,.22); padding: 3px 9px; border-radius: 999px;
}

/* Form */
.form-card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    padding: clamp(22px, 4vw, 38px);
    max-width: 820px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 700; color: var(--deep); }
.field .hint { font-size: .76rem; color: var(--moss); font-weight: 400; }
.field input, .field select, .field textarea {
    font-family: var(--sans); font-size: .96rem; color: var(--deep);
    background: #fcfdf9; border: 1px solid var(--line);
    border-radius: var(--r-sm); padding: 11px 14px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--water);
    box-shadow: 0 0 0 3px rgba(123,144,112,.16);
}
.field--check { flex-direction: row; align-items: center; gap: 10px; }
.field--check input { width: 18px; height: 18px; accent-color: var(--water); }
.form-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* Kartu statistik (riwayat scan) */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}
.stat {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    padding: 20px 22px;
}
.stat__num {
    font-family: var(--serif);
    font-weight: 560;
    font-size: 2rem;
    color: var(--deep);
    margin: 0 0 2px;
    line-height: 1;
}
.stat__label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--moss);
    font-weight: 700;
    margin: 0;
}
@media (max-width: 620px) {
    .stat-row { grid-template-columns: 1fr; }
    .stat { padding: 16px 18px; }
    .stat__num { font-size: 1.6rem; }
}

/* Pengelola galeri foto di form admin */
.gallery-manage {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 4px;
}
.gallery-manage__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fcfdf9;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 8px;
    cursor: pointer;
}
.gallery-manage__item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #e7eede;
    border-radius: 8px;
    padding: 4px;
}
.gallery-manage__del {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--moss);
}
.gallery-manage__del input { width: 15px; height: 15px; accent-color: #8a4141; }

/* Kartu login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
    width: 100%; max-width: 400px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 38px 34px;
}
.login-card__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--water); }
.login-card__brand span { font-family: var(--serif); font-size: 1.35rem; color: var(--deep); }
.login-card h1 { font-family: var(--serif); font-weight: 440; font-size: 1.5rem; margin: 0 0 4px; }
.login-card p.sub { color: var(--moss); font-size: .9rem; margin: 0 0 24px; }
.login-card .field { margin-bottom: 16px; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.login-back { display: block; text-align: center; margin-top: 18px; color: var(--moss); font-size: .86rem; text-decoration: none; }
.login-back:hover { color: var(--deep); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
    .plant { grid-template-columns: 1fr; }
    .plant__figure { position: relative; top: 0; max-width: 460px; margin-inline: auto; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px clamp(20px, 5vw, 40px) 20px;
        background: rgba(234,239,226,.97);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s, transform .22s;
    }
    .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .nav__link { padding: 12px 16px; }
    .care { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hormati preferensi kurangi gerak */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}