﻿/* ========================================================= ASAPI HOMEPAGE Všechny třídy mají prefix asapi- kvůli minimalizaci konfliktů se stávajícím CSS. ========================================================= */

.asapi-home {
    --asapi-text: #171717;
    --asapi-muted: #686868;
    --asapi-border: #e7e7e7;
    --asapi-bg: #ffffff;
    --asapi-soft: #f7f7f7;
    --asapi-accent: #171717;
    color: var(--asapi-text);
    background: var(--asapi-bg);
    font-family: inherit;
    line-height: 1.6;
}

.asapi-home *, .asapi-home *::before, .asapi-home *::after {
    box-sizing: border-box;
}
/* --------------------------------------------------------- COMMON --------------------------------------------------------- */

.asapi-home .asapi-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.asapi-eyebrow-line {
    width: 28px;
    height: 1px;
    background: currentColor;
}

.asapi-home h1, .asapi-home h2, .asapi-home h3, .asapi-home p {
    margin-top: 0;
}

.asapi-home h1, .asapi-home h2 {
    letter-spacing: -.045em;
    line-height: 1.05;
    color: #33F;
}

.asapi-home h1 span, .asapi-home h2 span {
    color: #77F;
}
/* --------------------------------------------------------- HERO --------------------------------------------------------- */

.asapi-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 30px 30px 30px;
    display: flex;
    align-items: center;
}

.asapi-hero-content {
    max-width: 850px;
    animation: asapiFadeUp .7s ease both;
}

.asapi-hero h1 {
    max-width: 850px;
    margin-bottom: 28px;
    font-size: clamp(46px, 6vw, 78px);
    font-weight: 700;
}

.asapi-hero-text {
    max-width: 700px;
    margin-bottom: 35px;
    color: var(--asapi-muted);
    font-size: 18px;
    line-height: 1.75;
}

.asapi-acronym {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
}

.asapi-acronym strong {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .14em;
}

/* --------------------------------------------------------- BUTTONS --------------------------------------------------------- */

.asapi-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.asapi-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--asapi-text);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}


/* Primární tlačítko */
.asapi-button-primary {
    background-color: #171717 !important;
    border-color: #171717 !important;
    color: #ffffff !important;
}

    .asapi-button-primary:hover,
    .asapi-button-primary:focus {
        background-color: #303030 !important;
        border-color: #303030 !important;
        color: #ffffff !important;
        transform: none;
    }


/* Sekundární tlačítko */
.asapi-button-secondary {
    background-color: transparent !important;
    border-color: var(--asapi-border) !important;
    color: #171717 !important;
}

    .asapi-button-secondary:hover,
    .asapi-button-secondary:focus {
        background-color: #f5f5f5 !important;
        border-color: #cfcfcf !important;
        color: #171717 !important;
        transform: none;
    }
/* --------------------------------------------------------- HERO SEARCH VISUAL --------------------------------------------------------- */

.asapi-hero-visual {
    display: flex;
    justify-content: center;
    animation: asapiFadeIn .9s .15s ease both;
}

.asapi-search-card {
    width: 100%;
    max-width: 470px;
    padding: 25px;
    background: white;
    border: 1px solid var(--asapi-border);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.08), 0 3px 10px rgba(0,0,0,.03);
}

.asapi-search-label {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--asapi-muted);
}

.asapi-search-input {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 15px;
    border: 1px solid #dcdcdc;
    border-radius: 7px;
    font-size: 15px;
}

.asapi-search-icon {
    margin-right: 10px;
    font-size: 22px;
    color: #888;
}

.asapi-typing {
    white-space: nowrap;
    overflow: hidden;
}

.asapi-cursor {
    width: 1px;
    height: 18px;
    margin-left: 2px;
    background: #333;
    animation: asapiBlink 1s infinite;
}

.asapi-results {
    margin-top: 12px;
}

.asapi-result {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 8px;
    border-bottom: 1px solid #eeeeee;
    animation: asapiResultIn .45s ease both;
}

.asapi-result:nth-child(2) {
    animation-delay: .08s;
}

.asapi-result:nth-child(3) {
    animation-delay: .16s;
}

.asapi-result-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f1f1;
    font-size: 16px;
}

.asapi-result strong, .asapi-result small {
    display: block;
}

.asapi-result strong {
    font-size: 13px;
}

.asapi-result small {
    margin-top: 2px;
    color: #888;
    font-size: 11px;
}

