/* ==========================================================================
   JURA CARS – Optimized CSS (same visuals, lighter rules)
   ========================================================================== */
:root{
  --bg:#1e2124;--panel:#2a2f36;--muted:#bbc3cf;--text:#f2f5f9;--line:#353b44;
  --accent:#e11f26;--accent-600:#c30f20;--accent-700:#9b0c1a;--green:#20c997;
  --header-offset:80px
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
[id]{scroll-margin-top:var(--header-offset)}
body{
  margin:0;min-height:100vh;display:flex;flex-direction:column;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  background:var(--bg);color:var(--text);line-height:1.6;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
main{flex:1} footer{margin-top:auto}

.container{width:min(1200px,92vw);margin-inline:auto}

/* Focus ring */
:where(a,button,input,textarea){outline:none}
:where(a,button,input,textarea):focus-visible{
  box-shadow:0 0 0 3px rgba(225,31,38,.35);border-radius:10px
}

/* =========================
   Header / Navigation
   ========================= */
header{
  position:sticky;top:0;z-index:50;
  backdrop-filter:saturate(1.2) blur(6px);
  background:linear-gradient(180deg,rgba(25,27,31,.85),rgba(25,27,31,.55));
  border-bottom:1px solid var(--line)
}
.nav{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 0;position:relative
}
.brand .logo{height:55px;width:auto;display:block}

/* Desktop menu */
.menu{display:flex;gap:16px;align-items:center}
.menu a{padding:8px 10px;border-radius:10px;color:var(--muted)}
.menu a:hover{color:var(--text);background:#1f2329}

/* Toggle (hamburger) */
.menu-toggle{
  display:none;width:44px;height:44px;padding:0;font-size:0;cursor:pointer;
  border-radius:12px;border:1px solid var(--line);background:#1f2329;color:var(--text);
  display:none;align-items:center;justify-content:center;
  transition:background .2s,border-color .2s,transform .15s
}
.menu-toggle:hover{background:#22262d;border-color:#404854}
.menu-toggle:active{transform:translateY(1px)}
.bars{position:relative;display:inline-block;width:22px;height:2px;background:currentColor;border-radius:2px;transition:transform .25s,background .2s}
.bars::before,.bars::after{
  content:"";position:absolute;left:0;width:22px;height:2px;background:currentColor;border-radius:2px;transition:transform .25s,top .25s,bottom .25s,opacity .2s
}
.bars::before{top:-7px}.bars::after{bottom:-7px}
.menu-toggle.is-active .bars{background:transparent}
.menu-toggle.is-active .bars::before{top:0;transform:rotate(45deg)}
.menu-toggle.is-active .bars::after{bottom:0;transform:rotate(-45deg)}

/* Social / icon buttons */
.menu-social{display:flex;align-items:center;gap:10px}
.icon-btn{
  width:40px;height:40px;display:inline-flex;place-content:center;
  border:1px solid var(--line);border-radius:10px;background:#1f2329;
  transition:transform .15s,background .2s,border-color .2s
}
.icon-btn:hover{background:#22262d;border-color:#404854}
.icon-btn img{display:block;filter:invert(90%) brightness(95%)}

/* =========================
   Buttons
   ========================= */
.btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:10px 16px;border-radius:10px;font-weight:700;
  border:1px solid transparent;transition:transform .15s,background .2s
}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent-600);transform:translateY(1px)}
.btn-outline{border-color:var(--line);color:var(--text);background:transparent}
.btn-outline:hover{border-color:#404854;background:#1d2229}
.btn.tel{white-space:nowrap}

/* =========================
   Hero
   ========================= */
.hero{position:relative;isolation:isolate;display:flex;align-items:center}
.hero::before{
  content:"";position:absolute;inset:0;z-index:-2;
  background-image: image-set(
    url('/images/hero.jpg') type('image/jpeg')
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter:grayscale(.2) brightness(.5) contrast(1.05)
}
.hero::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:radial-gradient(70% 60% at 50% 55%,rgba(225,31,38,.22),transparent 60%)
}
.hero .wrap{padding:86px 0 64px;width:100%;max-width:min(1200px,92vw);margin-inline:auto}
.kicker{color:#cfd6e2;text-transform:uppercase;letter-spacing:.16em;font-weight:700;font-size:.85rem}
h1{font-size:clamp(28px,3.8vw,52px);margin:10px 0 12px;line-height:1.15}
.lead{max-width:640px;color:#dfe6f1}
.cta{margin-top:22px;display:flex;gap:12px;flex-wrap:wrap}


/* =========================
   Sections
   ========================= */
section{padding:52px 0}
.section-title{font-size:clamp(28px,3.2vw,44px);margin:0 0 20px;font-weight:800;letter-spacing:.3px}

/* =========================
   Cards
   ========================= */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.card{
  position:relative;background:var(--panel);border:1px solid rgba(0,0,0,.25);
  border-radius:32px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.25)
}
.card img{width:100%;height:220px;object-fit:cover;aspect-ratio:16/9}
.card-body{padding:18px 20px 20px}
.car-title{font-weight:800;margin:4px 0 12px;font-size:1.1rem}
.specs{
  display:grid;grid-template-columns:1fr 1fr;row-gap:12px;column-gap:16px;
  color:var(--muted);font-size:.95rem;margin-bottom:14px
}
.spec{display:inline-flex;align-items:center;gap:8px}
.spec .icon{width:18px;height:18px;display:inline-block;vertical-align:middle;margin-right:6px;fill:#fff}

/* Listing status (sold/reserved) */
.card.is-dimmed img{filter:grayscale(1) brightness(.7) contrast(.9)}
.status-overlay{
  position:absolute;inset:0;background:rgba(0,0,0,.55);display:flex;place-content:center;place-items:center;
  text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#fff;
  font-size:clamp(18px,3.2vw,36px);z-index:2;pointer-events:none
}
/* Card bottom row: button left, price right */
/* === Keep price row aligned across cards === */
.cards .card{
  display:flex;
  flex-direction:column;
}

.cards .card-body{
  display:flex;
  flex-direction:column;
  flex:1;                 /* body fills remaining space under image */
}

.cards .card-actions{
  margin-top:auto;        /* push actions to the bottom of the body */
  padding-top:16px;       /* small breathing room above */
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}


.price{
  margin-left:auto;
  display:flex;
  flex-direction:column;     /* stack old over new */
  align-items:flex-end;      /* right-align numbers */
  gap:2px;
  line-height:1.15;
}

/* old price (top) */
.price .old{
  color:var(--muted);
  text-decoration:line-through;
  font-weight:600;
  font-size:clamp(.85rem, 1.2vw, 1rem);
}

/* new price (bottom) - bigger & bolder */
.price .new{
  color:#fff;
  font-weight:900;
  font-size:clamp(1.1rem, 2.2vw, 1.4rem);
}



/* =========================
   About
   ========================= */
.about-panel{
  background:var(--panel);border:1px solid var(--line);border-radius:32px;
  padding:32px;display:grid;grid-template-columns:2fr 1fr;gap:20px;align-items:stretch
}
.about-text{display:flex;flex-direction:column;justify-content:center}
.about-text p{margin:0 0 14px}

/* Equal-height 2×2 stats */
.stats{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,1fr);gap:14px;height:100%;align-items:stretch
}
.stat{
  display:flex;flex-direction:column;justify-content:center;
  background:#222831;border:1px solid var(--line);border-radius:14px;
  padding:18px 20px;height:100%;min-height:0
}
.stat small{font-size:clamp(14px,1.1vw,16px);font-weight:600;color:var(--muted);line-height:1.35}
.stat .value{font-weight:800;font-size:clamp(22px,1.9vw,30px);margin-top:8px;line-height:1.15;min-height:1.2em}

/* =========================
   Contact
   ========================= */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.contact-card{background:var(--panel);border:1px solid var(--line);border-radius:32px;padding:32px}
.list{list-style:none;padding:0;margin:6px 0 0}
.list li{display:flex;gap:10px;align-items:flex-start;padding:8px 0;color:#e4e9f2}
.list li svg{
  flex:0 0 18px;
  width:18px;
  height:18px;
  margin-top:2px;        /* zarovnání s prvním řádkem textu */
  fill: var(--accent);
}
.muted{color:var(--muted)}
.form{display:grid;margin:0;gap:10px}
.field{display:grid;gap:8px}
.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}
label{font-weight:600}
input,textarea{
  width:100%;background:#222831;color:var(--text);
  border:1px solid var(--line);border-radius:12px;padding:12px
}
input::placeholder,textarea::placeholder{color:#96a0b0}
textarea{height:140px;resize:none}
.textarea-wrap{position:relative}
.char-count{position:absolute;right:10px;bottom:8px;font-size:.85rem;color:var(--muted)}

.about-media {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #222831;

  /* make sure it has some height */
  width: 100%;
  aspect-ratio: 4 / 3;  /* or 16 / 9 */
}

.about-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;     /* this makes it FILL the box */
}


/* =========================
   Footer
   ========================= */
footer{border-top:1px solid var(--line);padding:28px 0;color:var(--muted)}
.footer-wrap{display:flex;align-items:center;justify-content:space-between;gap:16px}
.footer-social{display:flex;gap:12px}
.footer-social a img{
  width:22px;height:22px;display:block;filter:invert(80%) brightness(90%);transition:filter .2s
}
.footer-social a:hover img{filter:invert(100%) brightness(120%)}

/* =========================
   Language pills
   ========================= */
.menu-lang{display:flex;gap:8px;align-items:center}
.menu .lang-btn{
  padding:0;margin:0;display:inline-grid;place-items:center;width:32px;height:32px;border:0;border-radius:9999px;
  background:transparent;color:var(--text);
  font:600 12px/1 Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;text-transform:uppercase;letter-spacing:.04em;
  box-shadow:0 0 0 1px rgba(255,255,255,.35) inset;opacity:.9;
  transition:opacity .15s,transform .1s,box-shadow .2s;line-height:normal
}
.menu .lang-btn:hover{opacity:1;box-shadow:0 0 0 1.5px rgba(255,255,255,.6) inset}
.menu .lang-btn.is-active{box-shadow:0 0 0 2px #fff inset}

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width:1080px){
  .cards{grid-template-columns:1fr}
  .card img{height: 350px;}
  .brand .logo{height:50px}
  .about-panel{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
}

/* Mobile: full-screen overlay menu + scroll lock */
@media (max-width:760px){
  header{border-bottom:0}
  .container{width:min(1000px,94vw)}
  section{padding:40px 0}
  .hero .wrap{padding:72px 10px 52px}
  .kicker{text-align:center}
  .cta{display:flex;justify-content:space-around}
  .hero h1{display:none}
  .card img{height:190px}
  .stats{grid-template-columns:1fr;grid-auto-rows:auto}
  .two-cols{grid-template-columns:1fr}
  .brand .logo{height:44px}

  .menu-toggle{display:inline-flex;z-index:10001}
  .menu{
    position:fixed;inset:0;width:100vw;height:100dvh;background:#0d0f12;z-index:10000;
    display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:14px;
    padding:96px 24px 24px;transform:translateY(-100%);opacity:0;pointer-events:none;
    transition:transform .35s ease,opacity .3s ease;overflow:hidden;overscroll-behavior:none
  }
  .menu.is-open{transform:translateY(0);opacity:1;pointer-events:auto}
  body.menu-open{overflow:hidden;height:100dvh}
  html:has(.menu.is-open),body:has(.menu.is-open){overflow:hidden;height:100dvh}

  .menu-logo{display:block;margin-bottom:28px;max-width:160px}
  .menu-logo img{width:100%;height:auto}

  .menu a{
    display:block;width:100%;max-width:520px;text-align:center;color:#e9eef7;
    background:transparent;border:1px solid rgba(255,255,255,.08);
    border-radius:12px;padding:16px 14px;font-size:1.2rem
  }
  .menu a:hover{background:rgba(255,255,255,.06)}
  .menu-sep{display:block;width:100%;max-width:520px;height:1px;background:rgba(255,255,255,.15);margin:14px 0}

  .menu-social{display:flex;justify-content:center;align-items:center;gap:14px;margin-bottom:6px}
  .menu .icon-btn{
    display:inline-grid;place-items:center;width:48px;height:48px;max-width:none;padding:0;margin:0;
    border:1px solid rgba(255,255,255,.10);background:transparent;line-height:0;font-size:0
  }
  .icon-btn:hover{background:rgba(255,255,255,.06)}
  .icon-btn img{width:20px;height:20px}

  .menu .menu-lang{
    position:absolute;top:14px;left:16px;justify-content:flex-start;gap:10px;width:auto;margin:0
  }
  .menu .lang-btn{
    width:48px;height:48px;border:0!important;box-shadow:0 0 0 1px rgba(255,255,255,.18) inset;
    line-height:0;font-size:12px;font-weight:700
  }
}
@media (max-width:480px){.card img{height:170px}}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
