/*
Theme Name: Pirksiu Auto
Theme URI: https://pirksiu-auto.lt/
Author: Darek.K
Text Domain: pirksiu-auto-v4
*/

:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --text:#0b1220;
  --muted:rgba(11,18,32,.66);
  --line:rgba(11,18,32,.10);
  --shadow:0 18px 55px rgba(11,18,32,.10);
  --radius:22px;

  /* CTA */
  --cta:#111827;        /* Siųsti užklausą / Gauti įvertinimą */
  --cta2:#0f766e;       /* Skambinti */
  --cta3:#6d28d9;       /* Viber (accent) */
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  background:linear-gradient(180deg,#fbfcff 0%, #ffffff 55%, #fbfcff 100%);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.55;
}

img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:1120px;margin:0 auto;padding:0 16px}

/* Scroll lock for drawer (works reliably across browsers) */
html.pa-lock{overflow:hidden;height:100%;}
body.pa-lock{overflow:hidden;height:100%;position:fixed;left:0;right:0;width:100%;}

/* ===== Header (burger only on all devices) ===== */
.site-header{
  position:sticky;top:0;z-index:80;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
}

.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand img{height:44px;width:auto}

.burger{
  width:48px;height:46px;border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(11,18,32,.08);
}
.burger span{
  width:18px;height:2px;background:rgba(11,18,32,.85);
  border-radius:2px;position:relative
}
.burger span:before,.burger span:after{
  content:"";position:absolute;left:0;right:0;height:2px;
  border-radius:2px;background:rgba(11,18,32,.85)
}
.burger span:before{top:-6px}
.burger span:after{top:6px}

/* ===== Drawer menu ===== */
.drawer{
  position:fixed;inset:0;z-index:1000;
  min-height:100dvh;
  background:rgba(11,18,32,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding:14px;
  display:none;
  align-items:start;
}
.drawer.is-open{display:grid}
.drawer[hidden]{display:none !important}

.drawer .panel{
  width:100%;max-width:540px;margin:10px auto 0;
  background:#fff;border:1px solid var(--line);
  border-radius:24px;box-shadow:var(--shadow);
  padding:14px;
  transform:translateY(-6px);opacity:0;
  transition: opacity .16s ease, transform .16s ease;
}
.drawer.is-open .panel{transform:translateY(0);opacity:1}

.drawer-head{
  display:flex;align-items:center;justify-content:flex-end;
  gap:10px;
  padding:6px 6px 10px
}
.drawer-lang{
  display:none; /* visible only on mobile */
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
}
.drawer-lang .lang-link{ font-weight:700; }
.drawer-lang .lang-sep{ opacity:.5; }
.drawer-close{
  width:42px;height:42px;border-radius:16px;
  border:1px solid var(--line);background:#fff;cursor:pointer;font-weight:900;
}

.mobile-menu{display:flex;flex-direction:column;gap:8px;padding:0;margin:0;list-style:none}
.mobile-menu a{
  display:block;padding:12px 12px;border-radius:18px;
  border:1px solid var(--line);background:#fff;font-weight:900;
}
.mobile-menu a:hover{background:rgba(11,18,32,.03)}

/* ===== Sections / Typography ===== */
.section{padding:54px 0}
.section-tight{padding:38px 0}

.kicker{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border-radius:999px;
  border:1px solid rgba(11,18,32,.10);
  background:rgba(11,18,32,.03);
  color:rgba(11,18,32,.82);
  font-weight:900;font-size:13px;
}

.h1{font-size:48px;line-height:1.04;margin:14px 0 10px;font-weight:980;letter-spacing:-.02em}
.h2{font-size:18px;margin:0 0 12px;color:rgba(11,18,32,.78);font-weight:850}
.lead{color:var(--muted);font-size:15px;max-width:70ch}

/* ===== Hero ===== */
.hero{
  display:grid;grid-template-columns:1.1fr .9fr;
  gap:18px;align-items:stretch;
}

.card{
  background:#fff;border:1px solid var(--line);
  border-radius:28px;box-shadow:var(--shadow);
}

.hero-left{padding:22px}
.hero-right{overflow:hidden;min-height:340px}
.hero-photo{width:100%;height:100%;object-fit:cover;min-height:340px}

.cta-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 14px;border-radius:18px;font-weight:950;
  border:1px solid var(--line);background:#fff;cursor:pointer;
}
.btn svg{width:18px;height:18px}

