/* ============================================================
   Site-specific styles — palivove-drevo-nejlevneji.cz
   Uses Bootstrap 5 from CDN
   ============================================================ */

/* ---------- Base ---------- */
body {
    padding-top: 56px; /* Bootstrap 5 navbar height */
    background-color: #111;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6em;
    font-size: 1.05rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 992px) {
    body {
        background-image: url('/images/bgflames.jpg');
        background-repeat: no-repeat;
        background-position: 50% 0;
        background-attachment: fixed;
    }
}

/* ---------- Typography ---------- */
h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h2 {
    font-size: 1.7rem;
    margin: 1.5rem 0 0.6rem;
    color: #1a1a1a;
}

h3 {
    font-size: 1.2rem;
    margin: 1.2rem 0 0.5rem;
    color: #333;
}

@media (min-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.4rem; }
}

/* ---------- Tables ---------- */
table {
    border-collapse: collapse;
    width: 100%;
}

table th,
table td {
    padding: 8px 14px;
    border: 1px solid #bbb;
}

table th {
    background-color: #c97500;
    color: #eee;
}

table th.center,
table td.center {
    text-align: center;
}

table th.w {
    width: 10em;
}

table td {
    background-color: #f0f0f0;
    border: 1px solid #999;
    color: #000;
}

table td.warning {
    color: #b94a48;
    font-weight: bold;
    font-size: 1.1em;
}

/* ---------- Note ---------- */
.note {
    font-size: 0.9em;
    font-style: italic;
    margin: 4px 0;
}

/* ---------- Checkmark list ---------- */
ul.checkmark {
    list-style: none;
    padding-left: 1.5rem;
}

ul.checkmark li::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f14a';
    color: #4a9c4a;
    font-size: 1.1em;
    margin-right: 8px;
    margin-left: -1.5rem;
}

/* ---------- Main content wrapper ---------- */
.main-wrapper {
    flex: 1 0 auto;
}

.body-content {
    background-color: #fff;
    padding: 20px;
}

@media (max-width: 991.98px) {
    /* Make the page edge-to-edge on tablet and smaller screens, but keep readable inner padding. */
    .container,
    .container-fluid {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .body-content {
        padding: 16px 14px;
    }

    .row {
        --bs-gutter-x: 0;
    }

    .navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .navbar > .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ---------- Banner ---------- */
.site-banner img {
    width: 100%;
    height: auto;
}

/* ---------- Spacer (navbar offset) ---------- */
.spacer {
    height: 1rem;
}

/* ---------- Divider ---------- */
.divider {
    height: 2px;
    background-color: #eee;
    width: 100%;
    margin: 1rem 0;
}

/* ---------- Jumbotron (custom) ---------- */
.myjumbotron {
    background-color: #eee;
    padding: 16px;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.myjumbotron h2 {
    padding: 0;
    margin: 4px 0 12px;
    font-size: 1.5rem;
}

.myjumbotron.warning {
    background-color: #f0e68c;
}

.myjumbotron.info {
    background-color: #edfff0;
}

/* ---------- Sidebar quick links ---------- */
.sidebar-quicklinks a {
    display: block;
    padding: 6px 0;
    color: #c97500;
    text-decoration: none;
    border-bottom: 1px solid #f0e0c0;
    font-size: 0.95rem;
}

.sidebar-quicklinks a:hover {
    color: #a05c00;
    text-decoration: underline;
}

/* ---------- Gallery ---------- */
.gallery-item {
    display: block;
    margin-bottom: 1rem;
}

.gallery-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 4 / 3;
    background: #222;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.gallery-thumb:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #fff;
    font-size: 2rem;
}

.gallery-thumb:hover .gallery-overlay {
    opacity: 1;
}

/* ---------- Delivery map ---------- */
#delivery-map,
#contact-map {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.delivery-note {
    margin: 1rem 0 0.25rem;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #6c757d;
}

/* ---------- Footer ---------- */
.site-footer {
    flex-shrink: 0;
    background-color: #2b2b2b;
    color: #ccc;
    padding: 2.5rem 0 0;
    font-size: 0.92rem;
}

.site-footer h5 {
    color: #c97500;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
}

.site-footer p {
    margin-bottom: 0.4rem;
    color: #bbb;
}

.site-footer a {
    color: #e0a040;
    text-decoration: none;
}

.site-footer a:hover {
    color: #f5c060;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-links li {
    padding: 3px 0;
    border-bottom: 1px solid #3a3a3a;
}

.footer-links li:last-child {
    border-bottom: none;
}

.footer-divider {
    border-color: #444;
    margin: 1.5rem 0 0;
}

.footer-bottom {
    background-color: #1e1e1e;
    padding: 0.8rem 0;
    font-size: 0.82rem;
    color: #777;
    margin-top: 0;
}

.footer-bottom p {
    color: #777;
    margin: 0;
}

/* ---------- Navbar ---------- */
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.03em;
}
