@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Barlow:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ford-blue: #185FA5;
  --ford-blue-dark: #0C447C;
  --ford-blue-light: #E6F1FB;
  --ford-navy: #0C1B2E;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #9a9a9a;
  --bg: #f5f5f3;
  --surface: #ffffff;
  --border: rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ── HEADER ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.logo-ford {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ford-blue);
  letter-spacing: -0.02em;
}

.logo-name { font-size: 15px; color: var(--text-muted); font-weight: 400; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }

.site-nav a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover { color: var(--text); background: var(--bg); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.header-phone {
  font-size: 15px;
  font-weight: 500;
  color: var(--ford-blue);
  text-decoration: none;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--ford-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--ford-blue-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, border-color 0.15s;
}

.btn-outline:hover { background: var(--bg); border-color: #bbb; }

.btn-hero-primary {
  background: var(--ford-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}

.btn-hero-primary:hover { background: #1a6fba; color: #fff; }

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  font-size: 15px;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.15s, background 0.15s;
}

.btn-hero-outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 0; }

.section-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 6px;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.section-sub { font-size: 15px; color: var(--text-muted); max-width: 520px; }

/* ── HERO ── */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 600px; /* PŘIDEJ: Musí mít výšku, aby se ::after měl do čeho roztáhnout */
  background-color: var(--ford-navy); /* PŘIDEJ: Aby pod průhledným obrázkem byla barva */
  display: flex;
  align-items: center;
}

/* 2. Oprava pseudo-elementu */
.hero-section::after {
  content: '';
  position: absolute;
  right: 0; 
  top: 0;
  width: 50%; 
  height: 100%;
  background-image: url('/wp-content/uploads/2026/04/hero-auto.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; /* PŘIDEJ: Pro jistotu */
  opacity: 0.6; /* Zkus trochu zvýšit pro test, zda je vidět */
  pointer-events: none;
  z-index: 0; /* SNIŽ: Aby obrázek byl pod textem, ale nad pozadím */
  
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
  mask-image: linear-gradient(to right, transparent 0%, black 40%);
}

.hero-inner { position: relative; z-index: 1; }

.hero-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #85B7EB;
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  max-width: 560px;
}

.hero-sub {
  font-size: 17px;
  color: #B5D4F4;
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── USP STRIP ── */
.usp-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}

.usp-item {
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.usp-item:last-child { border-right: none; }

.usp-icon {
  width: 36px; height: 36px;
  background: var(--ford-blue-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.usp-icon svg { width: 18px; height: 18px; fill: var(--ford-blue); }
.usp-title { font-weight: 500; font-size: 15px; }
.usp-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── VOZY ── */
.cars-section { background: var(--bg); }

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.cars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.car-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.car-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.car-card img { width: 100%; height: 180px; object-fit: cover; display: block; }

.car-image-placeholder {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, #dde4ea 0%, #c8d4de 100%);
  display: flex; align-items: center; justify-content: center;
  color: #8a9aaa; font-size: 13px;
}

.car-body { padding: 1rem 1.1rem 1.25rem; }

.car-badge {
  font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: 4px;
  display: inline-block; margin-bottom: 8px;
}

.badge-new   { background: #E6F1FB; color: #0C447C; }
.badge-demo  { background: #EAF3DE; color: #27500A; }
.badge-stock { background: #FAEEDA; color: #633806; }

.car-name  { font-weight: 500; font-size: 16px; margin-bottom: 2px; }
.car-motor { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.car-price { font-size: 17px; font-weight: 600; color: var(--ford-blue); }

.car-cta {
  margin-top: 12px; display: block; text-align: center;
  padding: 9px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-muted); text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.car-cta:hover { background: var(--bg); border-color: #bbb; color: var(--text); }

/* ── SERVICES ── */
.services-section { background: var(--surface); }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 2.5rem; }

.service-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; background: var(--bg); }

.service-icon {
  width: 44px; height: 44px;
  background: var(--ford-blue-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}

.service-icon svg { width: 22px; height: 22px; fill: var(--ford-blue); }
.service-title { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 0.5rem; }
.service-text { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.25rem; }

/* ── WHY ── */
.why-section { background: var(--ford-navy); }

.why-label { color: #85B7EB; }
.why-title { color: #fff; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 2.5rem; }

.why-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 1.5rem 1.25rem;
}

.why-num { font-family: 'Barlow Condensed', sans-serif; font-size: 36px; font-weight: 700; color: var(--ford-blue); line-height: 1; margin-bottom: 6px; }
.why-item-title { font-weight: 500; color: #fff; font-size: 15px; margin-bottom: 4px; }
.why-item-desc { font-size: 13px; color: #85B7EB; line-height: 1.55; }

/* ── CONTACT ── */
.contact-section { background: var(--bg); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }

.contact-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem;
}

.contact-row-icon {
  width: 36px; height: 36px;
  background: var(--ford-blue-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.contact-row-icon svg { width: 17px; height: 17px; fill: var(--ford-blue); }
.contact-row-label { font-size: 12px; color: var(--text-light); }
.contact-row-value { font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; }
.contact-row-value:hover { color: var(--ford-blue); }

.maps-placeholder {
  background: #dde4ea; border-radius: var(--radius); height: 180px;
  display: flex; align-items: center; justify-content: center;
  color: #8a9aaa; font-size: 13px; border: 1px solid var(--border);
}

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.form-title { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 1.25rem; }
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; color: var(--text-muted); }

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Barlow', sans-serif; font-size: 14px;
  background: var(--bg); color: var(--text);
  transition: border-color 0.15s; outline: none;
}

.form-row input:focus,
.form-row textarea:focus { border-color: var(--ford-blue); }
.form-row textarea { height: 100px; resize: vertical; }
.form-submit { width: 100%; padding: 12px; font-size: 15px; }

/* WordPress default form styles override (CF7) */
.wpcf7-form .wpcf7-submit { width: 100%; }
.wpcf7-not-valid-tip { font-size: 12px; color: #c0392b; margin-top: 4px; display: block; }
.wpcf7-response-output { margin-top: 1rem; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; }

/* ── FOOTER ── */
.site-footer { background: var(--ford-navy); color: #85B7EB; padding: 2rem 0; font-size: 13px; }

.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}

.footer-logo { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 700; color: #fff; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #85B7EB; text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .cars-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .usp-grid { grid-template-columns: 1fr; }
  .usp-item { border-right: none; border-bottom: 1px solid var(--border); }
  .usp-item:last-child { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cars-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 38px; }
  .hero-buttons { flex-direction: column; }
  .btn-hero-primary, .btn-hero-outline { text-align: center; }
}
.cars-section { padding: 4rem 0; background: #fff; }

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.car-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.car-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.car-image img { width: 100%; height: 200px; object-fit: cover; }

.car-details { padding: 1.5rem; text-align: center; }

.car-details h3 { margin-bottom: 0.5rem; color: var(--ford-blue); }

.btn-card {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: var(--ford-blue);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
/* Tato část zajistí, že text u všech aut odskočí od okraje */
.cars-grid .car-card .car-details {
    padding: 30px !important;    /* Toto vytvoří 30px mezeru od okraje */
    text-align: left !important; /* Toto zarovná text doleva */
    display: block !important;
}

.cars-grid .car-card .car-details h3 {
    margin-left: 0 !important;
    text-align: left !important;
}

.cars-grid .car-card .car-details p {
    margin-left: 0 !important;
    text-align: left !important;
}
/* Oprava velikosti karet - aby nebyly obrovské, když jsou jen dvě */
.cars-grid {
  display: grid;
  /* Nastavíme pevnější mřížku na 3 sloupce */
  grid-template-columns: repeat(3, 1fr); 
  gap: 2rem;
  margin-top: 2rem;
}

/* Na mobilech ale chceme, aby byla pod sebou (1 sloupec) */
@media (max-width: 992px) {
  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cars-grid {
    grid-template-columns: 1fr;
  }
}

/* Omezení maximální šířky jedné karty */
.car-card {
  max-width: 400px; 
  width: 100%;
  justify-self: start; /* Zarovná je doleva, ne na střed */
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
/* --- RESPONZIVNÍ LOGO --- */

/* Základní nastavení pro počítače (šířka nad 992px) */
.logo-img {
    height: 45px !important; /* Výška na PC */
    width: auto !important;
    max-width: 100% !important;
    display: block !important;
}

/* Nastavení pro tablety (šířka pod 992px) */
@media (max-width: 992px) {
    .logo-img {
        height: 35px !important; /* Na tabletu logo trochu zmenšíme */
    }
    .header-inner {
        height: 70px !important; /* Zmenšíme i výšku lišty */
    }
}

/* Nastavení pro mobilní telefony (šířka pod 600px) */
@media (max-width: 600px) {
    .logo-img {
        height: 28px !important; /* Na mobilu logo zmenšíme nejvíce, aby se tam vešlo */
    }
    .header-inner {
        height: 60px !important; /* Lišta na mobilu bude mít jen 60px */
        padding: 0 15px !important; /* Menší mezery po stranách */
    }
}

.site-logo {
    display: flex !important;
    align-items: center !important;
    padding: 10px 0 !important;
}

.header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 80px !important; /* Výška celé lišty */
}