:root {
    /* Typové barvy (Světlý moderní design) */
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #475569;
    --border-light: #e2e8f0;

    /* Sceptre Shop Brand Colors */
    --brand-purple: #9d4edd;
    --brand-purple-dark: #7b2cbf;
    --brand-copper: #e07a5f;
    --brand-accent: #c77dff;

    /* Barevnost kódů pro widget */
    --dpd: #dc0032;
    --ppl: #0093d0;
    --gls: #001489;
    --wedo: #00d2ff;
    --zas: #e10600;
    --bal: #0033a0;
    --dhl: #d40511;
    --ups: #351c15;

    --navbar-height: 80px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-alt);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif !important;
    color: var(--text-main);
    font-weight: 700;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-main);
}

.accent-text {
    color: var(--brand-purple);
}

/* Navigace */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: 1px;
    color: var(--text-main);
}

.logo-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-icon-footer {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.3s;
    font-family: 'Outfit', sans-serif;
}

.nav-menu a:hover {
    color: var(--brand-purple);
}

.nav-btn {
    background: var(--brand-purple);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: var(--brand-purple-dark);
}

/* Hero sekce (Úvod) */
.hero {
    margin-top: var(--navbar-height);
    position: relative;
    background-image: url('img/hero.png');
    background-size: cover;
    background-position: center;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 400;
}

.notice-badge {
    display: inline-block;
    background: rgba(224, 122, 95, 0.1);
    color: var(--brand-copper);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(224, 122, 95, 0.3);
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.95rem;
    margin: 4px;
    text-align: center;
}

.btn-primary {
    background: var(--brand-purple);
    color: white;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
}

.btn-primary:hover {
    background: var(--brand-purple-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: #cbd5e1;
}

/* Aplikace - vyhledávač dopravce */
.app-section {
    padding: 80px 0;
    background: var(--bg-main);
    position: relative;
}

.app-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.app-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.app-features-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-widget {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.app-card {
    padding: 40px;
}

.app-header h3 {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

input[type="text"] {
    width: 100%;
    padding: 20px 24px;
    font-size: 1.25rem;
    font-family: inherit;
    font-weight: 600;
    background: var(--bg-alt);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
}

input[type="text"]::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

input[type="text"]:focus {
    background: white;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.1);
}

/* Widget Results */
.result-area {
    margin-top: 25px;
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.result-area.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.result-card {
    background: var(--bg-alt);
    border-radius: 0 0 16px 16px; /* Rounded corners only at the bottom */
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-top: none; /* Border-top is managed dynamically via JS */
    position: relative;
    overflow: hidden;
}

/* Detaily v kartě výsledku */
.result-card::before {
    display: none;
}

.result-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.carrier-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

.carrier-hints {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.note-box {
    margin-top: 15px;
    padding: 12px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 4px 8px 8px 4px;
    font-size: 0.9rem;
    color: #92400e;
}

.note-box span {
    font-weight: bold;
}

.quick-overview {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.quick-overview h5 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carrier-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.carrier-list li {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.carrier-list li {
    background: var(--bg-alt);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}

.carrier-list span {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.7rem;
}

.c-dpd {
    background: var(--dpd);
    font-size: 0.75rem;
}

.c-ppl-gls {
    background: linear-gradient(45deg, var(--ppl), var(--gls));
    font-size: 0.75rem;
}

.c-wedo {
    background: var(--wedo);
    color: #000 !important;
}

.c-zasilkovna {
    background: var(--zas);
}

.c-balikovna {
    background: var(--bal);
}

.c-dhl-ups {
    background: linear-gradient(45deg, var(--dhl), var(--ups));
}

/* Assortment Section */
.assortment-section {
    padding: 80px 0;
    text-align: center;
}

.assortment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.assortment-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    text-align: left;
    transition: transform 0.3s;
}

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

.assortment-img {
    height: 300px;
    width: 100%;
}

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

.assortment-content {
    padding: 30px;
}

.assortment-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--brand-purple);
}

.assortment-content p {
    color: var(--text-muted);
}

/* Aktuality (News Section) */
.news-section {
    padding: 40px 0 30px 0;
    background: var(--bg-main);
}

.news-content {
    max-width: 800px;
    margin: 0 auto;
}

.news-content p {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Služby / Výdejní místo - fialový blok */
.services-section {
    padding: 40px 0; /* Reduced from 80px */
    background: var(--brand-purple);
    color: white;
    text-align: center;
}

.services-box {
    max-width: 1000px; /* Expanded for single-line layout */
    margin: 0 auto;
}

.services-title {
    margin: 0;
    color: white;
}

.services-section h2,
.services-section p {
    color: white;
}

.services-section .accent-text {
    color: white;
}

.services-text p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.carriers-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.carriers-logos .badg {
    background: #ffffff; /* Bílé pozadí pro lepší viditelnost na fialové */
    color: var(--brand-purple); /* Text v hlavní fialové barvě */
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Subtle floating shadow */
}

/* Kontakt a Kontatní informace */
.contact-section {
    padding: 80px 0;
    background: var(--bg-main);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-group {
    display: flex;
    gap: 20px;
}

.info-icon {
    font-size: 2rem;
    background: var(--bg-alt);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    flex-shrink: 0;
}

.info-group h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--brand-purple);
}

.info-group p,
.hours {
    color: var(--text-muted);
}

.hours {
    list-style: none;
}

.hours li {
    display: flex;
    margin-bottom: 5px;
    gap: 15px;
}

.closed {
    color: #ef4444;
}

.contact-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    color: var(--brand-purple);
}

.fb-notice a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.fb-notice a:hover {
    text-decoration: underline;
}

.invoice-box {
    background: var(--bg-alt);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.invoice-box h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.invoice-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

/* Patička */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-copy {
    font-size: 0.9rem;
}

/* Responzivní design a Mobilní menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    left: 0;
    transition: 0.3s;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 9px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 18px;
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
}

@media (max-width: 992px) {
    .app-layout,
    .assortment-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
        gap: 8px;
    }
    .hero-overlay {
        background: rgba(255, 255, 255, 0.85);
    }
    .carrier-list {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .hero-actions {
        flex-direction: column;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        padding: 50px 20px;
        transition: 0.4s ease;
        z-index: 1000;
        border-left: 1px solid var(--border-light);
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem; /* Reduced to fit on 2 lines on mobile */
        white-space: normal;
        line-height: 1.1;
    }
    .btn {
        width: auto; /* Adapt width to text size instead of full width */
        min-width: 160px; /* Optional: keep a minimum size for accessibility */
        margin: 6px auto;
        display: inline-block;
        padding: 12px 24px;
        font-size: 1rem;
        white-space: nowrap;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center buttons within the container */
    }
}