/*
  Veřejný design systém JOTTO (viz docs/migrace-webforms/01-cilova-architektura.md a
  04-design-responzivita-testovani-a-nasazeni.md). Všechna pravidla jsou schválně pod prefixem
  .jotto-public, aby se nekolidovalo s MudBlazor (formuláře) ani s dosud neportovaným RD Navbar
  motivem (wwwroot/css/style.css), který se odstraní až po dokončení portování obsahu (Krok 3).

  Barvy jsou opsané přímo ze starého webu (D:\GIT_Projects\Jotto\Jotto_www\Content\style.css) a
  ze sdíleného Jotto_Administrace/JottoTheme.cs (#E24B19 změřeno z loga, stejná appka-rodina).
*/

.jotto-public {
    --jotto-color-brand: #E24B19;
    --jotto-color-brand-dark: #B93A11;
    --jotto-color-brand-light: #EF7A50;
    --jotto-color-bar-brown: #301309;
    --jotto-color-text: #190802;
    --jotto-color-text-muted: #6b5a54;
    --jotto-color-bg: #ffffff;
    --jotto-color-bg-muted: #f7f5f3;
    --jotto-color-border: #e2e2e2;
    /* Reálný www.jotto.cz používá pro nadpisy i běžný text sans-serif (Gill Sans / Helvetica
       Neue), ne serifové Roboto Slab, které bylo dřív nastavené tady - viz porovnání se živým
       webem (uživatelská zpětná vazba k fontům). Jde o systémové fonty, žádná nová závislost. */
    --jotto-font-heading: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', Arial, sans-serif;
    --jotto-font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --jotto-content-max-width: 1200px;
    --jotto-radius: 6px;
    --jotto-gap: clamp(1rem, 2vw, 1.75rem);

    font-family: var(--jotto-font-body);
    color: var(--jotto-color-text);
    background: var(--jotto-color-bg);
}

/* Explicitni font-size i color pro kazdou uroven nadpisu - jinak by se pro nenastavenou vlastnost
   stale uplatnilo pravidlo ze stareho RD Navbar motivu (wwwroot/css/style.css), ktery se zatim
   odstranuje az po dokonceni portovani obsahu (viz Krok 3 v docs/migrace-webforms). Stary motiv ma
   "h1, h2, ... { color: #2b2c2f; }" prime pravidlo na elementu, ktere vzdy vyhraje nad zdedenou
   barvou z predka (napr. .jotto-hero__caption { color: #fff }) bez ohledu na specificitu - "color:
   inherit" tohle prebiji, protoze uz je to prime pravidlo na tom stejnem elementu. */
.jotto-public h1,
.jotto-public h2,
.jotto-public h3,
.jotto-public h4,
.jotto-public h5,
.jotto-public h6 {
    font-family: var(--jotto-font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: inherit;
}

.jotto-public h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
.jotto-public h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.jotto-public h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.jotto-public h4 { font-size: 1.1rem; }
.jotto-public h5 { font-size: 1rem; }
.jotto-public h6 { font-size: 0.9rem; }

.jotto-public a {
    color: inherit;
    text-decoration: none;
}

.jotto-public .jotto-container {
    max-width: var(--jotto-content-max-width);
    margin-inline: auto;
    padding-inline: 16px;
}

/* ---------- Header: horní informační lišta ---------- */

.jotto-header__topbar {
    background: var(--jotto-color-bar-brown);
    color: #fff;
    font-size: 0.8125rem;
}

.jotto-header__topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-block: 0.5rem;
}

.jotto-header__tagline {
    opacity: 0.9;
}

.jotto-header__topbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.jotto-header__social {
    display: flex;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jotto-header__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: background-color 0.15s ease;
}

.jotto-header__social a:hover,
.jotto-header__social a:focus-visible {
    background: var(--jotto-color-brand);
}

