/* Styl webu mitrnka.cz – mobile-first, bez externích závislostí (systémová písma). */

:root {
    --color-primary: #1d3557;
    --color-primary-light: #2b4a7a;
    --color-accent: #e63946;
    --color-accent-dark: #c62f3b;
    --color-bg: #ffffff;
    --color-bg-alt: #f4f7fb;
    --color-text: #1f2933;
    --color-muted: #5f6b7a;
    --color-border: #e3e8ef;
    --color-discussion: #1e5aaa;
    --color-discussion-soft: #eaf1fb;
    --color-svatba: #4f6b55;
    --color-svatba-accent: #e08a6a;
    --color-svatba-soft: #eef3ef;
    --radius: 14px;
    --shadow: 0 2px 12px rgba(29, 53, 87, 0.08);
    --shadow-hover: 0 8px 24px rgba(29, 53, 87, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- hlavička ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--color-primary);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 8px;
    background: var(--color-primary);
    color: #f1faee;
    font-weight: 700;
    font-size: 0.95rem;
}

.brand-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.site-nav {
    display: flex;
    gap: 1.1rem;
}

.site-nav a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.site-nav a:hover { color: var(--color-primary); }

/* ---------- hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(230, 57, 70, 0.22) 0, rgba(230, 57, 70, 0) 38%),
        radial-gradient(circle at 10% 110%, rgba(91, 154, 229, 0.25) 0, rgba(91, 154, 229, 0) 45%),
        linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-light) 75%);
    color: #f1faee;
    padding: 3.5rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    opacity: 0.85;
    margin: 0 0 0.75rem;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.hero-lead {
    max-width: 44rem;
    font-size: 1.07rem;
    opacity: 0.95;
    margin: 0 0 1.75rem;
}

.hero-lead a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.hero-lead a:hover { text-decoration-color: #ffffff; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.hero-facts li {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
}

.hero-facts strong {
    display: block;
    font-size: 1.05rem;
    color: #ffffff;
}

.hero-facts span {
    font-size: 0.92rem;
    opacity: 0.85;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
}

.btn-primary:hover { background: var(--color-accent-dark); }

.btn-outline {
    border: 1.5px solid rgba(241, 250, 238, 0.7);
    color: #f1faee;
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- sekce ---------- */
.section { padding: 3.5rem 0; }

.section-alt { background: var(--color-bg-alt); }

.section-kicker {
    margin: 0 0 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent);
}

.section h2 {
    font-size: clamp(1.6rem, 3.2vw, 2rem);
    line-height: 1.2;
    color: var(--color-primary);
    margin: 0 0 1rem;
}

.section-lead {
    max-width: 48rem;
    margin: 0 0 2rem;
    color: var(--color-muted);
    font-size: 1.02rem;
}

/* ---------- aplikace (produktové karty) ---------- */
.product {
    --product: var(--color-primary);
    --product-soft: var(--color-bg-alt);
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.75rem;
    overflow: hidden;
}

.product::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--product);
}

.product--discussion {
    --product: var(--color-discussion);
    --product-soft: var(--color-discussion-soft);
}

.product--svatba {
    --product: var(--color-svatba);
    --product-soft: var(--color-svatba-soft);
}

.product--svatba::before {
    background: linear-gradient(90deg, var(--color-svatba) 0%, var(--color-svatba) 70%, var(--color-svatba-accent) 100%);
}

.product-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.product-icon {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.product h3 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.25;
}

.product h3 a {
    color: var(--product);
    text-decoration: none;
}

.product h3 a:hover { text-decoration: underline; }

.product-tagline {
    margin: 0.2rem 0 0.6rem;
    color: var(--color-muted);
    font-weight: 500;
}

.tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tags li {
    background: var(--product-soft);
    color: var(--product);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
}

.product-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.product-text p { margin: 0 0 0.9rem; }

.product-text a {
    color: var(--product);
    font-weight: 600;
}

.features {
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0;
}

.features li {
    position: relative;
    padding-left: 1.6rem;
    margin: 0.45rem 0;
}

.features li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.5em;
    width: 0.55rem;
    height: 0.3rem;
    border-left: 2.5px solid var(--product);
    border-bottom: 2.5px solid var(--product);
    transform: rotate(-45deg);
}

.product-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 !important;
}

.product-links a {
    display: inline-block;
    padding: 0.4rem 0.95rem;
    border: 1.5px solid var(--product);
    border-radius: 999px;
    color: var(--product);
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 0.12s ease, color 0.12s ease;
}

.product-links a::after { content: " →"; }

.product-links a:hover {
    background: var(--product);
    color: #fff;
}

/* QR kódy + odkazy do obchodů */
.stores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-content: start;
}

.store {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.85rem 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--product-soft);
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.store:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.store img {
    width: 100%;
    max-width: 132px;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 0.5rem;
}

.store-name {
    font-weight: 700;
    color: var(--product);
}

.store-os {
    font-size: 0.82rem;
    color: var(--color-muted);
}

/* ---------- služby ---------- */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow);
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.12rem;
    color: var(--color-primary);
}

.card p { margin: 0; color: var(--color-text); }

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.8rem;
    border-radius: 12px;
    background: rgba(230, 57, 70, 0.1);
}

.service-icon svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- kontakt ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.contact-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
}

.contact-card--cta {
    background: var(--color-bg-alt);
    border-color: transparent;
}

.contact-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.12rem;
    color: var(--color-primary);
}

.contact-card p { margin: 0 0 0.75rem; }

.contact-line { margin: 0.25rem 0 !important; font-size: 1.02rem; }

.contact-line a {
    color: var(--color-primary);
    font-weight: 600;
}

/* ---------- patička ---------- */
.site-footer {
    background: var(--color-primary);
    color: #d9e2ec;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.site-footer p { margin: 0.3rem 0; }

.site-footer a { color: #f1faee; }

.footer-meta {
    margin-top: 1rem;
    opacity: 0.7;
    font-size: 0.8rem;
}

/* ---------- širší obrazovky ---------- */
@media (min-width: 720px) {
    .cards { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .product { padding: 2rem 2rem 1.75rem; }
    .product-icon { width: 72px; height: 72px; border-radius: 18px; }
}

@media (min-width: 900px) {
    .hero { padding: 4.5rem 0 5rem; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; }
    .product-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; }
}

@media (max-width: 420px) {
    .site-nav { gap: 0.75rem; }
    .site-nav a { font-size: 0.88rem; }
    .brand-name { font-size: 0.98rem; }
    .product-icon { width: 56px; height: 56px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .store, .product-links a { transition: none; }
}

/* ---------- chybová lišta Blazoru ---------- */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    bottom: 0;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
