/* Psí lékárnička — lead magnet landing
   Page template: page-templates/psi-lekarnicka.php
   Color palette aligned with rawbark: plum #3d182c, orange #ee9623, hover yellow #ffbe3e.
*/

.lekarnicka-page {
    --plum: #3d182c;
    --plum-2: #4a143c;
    --orange: #ee9623;
    --orange-2: #f3a93a;
    --hover-yellow: #ffbe3e;
    --red: #d92d38;
    --cream: #fff6ea;
    --cream-2: #fffaf2;
    --ink: #231523;
    --muted: #6c5f68;
    --card-bg: rgba(255, 255, 255, 0.86);
    --border: rgba(53, 16, 46, 0.12);
    --shadow: 0 22px 60px rgba(53, 16, 46, 0.14);
    --shadow-soft: 0 10px 28px rgba(53, 16, 46, 0.10);

    color: var(--ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(238, 150, 35, .10), transparent 28%),
        radial-gradient(circle at 80% 18%, rgba(61, 24, 44, .10), transparent 30%),
        linear-gradient(180deg, var(--cream), var(--cream-2));
    /* Body je flex-column (.d-flex .flex-column .min-vh-100); aby se <main>
       nezmačklo a aby kombinace overflow-x:hidden + flex nevyvolala interní
       scroll uvnitř main, explicitně vyrůstej a nezmenšuj se. */
    flex: 1 0 auto;
    min-height: 0;
    /* clip-path bezpečně ořízne horizontální přesah (doodles), bez postranního
       efektu, který má `overflow-x: hidden` na flex-itemu (vede k overflow-y:auto). */
    clip-path: inset(0);
    /* Body už má padding-top = --rawbark-notif-bar-h (z functions/notification-bar.php
       když je aktivní notif lišta). Sticky #navbar.fixed-top ale samostatně překryvá
       obsah — landing nemá pages-parts/page-heading.php s vlastním pt-5, tak si
       prostor musí uvolnit sama. --rawbark-navbar-h měří JS v notification-bar.php. */
    padding-top: var(--rawbark-navbar-h, 64px);
}

.lekarnicka-page * { box-sizing: border-box; }

.lekarnicka-page a { color: inherit; }

.lekarnicka-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* ---------- HERO ---------- */
.lekarnicka-page .hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 58px;
    padding: 74px 0 70px;
}

.lekarnicka-page .kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(61, 24, 44, .08);
    color: var(--plum);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
}

.lekarnicka-page h1 {
    margin: 0;
    color: var(--plum);
    font-family: "Katahdin Round", "Proxima Soft", sans-serif;
    font-size: clamp(38px, 4.6vw, 60px);
    letter-spacing: -0.02em;
    line-height: 1.02;
    max-width: 600px;
}

.lekarnicka-page h1 .orange { color: var(--orange); }

.lekarnicka-page .lead {
    font-size: 20px;
    line-height: 1.55;
    color: #3e303d;
    margin: 24px 0 26px;
    max-width: 570px;
}

.lekarnicka-page .bullets {
    display: grid;
    gap: 13px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    font-weight: 700;
    color: var(--plum);
}

.lekarnicka-page .bullets li {
    display: flex;
    align-items: center;
    gap: 11px;
}

.lekarnicka-page .bullet-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: white;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
}

/* ---------- FORM CARD ---------- */
.lekarnicka-page .form-card {
    width: min(100%, 500px);
    padding: 24px;
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.lekarnicka-page .form-card h2 {
    margin: 0 0 16px;
    color: var(--plum);
    font-family: "Katahdin Round", "Proxima Soft", sans-serif;
    font-size: 24px;
    letter-spacing: -.02em;
}

.lekarnicka-page .form-card label {
    display: block;
    font-weight: 600;
    color: var(--plum);
    margin-bottom: 8px;
    font-size: 14px;
}

.lekarnicka-page .email-row {
    position: relative;
    margin-bottom: 12px;
}

.lekarnicka-page .email-row input[type="email"] {
    width: 100%;
    height: 58px;
    padding: 0 18px 0 48px;
    border-radius: 16px;
    border: 1px solid rgba(61, 24, 44, .22);
    font: inherit;
    background: white;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.lekarnicka-page .email-row input[type="email"]:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(238, 150, 35, .14);
}

.lekarnicka-page .mail-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .55;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
}

/* Honeypot: off-screen, neviditelné, nelze tabnout */
.lekarnicka-page .hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* CTA tlačítko — staví na .btn-primary, jen lehce zvětšuje */
.lekarnicka-page .btn-lekarnicka-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100% !important;
    padding: 1em 1.5em !important;
    font-size: 1.05em !important;
    margin: 0 !important;
    position: relative;
}

