/*
Theme Name: Dr Król Modern
Theme URI: http://www.drkrol.pl
Author: Dr Król
Description: Nowoczesny motyw dla Gabinetu Lekarskiego Dr Król - responsywny, mobile-first.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: drkrol-modern
*/

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #1a6b8a;
    --primary-dark: #134f66;
    --primary-light: #e8f4f8;
    --accent: #2ecc71;
    --accent-dark: #27ae60;
    --text: #2c3e50;
    --text-light: #6c757d;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-section: #f0f7fa;
    --border: #dee2e6;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-dark);
}

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

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}
.top-bar a {
    color: rgba(255,255,255,0.9);
}
.top-bar a:hover {
    color: #fff;
}
.top-bar i {
    margin-right: 6px;
    color: var(--accent);
}
.top-bar .separator {
    margin: 0 15px;
    opacity: 0.3;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--bg) !important;
    box-shadow: var(--shadow);
    padding: 12px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 6px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand .brand-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}
.navbar-brand small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.navbar .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .current-menu-item > a {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.navbar-toggler {
    border: none;
    padding: 8px;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon {
    width: 24px;
    height: 24px;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 30px;
}
.hero .btn-hero {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    z-index: 10;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    touch-action: manipulation;
    margin-right: 12px;
    margin-bottom: 8px;
}
.hero .btn-hero:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46,204,113,0.3);
}
.hero .btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    z-index: 10;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    touch-action: manipulation;
    margin-bottom: 8px;
}
.hero .btn-hero-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}
.hero-stat {
    text-align: center;
}
.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}
.hero-stat .label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== SERVICES CARDS ===== */
.section {
    padding: 80px 0;
}
.section-alt {
    background: var(--bg-section);
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-title .line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: 16px auto 0;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 35px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.service-card .icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}
.service-card:hover .icon {
    background: var(--primary);
    color: #fff;
}
.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}
.service-card a {
    color: inherit;
    text-decoration: none;
}

/* ===== DOCTORS ===== */
.doctor-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
}
.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.doctor-card .doctor-avatar {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #d5e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary);
}
.doctor-card .doctor-info {
    padding: 25px;
}
.doctor-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.doctor-card .specialty {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.doctor-card .schedule {
    font-size: 0.85rem;
    color: var(--text-light);
}
.doctor-card .schedule li {
    padding: 3px 0;
}

/* ===== CONTACT INFO BAR ===== */
.contact-bar {
    background: var(--primary);
    color: #fff;
    padding: 50px 0;
}
.contact-bar h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.contact-bar a {
    color: #fff;
}
.contact-bar .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}
.contact-bar .contact-item i {
    font-size: 1.2rem;
    margin-top: 4px;
    color: var(--accent);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 15px;
}
.cta-section p {
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 25px;
}
.cta-section .btn-cta {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cta-section .btn-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46,204,113,0.3);
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1a2332;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.site-footer h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}
.site-footer a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.site-footer a:hover {
    color: var(--accent);
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer ul li {
    padding: 5px 0;
}
.site-footer ul li i {
    margin-right: 8px;
    color: var(--accent);
    width: 16px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.85rem;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 50px 0 40px;
}
.page-header-section h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 8px;
}
.page-header-section .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}
.page-header-section .breadcrumb-item,
.page-header-section .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.page-header-section .breadcrumb-item.active {
    color: #fff;
}

/* ===== CONTENT ===== */
.content-area {
    padding: 60px 0;
}
.content-area .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}
.content-area .entry-content h2 {
    font-size: 1.6rem;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--primary);
}
.content-area .entry-content h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 12px;
    color: var(--primary);
}
.content-area .entry-content ul {
    padding-left: 20px;
}
.content-area .entry-content ul li {
    padding: 4px 0;
}
.content-area .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.content-area .entry-content table td,
.content-area .entry-content table th {
    padding: 12px 15px;
    border: 1px solid var(--border);
}
.content-area .entry-content img {
    border-radius: var(--radius-sm);
    margin: 15px 0;
}

/* ===== SIDEBAR ===== */
.sidebar .widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
}
.sidebar .widget h4,
.sidebar .widget-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}
.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar .widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--bg-light);
}
.sidebar .widget ul li:last-child {
    border-bottom: none;
}
.sidebar .widget ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar .widget ul li a::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--accent);
}

/* ===== BLOG CARDS ===== */
.post-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.post-card .post-thumb {
    height: 200px;
    background: var(--primary-light);
    overflow: hidden;
}
.post-card .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-card .post-body {
    padding: 25px;
}
.post-card .post-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.post-card .post-meta i {
    margin-right: 4px;
    color: var(--primary);
}
.post-card h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.post-card h2 a {
    color: var(--text);
}
.post-card h2 a:hover {
    color: var(--primary);
}
.post-card .excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
}
.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}
.read-more:hover {
    gap: 10px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-1px);
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    color: var(--primary);
    border-radius: var(--radius-sm);
    margin: 0 3px;
    border: 1px solid var(--border);
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero { padding: 60px 0 50px; }
    .hero h1 { font-size: 2rem; }
    .section { padding: 60px 0; }
    .hero-stats { gap: 25px; }
    .hero-stat .number { font-size: 1.6rem; }
    .top-bar .d-flex { flex-wrap: wrap; gap: 10px; }
    .top-bar .separator { display: none; }
    .navbar-collapse {
        background: var(--bg);
        padding: 15px;
        border-radius: var(--radius);
        margin-top: 10px;
        box-shadow: var(--shadow-lg);
    }
}

@media (max-width: 767px) {
    .hero { padding: 45px 0 40px; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 1rem; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .section { padding: 45px 0; }
    .section-title h2 { font-size: 1.6rem; }
    .page-header-section h1 { font-size: 1.6rem; }
    .contact-bar .row > div { margin-bottom: 25px; }
    .site-footer .row > div { margin-bottom: 30px; }
    .content-area { padding: 40px 0; }
    .top-bar { font-size: 0.8rem; padding: 6px 0; }
    .btn-hero, .btn-hero-outline { padding: 12px 24px; font-size: 0.95rem; }
}

@media (max-width: 575px) {
    .hero h1 { font-size: 1.4rem; }
    .service-card { padding: 25px 20px; }
    .doctor-card .doctor-avatar { height: 160px; font-size: 2.5rem; }
}

/* ===== WORDPRESS CORE ===== */
.alignleft { float: left; margin: 0 20px 15px 0; }
.alignright { float: right; margin: 0 0 15px 20px; }
.aligncenter { display: block; margin: 15px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-light); padding: 8px 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery-item { margin: 0; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