/* CTA buttons */
.btn-cta{
  background:var(--cta);
  border-color:rgba(17,24,39,.22);
  color:#fff;
}
.btn-cta:hover{filter:brightness(1.06)}

.btn-call{
  background:var(--cta2);
  border-color:rgba(15,118,110,.25);
  color:#fff;
}
.btn-call:hover{filter:brightness(1.06)}

.btn-viber{
  background:var(--cta3);
  border-color:rgba(109,40,217,.25);
  color:#fff;
}
.btn-viber:hover{filter:brightness(1.06)}

.features{
  margin-top:16px;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
}
.feature{
  padding:12px 12px;border-radius:20px;border:1px solid var(--line);background:#fff;
}
.feature b{display:block;font-size:13px}
.feature span{display:block;color:var(--muted);font-size:12px;margin-top:2px}

/* ===== Blocks ===== */
.grid-3{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;margin-top:14px
}
.tile{padding:16px;border-radius:22px;border:1px solid var(--line);background:#fff}
.tile .num{
  width:30px;height:30px;border-radius:12px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(15,118,110,.10);
  border:1px solid rgba(15,118,110,.18);
  font-weight:950;margin-bottom:10px;
}
.tile b{display:block}
.tile span{display:block;color:var(--muted);font-size:13px;margin-top:6px}

/* ===== Works slider ===== */
.slider{
  position:relative;overflow:hidden;border-radius:28px;
  border:1px solid var(--line);background:#fff;box-shadow:var(--shadow)
}
.track{display:flex;transition:transform .6s ease;will-change:transform}
.slide{flex:0 0 33.333%;padding:12px}
.work{height:100%;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#fff}
.work img{width:100%;height:190px;object-fit:cover}
.work .cap{padding:12px}
.work .cap b{display:block;font-size:13px}
.work .cap span{display:block;color:var(--muted);font-size:12px;margin-top:6px}

.dots{display:flex;gap:8px;justify-content:center;margin-top:12px}
.dot{width:8px;height:8px;border-radius:999px;background:rgba(11,18,32,.18)}
.dot.active{background:rgba(11,18,32,.78)}

/* ===== FAQ ===== */
.faq{margin-top:12px}
.faq details{
  border:1px solid var(--line);
  border-radius:20px;background:#fff;
  padding:12px 14px;margin:10px 0
}
.faq summary{cursor:pointer;font-weight:950}
.faq p{color:var(--muted);margin:8px 0 0}

/* ===== Footer ===== */
.site-footer{border-top:1px solid var(--line);background:#fff}
.footer-inner{
  display:flex;justify-content:space-between;gap:12px;
  flex-wrap:wrap;padding:18px 0
}
.footer-meta{color:var(--muted);font-size:13px}

/* ===== Bottom hotbar (always visible) ===== */
.hotbar{
  position:fixed;left:0;right:0;bottom:0;z-index:90;
  padding:12px 14px;
  padding-bottom:calc(12px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top:1px solid var(--line);
}
.hotbar-inner{display:flex;gap:10px}
.hotbar .btn{flex:1}

/* Make room so the hotbar doesn't cover page content */
body{padding-bottom:calc(86px + env(safe-area-inset-bottom));}

/* ===== Responsive ===== */
@media (max-width:980px){
  .hero{grid-template-columns:1fr}
  .hero-right{min-height:240px}
  .hero-photo{min-height:240px}
}
@media (max-width:860px){
  .features{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .slide{flex-basis:100%}
}

.page-card{ padding:18px; }
.section-title{ font-size:22px; margin:0; }
.form-card{ padding:18px; margin-top:12px; }
.hero-icons{ display:flex; gap:12px; flex-wrap:wrap; margin-top:14px; }
.hero-icon{ display:flex; align-items:center; gap:8px; padding:10px 12px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.hero-icon small{ color:var(--muted); font-weight:800; }

/* ===== HOTBAR BUTTONS: final force (fix transparent backgrounds) ===== */
body .hotbar .hotbar-inner a.btn{
  background: #fff !important;              /* ключ: background */
  background-image: none !important;
  color: var(--text) !important;
  border: 1px solid rgba(11,18,32,.18) !important;
  box-shadow: 0 10px 24px rgba(11,18,32,.10) !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

body .hotbar .hotbar-inner a.btn.btn-call{
  background: var(--cta2) !important;
  color:#fff !important;
  border-color: rgba(15,118,110,.25) !important;
}

body .hotbar .hotbar-inner a.btn.btn-viber{
  background: var(--cta3) !important;
  color:#fff !important;
  border-color: rgba(109,40,217,.25) !important;
}

body .hotbar .hotbar-inner a.btn.btn-cta{
  background: var(--cta) !important;
  color:#fff !important;
  border-color: rgba(17,24,39,.22) !important;
}




/* Header extras */
.header-phone{
  display:flex;align-items:center;gap:8px;
  font-weight:700;
  color:var(--text);
  text-decoration:none;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}
.header-phone .phone-ico{font-size:16px;line-height:1}
.header-phone .phone-num{white-space:nowrap}

.lang-switch{
  display:flex;align-items:center;gap:8px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  font-weight:700;
}
.lang-switch .lang-link{
  color:var(--text);
  text-decoration:none;
  opacity:.75;
}
.lang-switch .lang-link:hover{opacity:1}
.lang-switch .lang-sep{opacity:.35}

@media (max-width: 520px){
  .header-inner{gap:10px}
  .brand img{height:44px}
  .header-phone{padding:8px 10px;font-size:14px}
  .lang-switch{padding:8px 10px;font-size:14px}
}
@media (max-width: 420px){
  .header-phone{padding:7px 9px;font-size:13px}
  .header-phone .phone-num{display:inline; font-size:13px;}
}

/* Tight mobile header: keep logo + number + full burger visible */
@media (max-width: 400px){
  .header-inner{ gap:8px; }
  .brand-logo{ height:46px; max-width: 185px; }
  .header-phone .phone-ico{ display:none; }
  .header-phone{ padding:6px 8px; }
  .burger{ width:44px; height:44px; border-radius:14px; }
}

@media (max-width: 360px){
  .header-inner{ gap:6px; }
  .brand-logo{ height:44px; max-width: 170px; }
  .header-phone{ font-size:12px; padding:6px 7px; }
}

/* About page */
.about-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:22px;align-items:start}
.about-left,.about-right{padding:18px}
.chips{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 18px}
.chip{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;font-weight:700;font-size:13px;color:rgba(11,18,32,.78)}
.list{margin:12px 0 0 18px}
.list li{margin:10px 0;color:rgba(11,18,32,.82)}
.btn-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.about-photo{width:100%;height:auto;border-radius:18px;box-shadow:0 18px 45px rgba(11,18,32,.12);border:1px solid var(--line);margin-top:14px}
@media (max-width: 940px){.about-grid{grid-template-columns:1fr}}


/* === Header logo (strict Pirksiu-Auto.lt) === */
.brand-logo{
  display:block;
  height:60px;
  width:auto;
  max-width:100%;
}
@media (max-width: 640px){
  .brand-logo{ height:52px; max-width: 260px; }
}

/* Move language switcher into burger on mobile */
@media (max-width: 720px){
  .header-inner .lang-switch{ display:none; }
  .drawer-lang{ display:flex; }
}

@media (min-width: 721px){
  .drawer-lang{ display:none; }
}

/* Captions with LT/RU labels in "Mūsų darbai" */
.cap-lines{ display:flex; flex-direction:column; gap:4px; }
.cap-lt,.cap-ru{ font-size: 12px; opacity:.9; }