.lekarnicka-page .btn-lekarnicka-cta[disabled],
.lekarnicka-page .btn-lekarnicka-cta.is-loading {
    opacity: .7;
    cursor: wait;
}

.lekarnicka-page .btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(61, 24, 44, .25);
    border-top-color: var(--plum);
    border-radius: 50%;
    animation: rb-lek-spin .8s linear infinite;
}

.lekarnicka-page .btn-lekarnicka-cta.is-loading .btn-spinner { display: inline-block; }
.lekarnicka-page .btn-lekarnicka-cta.is-loading .btn-label { opacity: .65; }

@keyframes rb-lek-spin { to { transform: rotate(360deg); } }

.lekarnicka-page .legal {
    margin-top: 14px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--muted);
}

.lekarnicka-page .legal a { color: var(--plum); font-weight: 700; text-decoration: underline; }

.lekarnicka-page .form-result {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    padding: 0;
}

.lekarnicka-page .form-result.is-error {
    color: #8a1622;
    background: rgba(217, 45, 56, .08);
    border: 1px solid rgba(217, 45, 56, .25);
    padding: 12px 14px;
}

.lekarnicka-page .form-result.is-success {
    color: #1f5e2c;
    background: rgba(38, 132, 67, .08);
    border: 1px solid rgba(38, 132, 67, .3);
    padding: 18px 18px;
    font-size: 16px;
    line-height: 1.4;
}

/* Hide form fields once submitted ok */
.lekarnicka-page .form-card.is-done > *:not(.form-result):not(h2) { display: none; }
.lekarnicka-page .form-card.is-done h2 { margin-bottom: 12px; }

/* ---------- HERO ART ---------- */
.lekarnicka-page .hero-art {
    min-height: 610px;
    position: relative;
    display: grid;
    place-items: center;
}

.lekarnicka-page .doc-stack {
    position: relative;
    width: min(560px, 100%);
    height: 610px;
    filter: drop-shadow(0 26px 42px rgba(61, 24, 44, .14));
}

.lekarnicka-page .pdf-front,
.lekarnicka-page .pdf-back {
    position: absolute;
    width: 365px;
    max-width: 72vw;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 28px 65px rgba(61, 24, 44, .22);
    border: 1px solid rgba(61, 24, 44, .12);
    background: white;
}

.lekarnicka-page .pdf-back {
    right: 8px;
    top: 18px;
    transform: rotate(7deg);
    z-index: 1;
}

.lekarnicka-page .pdf-front {
    left: 18px;
    top: 72px;
    transform: rotate(-3deg);
    z-index: 2;
}

.lekarnicka-page .envelope {
    position: absolute;
    right: 164px;
    bottom: 75px;
    font-size: 42px;
    transform: rotate(-8deg);
    z-index: 4;
    line-height: 1;
}

.lekarnicka-page .pdf-badge {
    position: absolute;
    right: 16px;
    bottom: 58px;
    z-index: 3;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: var(--plum);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    box-shadow: var(--shadow);
    transform: rotate(5deg);
    font-family: "Katahdin Round", "Proxima Soft", sans-serif;
}

.lekarnicka-page .pdf-badge strong {
    font-size: 24px;
    line-height: 1.02;
    letter-spacing: -.02em;
}

.lekarnicka-page .pdf-badge span {
    margin-top: 8px;
    color: var(--orange-2);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
}

.lekarnicka-page .doodle {
    position: absolute;
    color: var(--plum);
    opacity: .85;
    font-weight: 900;
    pointer-events: none;
}

.lekarnicka-page .doodle.orange { color: var(--orange); }
.lekarnicka-page .doodle-one { left: 45%; top: 8%; font-size: 34px; transform: rotate(-10deg); }
.lekarnicka-page .doodle-two { right: 2%; top: 24%; font-size: 42px; transform: rotate(9deg); }
.lekarnicka-page .doodle-three { left: -2%; bottom: 30%; font-size: 32px; transform: rotate(-18deg); }

/* ---------- CARDS ---------- */
.lekarnicka-page section { padding: 32px 0; }

.lekarnicka-page .section-title {
    text-align: center;
    margin: 0 0 34px;
    color: var(--plum);
    font-family: "Katahdin Round", "Proxima Soft", sans-serif;
    font-size: clamp(28px, 3.2vw, 42px);
    letter-spacing: -.02em;
    line-height: 1.1;
}

