/*
  custom.css — overrides and small additions on top of the Pakap template.
  Keep design tokens from the template (colors, font, spacing). Only add what
  the one-pager needs that the template doesn't already provide.
  Vlastní styly nad šablonou Pakap. Needbarev/fontů se držíme tokenů šablony.
*/

/* Anchor offset so sticky navbar doesn't cover section headings on jump */
section[id],
div[id].anchor-offset {
    scroll-margin-top: 90px;
}

/* ===== "Příznaky" diagnosis cards =====
   Template .single-features-item restyled as a medical-report card:
   soft shadow + hover lift, coloured left accent by severity,
   tinted icon chip and a severity badge. */
.problem-card {
    border-radius: 14px;
    border: 1px solid #f0f0f5;
    box-shadow: 0 6px 24px rgba(38, 42, 55, 0.06);
    overflow: hidden;
    height: calc(100% - 25px);
}
.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(38, 42, 55, 0.10);
}
/* template uses ::before as a full-card gradient hover overlay (hidden,
   z-index:-1) — repurpose it as an always-visible severity bar */
.problem-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 0;
    background: var(--riskColor, var(--mainColor));
    opacity: 1;
    visibility: visible;
    z-index: 0;
}
/* neutralise the template's hover state (white text + morphing icon) */
.problem-card:hover::before {
    opacity: 1;
    visibility: visible;
}
.problem-card:hover h3 {
    color: var(--blackColor);
}
.problem-card:hover p {
    color: var(--paragraphColor);
}
.problem-card:hover .icon {
    border-radius: 16px;
}
.problem-card .icon {
    background: var(--riskBg, rgba(229, 72, 77, 0.10));
    color: var(--riskColor, var(--mainColor));
    border-radius: 16px;
}
.problem-card .risk-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--riskColor, var(--mainColor));
    background: var(--riskBg, rgba(229, 72, 77, 0.10));
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 10px;
}
.problem-card h3 {
    margin-bottom: 10px;
}
.problem-card p {
    margin-bottom: 0;
}
/* severity palettes */
.problem-card.risk-high { --riskColor: #E5484D; --riskBg: rgba(229, 72, 77, 0.10); }
.problem-card.risk-mid  { --riskColor: #D97706; --riskBg: rgba(217, 119, 6, 0.12); }
.problem-card.risk-slow { --riskColor: #2563EB; --riskBg: rgba(37, 99, 235, 0.10); }

/* ===== Process / "Jak to probíhá" steps ===== */
.process-step {
    position: relative;
    background: var(--whiteColor);
    border-radius: 10px;
    padding: 30px 25px;
    height: 100%;
    box-shadow: 0 0 30px rgba(38, 42, 55, 0.06);
    transition: var(--transition);
}
.process-step:hover {
    transform: translateY(-5px);
}
.process-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    color: var(--whiteColor);
    background: var(--gradientColor);
    margin-bottom: 18px;
}
.process-step h3 {
    font-size: 19px;
    margin-bottom: 10px;
}
.process-step p {
    margin-bottom: 0;
}

/* ===== "Proč já" list ===== */
.why-list {
    padding-left: 0;
    margin: 0;
    list-style: none;
}
.why-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 18px;
    font-weight: 500;
    color: var(--blackColor);
}
.why-list li:last-child {
    margin-bottom: 0;
}
.why-list li i {
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--mainColor);
    font-size: 20px;
}

/* ===== Service cards (sekce Služby) ===== */
.single-pricing-box .package-tagline {
    color: var(--mainColor);
    font-weight: 600;
    display: block;
    margin: -10px 0 15px;
    font-size: 14px;
}
.single-pricing-box .features-list li {
    text-align: left;
}

/* Rovnoměrně vysoké karty + CTA dole a vycentrované. Scoped na #sluzby,
   ať to neovlivní žádné jiné použití .single-pricing-box. */
