/*
Theme Name: Dr Urbański
Template: twentytwentyfive
Version: 1.3
Text Domain: drurbanski
*/

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

:root {
    --teal: #066B69;
    --teal-dark: #045553;
    --teal-light: #e8f3f2;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f0f0f0;
    --gray-200: #e0e0e0;
    --gray-600: #666;
    --gray-800: #333;
    --text: #1a1a1a;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --container: 1200px;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Roboto Slab', serif; line-height: 1.3; color: var(--gray-800); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

.btn {
    display: inline-block;
    padding: .75rem 1.75rem;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    border-radius: var(--radius);
    border: 2px solid var(--teal);
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary {
    background: var(--teal);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: var(--white);
}
.btn-outline {
    background: transparent;
    color: var(--teal);
}
.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ===== HEADER ===== */
.header-top {
    background: var(--teal);
    color: var(--white);
    font-size: .85rem;
    padding: 6px 0;
}
.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.header-social a,
.header-contact a {
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 14px;
    text-decoration: none;
}
.header-social a:hover,
.header-contact a:hover { opacity: .85; color: var(--white); }
.header-social svg, .header-contact svg { flex-shrink: 0; }

.header-main {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.site-logo { width: 160px; height: auto; }

.main-navigation ul {
    display: flex;
    gap: 4px;
}
.main-navigation li { position: relative; }
.main-navigation a {
    display: block;
    padding: 10px 16px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--gray-800);
    border-radius: 6px;
    transition: all .2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--teal);
    background: var(--teal-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 5px;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--gray-800);
    margin: 4px 0;
    border-radius: 3px;
    transition: .3s;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-title {
    font-size: 3.5rem;
    font-family: 'Roboto Slab', serif;
    color: var(--white);
    margin-bottom: .25rem;
}
.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: .75rem;
    opacity: .95;
}
.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: .9;
    line-height: 1.6;
}
.hero .btn-primary { background: var(--white); color: var(--teal); border-color: var(--white); }
.hero .btn-primary:hover { background: transparent; color: var(--white); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-gray { background: var(--gray-50); }
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ===== SERVICES GRID (home) ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem 1.25rem;
    text-align: center;
    transition: all .3s;
}
.service-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: var(--teal);
}
.service-icon {
    width: 80px;
    height: auto;
    margin: 0 auto 1rem;
}
.service-card h3 { font-size: 1rem; font-family: 'Noto Sans', sans-serif; font-weight: 600; }

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-image img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
    box-shadow: var(--shadow);
}
.about-text h2 { margin-bottom: 1rem; }

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--teal);
    color: var(--white);
    text-align: center;
}
.cta-section h2 { color: var(--white); }
.cta-section .btn { margin: .5rem; }
.cta-section .btn-primary { background: var(--white); color: var(--teal); border-color: var(--white); }
.cta-section .btn-primary:hover { background: transparent; color: var(--white); }
.cta-section .btn-outline { border-color: var(--white); color: var(--white); }
.cta-section .btn-outline:hover { background: var(--white); color: var(--teal); }

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--teal);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}
.page-header h1 { color: var(--white); margin: 0; font-size: 2.2rem; }

/* ===== SERVICE DETAIL (o nas) ===== */
.services-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.service-detail {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
    transition: box-shadow .25s;
}
.service-detail:hover { box-shadow: var(--shadow); }
.service-detail h2 {
    font-size: 1.25rem;
    color: var(--teal);
    margin-bottom: .75rem;
}
.service-detail p { font-weight: 600; margin-bottom: .5rem; }
.service-detail ul { padding-left: 1.25rem; margin-bottom: 0; }
.service-detail ul li {
    list-style: disc;
    margin-bottom: .3rem;
    line-height: 1.6;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.tags-list span {
    background: var(--white);
    border: 1px solid var(--teal);
    color: var(--teal);
    padding: .4rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: .85rem;
}

/* ===== TABLES ===== */
.specialists-table-wrapper { overflow-x: auto; }
.specialists-table, .pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.specialists-table th, .pricing-table th {
    background: var(--teal);
    color: var(--white);
    text-align: left;
    padding: 1rem 1.25rem;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
}
.specialists-table td, .pricing-table td {
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}
.specialists-table tr:last-child td,
.pricing-table tr:last-child td { border-bottom: none; }
.specialists-table tr:hover td,
.pricing-table tr:hover td { background: var(--teal-light); }

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-item { margin-bottom: 1.5rem; }
.contact-item h3 { color: var(--teal); margin-bottom: .3rem; }
.contact-location { margin-bottom: 2rem; }
.contact-location h3 { color: var(--teal); margin-bottom: .5rem; }
.map-embed { margin-top: .75rem; }

.contact-form-section h2 { color: var(--teal); }
.contact-form { margin-top: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: .4rem;
    font-size: .9rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: .7rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-family: 'Noto Sans', sans-serif;
    font-size: .95rem;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(6,107,105,.12);
}
.form-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--gray-800);
    color: #ccc;
    padding: 3rem 0 1.5rem;
    font-size: .9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    color: var(--white);
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    margin-bottom: .75rem;
    font-size: 1rem;
}
.footer-col a { color: #bbb; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1.5rem;
    text-align: center;
    color: #999;
}
.footer-bottom p { margin: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .services-detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .menu-toggle { display: block; }
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
        padding: .5rem;
        border-radius: 0 0 var(--radius) var(--radius);
        gap: 2px;
    }
    .main-navigation ul.toggled-on { display: flex; }
    .main-navigation { position: relative; }
    .main-navigation a { padding: 10px 14px; }

    .header-top-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .header-contact a { margin-right: 10px; }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero { min-height: 55vh; }

    .contact-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 3rem 0; }

    .specialists-table, .pricing-table { font-size: .85rem; }
    .specialists-table th, .pricing-table th,
    .specialists-table td, .pricing-table td { padding: .65rem .75rem; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
    .btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }
}


