html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: var(--light-bg);
}

:root {
    --primary-color: #447D9B;
    /* Slate Blue */
    --secondary-color: #FE7743;
    /* Bright Orange */
    --accent-color: #27ae60;
    /* Green (success remains) */
    --text-color: #273F4F;
    /* Dark Slate Blue */
    --light-bg: #F4F5F6;
    /* Very Light Grey */
    --white: #ffffff;
    --border-color: #e0e0e0;
    --container-width: 1200px;
    --spacing-unit: 1rem;
}

* {
    box-sizing: border-box;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--text-color);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: none;
}

a.phone-link,
a.logo,
a.nav-call-btn {
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

section {
    padding: 4rem 0;
}

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

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

/* Header */
header {
    background-color: var(--white);
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navbar Call Button */
.nav-call-btn {
    padding: 0.55rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-call-btn i {
    color: var(--secondary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

nav {
    margin-left: auto;
    margin-right: 2rem;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
}

nav a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Mobile Menu Button (Hidden by default on desktop) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(39, 63, 79, 0.8), rgba(39, 63, 79, 0.8)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6rem 0;
    text-align: left;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p.lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 580px;
    opacity: 0.9;
}

.hero-bullets {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.hero-bullet {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 500;
}

.hero-bullet i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.cta-group {
    display: flex;
    justify-content: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #E05A28;
    /* Darker orange */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(254, 119, 67, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Vans Section */
.vans-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.van-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Responsive grid */
    gap: 2rem;
}

.van-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.van-image {
    height: 250px;
    background-color: #ddd;
    /* Placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
}

.van-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.van-content {
    padding: 1.75rem 2rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.van-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.van-content h3 a {
    text-decoration: none;
    color: inherit;
}

.van-content h3 a:hover {
    text-decoration: none;
    color: var(--secondary-color);
}

.van-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin: 0 0 1rem 0;
}

/* Feature badges */
.van-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.van-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border: 1px solid #d0d5dd;
    border-radius: 5px;
    font-size: 0.8rem;
    color: #444;
    background: #fff;
    white-space: nowrap;
}

/* Kauce / limit note */
.van-note {
    font-size: 0.95rem;
    color: #666;
    margin: 0.75rem 0 1.25rem;
}

.van-specs {
    margin: 1rem 0;
    font-size: 0.95rem;
    color: #666;
}

.van-specs li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.van-specs i {
    color: var(--text-color);
}

.van-pricing {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: #555;
}

.price-highlight {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
}

.price-agreement {
    color: #555;
    font-weight: 700;
    font-size: 1rem;
}

.van-action {
    margin-top: 0;
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Pricing Section */
.pricing-table-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
    background-color: var(--light-bg);
    color: var(--text-color);
    font-weight: 700;
}

.pricing-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* How it works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: relative;
    /* transition: transform 0.3s ease; */
}

/* .step-card:hover {
    transform: scale(1.02);
} */

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--text-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
}

/* Autoservice Section */
.service-intro-row {
    display: flex;
    gap: 2.5rem;
    align-items: stretch;
    margin-bottom: 2.5rem;
}

.service-intro-text {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-intro-text p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.owner-profile {
    flex: 1;
    min-width: 280px;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
}

.owner-profile>p {
    margin-bottom: 1.25rem;
}

.owner-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.owner-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.owner-info h3 {
    margin: 0 0 0.1rem 0;
    font-size: 1.3rem;
}

.owner-info p {
    margin: 0;
    color: #666;
}

.service-map-full {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
}

.service-map-full iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


.terms-content li {
    margin-left: 0;
    list-style: square;
}


/* Inquiry Section */
.inquiry-section {
    background-color: var(--text-color);
    color: var(--white);
}

.inquiry-titles h2 {
    color: var(--white);
    margin-bottom: -1rem;
}

.inquiry-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

input[type="date"].form-control {
    cursor: pointer;
    color-scheme: light;
    position: relative;
}


.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.submit-btn {
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #E05A28;
}

.secondary-contact {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-color);
}

.phone-link {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Form Validation */
.form-control.error {
    border-color: #e74c3c;
}

.form-control.success {
    border-color: var(--accent-color);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Honeypot Field */
.website-url-group {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
}

/* Location SEO */
.location-text {
    max-width: 650px;
    margin: 0 auto;
    text-align: left;
    color: #666;
}

.location-text h2 {
    text-align: left;
}

.location-text ul li {
    margin-left: 20px;
    list-style: square;
}

/* Footer */
footer {
    background-color: #273F4F;
    /* Dark Slate Blue */
    color: #D7D7D7;
    /* Light grey for text contrast */
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    font-size: 0.9rem;
}

/* Subpage Specifics */
.detail-header {
    background-color: var(--text-color);
    color: var(--white);
    padding: 4rem 0;
}

.detail-header h1,
.detail-header h2,
.detail-header h3,
.detail-header p {
    color: var(--white);
}

.detail-content {
    padding: 4rem 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .header-content {
        flex-direction: row;
        gap: 0;
    }

    .nav-call-btn {
        margin-left: auto;
        order: 2;
        padding: 0.5rem;
        gap: 0;
    }

    .nav-call-btn .phone-text {
        display: none;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav {
        margin: 0;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-bullets {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .service-intro-row {
        flex-direction: column;
    }

    .mobile-menu-btn {
        display: block;
        order: 3;
        position: static;
        margin-left: 1rem;
    }

    /* Simple mobile menu toggle logic */
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        gap: 0;
    }

    nav.active ul {
        display: flex;
    }

    nav li {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    header .container {
        position: relative;
    }
}

/* --- Vůz Detail - Galerie s Fancyboxem --- */
.gallery-container {
    margin-bottom: 2rem;
}

.gallery-container .main-img-wrap {
    display: block;
    margin-bottom: 0.8rem;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--light-bg);
}

.gallery-container .main-img-wrap img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.gallery-container .main-img-wrap:hover img {
    transform: scale(1.02);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
}

.gallery-thumbnails a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: var(--light-bg);
}

.gallery-thumbnails a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-thumbnails a:hover img {
    transform: scale(1.1);
}

@media (max-width: 576px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

/* Skrytí dd.mm.yyyy placeholderu u kalendáře */
input[type="date"]::-webkit-datetime-edit,
input[type="date"]:focus::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: transparent;
    background: transparent;
}

input[type="date"][data-has-value]:not([data-has-value=""])::-webkit-datetime-edit,
input[type="date"][data-has-value]:not([data-has-value=""])::-webkit-datetime-edit-text,
input[type="date"][data-has-value]:not([data-has-value=""])::-webkit-datetime-edit-month-field,
input[type="date"][data-has-value]:not([data-has-value=""])::-webkit-datetime-edit-day-field,
input[type="date"][data-has-value]:not([data-has-value=""])::-webkit-datetime-edit-year-field {
    color: inherit;
    background: inherit;
}

input[type="date"]::selection {
    background: transparent;
}

/* Utility & Specific Classes to replace inline styles */
.logo-accent {
    color: var(--secondary-color);
}

.text-primary {
    color: var(--text-color);
}

.footer-logo-title {
    color: var(--white);
}

.footer-legal-link {
    color: inherit;
    text-decoration: underline;
}

.van-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.service-highlight-box {
    background: #eef8ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.service-highlight-box h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.spec-list-clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-item-flex {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.spec-icon-accent {
    color: var(--accent-color);
}

.date-picker-input {
    cursor: pointer;
}

.checkbox-form-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-form-group input[type="checkbox"] {
    margin-top: 0.3rem;
}

.checkbox-form-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
}

.link-underline {
    text-decoration: underline;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-white-90 {
    color: rgba(255, 255, 255, 0.9);
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.m-0 {
    margin: 0;
}

.mt-1 {
    margin-top: 1rem;
}

.text-left {
    text-align: left;
}

.bg-yellow-light {
    background: #FCF19F;
}

/* Van Detail Specifics */
.gallery-thumbnails-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.van-specs-large {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.van-maintenance-box {
    background: #eef8ff;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-radius: 8px;
}

.van-pricing-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.pricing-table-clean {
    background: transparent;
    box-shadow: none;
}

.font-small {
    font-size: 0.9rem;
}

.owner-address {
    margin-top: 2rem;
    font-style: normal;
}

/* Admin Dashboard Specifics */
.admin-header-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
}

.admin-text-muted {
    color: #999;
}

.admin-text-bold {
    font-weight: 600;
}

.admin-icon-fixed {
    width: 15px;
    color: #aaa;
    font-size: 0.8rem;
}

.admin-text-placeholder {
    color: #ccc;
}

.admin-flex-gap {
    display: flex;
    gap: 0.5rem;
}

.link-inherit-no-dec {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 768px) {
    .gallery-thumbnails-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}