.jotto-header__account {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.jotto-header__account button {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.jotto-header__account a:hover,
.jotto-header__account a:focus-visible,
.jotto-header__account button:hover,
.jotto-header__account button:focus-visible {
    color: var(--jotto-color-brand-light);
}

/* ---------- Header: oranžový pás s logem a menu ---------- */

.jotto-header__brandbar {
    background: var(--jotto-color-brand);
    /* Živý www.jotto.cz má tento pás ukotvený nahoře i po odscrollování horní informační lišty
       (#header_fixed.isStuck, position:fixed, z-index:999) - sticky je funkčně stejné bez JS. */
    position: sticky;
    top: 0;
    z-index: 999;
}

.jotto-header__brandbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--jotto-gap);
    padding-block: 0.6rem;
}

.jotto-header__logo img {
    display: block;
    height: 48px;
    width: auto;
}

/* ---------- Navigace: desktop megamenu ---------- */

.jotto-nav {
    flex: 1 1 auto;
}

.jotto-nav__list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.jotto-nav__item {
    position: relative;
}

.jotto-nav__item > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.9rem 0.85rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border-radius: var(--jotto-radius);
    transition: background-color 0.15s ease;
}

.jotto-nav__item > a:hover,
.jotto-nav__item > a:focus-visible,
.jotto-nav__item.active > a {
    background: rgba(0, 0, 0, 0.18);
}

.jotto-nav__caret {
    font-size: 0.65em;
}

.jotto-nav__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 260px;
    background: var(--jotto-color-bar-brown);
    color: #fff;
    border-radius: 0 0 var(--jotto-radius) var(--jotto-radius);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    padding: 1.25rem;
}

.jotto-nav__item--wide .jotto-nav__dropdown {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    min-width: min(70vw, 640px);
}

.jotto-nav__item:hover > .jotto-nav__dropdown,
.jotto-nav__item:focus-within > .jotto-nav__dropdown,
.jotto-nav__item.is-open > .jotto-nav__dropdown {
    display: block;
}

.jotto-nav__item--wide:hover > .jotto-nav__dropdown,
.jotto-nav__item--wide:focus-within > .jotto-nav__dropdown,
.jotto-nav__item--wide.is-open > .jotto-nav__dropdown {
    display: grid;
}

.jotto-nav__dropdown h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--jotto-color-brand-light);
    margin: 0 0 0.6rem;
}

.jotto-nav__dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.jotto-nav__dropdown a {
    display: block;
    padding: 0.2rem 0;
    font-size: 0.9rem;
}

.jotto-nav__dropdown a:hover,
.jotto-nav__dropdown a:focus-visible {
    color: var(--jotto-color-brand-light);
}

.jotto-nav__empty {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ---------- Navigace: mobilní hamburger + accordion ---------- */

.jotto-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--jotto-radius);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.jotto-nav__drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 25;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
}

.jotto-nav__drawer.is-open {
    display: block;
    background: var(--jotto-color-bar-brown);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.jotto-nav__drawer-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem var(--jotto-gap) 1rem;
}

.jotto-nav__drawer-item > button,
.jotto-nav__drawer-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    min-height: 44px;
}

.jotto-nav__drawer-sub {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0 0 0 0.75rem;
}

.jotto-nav__drawer-sub h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--jotto-color-brand-light);
    margin: 0.6rem 0 0.3rem;
}

.jotto-nav__drawer-sub a {
    display: block;
    padding: 0.45rem 0.25rem;
    color: rgba(255, 255, 255, 0.85);
    min-height: 44px;
}

/* Breakpoint 992px odpovídá doc. tabulce (04-design-...): od 992px plné desktop menu bez
   hover-only nutnosti, pod 992px hamburger/accordion. */
@media (min-width: 992px) {
    .jotto-nav__list {
        display: flex;
    }

    .jotto-nav__toggle,
    .jotto-nav__drawer {
        display: none !important;
    }
}

/* ---------- Breadcrumbs ---------- */

.jotto-breadcrumbs {
    background: var(--jotto-color-bar-brown) linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
    color: #fff;
    padding-block: clamp(1.5rem, 4vw, 3rem);
    text-align: center;
}

.jotto-breadcrumbs__title {
    font-family: var(--jotto-font-heading);
    font-weight: 900;
    margin: 0;
}