#sluzby .single-pricing-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
    padding: 45px 35px;
    border: 1px solid #eee;
    border-radius: 14px;
    text-align: left;
}
#sluzby .single-pricing-box:hover {
    transform: translateY(-6px);
    border-color: transparent;
}
/* Zvýrazněná „Nejčastější“ karta */
#sluzby .single-pricing-box.active {
    border-color: var(--mainColor);
    box-shadow: 0px 25px 50px 5px rgba(237, 39, 117, 0.12);
}
#sluzby .single-pricing-box .title {
    margin-bottom: 8px;
}
#sluzby .single-pricing-box .features-list {
    margin-top: 25px;
    margin-bottom: 32px;
}
/* CTA: přilepené k spodní hraně karty a vycentrované */
#sluzby .single-pricing-box .default-btn {
    margin-top: auto;
    align-self: center;
    min-width: 210px;
    text-align: center;
}

/* Na mobilu karty zase oddělit mezerou (nestackují se na sebe) */
@media (max-width: 991px) {
    #sluzby .single-pricing-box {
        margin-bottom: 25px;
    }
}

/* ===== References placeholder ===== */
.reference-placeholder {
    border: 1px dashed #d9d9e3;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    color: var(--paragraphColor);
    background: var(--whiteColor);
    height: 100%;
}
.reference-placeholder i {
    font-size: 34px;
    color: var(--mainColor);
    margin-bottom: 12px;
    display: block;
}

/* ===== Reference cards (skutečné aplikace) ===== */
.reference-card {
    background: var(--whiteColor);
    border-radius: 12px;
    padding: 30px 28px;
    height: 100%;
    box-shadow: 0 0 30px rgba(38, 42, 55, 0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.reference-card:hover {
    transform: translateY(-5px);
}
.reference-card .ref-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}
.reference-card .ref-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(38, 42, 55, 0.12);
}
.reference-card .ref-title h3 {
    font-size: 19px;
    margin: 0 0 3px;
}
.reference-card .ref-title span {
    font-size: 13px;
    color: var(--paragraphColor);
}
.reference-card p {
    margin-bottom: 20px;
}
.reference-card .ref-meta {
    margin-top: auto;
}
.reference-card .ref-platforms {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.reference-card .ref-platforms span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blackColor);
    background: #f4f4f9;
    padding: 5px 12px;
    border-radius: 30px;
}
.reference-card .ref-platforms span i {
    font-size: 16px;
    color: var(--mainColor);
}
/* Framework badge (např. React Native) – odlišený od platforem */
.reference-card .ref-platforms span.ref-tech {
    background: #e7f7fb;
    color: #087990;
}
.reference-card .ref-platforms span.ref-tech i {
    color: #61dafb;
}
.reference-card .store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.reference-card .store-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--mainColor);
    transition: var(--transition);
}
.reference-card .store-links a:hover {
    opacity: .75;
}

/* ===== Contact details next to the form ===== */
.contact-info-box {
    background: var(--whiteColor);
    border-radius: 10px;
    padding: 35px 30px;
    box-shadow: 0 0 30px rgba(38, 42, 55, 0.06);
    height: 100%;
}
.contact-info-box ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.contact-info-box li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 22px;
    color: var(--paragraphColor);
}
.contact-info-box li:last-child {
    margin-bottom: 0;
}
.contact-info-box li i {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 24px;
    color: var(--mainColor);
}
.contact-info-box li span {
    display: block;
    color: var(--blackColor);
    font-weight: 600;
    margin-bottom: 3px;
}
.contact-info-box li a {
    color: var(--paragraphColor);
    transition: var(--transition);
}
.contact-info-box li a:hover {
    color: var(--mainColor);
}

/* ===== Informace o zpracování údajů pod formulářem ===== */
.form-privacy-note {
    text-align: left;
    margin-bottom: 20px;
    color: var(--paragraphColor);
    font-size: 13px;
}
.form-privacy-note a {
    color: var(--mainColor);
    text-decoration: underline;
}

/* Form status message */
#formStatus {
    margin-top: 18px;
    font-weight: 600;
}