/* ===== VALUES SECTION ===== */
.values-section { background: var(--gray-50); }
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.value-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: all .3s;
    display: block;
}
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    color: var(--text);
}
.value-card h3 {
    color: var(--teal);
    font-size: 1.1rem;
    margin-bottom: .5rem;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
}
.value-card p { font-size: .9rem; margin: 0; color: var(--gray-600); }

/* ===== ANIMATED ICONS (#mamdosc) ===== */
.services-icons-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    list-style: none;
}
.services-icons-list li {
    text-align: center;
    padding: 1.5rem .75rem;
    border: 2px solid var(--teal);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .3s;
    background: var(--white);
}
.services-icons-list li img {
    width: 80px;
    height: auto;
    margin: 0 auto .75rem;
    display: block;
    pointer-events: none;
}
.services-icons-list li span {
    display: block;
    font-weight: 600;
    font-size: .85rem;
    color: var(--gray-800);
    pointer-events: none;
}

/* ===== GALLERY ACCORDION ===== */
.gallery-section { padding: 0; }
.gallery-accordion {
    display: flex;
    height: 420px;
    overflow: hidden;
}
.gallery-item {
    flex: 1;
    background-size: cover;
    background-position: center;
    transition: flex .5s ease;
    cursor: pointer;
    position: relative;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.2);
    transition: background .3s;
}
.gallery-item:hover::after { background: rgba(0,0,0,0); }
.gallery-item:hover { flex: 3; }

/* ===== REGISTRATION SECTION ===== */
.registration-section { background: var(--gray-50); }
.registration-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.reg-step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.step-label {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    padding: .3rem 1rem;
    border-radius: 30px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.reg-step h3 { margin-bottom: .75rem; }
.reg-step p { font-size: .9rem; color: var(--gray-600); }
.reg-step .btn { margin-top: .5rem; }
.znanylekarz-widget { margin: 1rem 0; min-height: 100px; }
.znanylekarz-widget iframe { max-width: 100% !important; }

/* ===== REVIEWS CAROUSEL ===== */
.reviews-header { text-align: center; margin-bottom: 2rem; }
.reviews-source { font-size: .85rem; color: var(--gray-600); }
.reviews-carousel {
    overflow: hidden;
    position: relative;
}
.reviews-track {
    display: flex;
    gap: 24px;
    transition: transform .5s ease;
}
.review-card {
    min-width: calc(50% - 12px);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}
.review-stars { color: #f4b400; font-size: 1.2rem; margin-bottom: .75rem; }
.review-card p { font-size: .9rem; font-style: italic; line-height: 1.6; margin-bottom: .5rem; }
.review-author { font-size: .8rem; color: var(--teal); font-weight: 600; }
.review-date { font-size: .75rem; color: var(--gray-500); margin-left: .5rem; }
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--teal);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all .25s;
}
.carousel-dot.active { background: var(--teal); }
.reviews-footer {
    text-align: center;
    margin-top: 2rem;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-800);
    color: #ccc;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    z-index: 999;
    font-size: .9rem;
}
.cookie-banner p { margin: 0; font-size: .85rem; }
.cookie-banner .btn { flex-shrink: 0; }

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    z-index: 998;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top-btn:hover { background: var(--teal-dark); }

/* ===== FOOTER MAP PIN ===== */
.footer-map-pin svg { fill: var(--teal); }

/* ===== SPECIALISTS CARDS ===== */
.specialists-cards {
    display: grid;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}
.specialist-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
}
.specialist-photo {
    overflow: hidden;
    background: var(--gray-100);
    height: 100%;
    min-height: 280px;
    position: relative;
}
.specialist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.specialist-placeholder {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-200);
    background: var(--teal-light);
}
.specialist-info {
    padding: 2rem;
}
.specialist-info h2 {
    font-size: 1.35rem;
    color: var(--teal);
    margin-bottom: .4rem;
}
.specialist-spec {
    font-weight: 600;
    color: var(--gray-600);
    font-size: .9rem;
    margin-bottom: 1rem;
}
.specialist-desc {
    font-size: .95rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
@media (max-width: 700px) {
    .specialist-card {
        grid-template-columns: 1fr;
    }
    .specialist-photo {
        max-height: 280px;
    }
    .specialist-placeholder {
        min-height: 200px;
    }
}

/* ===== RESPONSIVE EXTENSIONS ===== */
@media (max-width: 900px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .registration-steps { grid-template-columns: 1fr; }
    .review-card { min-width: calc(100%); }
    .gallery-accordion { height: 300px; }
}

@media (max-width: 768px) {
    .values-grid { grid-template-columns: 1fr; }
    .services-icons-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-accordion { height: 250px; }
    .hero-desc { font-size: .95rem; }
    .footer-col-logo { text-align: center; }
    .footer-col-logo img { margin: 0 auto 1rem; }
}

@media (max-width: 480px) {
    .services-icons-list { grid-template-columns: 1fr; }
    .gallery-accordion { height: 200px; }
}
