/* === zamek-lednice.info — Castle Heritage Theme === */
:root {
    --primary: #2B4C6F;
    --primary-dark: #1E3550;
    --secondary: #1B6B5A;
    --accent: #3A7D44;
    --text: #2D2D2D;
    --text-light: #5A5A5A;
    --bg: #FAFBFC;
    --bg-card: #FFFFFF;
    --border: #E2E8F0;
    --hero-overlay: rgba(30, 53, 80, 0.65);
    --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    font-size: 17px;
}

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

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

/* === HEADER === */
.site-header {
    background: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 64px; width: auto; border-radius: 50%; background: #fff; padding: 3px; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: 0.5px; }

.nav-menu { list-style: none; display: flex; gap: 0.25rem; }
.nav-menu a {
    color: rgba(255,255,255,0.9);
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { background: rgba(255,255,255,0.15); color: #fff; }

.lang-switcher { display: flex; gap: 4px; }
.lang-switcher a {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    padding: 2px 6px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px;
    font-weight: 600;
}
.lang-switcher a:hover, .lang-switcher a.active { background: rgba(255,255,255,0.2); color: #fff; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 0.5rem; }

/* === HERO === */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-color: var(--primary);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 3rem 2rem;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.6;
}
.hero-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s, transform 0.2s;
}
.hero-btn:hover { background: #2E6B38; color: #fff; transform: translateY(-1px); }

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2E6B38; color: #fff; transform: translateY(-1px); }

/* === SECTIONS (homepage full-width) === */
.section { padding: 3.5rem 0; }
.section-alt { background: #F1F5F9; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section h2 { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.75rem; }
.section-subtitle { color: var(--text-light); font-size: 1.05rem; margin-bottom: 2rem; max-width: 700px; }
.seo-text p { margin-bottom: 1rem; line-height: 1.8; }
.seo-text h2 { margin-bottom: 1.25rem; }
.cards-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card-compact .card-body h3 { font-size: 1.1rem; }

/* === MAIN CONTENT === */
main.article-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* === CARDS GRID === */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary);
    display: inline-block;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

.card-image { width: 100%; height: 200px; object-fit: cover; display: block; }

.card-body { padding: 1.25rem; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--primary); }
.card-body p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.5; }

.card-link {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}
.card-link:hover { color: var(--accent); }

/* === ARTICLE === */
article {
    max-width: 820px;
    margin: 0 auto;
}

article h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.25;
}

article .article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

article .hero-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

article h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border);
}

article h3 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

article p { margin-bottom: 1.2rem; }

article ul, article ol {
    margin: 1rem 0 1.5rem 1.5rem;
}
article li { margin-bottom: 0.4rem; }

article blockquote {
    border-left: 4px solid var(--secondary);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: rgba(27, 107, 90, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Info box */
.info-box {
    background: #EBF5FB;
    border: 1px solid #BEE3F8;
    border-left: 4px solid var(--primary);
    padding: 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}
.info-box h4 { color: var(--primary); margin-bottom: 0.5rem; }

/* Data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.data-table th {
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}
.data-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
}
.data-table tr:hover { background: rgba(43, 76, 111, 0.03); }

/* FAQ */
.faq-section { margin-top: 3rem; }
.faq-section h2 { border-bottom-color: var(--secondary); }
.faq-item { margin-bottom: 1.5rem; }
.faq-item h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
    margin-top: 0;
    padding-left: 0;
}
.faq-item p { color: var(--text-light); font-size: 0.95rem; }

/* === FOOTER === */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    margin-top: 4rem;
    padding: 3rem 2rem 1.5rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    font-size: 0.85rem;
    color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 0.4rem; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-inner { padding: 0 1rem; }
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 0.75rem 1rem; }
    .hero h1 { font-size: 2rem; }
    .hero { min-height: 320px; }
    article h1 { font-size: 1.8rem; }
    article h2 { font-size: 1.4rem; }
    .cards-grid { grid-template-columns: 1fr; }
    main { padding: 1.5rem 1rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .data-table { font-size: 0.85rem; }
    .data-table th, .data-table td { padding: 0.5rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 1rem; }
    .section-title { font-size: 1.5rem; }
}