/* ===== Inline validace formuláře ===== */
.field-error {
    color: #d6336c;
    font-size: 13px;
    font-weight: 600;
    margin: 6px 0 0;
    text-align: left;
}
#leadForm .form-control.is-invalid {
    border-color: #d6336c;
    background-color: #fff7f9;
}
#leadForm .form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(214, 51, 108, 0.15);
}
/* Honeypot: vizuálně schované mimo obrazovku (ne display:none — na to jsou boti chytří) */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===== GDPR / legal page readability ===== */
.legal-content h2 {
    font-size: 24px;
    margin: 35px 0 15px;
}
.legal-content h3 {
    font-size: 19px;
    margin: 25px 0 12px;
}
.legal-content p,
.legal-content li {
    color: var(--paragraphColor);
    line-height: 1.8;
}
.legal-note {
    background: #fff4f8;
    border-left: 4px solid var(--mainColor);
    padding: 15px 20px;
    border-radius: 6px;
    margin: 25px 0;
    color: var(--blackColor);
}

/* Small helper */
.text-gradient {
    background: var(--gradientColor);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   HOSPITAL THEME — „klinika pro aplikace“ (White + Red Cross)
   Medical red brand + trust-blue accent, colour-tinted sections
   (not an all-white page), a blue hero gradient, EKG heartbeat
   motifs, a first-aid badge, medical icons and an ambulance
   illustration. All layered on top — no template files touched.
   ============================================================ */

:root {
    --mainColor: #E5484D;                                           /* medical red (cross) */
    --gradientColor: linear-gradient(135deg, #E5484D 0%, #FF7A6B 100%);
    --accentColor: #2563EB;                                         /* trust blue */
    --ekgColor: #E5484D;
    --blueBg: #EEF4FF;                                              /* soft blue section tint */
    --redBg: #FFF5F5;                                               /* soft red section tint */
}

/* Colour-tint sections so the page isn't flat white */
.bg-F7F7FF { background-color: var(--blueBg) !important; }
#problem { background-color: var(--redBg); }                        /* "Příznaky" = warm red */

/* ===== Hero: medical-blue gradient (ambulance vibe), white text ===== */
.main-banner-area::before {
    background: linear-gradient(120deg, #1E3A8A 0%, #2563EB 55%, #3B82F6 100%) !important;
    transform: none !important;
}
/* Lift hero content higher: template pushes it down with 200px padding
   plus an extra 80px offset on the text block */
.main-banner-area {
    padding-top: 120px;
}
.main-banner-content .content {
    top: 0;
}
@media (max-width: 991px) {
    .main-banner-area {
        padding-top: 100px;
    }
}
/* subtle "+" cross pattern over the hero gradient */
.main-banner-area .shape-overlay {
    background-image: radial-gradient(rgba(255, 255, 255, 0.10) 2px, transparent 2px);
    background-size: 34px 34px;
    opacity: .6;
}

/* ===== Hero sub-title → first-aid pill badge ===== */
.main-banner-area .sub-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 7px 16px 7px 14px;
    border-radius: 30px;
    font-weight: 600;
    backdrop-filter: blur(2px);
}
.main-banner-area .sub-title i { font-size: 18px; }

/* Hero paragraph inherits grey body colour by default → force white on blue */
.main-banner-area .main-banner-content .content p {
    color: rgba(255, 255, 255, 0.92);
}

/* ===== Section titles: give the eyebrow + heading real presence ===== */
.section-title .sub-title {
    display: inline-flex;
    align-items: center;
    background: rgba(229, 72, 77, 0.10);
    color: var(--mainColor);
    /* template clips this to transparent gradient text — undo that for the pill */
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: var(--mainColor);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 16px;
}
.section-title .sub-title::before {
    content: "✚";
    margin-right: 8px;
    font-size: 14px;
    line-height: 1;
}
/* gradient underline accent under each section heading */
.section-title h2 { position: relative; }
.section-title h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    margin: 20px auto 0;
    background: var(--gradientColor);
}
/* left-aligned section title (Proč já) → left-aligned underline */
#proc-ja .section-title h2::after { margin-left: 0; margin-right: auto; }
/* highlighted keyword inside a heading */
.text-gradient {
    background: var(--gradientColor);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== EKG / heartbeat divider ===== */
.ekg-divider {
    background: #fff;
    padding: 0;
    line-height: 0;
    overflow: hidden;
}
.ekg-divider svg { width: 100%; height: 70px; display: block; }
.ekg-line {
    fill: none;
    stroke: var(--ekgColor);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: ekg-draw 4s linear infinite;
}
@keyframes ekg-draw {
    to { stroke-dashoffset: -1400; }
}

/* ===== Hero ambulance illustration ===== */
.hero-illustration { position: relative; }
.hero-illustration svg {
    width: 100%;
    height: auto;
    max-width: 560px;
    display: block;
    margin: 0 auto;
    overflow: visible;
}
.amb-bob { animation: amb-bob 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes amb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.amb-light-red { animation: amb-flash 1.1s steps(1) infinite; }
.amb-light-blue { animation: amb-flash 1.1s steps(1) .55s infinite; }
@keyframes amb-flash { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .2; } }
.amb-ekg {
    fill: none;
    stroke: #fff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    animation: ekg-draw 3s linear infinite;
}
.amb-float { animation: amb-bob 4s ease-in-out infinite; transform-origin: center; }

/* ===== Service cards: medical icon above the title ===== */
#sluzby .package-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    font-size: 30px;
    color: #fff;
    background: var(--gradientColor);
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(229, 72, 77, 0.28);
}
#sluzby .single-pricing-box.active {
    box-shadow: 0px 25px 50px 5px rgba(229, 72, 77, 0.15);
}
/* featured card icon in the trust-blue to differentiate */
#sluzby .single-pricing-box.active .package-icon {
    background: linear-gradient(135deg, #2563EB 0%, #38BDF8 100%);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

/* ===== Process steps ===== */
.process-step .step-number {
    font-size: 26px;
    background: var(--gradientColor);
}
.process-step .step-tag {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mainColor);
    margin-bottom: 4px;
}

