/* Globální reset a základní styly */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8; /* Světle šedé/bílé pozadí pro hlavní obsah */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================================== */
/* TYPOGRAFIE A AKCENTY (ZLATÁ/ORANŽOVÁ) */
/* ==================================== */

.text-gold, .section-subtitle, .admin-tabs .active {
    color: #DAA520; /* Zlatá barva pro akcenty */
}

h1, h2, h3 {
    margin-bottom: 0.5em;
    color: #222;
    font-weight: 700;
}
h2 { font-size: 2.2em; }

.section-header {
    text-align: center;
    padding: 60px 0 30px 0;
}

.section-subtitle {
    display: block;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: bold;
}

/* ==================================== */
/* TLAČÍTKA (PRIMÁRNÍ ORANŽOVÁ/ZLATÁ) */
/* ==================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, opacity 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #DAA520; /* Zlatá */
    color: white;
    border-color: #DAA520;
}

.btn-primary:hover {
    background-color: #b8860b;
}

.btn-secondary {
    background-color: transparent;
    border-color: white;
    color: white;
    padding: 12px 30px;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ==================================== */
/* HEADER & FOOTER (TMAVÉ POZADÍ) */
/* ==================================== */

header {
    background-color: white; 
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

nav a {
    color: #333;
    text-decoration: none;
    margin-left: 20px;
    padding: 5px 0;
    transition: color 0.3s;
}

nav a:hover {
    color: #DAA520;
}

.nav-phone {
    color: #DAA520;
    font-weight: bold;
    text-decoration: none;
    margin-left: 30px;
}

footer {
    background-color: #333; /* Tmavá barva pro spodní lištu */
    color: #ccc;
    padding: 40px 0 20px 0;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
}

footer h4 {
    color: white;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.footer-info {
    font-size: 0.9em;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-hours span {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

/* ==================================== */
/* HERO SEKCE (CENTRACE) */
/* ==================================== */

.hero {
    position: relative;
    height: 75vh; 
    min-height: 500px;
    background-image: url('photo-1513104890138-7c749659a591.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrování obsahu */
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.45); /* Mírně světlejší overlay */
}

.hero-content {
    text-align: center; /* Centrování textu uvnitř boxu */
    margin: 0; /* Odstranění margin-left */
}

.hero-title {
    font-size: 5em;
    line-height: 1;
    margin: 10px 0;
}

/* ==================================== */
/* 3-V-ŘADĚ SEKCÍ (OBLÍBENÉ PIZZY & KONTAKT) */
/* ==================================== */

.pizzas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; 
    margin-top: 40px;
    margin-bottom: 40px;
}

.pizza-card {
    background: #fff;
    border-radius: 0; /* Odstranění rádiusů, pokud chceme ostré hrany */
    box-shadow: none; /* Odstranění stínu pro čistší vzhled */
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}

.pizza-card:hover {
    transform: none; /* Bez posunu na hover */
    opacity: 0.9;
}

.pizza-card img {
    width: 100%;
    height: 250px; /* Zvětšení výšky pro lepší zobrazení */
    object-fit: cover;
    display: block;
}

.pizza-card h3 {
    font-size: 1.4em;
    color: #222; 
    margin: 15px 15px 5px 15px;
}

.pizza-card p {
    color: #666;
    margin: 0 15px 20px 15px;
    min-height: auto; 
}

/* Kontakt karty */
.contact-card {
    background: white;
    padding: 30px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
}
.contact-card h3 {
    color: #DAA520;
}
.contact-card p {
    color: #333;
    font-weight: bold;
}

/* ==================================== */
/* SEKCE OTEVÍRACÍ DOBA (TMAVÉ POZADÍ) */
/* ==================================== */

.opening-hours {
    background-color: #222;
    padding: 60px 0;
    color: white;
}

.opening-grid {
    display: flex;
    gap: 50px;
    align-items: center;
}

.opening-info {
    flex: 1;
}

.opening-image {
    flex: 1;
    max-width: 50%;
}

.opening-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.opening-info h2 {
    color: white;
    font-size: 2.5em;
    margin-top: 0;
}

.hours-list {
    margin-top: 30px;
    max-width: 350px;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #444;
}

.hour-item span:first-child {
    font-weight: bold;
}

.hour-item .closed {
    color: #ff5555;
}


/* ==================================== */
/* OBJEDNÁVKA - VYLEPŠENÝ VZHLED */
/* ==================================== */

.page-header {
    /* Černý pás jako na obrázku */
    background: #333; 
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}
.page-header h1 {
    color: white;
}
.page-header .page-subtitle {
    color: #aaa;
}

.order-form {
    padding: 0; /* Odstranit padding, protože to obalujeme v sekcích */
    box-shadow: none; /* Odstranit stín */
}

.form-section {
    background: white;
    border: 1px solid #ddd; /* Rámeček jako na obrázku */
    border-top: none; 
    padding: 25px;
    margin-bottom: 20px;
}

.form-section:first-child {
    border-top: 1px solid #ddd;
}

.form-section h2 {
    color: #333; 
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.delivery-option {
    border: 1px solid #ccc; /* Tenčí rámeček pro výběr */
    padding: 10px;
}

.delivery-option:has(input:checked) {
    border-color: #DAA520; /* Zlatý rámeček */
    background-color: #fffaf0;
}

/* Úprava mřížky pro formulář, aby vypadal čistě */
.form-grid > .form-group {
    margin-bottom: 15px;
}
.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.form-grid .form-group {
    flex: 1 1 calc(50% - 15px); /* Dva sloupce na desktopu */
}

@media (max-width: 768px) {
    .form-grid .form-group {
        flex: 1 1 100%; /* Jeden sloupec na mobilu */
    }
    .opening-grid {
        flex-direction: column;
    }
    .opening-image {
        max-width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}