/*
Theme Name: Leopard Power Child
Theme URI: https://leopardpowerbattery.net
Description: Child theme of Astra. Adds the B2B inquiry catalogue layout, quote form and homepage sections for leopardpowerbattery.net.
Author: Leopard Power
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: leopard-child
*/

/* ============ Design tokens ============ */
:root {
  --lp-navy: #10203a;
  --lp-blue: #1860a8;
  --lp-cyan: #2ab0d6;
  --lp-accent: #f0821f;
  --lp-line: #e3e8ee;
  --lp-muted: #5c6b7a;
}

.lp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.lp-section { padding: 64px 0; }
.lp-section--grey { background: #f6f8fa; }
.lp-h2 { font-size: 32px; line-height: 1.25; color: var(--lp-navy); margin: 0 0 10px; font-weight: 700; }
.lp-kicker { display: inline-block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-accent); font-weight: 700; margin-bottom: 12px; }
.lp-lead { color: var(--lp-muted); font-size: 17px; line-height: 1.7; max-width: 760px; margin: 0 0 32px; }
.lp-grid { display: grid; gap: 20px; }
.lp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lp-grid--4 { grid-template-columns: repeat(4, 1fr); }
.lp-grid--6 { grid-template-columns: repeat(6, 1fr); }

/* ============ Hero slider ============ */
.lp-hero { position: relative; overflow: hidden; background: var(--lp-navy); }
.lp-hero__track { display: flex; transition: transform .6s ease; }
.lp-hero__slide { min-width: 100%; }
.lp-hero__slide img { width: 100%; height: auto; display: block; }
.lp-hero__dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.lp-hero__dot { width: 10px; height: 10px; border-radius: 50%; background: #ffffff80; border: 0; cursor: pointer; padding: 0; }
.lp-hero__dot.is-on { background: var(--lp-accent); }
.lp-hero__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: #00000059; color: #fff; font-size: 22px; cursor: pointer; border-radius: 50%; }
.lp-hero__nav--prev { left: 16px; } .lp-hero__nav--next { right: 16px; }

/* ============ Cards ============ */
.lp-card { background: #fff; border: 1px solid var(--lp-line); display: block; text-align: center; padding: 18px; transition: box-shadow .2s, transform .2s; }
.lp-card:hover { box-shadow: 0 10px 26px #10203a1f; transform: translateY(-3px); }
.lp-card img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
.lp-card h3 { font-size: 17px; color: var(--lp-navy); margin: 14px 0 0; }
.lp-tile { position: relative; overflow: hidden; display: block; }
.lp-tile img { width: 100%; height: 210px; object-fit: cover; display: block; }
.lp-tile span { position: absolute; inset: auto 0 0 0; background: #10203acc; color: #fff; padding: 10px 12px; font-size: 15px; text-align: center; }
.lp-prod { background: #fff; border: 1px solid var(--lp-line); padding: 14px; }
.lp-prod img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
.lp-prod h3 { font-size: 15px; line-height: 1.45; margin: 12px 0 0; color: var(--lp-navy); }
.lp-prod a { color: inherit; text-decoration: none; }
.lp-logo-cell { background: #fff; border: 1px solid var(--lp-line); padding: 16px; display: flex; align-items: center; justify-content: center; min-height: 96px; }
.lp-logo-cell img { max-height: 56px; width: auto; }
.lp-thumb-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.lp-thumb-strip img { width: 100%; height: auto; border: 1px solid var(--lp-line); }

/* ============ Buttons ============ */
.lp-btn { display: inline-block; background: var(--lp-accent); color: #fff !important; padding: 13px 28px; font-weight: 700; text-decoration: none !important; border: 0; cursor: pointer; font-size: 15px; }
.lp-btn:hover { background: #d9700f; }
.lp-btn--ghost { background: transparent; color: var(--lp-navy) !important; border: 2px solid var(--lp-navy); }
.lp-btn--ghost:hover { background: var(--lp-navy); color: #fff !important; }

/* ============ About split ============ */
.lp-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.lp-split img { width: 100%; height: auto; }

/* ============ CTA band ============ */
.lp-band { background: linear-gradient(120deg, var(--lp-navy), var(--lp-blue)); color: #fff; padding: 46px 0; }
.lp-band h2 { color: #fff; margin: 0 0 8px; font-size: 28px; }
.lp-band p { color: #cfe0f2; margin: 0; }
.lp-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ============ News ============ */
.lp-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-news article { background: #fff; border: 1px solid var(--lp-line); }
.lp-news img { width: 100%; height: 180px; object-fit: cover; }
.lp-news h3 { font-size: 17px; margin: 14px 16px 6px; color: var(--lp-navy); line-height: 1.4; }
.lp-news time { display: block; color: var(--lp-muted); font-size: 13px; padding: 0 16px; }
.lp-news p { padding: 8px 16px 18px; color: var(--lp-muted); font-size: 15px; }

/* ============ Inquiry form ============ */
.lp-form { max-width: 720px; }
.lp-form .lp-field { margin-bottom: 16px; }
.lp-form label { display: block; font-size: 14px; font-weight: 700; color: var(--lp-navy); margin-bottom: 6px; }
.lp-form input, .lp-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfd7e0; font-size: 15px; background: #fff; }
.lp-form input:focus, .lp-form textarea:focus { outline: 2px solid var(--lp-cyan); border-color: var(--lp-cyan); }
.lp-form__ok { background: #eaf7ee; border: 1px solid #b6e2c3; color: #1c6b32; padding: 16px; margin-bottom: 18px; }
.lp-form__err { color: #b3261e; font-size: 14px; margin-bottom: 14px; }
.lp-form__req { color: var(--lp-accent); }

/* ============ Popup ============ */
.lp-pop { position: fixed; inset: 0; background: #0b1420b3; display: none; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.lp-pop.is-open { display: flex; }
.lp-pop__box { background: #fff; max-width: 640px; width: 100%; padding: 28px; position: relative; max-height: 90vh; overflow: auto; }
.lp-pop__close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 28px; cursor: pointer; color: #666; }

/* ============ Floating contact ============ */
.lp-float { position: fixed; right: 14px; bottom: 90px; display: flex; flex-direction: column; gap: 10px; z-index: 999; }
.lp-float a { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; box-shadow: 0 4px 14px #0003; }
.lp-float .lp-float--wa { background: #25d366; }
.lp-float .lp-float--mail { background: var(--lp-blue); }
.lp-float .lp-float--quote { background: var(--lp-accent); width: auto; border-radius: 26px; padding: 0 18px; cursor: pointer; border: 0; }

/* ============ Spec table ============ */
.lp-specs { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.lp-specs th, .lp-specs td { border: 1px solid var(--lp-line); padding: 11px 14px; text-align: left; font-size: 15px; }
.lp-specs th { background: #f6f8fa; width: 40%; color: var(--lp-navy); font-weight: 700; }
.lp-cat-tree { list-style: none; padding: 0; margin: 0; }
.lp-cat-tree li { border-bottom: 1px solid var(--lp-line); }
.lp-cat-tree a { display: block; padding: 9px 4px; color: var(--lp-navy); text-decoration: none; font-size: 15px; }
.lp-cat-tree a:hover { color: var(--lp-accent); }

/* ============ Header ============ */
.lp-topbar { background: var(--lp-navy); color: #cfe0f2; font-size: 13px; }
.lp-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; flex-wrap: wrap; }
.lp-topbar__contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.lp-topbar__contacts a, .lp-topbar__contacts span { color: #cfe0f2; text-decoration: none; }
.lp-topbar__contacts a:hover { color: var(--lp-accent); }
.lp-topbar__actions { display: flex; align-items: center; gap: 12px; }
.lp-topbar__search { display: flex; align-items: center; border: 1px solid #ffffff33; }
.lp-topbar__search input { border: 0; background: transparent; color: #fff; padding: 6px 10px; width: 170px; font-size: 13px; }
.lp-topbar__search input::placeholder { color: #a9c2da; }
.lp-topbar__search button { border: 0; background: transparent; color: #cfe0f2; cursor: pointer; padding: 4px 10px; font-size: 14px; }
.lp-topbar__cta { padding: 7px 18px; font-size: 13px; }

/* Astra header row */
.main-header-bar { border-bottom: 1px solid var(--lp-line); }
.site-title, .site-title a { font-size: 24px; font-weight: 700; color: var(--lp-navy) !important; letter-spacing: .01em; }
.site-title a:hover { color: var(--lp-blue) !important; }

/* Navigation: 9 top items with dropdowns for the parameter sub-categories. */
.main-navigation ul li a { font-size: 14px; color: var(--lp-navy); }
.main-navigation ul.menu > li > a,
.main-header-menu ul.ast-menu > li > a { padding: 26px 12px; }
.main-navigation ul li a:hover { color: var(--lp-accent); background: transparent; }
.main-navigation ul.sub-menu {
  min-width: 260px; background: #fff; border: 1px solid var(--lp-line);
  box-shadow: 0 12px 26px #10203a24; padding: 6px 0;
}
.main-navigation ul.sub-menu li a { padding: 9px 18px; font-size: 14px; white-space: nowrap; }
.main-navigation ul.sub-menu li a:hover { background: #f4f7fa; color: var(--lp-accent); }

/* The front page carries its own H1 inside the hero block. */
.page-id-71 .entry-header,
body.home .entry-title { display: none; }

/* ============ Footer columns ============ */
.lp-footer-band { background: var(--lp-navy); color: #c8d6e5; padding: 52px 0 34px; margin-top: 0; }
.lp-fcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.lp-fcol h4 { color: #fff; font-size: 17px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .05em; }
.lp-fcol ul { list-style: none; margin: 0; padding: 0; }
.lp-fcol li { margin-bottom: 9px; font-size: 15px; }
.lp-fcol a { color: #c8d6e5; text-decoration: none; }
.lp-fcol a:hover { color: var(--lp-accent); }
.lp-social { margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.lp-social a { color: #c8d6e5; font-size: 14px; }
@media (max-width: 768px) { .lp-fcols { grid-template-columns: 1fr; gap: 24px; } }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .lp-grid--6 { grid-template-columns: repeat(3, 1fr); }
  .lp-grid--4, .lp-news { grid-template-columns: repeat(2, 1fr); }
  .lp-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lp-section { padding: 44px 0; }
  .lp-h2 { font-size: 25px; }
  .lp-grid--6, .lp-grid--3, .lp-grid--4, .lp-news { grid-template-columns: repeat(2, 1fr); }
  .lp-band__inner { flex-direction: column; align-items: flex-start; }
}