/* ===== "Vyléčení pacienti" mini status badge on reference cards ===== */
.reference-card .discharged {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    background: #dcfce7;
    padding: 4px 11px;
    border-radius: 30px;
    margin-left: auto;
}
.reference-card .discharged i { font-size: 14px; }

/* Inner-page title banner: re-theme template pink gradient to medical blue */
.page-title-area {
    background: linear-gradient(120deg, #1E3A8A 0%, #2563EB 55%, #3B82F6 100%);
}
.page-title-content h1 {
    color: var(--whiteColor);
}
.page-title-content ul li,
.page-title-content ul li a {
    color: rgba(255, 255, 255, 0.85);
}

/* ===== Footer contact row (phone + e-mail with icons) ===== */
.footer-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 35px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: var(--transition);
}
.footer-contact a:hover {
    color: var(--mainColor);
}
.footer-contact i {
    font-size: 18px;
    color: var(--mainColor);
}

/* Keep legal-note readable but on-theme */
.legal-note {
    background: #fff5f5;
    border-left-color: var(--mainColor);
}

/* ===== Cookie lišta ===== */
#akCookieBar {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    max-width: 560px;
    margin: 0 auto;
    background: var(--whiteColor);
    border-radius: 14px;
    box-shadow: 0 12px 44px rgba(38, 42, 55, 0.28);
    padding: 22px 26px;
}
#akCookieBar p {
    margin: 0 0 15px;
    color: var(--blackColor);
    font-size: 14px;
    line-height: 1.6;
}
#akCookieBar a {
    color: var(--mainColor);
    text-decoration: underline;
}
.ak-cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.ak-cookie-actions .default-btn {
    padding: 10px 26px;
}
.ak-cookie-deny {
    background: none;
    border: 1px solid #d9d9e3;
    border-radius: 30px;
    padding: 10px 26px;
    font-weight: 600;
    font-size: 14px;
    color: var(--paragraphColor);
    cursor: pointer;
    transition: var(--transition);
}
.ak-cookie-deny:hover {
    border-color: var(--blackColor);
    color: var(--blackColor);
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
    .amb-bob, .amb-light-red, .amb-light-blue, .amb-ekg, .amb-float, .ekg-line {
        animation: none;
    }
    .amb-ekg, .ekg-line { stroke-dashoffset: 0; }
}