.jotto-breadcrumbs__trail {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.6rem 0 0;
    padding: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.jotto-breadcrumbs__trail li + li::before {
    content: "/";
    margin-right: 0.4rem;
}

/* ---------- Footer ---------- */

.jotto-footer {
    background: var(--jotto-color-bar-brown);
    color: rgba(255, 255, 255, 0.85);
}

.jotto-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--jotto-gap);
    padding-block: clamp(2rem, 4vw, 3rem);
}

.jotto-footer__col h3 {
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 0.9rem;
}

.jotto-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.jotto-footer__col a:hover,
.jotto-footer__col a:focus-visible {
    color: var(--jotto-color-brand-light);
}

.jotto-footer__copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-block: 1rem;
    text-align: center;
    font-size: 0.8rem;
}

.jotto-footer__copyright a:hover,
.jotto-footer__copyright a:focus-visible {
    color: var(--jotto-color-brand-light);
}

/* ---------- Back to top ---------- */

.jotto-back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: var(--jotto-color-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.jotto-back-to-top:hover,
.jotto-back-to-top:focus-visible {
    background: var(--jotto-color-brand-dark);
}

@media (prefers-reduced-motion: no-preference) {
    html:has(.jotto-public) {
        scroll-behavior: smooth;
    }
}

/* ---------- Obsahové stránky (Krok 3: služby, provozovny, závodní stravování, rozvoz,
   sponzorujeme, fotogalerie...) ---------- */

.jotto-content {
    max-width: 820px;
    margin-inline: auto;
    padding-block: clamp(2rem, 5vw, 3.5rem);
    padding-inline: 16px;
    line-height: 1.65;
}

.jotto-content h2 {
    margin-top: 2rem;
    color: var(--jotto-color-brand-dark);
}

.jotto-content h2:first-child {
    margin-top: 0;
}

.jotto-content p {
    margin: 0.9rem 0;
}

.jotto-content ul {
    margin: 0.9rem 0;
    padding-left: 1.4rem;
}

.jotto-content a {
    color: var(--jotto-color-brand-dark);
    text-decoration: underline;
}

.jotto-price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.jotto-price-table td {
    padding: 0.6rem 0.4rem;
    border-bottom: 1px solid var(--jotto-color-border);
}

.jotto-price-table td:last-child {
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- Provozovny/mapa ---------- */

.jotto-map {
    position: relative;
    padding-bottom: 56%;
    height: 0;
    overflow: hidden;
    border-radius: var(--jotto-radius);
    margin: 1.5rem 0;
}

.jotto-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Fotogalerie ---------- */

.jotto-gallery {
    max-width: var(--jotto-content-max-width);
    margin-inline: auto;
    padding-block: clamp(2rem, 5vw, 3rem);
    padding-inline: 16px;
}

.jotto-gallery__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    list-style: none;
    padding: 0;
}

.jotto-gallery__tabs a {
    display: inline-block;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: var(--jotto-color-bg-muted);
    border: 1px solid var(--jotto-color-border);
    font-weight: 700;
    font-size: 0.85rem;
}

.jotto-gallery__tabs a.active {
    background: var(--jotto-color-brand);
    border-color: var(--jotto-color-brand);
    color: #fff;
}

.jotto-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.jotto-gallery__grid button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: var(--jotto-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 44px;
}

.jotto-gallery__grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.jotto-gallery__grid button:hover img,
.jotto-gallery__grid button:focus-visible img {
    transform: scale(1.05);
}

.jotto-lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(25, 8, 2, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.jotto-lightbox img {
    max-width: min(1100px, 100%);
    max-height: 85vh;
    border-radius: var(--jotto-radius);
}

.jotto-lightbox__close,
.jotto-lightbox__prev,
.jotto-lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.25rem;
    cursor: pointer;
}

.jotto-lightbox__close {
    top: 1rem;
    right: 1rem;
}

.jotto-lightbox__prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.jotto-lightbox__next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.jotto-lightbox__close:hover,
.jotto-lightbox__prev:hover,
.jotto-lightbox__next:hover {
    background: var(--jotto-color-brand);
}

/* ---------- Kontakt ---------- */

.jotto-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--jotto-gap);
    max-width: var(--jotto-content-max-width);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) 16px 0;
}

