/* ==========================================================================
   Půjčovna Karviná — design systém
   Barvy: lesní zelená / oranžová CTA / krémová / antracit / khaki
   Typografie: Poppins (nadpisy) / Inter (text)
   ========================================================================== */

:root {
  --forest: #1B3A2B;
  --forest-dark: #12281d;
  --forest-light: #2c5641;
  --orange: #E8622C;
  --orange-dark: #c94f1f;
  --cream: #F7F3EA;
  --charcoal: #232420;
  --khaki: #D8CBA9;
  --white: #ffffff;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 8px 30px rgba(27, 58, 43, 0.12);
  --shadow-sm: 0 2px 10px rgba(27, 58, 43, 0.08);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--forest); margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--forest); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--forest); color: #fff;
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-family: var(--font-head);
  font-size: .98rem; border: 2px solid transparent; cursor: pointer; transition: all .18s ease;
  text-align: center;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-secondary:hover { background: var(--forest); color: #fff; }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--khaki); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Topbar ---- */
.topbar { background: var(--forest-dark); color: var(--khaki); font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px; gap: 12px; flex-wrap: wrap; }
.topbar-phone { color: #fff; font-weight: 700; }

/* ---- Header ---- */
.site-header { background: var(--cream); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; color: var(--forest); }
.logo-mark {
  background: var(--forest); color: #fff; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.logo-text { font-size: 1.1rem; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 26px; align-items: center; }
.main-nav > ul > li > a {
  font-weight: 600; color: var(--charcoal); padding: 8px 0; position: relative;
}
.main-nav > ul > li > a.active,
.main-nav > ul > li.active > a { color: var(--orange); }
.main-nav > ul > li > a:hover { color: var(--forest); }
.has-sub { position: relative; }
.sub-nav {
  position: absolute; top: 100%; left: 0; background: #fff; min-width: 240px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .15s ease;
}
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-nav li a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--charcoal); font-weight: 500; }
.sub-nav li a:hover { background: var(--cream); color: var(--forest); }

.header-cta { display: flex; }
.nav-toggle { display: none; }

/* Mobile nav */
@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--forest);
    padding: 90px 24px 24px; transform: translateX(100%); transition: transform .25s ease; z-index: 200;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .main-nav > ul > li { width: 100%; }
  .main-nav > ul > li > a { color: #fff; display: block; padding: 12px 0; }
  .sub-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--forest-light); display: none; margin-top: 4px; }
  .has-sub.open .sub-nav { display: block; }
  .sub-nav li a { color: var(--khaki); }
  .header-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px;
    background: none; border: none; cursor: pointer; z-index: 210; margin-left: auto;
  }
  .nav-toggle span { display: block; width: 24px; height: 3px; background: var(--forest); border-radius: 2px; transition: all .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---- Hero ---- */
.hero { padding: 64px 0 80px; background: linear-gradient(180deg, var(--cream) 0%, #efe8d6 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-block; background: var(--khaki); color: var(--forest-dark); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .82rem; margin-bottom: 16px; }
.hero h1 { margin-bottom: .4em; }
.hero-sub { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust div { font-family: var(--font-head); font-weight: 800; color: var(--forest); font-size: 1.5rem; }
.hero-trust span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: var(--charcoal); }
.hero-visual {
  background: var(--forest); border-radius: var(--radius-lg); aspect-ratio: 4/3; position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shadow);
}
.hero-visual .placeholder-art { font-size: 5rem; }
.hero-logo { width: 88%; max-width: 420px; height: auto; }
.hero-badge {
  position: absolute; bottom: -18px; left: -18px; background: #fff; padding: 14px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow); font-weight: 700; font-family: var(--font-head); color: var(--forest);
  display: flex; align-items: center; gap: 10px;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 90px; }
}

/* ---- Sections ---- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: #52564c; }
.section-alt { background: #fff; }
.section-forest { background: var(--forest); color: var(--khaki); }
.section-forest h2, .section-forest h3 { color: #fff; }

/* ---- Category grid ---- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card {
  background: #fff; border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease; border: 2px solid transparent;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--khaki); }
.cat-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 18px; }
.cat-card h3 { margin-bottom: .3em; }
.cat-card p { color: #52564c; font-size: .95rem; }
.cat-card .cat-link { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--orange); }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---- Steps / Jak to funguje ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 22px; background: var(--orange);
  color: #fff; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800;
}
.step h3 { margin-top: 8px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---- Trust / badges ---- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.trust-item { padding: 20px; }
.trust-item .emoji { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.trust-item h3 { color: #fff; font-size: 1rem; }
.trust-item p { color: var(--khaki); font-size: .9rem; margin: 0; }
@media (max-width: 980px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Product cards ---- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: box-shadow .18s ease, transform .18s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-media { background: var(--cream); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { margin-bottom: 0; }
.product-cap { color: #52564c; font-size: .88rem; }
.product-price { font-family: var(--font-head); font-weight: 800; color: var(--forest); font-size: 1.3rem; margin-top: auto; }
.product-price small { font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: #52564c; }
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .product-grid { grid-template-columns: 1fr; } }

/* ---- Category intro bar ---- */
.cat-hero { background: var(--forest); color: #fff; padding: 46px 0; }
.cat-hero p { color: var(--khaki); max-width: 70ch; }
.breadcrumbs { font-size: .85rem; color: var(--khaki); margin-bottom: 10px; }
.breadcrumbs a { color: var(--khaki); text-decoration: underline; }

/* ---- Product detail + booking ---- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 6rem; }
.product-gallery img { width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.feature-list li { padding: 8px 0 8px 30px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.price-box { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin: 20px 0; }
.price-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--khaki); }
.price-row:last-child { border-bottom: none; font-weight: 700; color: var(--forest); }

.booking-widget { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; position: sticky; top: 100px; }
.booking-widget h3 { margin-bottom: 4px; }
.booking-widget .sub { color: #52564c; font-size: .9rem; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-group label { font-weight: 600; font-size: .88rem; }
.form-group input, .form-group textarea, .form-group select {
  border: 2px solid var(--khaki); border-radius: var(--radius-sm); padding: 11px 14px; font-family: var(--font-body);
  font-size: .95rem; background: var(--cream); color: var(--charcoal);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--forest); background: #fff; }
.booking-summary { background: var(--cream); border-radius: var(--radius-sm); padding: 16px; margin: 16px 0; font-size: .92rem; }
.booking-summary .row { display: flex; justify-content: space-between; padding: 4px 0; }
.booking-summary .total { font-weight: 800; color: var(--forest); border-top: 1px solid var(--khaki); margin-top: 6px; padding-top: 8px; }
.availability-msg { padding: 10px 14px; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 12px; display: none; }
.availability-msg.ok { background: #e4f3e9; color: #1B3A2B; display: block; }
.availability-msg.bad { background: #fbe4dd; color: var(--orange-dark); display: block; }
.form-msg { margin-top: 12px; font-size: .9rem; padding: 12px; border-radius: var(--radius-sm); display: none; }
.form-msg.show.ok { display: block; background: #e4f3e9; color: #1B3A2B; }
.form-msg.show.bad { display: block; background: #fbe4dd; color: var(--orange-dark); }

@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; }
  .booking-widget { position: static; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---- Flatpickr (kalendář rezervací) - přizpůsobeno paletě webu ---- */
.flatpickr-calendar { font-family: var(--font-body); box-shadow: var(--shadow); border-radius: var(--radius-sm); }
.flatpickr-months .flatpickr-month { color: var(--forest); }
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year { color: var(--forest); font-weight: 700; }
.flatpickr-weekdays { background: var(--cream); }
span.flatpickr-weekday { background: var(--cream); color: var(--forest); font-weight: 700; }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.selected:focus {
  background: var(--forest); border-color: var(--forest);
}
.flatpickr-day.today { border-color: var(--orange); }
.flatpickr-day.today:hover { border-color: var(--orange-dark); }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover {
  color: var(--orange-dark); background: #fbe4dd; text-decoration: line-through; opacity: .85; cursor: not-allowed;
}
input#date_from, input#date_to { cursor: pointer; background: var(--cream); }

/* ---- FAQ accordion ---- */
.faq-item { background: #fff; border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 18px 22px; font-family: var(--font-head); font-weight: 700; color: var(--forest); background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: all .25s ease; color: #444; }
.faq-item.open .faq-a { padding: 0 22px 20px; max-height: 500px; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-q::after { content: "+"; font-size: 1.4rem; transition: transform .2s ease; color: var(--orange); }

/* ---- CTA band ---- */
.cta-band { background: var(--orange); color: #fff; border-radius: var(--radius-lg); padding: 56px 40px; text-align: center; margin: 0 20px; }
.cta-band h2 { color: #fff; }
.cta-band .btn-light { margin-top: 10px; }

/* ---- Generic content pages ---- */
.content-page { max-width: 820px; margin: 0 auto; }
.content-page h2 { margin-top: 1.4em; }
.content-page ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.content-page ul li { margin-bottom: .4em; }

/* ---- Contact page ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.pickup-highlight { background: var(--khaki); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.pickup-highlight small { display: block; margin-top: 4px; color: var(--charcoal); opacity: .8; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- Table (ceník) ---- */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--cream); }
.price-table th { background: var(--forest); color: #fff; font-family: var(--font-head); }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--cream); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-info { background: var(--khaki); color: var(--forest-dark); padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.mobile-call-fab { display: none; }
@media (max-width: 700px) {
  .mobile-call-fab {
    display: flex; position: fixed; bottom: 18px; right: 18px; width: 56px; height: 56px; border-radius: 50%;
    background: var(--orange); color: #fff; align-items: center; justify-content: center; font-size: 1.4rem;
    box-shadow: var(--shadow); z-index: 150;
  }
}

/* ---- Footer ---- */
.site-footer { background: var(--forest); color: var(--khaki); margin-top: 60px; }
.site-footer a { color: var(--khaki); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  max-width: 1180px; margin: 0 auto; padding: 56px 20px 40px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px;
}
.footer-col h3 { color: var(--cream); font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { opacity: .9; }
.footer-col ul li a:hover { opacity: 1; }
.footer-brand p { margin: 14px 0 0; opacity: .85; line-height: 1.5; }
.footer-social { display: flex; gap: 16px; margin-top: 16px; }
.footer-social a { font-weight: 600; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; opacity: .9; }
.logo-footer { color: var(--cream); }
.logo-footer .logo-mark { background: transparent; }
.footer-bottom { border-top: 1px solid rgba(247, 243, 234, 0.15); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 18px 20px; font-size: .8rem; opacity: .75;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; padding: 40px 20px 30px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}
