/* ==========================================================================
   JPcars — Půjčovna dodávek a aut v Brně
   ========================================================================== */

:root {
  /* Color */
  --graphite:      #1B1D1F;
  --graphite-2:    #24272A;
  --graphite-3:    #2E3134;
  --paper:         #F3F0E8;
  --paper-2:       #EAE5D8;
  --gold:          #B2973C;
  --gold-light:    #CBB25C;
  --gold-dark:     #8C7530;
  --ink:           #1B1D1F;
  --ink-muted:     #5B5A54;
  --ink-on-dark:   #EDEAE0;
  --ink-on-dark-muted: #A7A499;
  --line:          #D9D4C7;
  --line-dark:     #3A3D3F;
  --white:         #FFFFFF;
  --success:       #4C7A52;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --gutter: 24px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.4em 0;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.2rem, 5vw + 1rem, 4.2rem); overflow-wrap: break-word; }
h2 { font-size: clamp(1.7rem, 3.2vw + 1rem, 2.7rem); overflow-wrap: break-word; }
h3 { font-size: 1.4rem; overflow-wrap: break-word; }
h4 { font-size: 1.1rem; overflow-wrap: break-word; }

p { margin: 0 0 1em 0; max-width: 62ch; }
p.lead { font-size: 1.15rem; color: var(--ink-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--graphite);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--graphite);
  color: var(--graphite);
}
.btn-outline-dark:hover { background: var(--graphite); color: var(--paper); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(237,234,224,0.4);
  color: var(--ink-on-dark);
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }

.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  background: var(--graphite);
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-header .logo img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--ink-on-dark-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-color: var(--gold);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav-phone svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--graphite);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  .nav-toggle { display: block; }
  .nav-phone span.phone-text { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--graphite);
  color: var(--ink-on-dark);
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 0;
  min-height: 560px;
}
.hero .container > * { min-width: 0; }

.hero-eyebrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p.lead { color: var(--ink-on-dark-muted); margin-bottom: 32px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  padding-bottom: 40px;
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.hero-stats .stat-label {
  font-size: 0.85rem;
  color: var(--ink-on-dark-muted);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-visual img {
  width: 100%;
  min-width: 0;
  max-width: 620px;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.45));
}
.hero-visual .plate {
  position: absolute;
  top: 20px;
  right: 0;
  background: var(--gold);
  color: var(--graphite);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 18px;
  font-size: 1.1rem;
  border-radius: var(--radius);
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; min-height: auto; }
  .hero-visual { order: -1; }
  .hero-stats { flex-wrap: wrap; row-gap: 20px; }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-dark { background: var(--graphite); color: var(--ink-on-dark); }
.section-alt { background: var(--paper-2); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head .kicker {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}
.section-dark .section-head .kicker { color: var(--gold); }
.section-head h2 { margin-bottom: 6px; }
.section-head p { margin: 0; color: var(--ink-muted); }
.section-dark .section-head p { color: var(--ink-on-dark-muted); }

/* ==========================================================================
   Vehicle cards
   ========================================================================== */

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.section-dark .fleet-grid { background: var(--line-dark); border-color: var(--line-dark); }

.car-card {
  background: var(--paper);
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.15s ease;
}
.section-dark .car-card { background: var(--graphite-2); }

.car-card:hover { box-shadow: inset 0 -4px 0 var(--gold); }

.car-card .car-photo {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.car-card .car-photo img { max-height: 150px; width: auto; margin: 0 auto; }

.car-card h3 { margin-bottom: 2px; }
.car-card .car-sub {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.section-dark .car-card .car-sub { color: var(--ink-on-dark-muted); }

.car-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.section-dark .car-specs { border-color: var(--line-dark); color: var(--ink-on-dark-muted); }
.car-specs li { display: flex; justify-content: space-between; padding: 3px 0; }
.car-specs li span:last-child { color: var(--ink); font-weight: 500; }
.section-dark .car-specs li span:last-child { color: var(--ink-on-dark); }

.car-card .car-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
}

.price-plate {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
}
.section-dark .price-plate { color: var(--white); }
.price-plate span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: block;
}
.section-dark .price-plate span { color: var(--ink-on-dark-muted); }

.car-card .btn { padding: 10px 18px; font-size: 0.85rem; }

@media (max-width: 900px) {
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .fleet-grid { grid-template-columns: 1fr; }
}

/* Category tabs (vozidla.html) */
.fleet-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}
.fleet-tabs a {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.fleet-tabs a:hover { border-color: var(--gold); color: var(--ink); }

/* Detailed vehicle row (used on vozidla.html full list) */
.detail-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: -28px;
  margin-bottom: 40px;
}

/* ==========================================================================
   Why us / features
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 32px;
}
.feature-item .feature-icon {
  width: 44px; height: 44px;
  margin-bottom: 16px;
  color: var(--gold);
}
.feature-item h4 { margin-bottom: 8px; }
.feature-item p { font-size: 0.92rem; color: var(--ink-muted); margin: 0; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* Numbered process steps */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: step;
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.steps .step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold);
  line-height: 1;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-muted); }

/* Why-us split */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
}

.reasons { list-style: none; margin: 26px 0 0; padding: 0; }
.reasons li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
}
.reasons li:first-child { border-top: none; }
.reasons .reason-num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.3rem;
  width: 30px;
  flex-shrink: 0;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--graphite);
  color: var(--white);
  padding: 56px 0;
  border-top: 4px solid var(--gold);
}
.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 4px; }
.cta-band p { color: var(--ink-on-dark-muted); margin: 0; }
.cta-band .cta-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cta-band .phone-big {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-row.single { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.82rem; color: var(--ink-muted); margin-top: 14px; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Cards (services / generic)
   ========================================================================== */

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--paper);
  padding: 40px;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--ink-muted); }
@media (max-width: 760px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px;
}
.review-stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; font-size: 0.9rem; }
.review-card p { font-size: 0.93rem; color: var(--ink); margin-bottom: 14px; }
.review-name { font-weight: 600; font-size: 0.88rem; }
@media (max-width: 900px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* Contact info blocks */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

.contact-list { list-style: none; margin: 0 0 36px; padding: 0; }
.contact-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contact-list li:first-child { border-top: none; }
.contact-list .ico { color: var(--gold); flex-shrink: 0; }
.contact-list .label { font-size: 0.82rem; color: var(--ink-muted); }
.contact-list .value { font-weight: 600; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.team-card { border-top: 3px solid var(--gold); padding-top: 16px; }
.team-card .role { color: var(--ink-muted); font-size: 0.85rem; margin-bottom: 10px; }
.team-card .line { font-size: 0.9rem; display: block; margin-bottom: 2px; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--graphite);
  color: var(--ink-on-dark-muted);
  padding: 64px 0 28px;
  border-top: 4px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 24px;
}
.footer-grid .logo img { height: 30px; margin-bottom: 16px; }
.footer-grid p { color: var(--ink-on-dark-muted); font-size: 0.92rem; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ==========================================================================
   Page intro (subpages)
   ========================================================================== */

.page-intro {
  background: var(--graphite);
  color: var(--white);
  padding: 60px 0 50px;
  border-bottom: 4px solid var(--gold);
}
.page-intro .kicker { color: var(--gold); font-weight: 600; font-size: 0.9rem; display:block; margin-bottom: 10px; }
.page-intro p { color: var(--ink-on-dark-muted); max-width: 60ch; }

/* Prose pages (GDPR etc) */
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-muted); max-width: 74ch; }
.prose ul { padding-left: 20px; }