.asapi-response {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 18px;
    color: #777;
    font-size: 11px;
}

.asapi-response-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4c9b5f;
}

.asapi-response strong {
    margin-left: auto;
    color: var(--asapi-text);
    font-size: 12px;
}
/* --------------------------------------------------------- STATISTICS --------------------------------------------------------- */

.asapi-stats {
    max-width: 1120px;
    margin: 0 auto;
    padding: 30px 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--asapi-border);
    border-bottom: 1px solid var(--asapi-border);
}

.asapi-stat {
    padding: 0 30px;
    text-align: center;
    border-right: 1px solid var(--asapi-border);
}

.asapi-stat:first-child {
    padding-left: 0;
}

.asapi-stat:last-child {
    padding-right: 0;
    border-right: 0;
}

.asapi-stat-value {
    min-height: 58px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -.05em;
}

.asapi-stat-unit {
    margin-left: 4px;
    font-size: 22px;
    letter-spacing: -.02em;
}

.asapi-stat-word {
    font-size: 48px;
}

.asapi-stat-label {
    max-width: 240px;
    margin: 4px auto 0;
    color: var(--asapi-muted);
    font-size: 12px;
    line-height: 1.5;
}
/* --------------------------------------------------------- FEATURES --------------------------------------------------------- */

.asapi-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 35px 30px;
}

.asapi-section-heading {
    max-width: 650px;
    margin-bottom: 45px;
}

.asapi-section-heading h2, .asapi-data-content h2, .asapi-coverage h2, .asapi-cta h2 {
    margin-bottom: 25px;
    font-size: clamp(38px, 4vw, 56px);
}

.asapi-section-heading p {
    max-width: 580px;
    color: var(--asapi-muted);
    font-size: 17px;
}

.asapi-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--asapi-border);
    border-bottom: 1px solid var(--asapi-border);
}

.asapi-feature {
    position: relative;    
    padding: 15px 15px;
    border-right: 1px solid var(--asapi-border);
}

.asapi-feature:first-child {
    padding-left: 0;
}

.asapi-feature:last-child {
    padding-right: 0;
    border-right: 0;
}

.asapi-feature-number {
    position: absolute;
    top: 38px;
    right: 35px;
    color: #aaa;
    font-size: 11px;
}

.asapi-feature:first-child .asapi-feature-number {
    right: auto;
    left: 0;
}

.asapi-feature-icon {
    margin-bottom: 5px;
    font-size: 27px;
}

.asapi-feature h3 {
    margin-bottom: 13px;
    font-size: 21px;
}

.asapi-feature p {
    margin: 0;
    color: var(--asapi-muted);
    font-size: 14px;
    line-height: 1.7;
}

.asapi-map-libraries-text {
    color: #777;
    font-size: 11px;
}

.asapi-map-libraries {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 25px;
    row-gap: 4px;
    margin-top: 0px;
    padding-top: 15px;
    border-top: 1px solid var(--asapi-border);
    color: #777;
    font-size: 12px;
}

.asapi-map-libraries strong {
    color: var(--asapi-text);
    font-size: 13px;
}
/* --------------------------------------------------------- DATA --------------------------------------------------------- */

.asapi-data-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 60px 60px;
    display: grid;
    grid-template-columns: 1.5fr .7fr;
    align-items: center;
    gap: 80px;
    background: var(--asapi-soft);
    border-radius: 16px;
}

.asapi-data-content p {
    max-width: 650px;
    color: var(--asapi-muted);
    font-size: 16px;
    line-height: 1.75;
}

.asapi-data-highlight {
    min-height: 190px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    border: 1px solid var(--asapi-border);
    border-radius: 10px;
}

.asapi-data-icon {
    margin-bottom: 20px;
    font-size: 28px;
}

.asapi-data-highlight strong {
    margin-bottom: 8px;
    font-size: 18px;
}

.asapi-data-highlight span {
    color: var(--asapi-muted);
    font-size: 13px;
}
/* --------------------------------------------------------- COVERAGE --------------------------------------------------------- */

.asapi-coverage {
    max-width: 1120px;
    margin: 0 auto;
    padding: 35px 30px;
}

.asapi-coverage-header {
    display: grid;
    grid-template-columns: 1fr .7fr;
    gap: 80px;
    align-items: end;
}

