/* ================================================
   Driving School Jihlava – site.css
   Modern redesign 2025
   ================================================ */

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

:root {
  --blue:       #2563eb;
  --blue-dark:  #1d4ed8;
  --blue-bg:    #eff6ff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-500:   #64748b;
  --gray-600:   #475569;
  --gray-800:   #1e293b;
  --gray-900:   #0f172a;
  --white:      #ffffff;
  --radius:     8px;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.08);
  --shadow:     0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -1px rgba(0,0,0,.06);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  line-height: 1.65;
  font-size: 16px;
  background: var(--white);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- CONTAINER ---- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================================================
   HEADER / NAV
   ================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}
.logo-primary {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -.01em;
}
.logo-secondary {
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  align-items: center;
}
.nav-links a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  color: var(--gray-800);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-links a:hover {
  background: var(--gray-100);
  color: var(--blue);
  text-decoration: none;
}

.lang-item { margin-left: 0.5rem; }
.lang-item a {
  background: var(--blue) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 0.35rem 0.8rem !important;
  border-radius: 20px !important;
  font-size: 0.82rem !important;
}
.lang-item a:hover {
  background: var(--blue-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all .2s;
}

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/autoskola-jihlava-1.jpg') center / cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.75) 0%, rgba(30,64,175,.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: .9;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .15s;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.65);
}
.btn-ghost:hover { background: rgba(255,255,255,.15); }

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

/* ================================================
   SECTIONS
   ================================================ */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-50); }

.section-label {
  display: inline-block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--gray-900);
  letter-spacing: -.02em;
}
.section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}
.section p { margin-bottom: 0.75rem; }

/* ================================================
   TWO COLUMN GRID
   ================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* ================================================
   QUOTE
   ================================================ */
.quote {
  border-left: 3px solid var(--blue);
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  font-style: italic;
  color: var(--gray-600);
  background: var(--blue-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  line-height: 1.6;
}
.quote cite {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.4rem;
  font-style: normal;
  font-weight: 500;
}

/* ================================================
   FEATURE LIST
   ================================================ */
.feature-list {
  list-style: none;
  padding: 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '✓';
  flex-shrink: 0;
  color: var(--blue);
  font-weight: 700;
  margin-top: .05rem;
}

/* ================================================
   PRICING
   ================================================ */
.price-highlight {
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.price-highlight-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.price-highlight-header h3 {
  margin: 0;
  font-size: 1.15rem;
}
.price-amount {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -.02em;
}
.price-amount sup { font-size: 1rem; vertical-align: top; margin-top: .35rem; display: inline-block; }
.price-highlight p { color: var(--gray-600); font-size: 0.9rem; margin: 0; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin-bottom: 0.5rem;
}
.price-table caption {
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  padding-bottom: 0.75rem;
  color: var(--gray-900);
}
.price-table tr:first-child td { border-top: 1px solid var(--gray-200); }
.price-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.price-table td:last-child {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
  color: var(--gray-900);
}
.price-note {
  font-size: 0.855rem;
  color: var(--gray-600);
  margin: 1rem 0 2rem;
  line-height: 1.6;
}

/* ================================================
   ENROLLMENT / STEPS
   ================================================ */
.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.95rem;
}
.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  color: var(--blue);
  font-weight: 700;
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 0.9rem;
  padding: 0.65rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--gray-200);
  align-items: flex-start;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  margin-top: .1rem;
}

/* ================================================
   DOCUMENTS
   ================================================ */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.doc-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-800);
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.doc-link:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  text-decoration: none;
}
.doc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 0.2rem 0.4rem;
  background: var(--blue);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: .03em;
  flex-shrink: 0;
}
.doc-badge.doc-word { background: #1a56db; }

/* ================================================
   CONTACT
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.93rem;
}
.contact-row:last-of-type { border-bottom: none; }
.contact-icon {
  flex-shrink: 0;
  font-style: normal;
  width: 20px;
  text-align: center;
  color: var(--blue);
  margin-top: .1rem;
}
.map-link {
  display: block;
  text-decoration: none;
}
.map-link:hover { text-decoration: none; }

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 320px;
  background: var(--gray-100);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  color: var(--gray-600);
  font-size: 0.95rem;
  text-align: center;
  padding: 2rem;
  transition: background .15s, border-color .15s;
}
.map-link:hover .map-placeholder {
  background: var(--blue-bg);
  border-color: var(--blue);
}
.map-pin { font-size: 2.5rem; }
.map-cta {
  font-weight: 600;
  color: var(--blue);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--gray-800);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.social-links a:hover {
  background: var(--blue);
  color: var(--white);
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--gray-900);
  color: #94a3b8;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.855rem;
}
.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}
.site-footer a:hover { color: var(--white); }
.site-footer .sep { margin: 0 0.6rem; opacity: .4; }

/* ================================================
   FAQ (details/summary)
   ================================================ */
.faq { margin-top: 0.5rem; }
.faq details {
  border-bottom: 1px solid var(--gray-200);
}
.faq details:first-child { border-top: 1px solid var(--gray-200); }
.faq summary {
  padding: 1rem 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--blue);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body {
  padding: 0 0.25rem 1rem;
  color: var(--gray-600);
  font-size: 0.93rem;
  line-height: 1.7;
}
.faq .faq-body ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}
.faq .faq-body li { margin-bottom: 0.3rem; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 1rem;
    gap: 0.1rem;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 0.65rem 1rem; width: 100%; }
  .lang-item { margin-left: 0; }
  .lang-item a {
    display: inline-flex !important;
    width: auto !important;
    border-radius: 20px !important;
  }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }

  .hero { min-height: 75vh; }
  .hero-content h1 { font-size: 2.2rem; }

  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .section { padding: 2.75rem 0; }
  .section h2 { font-size: 1.6rem; }
  .hero-content { padding: 3.5rem 1.25rem 3rem; }
  .price-amount { font-size: 1.6rem; }
}
