/* ==========================================================================
   Zváračská škola Tranzit — Vlastné štýly nad Bootstrap 5.3
   ========================================================================== */

/* --- CSS Premenné --- */
:root {
    --color-primary: #1B2A4A;
    --color-secondary: #E8600A;
    --color-accent: #F5F5F5;
    --color-text: #2D2D2D;
    --color-text-light: #F5F5F5;
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- Základné štýly --- */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    font-size: 1.05rem;
    padding-top: 76px;
}

main > .hero-section,
main > .page-header,
main > .cta-section:first-child {
    margin-top: -76px;
    padding-top: calc(76px + 4rem);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-primary);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }

a {
    color: var(--color-secondary);
    transition: color 0.2s;
}

a:hover {
    color: #c44f06;
}

/* --- Navigácia --- */
.navbar {
    background-color: #08132b;
    transition: background-color 0.3s;
}

.navbar.scrolled {
    background-color: rgba(27, 42, 74, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-secondary) !important;
}

.btn-cta-nav {
    background-color: var(--color-secondary) !important;
    color: #fff !important;
    border-radius: 4px;
    margin-left: 0.5rem;
    padding: 0.4rem 1.2rem !important;
}

.btn-cta-nav:hover {
    background-color: #c44f06 !important;
}

/* --- Hero sekcia --- */
.hero-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 4rem 0 0;
    position: relative;
    overflow: visible;
    padding-bottom: 100px;
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    font-weight: 600;
}

.hero-section .hero-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
    margin-bottom: -100px;
}

.hero-section .hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-section + section {
    position: relative;
    z-index: 1;
    padding-top: 120px !important;
}

/* CTA sekcia (tmavý pás na spodku a podstránkach) */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0f1a30 100%);
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section {
        padding-bottom: 60px;
    }
    .hero-section .hero-image {
        margin-bottom: -60px;
    }
    .hero-section + section {
        padding-top: 80px !important;
    }
}

/* --- Tlačidlá --- */
.btn-primary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    font-weight: 600;
    padding: 0.6rem 2rem;
    border-radius: 4px;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #c44f06;
    border-color: #c44f06;
}

.btn-outline-primary {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    font-weight: 600;
    padding: 0.6rem 2rem;
    border-radius: 4px;
}

.btn-outline-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

/* --- Sekcie --- */
.section-padding {
    padding: 5rem 0;
}

.section-bg {
    background-color: var(--color-accent);
}

.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
    margin-top: 0.5rem;
}

.section-title.text-center h2::after {
    margin-left: auto;
    margin-right: auto;
}

/* --- Výhody / Feature boxy --- */
.feature-box {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-box .icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.feature-box h5 {
    font-size: 1.1rem;
}

/* --- Karty --- */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px 8px 0 0 !important;
}

/* --- Testimonials --- */
.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--color-secondary);
    opacity: 0.3;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--color-primary);
}

/* --- Čísla / Štatistiky --- */
.stat-box {
    text-align: center;
    padding: 2rem;
}

.stat-box .number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1;
}

.stat-box .label {
    font-size: 1rem;
    color: var(--color-primary);
    margin-top: 0.5rem;
}

/* --- Tím / Inštruktori --- */
.team-card {
    text-align: center;
}

.team-card .photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    color: var(--color-primary);
}

/* --- Cenník tabuľka --- */
.table-pricing thead {
    background-color: var(--color-primary);
    color: #fff;
}

.table-pricing thead th {
    font-family: var(--font-heading);
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table-pricing tbody td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
}

.table-pricing tbody tr:hover {
    background-color: rgba(232, 96, 10, 0.05);
}

/* --- Galéria --- */
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.gallery-placeholder {
    background-color: var(--color-accent);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* --- FAQ Accordion --- */
.accordion-button:not(.collapsed) {
    background-color: rgba(232, 96, 10, 0.08);
    color: var(--color-primary);
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(232, 96, 10, 0.25);
}

.accordion-button {
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

/* --- Kontakt formulár --- */
.contact-form .form-control:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 0.2rem rgba(232, 96, 10, 0.15);
}

/* --- Breadcrumbs --- */
.breadcrumb-section {
    background-color: var(--color-accent);
    padding: 1rem 0;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--color-secondary);
}

/* --- Page header --- */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0f1a30 100%);
    color: #fff;
    padding: 4rem 0 3rem;
}

.page-header h1 {
    color: #fff;
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 2rem;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
}

/* --- Footer --- */
.footer-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 3rem 0 2rem;
}

.footer-section h5 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.85;
    font-size: 0.95rem;
}

.footer-contact li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--color-text-light);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--color-secondary);
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

/* --- REPAS badge --- */
.badge-repas {
    background-color: #28a745;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35em 0.8em;
}

/* --- Utility --- */
.text-secondary-custom {
    color: var(--color-secondary) !important;
}

.bg-primary-custom {
    background-color: var(--color-primary) !important;
}

/* --- Google Maps --- */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}
