/* ============================================
   Kariéra Nemocnice Pelhřimov - Landing Page
   ============================================ */

:root {
    --green: #0E833D;
    --green-light: #e8f5ec;
    --green-dark: #0a6b30;
    --navy: #1B3A56;
    --navy-light: #2a4d6e;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-500: #868e96;
    --gray-700: #495057;
    --gray-900: #212529;
    --warm-bg: #fafaf7;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* --- Header --- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all .3s;
}
.site-header.scrolled {
    background: rgba(255,255,255,0.97);
    border-bottom-color: var(--gray-200);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 36px; height: 36px; border-radius: 8px; background: var(--green);
    display: flex; align-items: center; justify-content: center;
}
.logo-text-main { font-weight: 600; font-size: 15px; color: var(--navy); line-height: 1.2; }
.logo-text-sub { font-weight: 500; font-size: 12px; color: var(--green); line-height: 1.2; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    background: none; border: none; cursor: pointer;
    padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
    color: var(--gray-700); transition: all .2s;
}
.nav-link:hover { background: var(--gray-100); color: var(--navy); }

.nav-cta {
    background: var(--green); color: #fff; border: none; border-radius: 8px;
    padding: 9px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
    margin-left: 8px; transition: all .2s;
}
.nav-cta:hover { background: var(--green-dark); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-nav {
    display: none; padding: 8px 24px 16px; background: #fff;
    border-top: 1px solid var(--gray-200);
}
.mobile-nav.active { display: block; }
.mobile-nav a {
    display: block; padding: 12px 0; font-size: 15px; font-weight: 500;
    color: var(--gray-700); border-bottom: 1px solid var(--gray-100);
}

/* --- Hero --- */
.hero {
    padding-top: 100px; padding-bottom: 80px;
    background: linear-gradient(170deg, var(--white) 0%, var(--green-light) 50%, var(--white) 100%);
}
.hero-content { max-width: 720px; }
.hero-badge {
    display: inline-block; background: rgba(14,131,61,0.08); color: var(--green);
    font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 20px;
    margin-bottom: 24px; letter-spacing: .3px;
}
.hero h1 { font-size: 44px; font-weight: 700; line-height: 1.15; color: var(--navy); margin-bottom: 20px; }
.hero h1 .accent { color: var(--green); }
.hero-subtitle { font-size: 18px; line-height: 1.65; color: var(--gray-700); margin-bottom: 36px; max-width: 600px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
    background: var(--green); color: #fff; border: none; border-radius: 10px;
    padding: 14px 28px; font-size: 16px; font-weight: 600; cursor: pointer;
    transition: all .2s; display: inline-block; text-align: center;
}
.btn-primary:hover { background: var(--green-dark); color: #fff; }

.btn-secondary {
    background: transparent; color: var(--navy); border: 2px solid var(--navy);
    border-radius: 10px; padding: 12px 28px; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: all .2s; display: inline-block; text-align: center;
}
.btn-secondary:hover { background: var(--navy); color: #fff; }

.hero-stats { display: flex; gap: 20px; margin-top: 56px; flex-wrap: wrap; }
.stat-card {
    background: rgba(255,255,255,0.8); border: 1px solid var(--gray-200);
    border-radius: 12px; padding: 20px 28px; min-width: 160px; flex: 1;
}
.stat-number { font-size: 32px; font-weight: 700; color: var(--green); line-height: 1; }
.stat-unit { font-size: 16px; font-weight: 500; color: var(--gray-700); }
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* --- EVP --- */
.evp { padding: 80px 0; background: var(--white); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header h2 { font-size: 34px; font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 16px; }
.section-header p { color: var(--gray-500); font-size: 16px; }

.evp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.evp-card {
    background: var(--gray-50); border-radius: 16px; padding: 32px 28px;
    border: 1px solid var(--gray-200); transition: all .3s;
}
.evp-card:hover { border-color: var(--green); transform: translateY(-4px); }
.evp-icon {
    width: 52px; height: 52px; border-radius: 12px; background: var(--green-light);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.evp-card h3 { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.evp-card p { font-size: 15px; line-height: 1.6; color: var(--gray-700); }

/* --- Benefits --- */
.benefits { padding: 80px 0; background: var(--warm-bg); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.benefit-card {
    border-radius: 14px; padding: 28px 24px; transition: transform .2s;
    background: var(--white); border: 1px solid var(--gray-200);
}
.benefit-card:hover { transform: translateY(-3px); }
.benefit-card.highlight { background: var(--green); color: #fff; border: none; }
.benefit-card.highlight h3 { color: #fff; }
.benefit-card.highlight p { color: rgba(255,255,255,0.92); }
.benefit-icon { font-size: 28px; margin-bottom: 12px; }
.benefit-card h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.benefit-card p { font-size: 14px; line-height: 1.6; color: var(--gray-700); }

/* --- Social Proof --- */
.social-proof { padding: 72px 0; background: var(--navy); text-align: center; }
.social-proof h2 { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 20px; line-height: 1.2; }
.social-proof > .container > p {
    font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.8);
    max-width: 700px; margin: 0 auto 40px;
}
.proof-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.proof-stat-value { font-size: 40px; font-weight: 700; color: var(--green); line-height: 1; }
.proof-stat-label { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 6px; }

/* --- Locality --- */
.locality { padding: 80px 0; background: var(--white); }
.locality-inner { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.locality-text { flex: 1 1 400px; min-width: 280px; }
.locality-text h2 { font-size: 34px; font-weight: 700; color: var(--navy); margin-bottom: 20px; line-height: 1.2; }
.locality-text p { font-size: 16px; line-height: 1.7; color: var(--gray-700); margin-bottom: 24px; }
.locality-quote { font-size: 15px; color: var(--green); font-weight: 600; font-style: italic; }
.locality-features {
    flex: 1 1 360px; min-width: 280px; background: var(--green-light);
    border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 16px;
}
.locality-feature { background: rgba(255,255,255,0.7); border-radius: 10px; padding: 14px 18px; }
.locality-feature-label { font-size: 13px; font-weight: 600; color: var(--green); margin-bottom: 2px; }
.locality-feature-value { font-size: 15px; color: var(--gray-700); }

/* --- Positions --- */
.positions { padding: 80px 0; background: var(--gray-50); }
.filter-bar { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 500;
    cursor: pointer; border: 1.5px solid var(--gray-300); background: transparent;
    color: var(--gray-700); transition: all .2s;
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { border-color: var(--green); background: var(--green); color: #fff; }

.positions-list { display: flex; flex-direction: column; gap: 12px; }
.position-row {
    background: var(--white); border-radius: 12px; padding: 20px 24px;
    border: 1px solid var(--gray-200); display: flex; align-items: center;
    justify-content: space-between; gap: 16px; flex-wrap: wrap; transition: all .2s;
}
.position-row:hover { border-color: var(--green); box-shadow: 0 2px 12px rgba(14,131,61,0.08); }
.position-title { font-size: 16px; font-weight: 600; color: var(--navy); }
.position-meta { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

.btn-outline {
    background: transparent; border: 1.5px solid var(--green); border-radius: 8px;
    padding: 8px 18px; font-size: 14px; font-weight: 600; color: var(--green);
    cursor: pointer; transition: all .2s; white-space: nowrap; display: inline-block;
}
.btn-outline:hover { background: var(--green); color: #fff; }
.no-positions { text-align: center; padding: 40px; color: var(--gray-500); font-size: 15px; }

/* --- Slide-in Panel --- */
.panel-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999;
    background: rgba(0,0,0,0); pointer-events: none;
    -webkit-transition: background .3s;
    transition: background .3s;
    -webkit-tap-highlight-color: transparent;
}
.panel-overlay.active {
    background: rgba(0,0,0,0.35); pointer-events: auto; cursor: pointer;
}
.panel-slidein {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1000;
    width: 100%; max-width: 500px; background: #ffffff;
    box-shadow: -8px 0 30px rgba(0,0,0,0.12);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: -webkit-transform .3s ease-out;
    transition: transform .3s ease-out;
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: column; flex-direction: column;
    -webkit-overflow-scrolling: touch;
}
.panel-slidein.active {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 28px; border-bottom: 1px solid var(--gray-200); flex-shrink: 0;
}
.panel-header-label { font-size: 13px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; }
.panel-close {
    background: none; border: none; cursor: pointer; font-size: 20px;
    color: var(--gray-500); padding: 4px 8px; border-radius: 6px; transition: all .2s;
}
.panel-close:hover { background: var(--gray-100); color: var(--gray-900); }

.panel-body { flex: 1; overflow-y: auto; padding: 28px; }
.panel-loading { text-align: center; padding: 40px 0; color: var(--gray-500); font-size: 15px; }

.panel-badge {
    display: inline-block; background: var(--green-light); color: var(--green);
    font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 12px; margin-bottom: 16px;
}
.panel-title { font-size: 22px; font-weight: 700; color: var(--navy); margin: 0 0 16px; line-height: 1.3; }
.panel-desc { font-size: 15px; line-height: 1.65; color: var(--gray-700); margin: 0 0 20px; }

.panel-benefits-label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.panel-benefit { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--gray-700); padding: 4px 0; }
.panel-benefit-check { color: var(--green); font-weight: 700; flex-shrink: 0; }

.panel-contact-box {
    background: var(--gray-50); border-radius: 10px; padding: 12px 16px;
    margin: 20px 0 28px; font-size: 13px; color: var(--gray-700);
}
.panel-contact-box strong { color: var(--navy); }

.panel-form-title { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 14px; }

.panel-divider { border: none; border-top: 1px solid var(--gray-200); margin: 24px 0; }

body.panel-open { overflow: hidden; position: fixed; width: 100%; }

@media (max-width: 540px) {
    .panel-slidein { max-width: 100%; }
}

/* --- Contact --- */
.contact { padding: 80px 0; background: var(--white); }
.contact-inner { display: flex; gap: 48px; flex-wrap: wrap; }
.contact-info { flex: 1 1 440px; min-width: 280px; }
.contact-info h2 { font-size: 32px; font-weight: 700; color: var(--navy); margin-bottom: 16px; line-height: 1.2; }
.contact-info > p { font-size: 16px; line-height: 1.7; color: var(--gray-700); margin-bottom: 32px; }
.contact-persons { display: flex; gap: 24px; flex-wrap: wrap; }
.person-card {
    flex: 1 1 200px; background: var(--gray-50); border-radius: 12px;
    padding: 20px; border: 1px solid var(--gray-200);
}
.person-avatar {
    width: 48px; height: 48px; border-radius: 50%; background: var(--green-light);
    display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
    font-size: 18px; font-weight: 600; color: var(--green);
}
.person-name { font-size: 15px; font-weight: 600; color: var(--navy); }
.person-role { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }
.person-phone { font-size: 13px; color: var(--gray-700); }
.person-email { font-size: 13px; color: var(--green); }

.contact-form-wrap { flex: 1 1 380px; min-width: 280px; }
.contact-form-box {
    background: var(--gray-50); border-radius: 16px; padding: 32px 28px;
    border: 1px solid var(--gray-200);
}
.contact-form-box h3 { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 20px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-700); margin-bottom: 4px; }
.form-group input,
.form-group textarea {
    width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--gray-300);
    font-size: 14px; font-family: inherit; transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14,131,61,0.1);
}
.form-group textarea { resize: vertical; }

.form-submit {
    width: 100%; padding: 13px; background: var(--green); color: #fff; border: none;
    border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer;
    margin-top: 4px; transition: all .2s;
}
.form-submit:hover { background: var(--green-dark); }

.flash-success { text-align: center; padding: 40px 0; }
.flash-icon {
    width: 56px; height: 56px; border-radius: 50%; background: var(--green-light);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.flash-title { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.flash-subtitle { font-size: 14px; color: var(--gray-500); }

.form-group .error { border-color: #e24b4a; }
.form-error { font-size: 12px; color: #e24b4a; margin-top: 4px; }

/* --- Footer --- */
.site-footer { background: var(--navy); padding: 40px 0 24px; color: rgba(255,255,255,0.6); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.footer-brand { font-weight: 600; color: #fff; font-size: 15px; margin-bottom: 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; text-align: center; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 30px; }
    .section-header h2, .locality-text h2, .contact-info h2 { font-size: 26px; }
    .hero-stats { flex-direction: column; }
    .stat-card { min-width: auto; }
    .proof-stats { flex-direction: column; gap: 24px; }
    .locality-inner, .contact-inner { flex-direction: column; }
    .hero { padding-top: 80px; padding-bottom: 48px; }
    .evp, .benefits, .locality, .positions, .contact { padding: 56px 0; }
    .social-proof { padding: 48px 0; }
}
