/* ==========================================================================
   RP BATTERY public website - light theme, lightweight (no images, no heavy effects)
   The logo has white text, so it always sits in a small black tile.
   ========================================================================== */
:root {
    --s-black: #111114;
    --s-red: #e11d1d;
    --s-red-dark: #b91414;
    --s-green: #19a954;
    --s-text: #1f2430;
    --s-muted: #667085;
    --s-line: #e7e9ee;
    --s-soft: #f6f7f9;
    --s-tint: #fff4f3;
}

body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--s-text); background: #fff; margin: 0; }
a { color: var(--s-red-dark); }
h1, h2, h3, h4, h5 { font-weight: 700; }

/* ---------- buttons ---------- */
.btn-red { background: var(--s-red); border: 1px solid var(--s-red); color: #fff; font-weight: 600; border-radius: 8px; }
.btn-red:hover { background: var(--s-red-dark); border-color: var(--s-red-dark); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid #cfd3dc; color: var(--s-text); font-weight: 600; border-radius: 8px; }
.btn-ghost:hover { border-color: var(--s-red); color: var(--s-red); }
.btn-black { background: var(--s-black); border: 1px solid var(--s-black); color: #fff; font-weight: 600; border-radius: 8px; }
.btn-black:hover { background: var(--s-red); border-color: var(--s-red); color: #fff; }
.btn-lg-site { padding: 11px 26px; font-size: 16px; }

/* ---------- top bar + navigation ---------- */
.site-topbar { background: var(--s-soft); color: var(--s-muted); font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--s-line); }
.site-nav { background: #fff; padding: 8px 0; border-bottom: 1px solid var(--s-line); }
.logo-tile { display: inline-flex; align-items: center; background: var(--s-black); border-radius: 10px; padding: 6px 12px; }
.logo-tile img { height: 36px; width: auto; display: block; }
.site-nav .nav-link { color: var(--s-text); font-weight: 600; font-size: 14.5px; padding: 8px 14px; border-radius: 8px; }
.site-nav .nav-link:hover { color: var(--s-red); }
.site-nav .nav-link.active { color: var(--s-red); background: var(--s-tint); }
.site-nav .navbar-toggler { font-size: 28px; border: 0; padding: 0 6px; }
.site-nav .navbar-toggler:focus { box-shadow: none; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--s-tint), #fff); padding: 64px 0 56px; }
.hero-kicker { display: inline-block; background: #fff; border: 1px solid #f5c9c6; color: var(--s-red-dark); font-weight: 600; font-size: 13px; padding: 5px 14px; border-radius: 30px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 5.5vw, 56px); line-height: 1.1; margin-bottom: 16px; letter-spacing: -.5px; }
.hero p.lead { color: var(--s-muted); max-width: 560px; font-size: 18px; }
.hero-art { display: grid; place-items: center; }
.hero-art .logo-tile { padding: 28px 36px; border-radius: 24px; }
.hero-art .logo-tile img { height: auto; width: 100%; max-width: 320px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- highlights strip ---------- */
.highlights { padding: 8px 0 40px; }
.highlight { background: #fff; border: 1px solid var(--s-line); border-radius: 12px; padding: 18px; height: 100%; }
.highlight i { font-size: 26px; color: var(--s-red); }
.highlight h5 { margin: 8px 0 4px; font-size: 16px; }
.highlight p { margin: 0; color: var(--s-muted); font-size: 13.5px; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-soft { background: var(--s-soft); }
.section-title { font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 6px; }
.section-title::after { content: ""; display: block; width: 44px; height: 4px; background: var(--s-red); border-radius: 2px; margin-top: 8px; }
.section-sub { color: var(--s-muted); margin: 10px 0 28px; }

/* ---------- categories ---------- */
.cat-tile { display: block; background: #fff; border: 1px solid var(--s-line); color: var(--s-text); text-decoration: none; border-radius: 12px; overflow: hidden; height: 100%; transition: box-shadow .15s, border-color .15s; }
.cat-tile:hover { border-color: var(--s-red); box-shadow: 0 6px 20px rgba(0, 0, 0, .08); color: var(--s-text); }
.cat-photo { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--s-soft); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-photo i { font-size: 40px; color: var(--s-red); }
.cat-tile h5 { margin: 12px 14px 0; font-size: 16px; }
.cat-tile small { display: block; margin: 0 14px 14px; color: var(--s-muted); }

/* ---------- product cards ---------- */
.product-card { background: #fff; border: 1px solid var(--s-line); border-radius: 12px; overflow: hidden; height: 100%; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.product-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); border-color: var(--s-red); color: inherit; }
.product-photo { aspect-ratio: 4 / 3; background: var(--s-soft); display: grid; place-items: center; position: relative; }
.product-photo img { max-width: 86%; max-height: 86%; object-fit: contain; }
.product-photo .no-photo { font-size: 52px; color: #c9cbd3; }
.product-warranty { position: absolute; left: 10px; top: 10px; background: var(--s-black); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.product-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--s-red-dark); }
.product-body h5 { font-size: 17px; margin: 4px 0; }
.product-model { color: var(--s-muted); font-size: 13px; }
.product-price { margin-top: auto; padding-top: 10px; font-size: 21px; font-weight: 700; }
.product-price small { font-size: 12px; font-weight: 500; color: var(--s-muted); }

/* ---------- catalogue filter ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; }
.chip { display: inline-block; padding: 6px 16px; border: 1px solid var(--s-line); border-radius: 30px; font-weight: 600; font-size: 13px; text-decoration: none; color: var(--s-text); background: #fff; }
.chip:hover { border-color: var(--s-red); color: var(--s-red); }
.chip.active { background: var(--s-red); border-color: var(--s-red); color: #fff; }

/* ---------- steps ---------- */
.step { text-align: center; padding: 10px; }
.step-no { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 12px; background: var(--s-red); color: #fff; font-size: 22px; font-weight: 700; border-radius: 50%; }
.step p { color: var(--s-muted); font-size: 14px; }

/* ---------- call to action band ---------- */
.cta-band { background: var(--s-tint); border-top: 1px solid #f5d6d3; border-bottom: 1px solid #f5d6d3; padding: 40px 0; }
.cta-band h3 { font-size: 26px; }

/* ---------- inner page header ---------- */
.page-hero { background: var(--s-soft); border-bottom: 1px solid var(--s-line); padding: 36px 0; }
.page-hero h1 { font-size: clamp(28px, 4.5vw, 42px); margin: 0; }
.page-hero p { color: var(--s-muted); margin: 8px 0 0; }
.crumbs { font-size: 13px; color: var(--s-muted); margin-bottom: 6px; }
.crumbs a { color: var(--s-muted); text-decoration: none; }

/* ---------- policy text ---------- */
.prose { max-width: 860px; font-size: 16.5px; line-height: 1.75; }
.prose h3 { font-size: 21px; margin: 28px 0 8px; padding-left: 12px; border-left: 4px solid var(--s-red); }
.prose p { color: #3a3f4b; }
.policy-links a { display: block; padding: 10px 14px; border-left: 3px solid var(--s-line); text-decoration: none; color: var(--s-text); font-weight: 600; }
.policy-links a:hover, .policy-links a.active { border-left-color: var(--s-red); background: var(--s-soft); }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--s-line); border-top: 4px solid var(--s-red); border-radius: 12px; padding: 26px; box-shadow: 0 6px 24px rgba(0, 0, 0, .05); }
.form-card .form-label { font-weight: 600; font-size: 13px; }
.form-card .form-control, .form-card .form-select { border-radius: 8px; padding: 10px 12px; border: 1px solid #d6d8df; }
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--s-red); box-shadow: 0 0 0 .2rem rgba(225, 29, 29, .12); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.info-card { background: var(--s-soft); border: 1px solid var(--s-line); border-radius: 12px; padding: 24px; height: 100%; }
.info-card .item { display: flex; gap: 14px; margin-bottom: 18px; }
.info-card .item i { font-size: 22px; color: var(--s-red); }
.info-card .item small { display: block; color: var(--s-muted); text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }

/* ---------- product page ---------- */
.detail-photo { background: var(--s-soft); border: 1px solid var(--s-line); border-radius: 12px; padding: 24px; display: grid; place-items: center; min-height: 320px; }
.detail-photo img { max-width: 100%; max-height: 380px; object-fit: contain; }
.spec-table td { padding: 8px 0; border-bottom: 1px solid var(--s-line); }
.spec-table td:first-child { color: var(--s-muted); width: 40%; }
.cover-box { border-radius: 10px; padding: 14px 16px; height: 100%; }
.cover-yes { background: #eafaf1; border-left: 4px solid var(--s-green); }
.cover-no { background: #fdecec; border-left: 4px solid var(--s-red); }
.cover-box h6 { font-weight: 700; }
.cover-box div { white-space: pre-line; font-size: 14px; }

/* ---------- request tracking ---------- */
.track-line { display: flex; margin: 26px 0; flex-wrap: wrap; }
.track-line .stage { flex: 1 1 140px; text-align: center; position: relative; padding-top: 44px; font-size: 13px; font-weight: 600; color: var(--s-muted); }
.track-line .stage::before { content: "\2022"; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; line-height: 30px; border-radius: 50%; background: #e4e5ea; color: #fff; font-size: 24px; }
.track-line .stage::after { content: ""; position: absolute; top: 16px; left: 50%; width: 100%; height: 3px; background: #e4e5ea; z-index: -1; }
.track-line .stage:last-child::after { display: none; }
.track-line .stage.done { color: var(--s-text); }
.track-line .stage.done::before, .track-line .stage.done::after { background: var(--s-red); }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 1px solid var(--s-line); border-radius: 10px !important; margin-bottom: 10px; overflow: hidden; }
.faq .accordion-button { font-weight: 600; background: #fff; }
.faq .accordion-button:not(.collapsed) { color: var(--s-red-dark); background: var(--s-tint); box-shadow: none; }
.faq .accordion-body { color: #3a3f4b; white-space: pre-line; }

/* ---------- About page ---------- */
.about-box { background: #fff; border: 1px solid var(--s-line); border-radius: 12px; padding: 24px; height: 100%; }
.about-box i { font-size: 28px; color: var(--s-red); }
.about-box h4 { margin: 8px 0; }
.about-box p { color: #3a3f4b; white-space: pre-line; margin: 0; }
.timeline { border-left: 3px solid var(--s-line); margin-left: 8px; padding-left: 22px; }
.timeline .t-item { position: relative; padding-bottom: 20px; }
.timeline .t-item::before { content: ""; position: absolute; left: -29px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--s-red); }
.timeline .t-year { font-weight: 700; color: var(--s-red-dark); }
.founder { text-align: center; }
.founder .avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--s-soft); border: 2px solid var(--s-line); display: grid; place-items: center; margin: 0 auto 10px; font-size: 34px; font-weight: 700; color: var(--s-red); }
.founder small { color: var(--s-muted); }

/* ---------- landing page ---------- */
.lp-head { background: #fff; border-bottom: 1px solid var(--s-line); padding: 10px 0; }
.lp-points { list-style: none; padding: 0; margin: 20px 0 0; }
.lp-points li { padding: 6px 0; font-size: 16px; }
.lp-points i { color: var(--s-green); margin-right: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--s-soft); color: var(--s-muted); padding: 48px 0 0; border-top: 1px solid var(--s-line); font-size: 14.5px; }
.site-footer h6 { color: var(--s-text); font-weight: 700; margin-bottom: 12px; }
.site-footer a { display: block; color: var(--s-muted); text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: var(--s-red); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 36px; padding: 16px 0; border-top: 1px solid var(--s-line); font-size: 13px; }

.whatsapp-float { position: fixed; right: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff !important; font-size: 28px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); z-index: 50; }

@media (max-width: 991px) {
    .hero { padding: 40px 0 36px; }
    .site-nav .navbar-collapse { padding: 12px 0; }
    .track-line .stage::after { display: none; }
}

/* ---------- toast messages ---------- */
.app-toast { background: #111; color: #fff; border: 0; border-left: 5px solid var(--s-green); border-radius: 6px; min-width: 300px; }
.app-toast.toast-error { border-left-color: var(--s-red); }
.app-toast .toast-body { display: flex; align-items: center; gap: 10px; }

/* Locate outlet cards */
.outlet-card { background: #fff; border: 1px solid var(--s-line); border-left: 4px solid var(--s-red); border-radius: 12px; padding: 1rem 1.1rem; }