.asapi-coverage-header p {
    margin-bottom: 20px;
    color: var(--asapi-muted);
    font-size: 16px;
    line-height: 1.75;
}

.asapi-countries {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--asapi-border);
    border-bottom: 1px solid var(--asapi-border);
}

.asapi-country {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    border-right: 1px solid var(--asapi-border);
}

.asapi-country:first-child {
    padding-left: 0;
}

.asapi-country:last-child {
    border-right: 0;
}

.asapi-country-code {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--asapi-border);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.asapi-country strong, .asapi-country small {
    display: block;
}

.asapi-country strong {
    font-size: 15px;
}

.asapi-country small {
    margin-top: 4px;
    color: var(--asapi-muted);
    font-size: 12px;
}

/* --------------------------------------------------------- CTA --------------------------------------------------------- */

.asapi-cta {
    max-width: 1120px;
    margin: 0 auto 30px;
    padding: 30px 30px;
    text-align: center;
    border-top: 0px solid var(--asapi-border);
}

.asapi-cta .asapi-cta-eyebrow {
    margin-bottom: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
}

.asapi-cta h2 {
    margin-bottom: 22px;
}

.asapi-cta p {
    max-width: 560px;
    margin: 0 auto 30px;
    color: var(--asapi-muted);
    font-size: 16px;
}

.asapi-cta .asapi-actions {
    justify-content: center;
}


/* --------------------------------------------------------- MAILTO --------------------------------------------------------- */

.asapi-mailto {
    max-width: 1120px;
    margin: 0 auto;
    padding: 15px 15px;
    text-align: center;
    border-top: 0px solid var(--asapi-border);
}
/* --------------------------------------------------------- ANIMATIONS --------------------------------------------------------- */

@keyframes asapiFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes asapiFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes asapiResultIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes asapiBlink {
    0%, 45% {
        opacity: 1;
    }

    46%, 100% {
        opacity: 0;
    }
}

/* --------------------------------------------------------- RESPONSIVE --------------------------------------------------------- */

@media (max-width: 900px) {
    .asapi-hero {
        grid-template-columns: 1fr;
        gap: 50px;
/*        padding-top: 0px;
*/    }

    .asapi-hero-visual {
        justify-content: flex-start;
    }

    .asapi-stats {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .asapi-stat, .asapi-stat:first-child, .asapi-stat:last-child {
/*        padding: 0;
*//*        padding-bottom: 16px;
*/        border-right: 0;
    }

    .asapi-stat {
        padding: 0;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--asapi-border);
    }

    .asapi-stat:last-child {
        padding-bottom: 0px;
        border-bottom: 0;
    }

    .asapi-feature-grid {
        grid-template-columns: 1fr;
    }

    .asapi-feature, .asapi-feature:first-child, .asapi-feature:last-child {
        min-height: auto;
        padding: 15px 0;
        border-right: 0;
        border-bottom: 1px solid var(--asapi-border);
    }

    .asapi-feature:last-child {
        border-bottom: 0;
    }

    .asapi-feature:first-child .asapi-feature-number {
        left: auto;
        right: 0;
    }

    .asapi-data-section {
        grid-template-columns: 1fr;
        margin: 0 20px;
        padding: 55px 35px;
        gap: 40px;
    }

    .asapi-coverage-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .asapi-countries {
        grid-template-columns: 1fr;
    }

    .asapi-country, .asapi-country:first-child {
        padding: 25px 0;
        border-right: 0;
        border-bottom: 1px solid var(--asapi-border);
    }

    .asapi-country:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 600px) {
    .asapi-hero {
        padding: 5px 20px 20px 20px;
    }

    .asapi-hero h1 {
        font-size: 43px;
    }

    .asapi-hero-text {
        font-size: 16px;
    }

    .asapi-search-card {
        padding: 18px;
    }

    .asapi-search-input {
        font-size: 13px;
    }

    .asapi-section, .asapi-coverage {
        padding: 20px 20px;
    }

    .asapi-data-section {
        margin: 0 10px;
        padding: 20px 20px;
    }

    .asapi-map-libraries {
        column-gap: 25px;
        row-gap: 4px;
    }

    .asapi-cta {
        padding: 30px 20px 20px 20px;
    }

    .asapi-button {
        width: 100%;
    }
}

/* --------------------------------------------------------- ACCESSIBILITY --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .asapi-home *, .asapi-home *::before, .asapi-home *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