.jotto-contact-grid h2 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.jotto-contact-grid p {
    margin: 0.4rem 0;
    color: var(--jotto-color-text-muted);
    font-size: 0.92rem;
}

.jotto-team {
    max-width: var(--jotto-content-max-width);
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4rem) 16px;
    text-align: center;
}

.jotto-team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.jotto-team__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.jotto-team__grid h3 {
    font-size: 0.95rem;
    margin-top: 0.75rem;
}

.jotto-team__position {
    display: block;
    color: var(--jotto-color-brand-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.jotto-team__grid p {
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

/* ---------- Homepage: hero ---------- */

.jotto-hero {
    position: relative;
    /* height (ne jen min-height), aby snimek s position:absolute mel vzdy pevny ram bez ohledu na
       vysku sveho obsahu - jinak aktivni snimek s velkym paddingem roztahoval cely hero pryc z
       fotky (viz historie oprav v docs/migrace-webforms). */
    height: clamp(420px, 60vw, 640px);
    overflow: hidden;
    background: var(--jotto-color-bar-brown);
}

.jotto-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.jotto-hero__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.jotto-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(25, 8, 2, 0.75) 0%, rgba(25, 8, 2, 0.35) 60%, rgba(25, 8, 2, 0.15) 100%);
}

/* ".jotto-hero .jotto-hero__caption" (dve tridy), ne jen ".jotto-hero__caption" - caption je <a>,
   takze by jinak barvu #fff prebilo specifictejsi ".jotto-public a { color: inherit; }" (trida +
   element = vyssi specificita nez jedna trida) a zdedila by se spatna tmava barva textu z .jotto-public. */
.jotto-hero .jotto-hero__caption {
    position: relative;
    z-index: 1;
    display: block;
    color: #fff;
    max-width: 760px;
    padding-block: 3rem;
    text-align: center;
    margin-inline: auto;
}

.jotto-hero__caption h1 {
    /* Živý web má nadpis slideru font-weight 400, ne tučný jako ostatní h1 na webu (--jotto-public
       h1 je jinak globálně 700) - viz .nivo-caption h2 na www.jotto.cz. */
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(2rem, 6vw, 4.5rem);
    letter-spacing: 0.01em;
}

/* Routes.razor pouziva <FocusOnNavigate Selector="h1" /> (standardni Blazor a11y prvek pro
   ctecky obrazovky) - po kazde navigaci/refresh homepage tak Blazor programove zaostri tento h1,
   coz bez tohoto pravidla zobrazi vychozi modry focus outline prohlizece kolem textu. H1 neni
   bezne v tab-poradi (tabindex nastavuje jen FocusOnNavigate docasne), takze potlaceni outline
   neovlivni klavesnicovou navigaci. */
.jotto-hero__caption h1:focus {
    outline: none;
}

.jotto-hero__caption p {
    /* Živý www.jotto.cz má podtitulek slideru bílý jako nadpis, jen menší a světlejší váhou písma
       (h2 60px/400, h3 30px/300 v .nivo-caption) - ne oranžově, jak bylo dřív (uživatelská zpětná
       vazba: barva textu ve slideru neodpovídá vzoru). */
    text-transform: uppercase;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #fff;
    margin-top: 0.5rem;
}

.jotto-hero__arrow {
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.jotto-hero__arrow:hover,
.jotto-hero__arrow:focus-visible {
    background: var(--jotto-color-brand);
}

.jotto-hero__arrow--prev {
    left: 1rem;
}

.jotto-hero__arrow--next {
    right: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    .jotto-hero__slide {
        transition: none;
    }
}

/* ---------- Homepage: parallax banner (ParallaxBanner.razor) ---------- */
/* Hodnoty (velikosti pisma, padding, barva tlacitka) zmereny na .parallax_box__1 na www.jotto.cz. */

.jotto-parallax {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--jotto-color-bar-brown);
    padding-block: clamp(2.5rem, 8vw, 6.25rem);
    text-align: center;
}

/* background-attachment: fixed je na dotykovych zarizenich (predevsim iOS Safari) nespolehlivy
   (obrazek muze blikat/skakat pri scrollu) - na takovych zarizenich se vraci na bezne chovani. */
@media (hover: none) and (pointer: coarse) {
    .jotto-parallax {
        background-attachment: scroll;
    }
}

.jotto-parallax__inner {
    color: #fff;
}

.jotto-parallax__inner h2 {
    font-size: clamp(2rem, 5vw, 4.375rem);
    font-weight: 400;
}

.jotto-parallax__subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.875rem);
    font-weight: 300;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.jotto-parallax__text {
    margin-top: 1rem;
    opacity: 0.9;
}

