/* Základní styly */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.05em;
}

/* Navigace */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero sekce */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    background-size: cover;
    background-position: center;
    color: white;
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Karty */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    margin-bottom: 0;
    padding-bottom: 0.1rem;
}

.card-body {
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
    font-size: 1.22em;
}

.card-body h1, .card-body h2, .card-body h3, .card-body h4, .card-body h5, .card-body h6 {
    font-size: inherit;
}

.card i {
    color: var(--accent-color);
}

/* Tlačítka */
.btn-primary {
    background-color: var(--accent-color);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Tabulka */
.table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0;
}

.table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

/* Zvýraznění záhlaví tabulky v ceníku */
.table thead th, .table-light th, .table thead tr th {
    background: #fff !important;
    color: #111 !important;
    font-weight: bold !important;
    opacity: 1 !important;
    border-bottom: 2px solid #222 !important;
}

/* Formulář */
.form-control {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Patička */
footer {
    background-color: var(--primary-color);
}

.social-links a {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color) !important;
}

/* Responzivní design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Animace */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .table, form {
    animation: fadeIn 0.5s ease-out;
}

#kontakt {
    margin-top: 0.5rem;
}

#cenik .card-header {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

#cenik .card-body {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
}

#cenik .custom-table {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
#cenik .custom-table thead tr {
    border-bottom: 2px solid #d1d7de;
    box-sizing: border-box;
}
#cenik .custom-table tbody tr:not(:last-child) td {
    border-bottom: 1px solid #d1d7de;
    box-sizing: border-box;
}
#cenik .custom-table th,
#cenik .custom-table td {
    padding: 0.3em 0.5em;
    text-align: left;
}
#cenik .custom-table td:last-child {
    text-align: right;
    font-weight: normal;
    color: #222;
}

#cenik .col-md-6.mb-4:not(:first-child) {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

#sluzby .card-body {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

/* 1) Menší mezera mezi balíčky a Vyzdoba hrobů */
#sluzby + #vyzdoba {
    margin-top: 1.2rem;
}

/* 2) Oddělující čáry mezi kartami v ceníku */
#cenik .row > [class^="col-md-"]:not(:last-child) .card {
    border-right: 1px solid #e0e6ed;
}
#cenik .row {
    border-bottom: 1px solid #e0e6ed;
    margin-bottom: 0.5rem;
}

/* 3) Stejný padding nahoře i dole v kartách Vyzdoba a Obnova písma */
#vyzdoba .card-body, #obnova-pisma .card-body {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

/* 4) Menší mezera mezi ceníkem a ukázkou práce */
#cenik {
    margin-bottom: 1.2rem;
}
#ukazka {
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
}

#cenik .custom-table th:nth-child(2),
#cenik .custom-table th:nth-child(3),
#cenik .custom-table td:nth-child(2),
#cenik .custom-table td:nth-child(3) {
    text-align: right;
}

#kontakt h2 {
    margin-bottom: 2.2rem;
} 