.lekarnicka-page .cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.lekarnicka-page .card {
    min-height: 230px;
    padding: 26px 22px;
    text-align: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.lekarnicka-page .card-icon {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    font-size: 42px;
    background: #fff2df;
    color: var(--plum);
    line-height: 1;
}

.lekarnicka-page .card h3 {
    margin: 0 0 10px;
    color: var(--plum);
    font-family: "Katahdin Round", "Proxima Soft", sans-serif;
    font-size: 22px;
    letter-spacing: -.02em;
    line-height: 1.08;
}

.lekarnicka-page .card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 15px;
}

/* ---------- CTA BAND ---------- */
.lekarnicka-page .cta-band {
    margin: 46px 0 38px;
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at 8% 40%, rgba(238, 150, 35, .26), transparent 22%),
        linear-gradient(135deg, var(--plum), #21091f);
    color: white;
    min-height: 270px;
    display: grid;
    grid-template-columns: .78fr 1fr;
    align-items: center;
    gap: 30px;
    padding: 36px 48px;
    box-shadow: var(--shadow);
}

.lekarnicka-page .cta-band h2 {
    margin: 0 0 10px;
    font-family: "Katahdin Round", "Proxima Soft", sans-serif;
    font-size: clamp(24px, 2.8vw, 38px);
    letter-spacing: -.02em;
    line-height: 1.12;
    color: white;
}

.lekarnicka-page .cta-band h2 span { color: var(--orange-2); }
.lekarnicka-page .cta-band p { margin: 0 0 24px; opacity: .9; font-size: 18px; }

/* CTA band button — invertujeme: bílá výplň, plum text, hover oranžová */
.lekarnicka-page .cta-band .btn-lekarnicka-cta {
    max-width: 340px;
    background: white !important;
    color: var(--plum) !important;
    border-color: white !important;
}

.lekarnicka-page .cta-band .btn-lekarnicka-cta:hover {
    background: var(--hover-yellow) !important;
    border-color: var(--hover-yellow) !important;
    color: var(--plum) !important;
}

.lekarnicka-page .cta-visual {
    height: 180px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 18px;
}

.lekarnicka-page .cta-emoji {
    font-size: 96px;
    line-height: 1;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .3));
}

/* ---------- TRUST ROW ---------- */
.lekarnicka-page .trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 18px;
    margin: 0 0 50px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.lekarnicka-page .trust-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
}

.lekarnicka-page .trust-item strong {
    display: block;
    color: var(--plum);
    font-size: 15px;
    margin-bottom: 3px;
}

.lekarnicka-page .trust-item span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
}

.lekarnicka-page .trust-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: #fff2df;
    display: grid;
    place-items: center;
    font-size: 23px;
    line-height: 1;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
    .lekarnicka-page .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; }
    /* Na mobilu/menším tabletu prohodit pořadí: PDF náhledy nahoru, text+formulář dolů. */
    .lekarnicka-page .hero-art { order: -1; min-height: 550px; }
    .lekarnicka-page .hero-text { order: 0; }
    .lekarnicka-page .doc-stack { transform: scale(.92); transform-origin: top center; }
    .lekarnicka-page .cards { grid-template-columns: repeat(2, 1fr); }
    .lekarnicka-page .cta-band { grid-template-columns: 1fr; padding: 34px; }
    .lekarnicka-page .trust-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .lekarnicka-page .lekarnicka-container { width: min(100% - 24px, 1180px); }
    .lekarnicka-page .hero { padding-top: 32px; }
    .lekarnicka-page .lead { font-size: 17px; }
    .lekarnicka-page .form-card { padding: 18px; }
    .lekarnicka-page .hero-art { min-height: 430px; height: 430px; }
    .lekarnicka-page .doc-stack { width: 100%; height: 430px; transform: none; margin: 0; }
    .lekarnicka-page .pdf-front, .lekarnicka-page .pdf-back { width: 56%; max-width: 220px; }
    .lekarnicka-page .pdf-back { right: 5%; top: 12px; }
    .lekarnicka-page .pdf-front { left: 6%; top: 56px; }
    .lekarnicka-page .pdf-badge { width: 96px; height: 96px; bottom: 28px; right: 12px; padding: 10px; }
    .lekarnicka-page .pdf-badge strong { font-size: 18px; }
    .lekarnicka-page .pdf-badge span { font-size: 10px; margin-top: 4px; }
    .lekarnicka-page .envelope { right: 30%; bottom: 30px; font-size: 32px; }
    .lekarnicka-page .doodle-one, .lekarnicka-page .doodle-two, .lekarnicka-page .doodle-three { display: none; }
    .lekarnicka-page .cards { grid-template-columns: 1fr; }
    .lekarnicka-page .cta-band { padding: 28px 22px; }
    .lekarnicka-page .cta-visual { display: none; }
    .lekarnicka-page .trust-row { grid-template-columns: 1fr; }
}