/* ".jotto-parallax .jotto-parallax__btn" (dve tridy), ne jen jedna trida - jinak by barvu #fff
   prebilo specifictejsi ".jotto-public a { color: inherit }" (viz stejna oprava u .jotto-hero__caption). */
.jotto-parallax .jotto-parallax__btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2.8rem;
    background: var(--jotto-color-brand);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background-color 0.15s ease;
}

.jotto-parallax .jotto-parallax__btn:hover,
.jotto-parallax .jotto-parallax__btn:focus-visible {
    background: var(--jotto-color-brand-dark);
}

/* ---------- Homepage: uvitani, nabidka, cenik, oblibena jidla, aktuality ---------- */

/* Tri oddelene sekce (SluzbyKarty + Welcome + TydenniObjednavka) - Návrh 3, schváleno (Artifact
   "Objednávkový blok"). */

.jotto-sluzby-karty {
    background: var(--jotto-color-bg-muted);
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.jotto-sluzby-karty__inner {
    max-width: 1000px;
    text-align: center;
}

.jotto-sluzby-karty__kicker {
    color: var(--jotto-color-brand);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.96rem;
    letter-spacing: 0.06em;
    margin: 0;
}

.jotto-sluzby-karty h2 {
    margin-top: 0.4rem;
}

.jotto-sluzby-karty__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--jotto-gap);
    margin-top: 1.75rem;
    text-align: left;
}

.jotto-sluzby-karta {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(25, 8, 2, 0.07);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.jotto-sluzby-karta:hover {
    box-shadow: 0 10px 24px rgba(25, 8, 2, 0.12);
    transform: translateY(-2px);
}

.jotto-sluzby-karta__photo {
    height: 132px;
}

.jotto-sluzby-karta__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jotto-sluzby-karta__body {
    padding: 1.1rem 1.1rem 1.25rem;
}

.jotto-sluzby-karta__heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jotto-sluzby-karta svg {
    width: 22px;
    height: 22px;
    color: var(--jotto-color-brand);
    flex-shrink: 0;
}

.jotto-sluzby-karta b {
    font-size: 1.02rem;
}

.jotto-sluzby-karta p {
    margin: 0.4rem 0 0.75rem;
    color: var(--jotto-color-text-muted);
    font-size: 0.87rem;
    line-height: 1.5;
}

.jotto-sluzby-karta__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.jotto-sluzby-karta__pill {
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--jotto-color-bg-muted);
    color: var(--jotto-color-text);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.jotto-sluzby-karta .jotto-sluzby-karta__row a {
    color: var(--jotto-color-brand);
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.jotto-sluzby-karta .jotto-sluzby-karta__row a:hover {
    color: var(--jotto-color-brand-dark);
}

.jotto-welcome {
    max-width: 560px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) 16px;
    text-align: center;
}

.jotto-welcome p {
    margin-top: 0.6rem;
    color: var(--jotto-color-text-muted);
    line-height: 1.6;
}

.jotto-welcome__signoff {
    font-style: italic;
}

.jotto-order-block {
    background: var(--jotto-color-bar-brown);
    color: #fff;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.jotto-order-block__inner {
    max-width: 900px;
    text-align: center;
}

.jotto-order-block__kicker {
    color: var(--jotto-color-brand-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    margin: 0;
}

.jotto-order-block h2 {
    margin-top: 0.4rem;
}

.jotto-order-block__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--jotto-gap);
    margin-top: 2rem;
    text-align: left;
}

@media (max-width: 479px) {
    /* Pod 480px uz se 220px minmax nevejde na 2 sloupce citelne (viz stejna oprava u puvodnich
       cenovych dlazdic) - Objednat/Upravit objednavku tlacitko potrebuje citelnou plnou sirku. */
    .jotto-order-block__grid {
        grid-template-columns: 1fr;
    }
}

