/* Halaman Home iCare — mengikuti "WEB - Home.pdf" (desain HP) dan disesuaikan untuk desktop. */
:root {
    --ink: #0a0a0a;
    --text: #231f20;
    --muted: #6c6e70;
    --line: #9a9a9a;
    --soft: #e6e7e8;       /* latar abu section (Layanan, Brand Partner) */
    --hero: #dddfde;       /* latar banner, sama dengan warna foto */
    --card-bg: #f6f6f8;    /* = latar foto produk, supaya menyatu */
    --red: #ec1c24;
    --radius: 22px;
    --wrap: 1200px;
    --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font: 16px/1.5 -apple-system, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { padding: 72px 0; }
.section-title { margin: 0 0 32px; font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.bg-soft { background: var(--soft); }

/* ------------------------------------------------------------------ header */
.header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; line-height: 1; }
.nav { display: flex; gap: 28px; margin: 0 auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: #333; }
.nav a:hover { color: #000; text-decoration: underline; text-underline-offset: 6px; }
.nav a.active { color: #000; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.icons { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: transparent; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: #f0f0f0; }
.icon-btn { position: relative; }
.cart-badge {
    position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.icon-btn svg { width: 24px; height: 24px; }
.only-mobile { display: none !important; }

/* pencarian (muncul di bawah header) */
.search-panel { border-bottom: 1px solid #eee; background: #fff; }
.search-panel form { display: flex; gap: 12px; padding: 16px 32px; max-width: var(--wrap); margin: 0 auto; }
.search-panel input {
    flex: 1; height: 48px; padding: 0 20px; border: 1px solid #ccc; border-radius: 999px; font: inherit; font-size: 16px;
}
.search-panel input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.btn-dark {
    height: 48px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer;
}

/* submenu desktop (Service -> Pricelist Service / Status Perbaikan) */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-group-label::after { content: ""; display: inline-block; margin-left: 7px; border: 4px solid transparent; border-top-color: currentColor; border-bottom-width: 0; vertical-align: middle; }
.nav-sub {
    position: absolute; top: 100%; left: -14px; z-index: 70; min-width: 220px; padding: 8px; margin-top: 12px;
    background: #fff; border: 1px solid #e4e4e6; border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .13);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-sub a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; white-space: nowrap; text-decoration: none !important; }
.nav-sub a:hover { background: #f3f3f4; }
.nav-sub a[aria-current="page"] { font-weight: 700; background: #f3f3f4; }

/* menu HP = panel samping (drawer dari kiri) */
.mobile-menu {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 300; width: min(84vw, 320px); overflow-y: auto; overscroll-behavior: contain;
    background: #fff; box-shadow: 10px 0 40px rgba(0, 0, 0, .22);
    transform: translateX(-104%); visibility: hidden; transition: transform .26s ease, visibility 0s linear .26s;
}
.mobile-menu.open { transform: none; visibility: visible; transition: transform .26s ease; }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 24px; background: #fff; border-bottom: 1px solid #eee; }
.drawer-logo { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.drawer-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 20px; cursor: pointer; color: #111; }
.drawer-close:hover { background: #f0f0f0; }
.mobile-menu a { display: block; padding: 15px 24px; text-decoration: none; font-size: 17px; font-weight: 500; border-top: 1px solid #f0f0f0; color: inherit; }
.mobile-menu > a:first-of-type { border-top: 0; }
.mobile-menu .m-group summary {
    display: flex; align-items: center; justify-content: space-between; padding: 15px 24px; border-top: 1px solid #f0f0f0;
    font-size: 17px; font-weight: 500; cursor: pointer; list-style: none;
}
.mobile-menu .m-group summary::-webkit-details-marker { display: none; }
.mobile-menu .m-group summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #333; border-bottom: 2px solid #333; transform: rotate(45deg); transition: transform .2s; }
.mobile-menu .m-group[open] summary::after { transform: rotate(-135deg); }
.mobile-menu .m-group a { padding: 13px 24px 13px 42px; font-size: 16px; font-weight: 400; background: #fafafa; }
.mobile-menu a[aria-current="page"] { font-weight: 700; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 290; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .26s ease; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
html.drawer-lock { overflow: hidden; }
@media (min-width: 821px) { .mobile-menu, .drawer-backdrop { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mobile-menu, .drawer-backdrop { transition: none; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; background: var(--hero); overflow: hidden; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; transition: opacity .6s ease; display: flex; justify-content: center; }
.slide.active { opacity: 1; }
.slide img { width: auto; max-width: 100%; height: min(62vh, 620px); object-fit: contain; }
.dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 12px; }
.dots button {
    width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); cursor: pointer;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
.dots button[aria-current="true"] { background: #8a8d8f; }
.promo-bar { background: var(--ink); color: #fff; text-align: center; padding: 14px 16px; font-size: 18px; font-weight: 300; }
.promo-bar a { margin-left: 8px; font-weight: 400; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ kategori */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat {
    position: relative; display: block; overflow: hidden; border-radius: var(--radius);
    aspect-ratio: 1; background: #f1f1f1 center / cover no-repeat; text-decoration: none;
    border: 1px solid rgba(0, 0, 0, .12);
}
.cat.wide { grid-column: span 2; aspect-ratio: auto; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat:hover img { transform: scale(1.04); }
.cat h3 {
    position: absolute; top: 22px; left: 26px; margin: 0;
    font-size: clamp(18px, 1.55vw, 23px); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em;
}
.cat.wide h3 { font-size: clamp(20px, 1.9vw, 27px); }
.cat.light h3 { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }

/* ------------------------------------------------------------------ produk baru */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product {
    display: flex; flex-direction: column; gap: 22px; padding: 16px 16px 28px; border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; color: var(--text); transition: box-shadow .2s ease, transform .2s ease;
}
.product:hover { box-shadow: 0 14px 40px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.product-media { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; height: 340px; border-radius: 16px; background: #f5f5f7; }
.product-media img { height: 82%; width: auto; max-width: 92%; object-fit: contain; }
.badge-new {
    position: absolute; top: 8px; left: -16px; padding: 4px 10px; background: var(--red); color: #fff;
    font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.product-body { padding: 0 14px; }
.product h3 { margin: 0 0 6px; font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.product p { margin: 4px 0 0; font-size: 18px; font-weight: 600; }

/* ------------------------------------------------------------------ layanan */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: #fff; border-radius: var(--radius); padding: 24px 24px 28px; }
.service h3 { margin: 18px 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.service p { margin: 0; color: var(--text); font-weight: 300; font-size: 15.5px; line-height: 1.45; }
.tile {
    display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
    background: var(--ink); color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}
.tile svg { width: 28px; height: 28px; }

/* ------------------------------------------------------------------ toko */
.stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.store {
    display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
}
.store-head { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid #666; }
.store-head h3 { margin: 0; font-size: 21px; font-weight: 600; }
.store-head span { color: var(--muted); font-weight: 300; font-size: 15px; }
.store address { flex: 1; margin: 18px 0 20px; font-style: normal; font-weight: 500; line-height: 1.55; }
.store address .hours { display: block; margin-top: 6px; }
.btn-row {
    display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 20px; border-radius: 12px;
    text-decoration: none; font-weight: 500;
}
.btn-row + .btn-row { margin-top: 12px; }
.btn-row svg { width: 20px; height: 20px; flex: none; }
.btn-row.dark { background: var(--ink); color: #fff; }
.btn-row.dark:hover { background: #2a2a2a; }
.btn-row.gray { background: #d3d4d6; color: var(--ink); }
.btn-row.gray:hover { background: #c4c5c8; }

/* ------------------------------------------------------------------ partner */
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; margin: 0; padding: 0; list-style: none; }
.logo-row li { flex: none; }
.logo-row img { height: 40px; width: auto; }
.logo-row .tall img { height: 52px; }
.logo-anker { height: 34px; width: auto; }
.partners .marquee { margin-bottom: 64px; }
.partners .marquee:last-child { margin-bottom: 0; }

/* Slider logo partner: berjalan pelan tanpa henti (home.js menggandakan logo lalu mengatur durasi dari lebar). */
.marquee {
    position: relative; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee .logo-row { flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; overflow: visible; padding: 4px 0; }
.marquee .logo-row li { padding-right: 80px; }
.marquee.is-running .logo-row { animation: marquee var(--marquee-duration, 40s) linear infinite; will-change: transform; }
.marquee.is-running:hover .logo-row { animation-play-state: paused; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ------------------------------------------------------------------ footer */
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 64px 0 56px; }
.footer-links details { border-bottom: 0; }
.footer-links summary {
    list-style: none; display: flex; justify-content: space-between; align-items: center;
    font-size: 20px; font-weight: 600; margin-bottom: 14px; cursor: default;
}
.footer-links summary::-webkit-details-marker { display: none; }
.footer-links summary svg { display: none; width: 26px; height: 26px; transition: transform .2s ease; }
.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 10px 0; }
.footer-links li a { color: #444; text-decoration: none; font-size: 15px; }
.footer-links li a:hover { color: #000; text-decoration: underline; }
.center { text-align: center; }
.pay-title { margin: 0 0 28px; font-size: 26px; font-weight: 500; }
.payments { width: 100%; max-width: 760px; margin: 0 auto 40px; }
.ship-row { justify-content: center; gap: 24px 56px; margin-bottom: 56px; }
.ship-row img { height: 40px; }
.socials { display: flex; justify-content: center; gap: 14px; padding: 40px 0 20px; }
.socials a {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #e5e5ea;
}
.socials a:hover { background: #d6d6db; }
.socials svg { width: 26px; height: 26px; }
.copyright { margin: 0; padding: 12px 0 40px; text-align: center; font-weight: 300; font-size: 16px; }

:focus-visible { outline: 2px solid #0a64ff; outline-offset: 2px; }

/* ------------------------------------------------------------------ tablet */
@media (max-width: 1080px) {
    .nav { gap: 18px; }
    .nav a { font-size: 14px; }
    .services { grid-template-columns: repeat(2, 1fr); }
    .stores { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ HP: mengikuti PDF */
@media (max-width: 820px) {
    :root { --header-h: 60px; --radius: 18px; }
    .wrap { padding: 0 16px; }
    .section { padding: 48px 0; }
    .nav, .only-desktop { display: none !important; }
    .only-mobile { display: inline-grid !important; }
    .header .wrap { gap: 4px; }
    .logo { position: absolute; left: 50%; transform: translateX(-50%); font-size: 30px; }
    .icons.right { margin-left: auto; }
    .search-panel form { padding: 12px 16px; }
    .slide img { height: auto; width: 100%; }
    .promo-bar { font-size: 13px; }
    .categories { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat h3 { top: 14px; left: 16px; font-size: 20px; }
    .products { gap: 12px; }
    .product { padding: 8px 8px 16px; gap: 14px; }
    .product-media { height: 180px; }
    .badge-new { left: -8px; font-size: 10px; }
    .product-body { padding: 0 8px; }
    .product h3 { font-size: 19px; }
    .product p { font-size: 13px; }
    .services { gap: 12px; }
    .service { padding: 16px; }
    .service h3 { font-size: 17px; margin-top: 12px; }
    .service p { font-size: 13px; }
    .tile { width: 44px; height: 44px; border-radius: 11px; }
    .tile svg { width: 22px; height: 22px; }
    .logo-row { flex-wrap: nowrap; overflow-x: auto; gap: 28px; padding-bottom: 6px; scrollbar-width: none; }
    .logo-row img { height: 30px; }
    .logo-row .tall img { height: 40px; }
    .marquee .logo-row li { padding-right: 48px; }
    /* footer jadi accordion seperti PDF */
    .footer-links { grid-template-columns: 1fr; gap: 0; padding: 24px 0 40px; }
    .footer-links details { border-bottom: 1px solid var(--line); }
    .footer-links summary { margin: 0; padding: 20px 0; font-size: 22px; font-weight: 500; cursor: pointer; }
    .footer-links summary svg { display: block; }
    .footer-links details[open] summary svg { transform: rotate(180deg); }
    .footer-links ul { padding-bottom: 14px; }
    .pay-title { font-size: 18px; }
    .ship-row img { height: 30px; }
    .socials a { width: 48px; height: 48px; border-radius: 14px; }
    .copyright { font-size: 13px; }
}
@media (max-width: 480px) {
    .services { grid-template-columns: 1fr 1fr; }
    .product-media { height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
    /* Tanpa animasi: logo tampil diam dan bisa digeser manual. */
    .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
    .marquee .logo-row { animation: none !important; }
    * { transition: none !important; scroll-behavior: auto !important; }
}
