/* ============================================================
   Karavany KH – styly
   ============================================================ */

:root {
  --teal: #0f8a8a;
  --teal-dark: #0a6b6b;
  --teal-darker: #084f4f;
  --ink: #15302f;
  --ink-soft: #3a4f4e;
  --muted: #6a7c7b;
  --bg: #ffffff;
  --bg-alt: #f3f8f7;
  --border: #e1ecea;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(13, 60, 58, .08), 0 1px 2px rgba(13, 60, 58, .06);
  --shadow-md: 0 10px 30px rgba(13, 60, 58, .10);
  --shadow-lg: 0 24px 60px rgba(13, 60, 58, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --space: clamp(3.5rem, 7vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.18; color: var(--ink); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--teal-dark); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(15, 138, 138, .32); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-outline { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; color: var(--teal); }
.brand-text { font-size: 1.25rem; letter-spacing: -.02em; }
.brand-text strong { color: var(--teal); }

.main-nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); }
.main-nav > a {
  color: var(--ink-soft); font-weight: 500; font-size: .98rem; padding: .35rem 0; position: relative;
}
.main-nav > a:not(.btn):hover { color: var(--teal-dark); text-decoration: none; }
.main-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.main-nav > a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 50, 49, .78) 0%, rgba(8, 50, 49, .52) 42%, rgba(8, 50, 49, .38) 100%),
    linear-gradient(180deg, rgba(8, 50, 49, .25) 0%, rgba(8, 50, 49, .55) 100%);
}
.hero-content { padding: clamp(5rem, 13vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem); max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .4em; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255, 255, 255, .92); max-width: 620px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; list-style: none; padding: 0; margin: 0; }
.hero-badges li { position: relative; padding-left: 1.6rem; font-weight: 500; color: rgba(255, 255, 255, .95); font-size: .98rem; }
.hero-badges li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1.1rem; height: 1.1rem; transform: translateY(-50%);
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700;
  color: var(--teal); margin: 0 0 .6rem;
}
.eyebrow.light { color: rgba(255, 255, 255, .85); }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section-alt { background: var(--bg-alt); }
.section-teal { background: linear-gradient(135deg, var(--teal-dark), var(--teal-darker)); color: #fff; }
.section-teal h2 { color: #fff; }
.section-head { max-width: 720px; margin: 0 0 2.6rem; }
.section-teal .section-intro { color: rgba(255, 255, 255, .9); }
.section-intro { font-size: 1.1rem; color: var(--muted); margin: 0; }
.section-teal .section-intro { color: rgba(255, 255, 255, .9); }
.note { color: var(--muted); font-size: .9rem; margin: -.4rem 0 1.2rem; }

/* ---------- Vehicle ---------- */
.vehicle-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: stretch; }
.vehicle-figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.vehicle-figure img { width: 100%; height: 100%; object-fit: cover; }
.spec-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.spec-card h3 { margin-bottom: 1rem; }
.spec-list { margin: 0; display: grid; gap: 0; }
.spec-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--muted); font-size: .95rem; margin: 0; }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Floorplan ---------- */
.floorplan {
  margin: 2.4rem 0 0; padding: clamp(1rem, 3vw, 2rem);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  text-align: center;
}
.floorplan img { width: 100%; max-width: 760px; height: auto; margin: 0 auto; }
.floorplan figcaption { margin-top: .9rem; color: var(--muted); font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery-title { margin-top: var(--space); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item {
  padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- Equipment ---------- */
.equip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.equip-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.equip-card h3 { color: var(--teal-dark); margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 2px solid var(--bg-alt); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.check-list li { position: relative; padding-left: 1.8rem; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.15rem; height: 1.15rem;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f8a8a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Pricing ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.price-table { width: 100%; border-collapse: collapse; background: var(--bg); min-width: 480px; }
.price-table th, .price-table td { padding: 1.1rem 1.3rem; text-align: left; }
.price-table thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem; }
.price-table tbody tr { border-top: 1px solid var(--border); }
.price-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.price-table .price { font-weight: 700; font-size: 1.15rem; color: var(--teal-dark); white-space: nowrap; }
.season-tag { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #fff; }
.season-a { background: #0a6b6b; }
.season-b { background: #2a9d8f; }
.season-c { background: #5aa9a0; }
.season-d { background: #7bb8b0; }

.price-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.6rem; }
.price-note { background: var(--bg-alt); border-left: 4px solid var(--teal); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; }
.price-note strong { display: block; margin-bottom: .25rem; }
.price-note p { margin: 0; color: var(--muted); }
.cta-center { text-align: center; margin-top: 2.4rem; }

/* ---------- Included ---------- */
.included-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 2rem;
}
.included-list li {
  position: relative; padding: .85rem 1rem .85rem 3rem; font-weight: 500;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-sm);
}
.included-list li::before {
  content: ""; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.2rem; height: 1.2rem;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Terms ---------- */
.terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.term-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.term-card h3 { color: var(--teal-dark); margin-bottom: .5rem; }
.term-card p { margin: 0; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }
.contact-actions { display: grid; gap: 1rem; }
.contact-tile {
  display: flex; flex-direction: column; gap: .25rem; padding: 1.5rem 1.6rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); color: var(--ink); transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.contact-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(15, 138, 138, .12); color: var(--teal-dark); margin-bottom: .35rem; }
.contact-tile-label { color: var(--muted); font-size: .9rem; }
.contact-tile-value { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.contact-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); }
.contact-card h3 { margin-bottom: .9rem; }
.company { font-style: normal; line-height: 2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .82); padding: 2.6rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-brand .brand-text { color: #fff; font-size: 1.3rem; font-weight: 700; }
.footer-brand .brand-text strong { color: var(--teal); }
.footer-brand p { margin: .5rem 0 0; color: rgba(255, 255, 255, .6); max-width: 320px; }
.footer-meta { text-align: right; }
.footer-meta p { margin: .2rem 0; font-size: .92rem; }
.footer-meta a { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 30, 29, .92); padding: 2rem; animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: min(1000px, 92vw); max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: 0; color: #fff;
  font-size: 2.8rem; line-height: 1; cursor: pointer; padding: .2rem .6rem; border-radius: 8px;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .12); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Subpage (obchodni-podminky) ---------- */
.subpage-hero { background: linear-gradient(135deg, var(--teal-dark), var(--teal-darker)); color: #fff; padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.4rem, 6vw, 3.5rem); }
.subpage-hero h1 { color: #fff; margin-bottom: .3em; }
.subpage-hero p { color: rgba(255, 255, 255, .9); margin: 0; }
.legal { max-width: 820px; margin: 0 auto; padding: var(--space) 0; }
.legal h2 { color: var(--teal-dark); margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.legal h2:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.legal p { color: var(--ink-soft); }
.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2.5rem; font-weight: 600; }

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .vehicle-grid { grid-template-columns: 1fr; }
  .terms-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    padding: .5rem 1.2rem 1.2rem; transform: translateY(-130%); transition: transform .3s ease;
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav > a { padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .main-nav > a::after { display: none; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .equip-grid, .price-notes, .contact-grid, .included-list { grid-template-columns: 1fr; }
  .terms-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}

@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