.jotto-order-card {
    background: #fff;
    color: var(--jotto-color-text);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.jotto-order-card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.jotto-order-card__thumb {
    height: 64px;
    background: linear-gradient(135deg, var(--jotto-color-brand-light), var(--jotto-color-brand));
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.jotto-order-card__thumb--plain {
    background: var(--jotto-color-bg-muted);
}

.jotto-order-card__badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--jotto-color-brand-dark);
}

.jotto-order-card__thumb--plain .jotto-order-card__badge {
    background: #fff;
    color: var(--jotto-color-text-muted);
}

.jotto-order-card__body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.jotto-order-card__range {
    font-size: 0.85rem;
    color: var(--jotto-color-text-muted);
}

.jotto-order-card__status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.jotto-order-card__status svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.jotto-order-card__status--ok {
    color: #2f7d4f;
}

.jotto-order-card__status--pending {
    color: var(--jotto-color-text-muted);
}

.jotto-order-card__cta {
    margin-top: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--jotto-color-brand);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.jotto-order-card__cta:hover,
.jotto-order-card__cta:focus-visible {
    background: var(--jotto-color-brand-dark);
}

.jotto-order-card__cta--secondary {
    background: transparent;
    color: var(--jotto-color-brand);
    border: 1.5px solid var(--jotto-color-brand);
}

.jotto-order-card__cta--secondary:hover,
.jotto-order-card__cta--secondary:focus-visible {
    background: var(--jotto-color-brand);
    color: #fff;
}

/* ".jotto-order-card .jotto-order-card__preview" (dve tridy) - jinak by barvu prebilo
   specifictejsi ".jotto-public a { color: inherit }" (stejna oprava jako u .jotto-hero__caption
   a .jotto-parallax__btn - tenhle radek je normalni <a>, ne <button>). */
.jotto-order-card .jotto-order-card__preview {
    text-align: center;
    font-size: 0.83rem;
    color: var(--jotto-color-text-muted);
}

.jotto-order-card .jotto-order-card__preview:hover {
    color: var(--jotto-color-brand);
}

.jotto-order-block__empty {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.72);
}

.jotto-order-block__footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
}

.jotto-order-block__footer a {
    color: var(--jotto-color-brand-light);
    font-weight: 700;
}

/* "Co pro Vas delame" (HomepageSluzby.razor) - nadpis stredem oranzovy jako na #homepage_services,
   text vlevo v citelne sirce jako .jotto-content. */
.jotto-services-intro {
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.jotto-services-intro__inner {
    max-width: 820px;
}

.jotto-services-intro__inner h2 {
    text-align: center;
    color: var(--jotto-color-brand);
    margin-bottom: 1.5rem;
}

.jotto-services-intro__inner p {
    margin: 0.9rem 0;
    line-height: 1.65;
}

.jotto-popular {
    background: var(--jotto-color-bg-muted);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.jotto-popular h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.jotto-popular__grid {
    max-width: var(--jotto-content-max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.jotto-popular__card {
    background: #fff;
    border-radius: var(--jotto-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.jotto-popular__photo {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.jotto-popular__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.jotto-popular__photo-hover {
    opacity: 0;
}

.jotto-popular__card:hover .jotto-popular__photo-hover,
.jotto-popular__card:focus-within .jotto-popular__photo-hover {
    opacity: 1;
}

.jotto-popular__badge {
    position: absolute;
    top: 0.75rem;
    left: -2.1rem;
    z-index: 1;
    background: var(--jotto-color-brand);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.25rem 2.5rem;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.jotto-popular__card p {
    padding: 0.75rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
}

.jotto-news {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.jotto-news h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.jotto-news__grid {
    max-width: var(--jotto-content-max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.jotto-news__card {
    background: #fff;
    border-radius: var(--jotto-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.jotto-news__card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.jotto-news__body {
    padding: 1.25rem;
}

.jotto-news__date {
    font-size: 0.8rem;
    color: var(--jotto-color-text-muted);
}

.jotto-news__body h3 {
    margin: 0.4rem 0 0.6rem;
}
