/* ============================================
   MUDr. Jiří Stránský — Stomatologie Havířov
   Design System: Medical Professional
   Colors: Calm blue-teal + warm accents
   ============================================ */

:root {
    --primary: #1a6b7a;
    --primary-light: #2a8a9c;
    --primary-dark: #0f4f5c;
    --accent: #c9a96e;
    --accent-light: #e8d5a8;
    --bg: #fafbfc;
    --bg-warm: #f5f0e8;
    --bg-card: #ffffff;
    --text: #2d3748;
    --text-light: #718096;
    --text-white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(26, 107, 122, 0.08);
    --shadow-lg: 0 12px 48px rgba(26, 107, 122, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-light);
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.nav-bar.scrolled {
    box-shadow: var(--shadow);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.tooth-icon {
    font-size: 1.4rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.nav-mobile-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
}

.mobile-menu {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 16px;
}

.mobile-link {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-link:hover,
.mobile-link.active {
    background: rgba(26, 107, 122, 0.06);
    color: var(--primary);
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-light);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin-bottom: 36px;
    font-weight: 300;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline {
    display: inline-block;
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--primary);
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Trust Section */
.trust-section {
    background: var(--bg-card);
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.trust-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
    padding: 0 20px;
}

.trust-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.trust-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* Services Preview */
.services-preview-section {
    padding: 80px 0;
    background: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.service-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.service-card.featured {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.service-card.featured h3 {
    color: white;
}

.service-card.featured p {
    color: rgba(255, 255, 255, 0.85);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Testimonials */
.testimonial-section {
    padding: 80px 0;
    background: var(--bg-warm);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.testimonial-card {
    text-align: center;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.testimonial-quote {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: -10px;
}

.testimonial-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: white;
    margin-bottom: 12px;
}

.cta-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.cta-contact {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: white;
    margin-bottom: 12px;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

.page-header .section-tag {
    color: var(--accent-light);
}

/* Service Detail */
.service-detail-section {
    padding: 60px 0;
}

.service-detail-section.alt {
    background: var(--bg-warm);
}

.service-detail {
    max-width: 720px;
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.service-detail-icon {
    font-size: 2.5rem;
}

.service-detail-title {
    font-size: 1.8rem;
    color: var(--text);
}

.service-detail-tag {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-detail-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-detail-list {
    list-style: none;
    padding: 0;
}

.service-detail-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text);
    font-size: 0.95rem;
}

.service-detail-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Other Services Grid */
.other-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.other-service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.other-service-card:hover {
    box-shadow: var(--shadow);
}

.other-service-card h3 {
    font-size: 1.1rem;
    margin: 12px 0 8px;
    color: var(--text);
}

.other-service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Doctor Section */
.doctor-section {
    padding: 60px 0;
}

.doctor-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.doctor-photo-placeholder {
    background: linear-gradient(135deg, rgba(26, 107, 122, 0.08), rgba(26, 107, 122, 0.04));
    border-radius: var(--radius-lg);
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
}

.silhouette-container {
    text-align: center;
    color: var(--text-light);
}

.silhouette-svg {
    width: 120px;
    height: 120px;
    color: var(--primary);
    margin-bottom: 12px;
}

.photo-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

.doctor-name {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 4px;
}

.doctor-specialty {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.doctor-bio p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

/* Timeline */
.qualifications-section {
    padding: 60px 0;
    background: var(--bg-warm);
}

.timeline {
    max-width: 640px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 60px;
    padding-top: 2px;
}

.timeline-content h3 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Values */
.values-section {
    padding: 60px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.value-card {
    text-align: center;
    padding: 32px 20px;
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: var(--bg-warm);
    border-radius: var(--radius);
    padding: 24px;
}

.contact-card-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-card h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.contact-card-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.contact-card-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Hours Table */
.hours-table {
    margin-top: 8px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text);
}

.hours-row.closed {
    color: var(--text-light);
}

/* Contact Form */
.contact-form-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-title {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 4px;
}

.form-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 107, 122, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success.hidden {
    display: none;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-light);
}

/* Map */
.map-section {
    padding: 60px 0;
    background: var(--bg-warm);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-directions {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.map-directions p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Local SEO */
.local-seo-section {
    padding: 40px 0;
    background: var(--bg);
}

.local-seo-title {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 8px;
}

.local-seo-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: white;
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.6;
}

.footer-heading {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.footer p {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .trust-grid {
        gap: 24px;
    }

    .trust-divider {
        display: none;
    }

    .trust-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .doctor-card {
        grid-template-columns: 1fr;
    }

    .doctor-photo-placeholder {
        max-width: 240px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-section {
        min-height: 80vh;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        text-align: center;
    }

    .cta-contact {
        flex-direction: column;
        align-items: center;
    }
}
