/* ==========================================================
   Noemata – domovská stránka (index.php)
   ========================================================== */

/* Hanken Grotesk SemiBold Italic pro citace referencí (sdílená hlavička načítá jen řez normal) */

.page-home {
    --home-blue: #293a82;
    --home-accent: #3096a8;
    --home-muted: #757682;
    --home-body: #4a5568;
    --home-border: #c6c5d2;
    --home-tile: #ededf7;
    --home-intro-bg: #f8fafb;
    --home-quote-bg: #f3f3fd;
    --home-cta-text: rgba(184, 195, 255, 0.8);
}

.home-eyebrow {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.home-h2 {
    font-family: var(--f-heading);
    font-weight: 600;
    font-size: 48px;
    line-height: 56px;
    letter-spacing: -0.48px;
    color: var(--home-blue);
}

/* Velká tlačítka (hero, CTA) */
.home-btn {
    min-height: 64px;
    padding: 16px 40px;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0;
}
.home-btn--light { background: var(--c-white); color: var(--home-blue); }
.home-btn--light:hover { background: #e8ebfa; }
.home-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--c-white);
    color: var(--c-white);
}
.home-btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }
.home-btn:focus-visible { outline-color: var(--c-white); }

/* ---------- Hero ---------- */
.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    padding: 80px calc(max(var(--gutter), (100% - var(--container)) / 2) + var(--content-pad));
    background: var(--home-blue);
    color: var(--c-white);
}
.home-hero__bg {
    position: absolute;
    inset: -12px;
}
.home-hero__bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.home-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(41, 58, 130, 0.58);
}
.home-hero__glow {
    position: absolute;
    width: 384px;
    height: 384px;
    border-radius: 12px;
    filter: blur(32px);
    pointer-events: none;
}
.home-hero__glow--tl { top: -80px; left: -80px; background: rgba(48, 150, 168, 0.1); }
.home-hero__glow--br { bottom: -80px; right: -80px; background: rgba(66, 82, 155, 0.1); }

.home-hero__content {
    position: relative;
    max-width: 678px;
    display: flex;
    flex-direction: column;
}
/* H1 = eyebrow + hlavní nadpis (SEO: jeden tag, vizuálně dva řádky jako v návrhu) */
.home-hero__h1 { margin: 0; font: inherit; display: flex; flex-direction: column; }
.home-hero__h1 > span { display: block; }
.home-hero__eyebrow { margin-bottom: 16px; }
.home-hero__title {
    font-family: var(--f-heading);
    font-weight: 700;
    font-size: 64px;
    line-height: 80px;
    letter-spacing: -1.28px;
    margin-bottom: 24px;
}
.home-hero__lead { font-size: 18px; line-height: 28px; margin-bottom: 24px; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Loga klientů ---------- */
.home-logos { background: var(--c-bg); padding: 80px var(--gutter); }
.home-logos__inner {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--content-pad);
    display: flex;
    flex-direction: column;
    gap: 45px;
}
.home-logos__title { text-align: center; color: var(--home-muted); }
.home-logos__list {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    opacity: 0.7;
}
.home-logo { flex: 0 1 var(--w); min-width: 0; }
.home-logo img { width: var(--w); height: auto; aspect-ratio: auto; max-width: 100%; object-fit: cover; }
.home-logo--pill {
    border: 2px solid #b8bbc4;
    border-radius: 34px;
    overflow: hidden;
}
.home-logo--pill img { border-radius: 34px; }

/* ---------- Úvod ---------- */
.home-intro { background: var(--home-intro-bg); padding: 80px var(--gutter); }
.home-intro__inner {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--content-pad);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
    min-height: 432px;
}
.home-intro__text { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 24px; }
.home-intro__copy { margin-right: -24px; /* zalomení řádků jako ve Figmě (Inter v4 je mírně širší) */ display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 28px; color: var(--c-text); }
.home-stats { display: flex; align-items: flex-start; gap: 32px; padding-top: 24px; margin: 0; }
.home-stat { display: flex; flex-direction: column; gap: 5.5px; }
.home-stat__value {
    font-family: var(--f-heading);
    font-weight: 600;
    font-size: 32px;
    line-height: 40px;
    color: var(--home-blue);
}
.home-stat__label {
    margin: 0;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.6px;
    color: var(--home-muted);
}
.home-stats__divider { width: 1px; height: 48px; border-left: 1px solid rgba(198, 197, 210, 0.3); }

.home-intro__media {
    grid-column: 8 / span 5;
    position: relative;
    margin: 0;
    max-width: 432px;
    justify-self: end;
    margin-right: -8px; /* rámeček má 8px padding → fotka lícuje s pravým okrajem obsahu */
    width: 100%;
}
.home-intro__glow {
    position: absolute;
    left: -13px;
    bottom: -13px;
    width: 128px;
    height: 128px;
    border-radius: 12px;
    background: rgba(48, 150, 168, 0.2);
    filter: blur(12px);
    pointer-events: none;
}
.home-intro__frame {
    position: relative;
    padding: 8px;
    border-radius: 8px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}
.home-intro__frame img { width: 100%; height: 414px; object-fit: cover; border-radius: 4px; }

/* ---------- Služby ---------- */
.home-services { background: var(--c-bg); padding: 80px var(--gutter); }
.home-services__inner {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--content-pad);
    display: flex;
    flex-direction: column;
}
.home-services__head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 64px; }
.home-services__sub { color: var(--home-body); }
.home-services__grid {
    display: grid;
    grid-template-columns: minmax(0, 525fr) minmax(0, 555fr);
    gap: 24px;
}
.home-card {
    min-height: 550px;
    padding: 41px;
    background: var(--c-white);
    border: 1px solid var(--home-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    transition: box-shadow .25s, transform .25s;
}
.home-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -8px rgba(14, 34, 107, 0.12); }
.home-card__body { display: flex; flex-direction: column; gap: 16px; }
.home-card__icon { display: flex; align-items: center; width: 48px; height: 48px; border-radius: 4px; }
.home-card__title {
    padding-top: 8px;
    font-family: var(--f-heading);
    font-weight: 600;
    font-size: 32px;
    line-height: 40px;
    color: var(--home-blue);
}
.home-card__text { color: var(--home-body); }
.home-checklist { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.home-checklist li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; color: var(--c-text); }
.home-checklist img { flex: none; }
.home-card__link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.6px;
    color: var(--home-blue);
}
.home-card__link img { transition: transform .2s; }
.home-card__link:hover img { transform: translateX(4px); }

.home-workshop {
    margin-top: 24px;
    min-height: 280px;
    padding: 40px;
    background: var(--c-white);
    border: 1px solid var(--home-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.home-workshop__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.home-workshop__icon { align-items: flex-start; padding-top: 13.38px; }
.home-workshop__title { padding-top: 0; color: var(--c-primary); }
.home-workshop__desc { max-width: 492px; color: var(--c-text); }
.home-workshop__tiles { display: flex; align-items: center; gap: 16px; }
.home-tile {
    width: 128px;
    height: 128px;
    padding: 16px;
    background: var(--home-tile);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.6px;
    text-align: center;
    color: var(--c-primary);
}
.home-tile__icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }

/* ---------- Reference ---------- */
.home-testimonials__head { background: var(--c-bg); padding: 0 var(--gutter) 48px; text-align: center; }
.home-testimonials__title { color: var(--c-primary); }
.home-testimonials__body {
    background: var(--home-quote-bg);
    padding: 80px var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.home-carousel {
    width: 100%;
    max-width: 1036px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-areas: "prev track next";
    align-items: start;
}
.home-carousel__track { grid-area: track; display: grid; }
.home-slide {
    grid-area: 1 / 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility 0s linear .4s;
}
.home-slide.is-active { opacity: 1; visibility: visible; transition: opacity .4s ease, visibility 0s; }
.home-slide__quote {
    flex: 1 0 auto;
    min-height: 260px;
    max-width: var(--qw, 858px); /* Figma 840 px – webový řez písma je o něco širší */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.home-slide__quote p {
    font-family: var(--f-heading);
    font-style: italic;
    font-weight: 600;
    font-size: 32px;
    line-height: 52px;
    text-align: center;
    color: var(--c-primary);
}
.home-slide__author { display: flex; flex-direction: column; align-items: center; text-align: center; }
.home-slide__avatar {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--c-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
/* Fotka 60 px v bílém kruhu 64 px; ořez (zvětšení + posun) podle Figmy přes --cw/--cx/--cy */
.home-slide__photo {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}
.home-slide__photo img {
    position: absolute;
    left: var(--cx, 0);
    top: var(--cy, 0);
    width: var(--cw, 100%);
    height: var(--cw, 100%);
    max-width: none;
    object-fit: cover;
}
.home-slide__name {
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--c-primary);
}
.home-slide__role { font-size: 14px; line-height: 20px; color: var(--c-text); }

.home-carousel__arrow {
    width: 44px;
    height: 44px;
    margin-top: 108px; /* střed oblasti citace (130 px) − polovina šipky */
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    transition: background-color .2s;
}
.home-carousel__arrow--prev { grid-area: prev; }
.home-carousel__arrow--next { grid-area: next; }
.home-carousel__arrow:hover { background: rgba(14, 34, 107, 0.06); }
.home-carousel__arrow:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* ---------- Závěrečná výzva ---------- */
.home-cta-wrap { background: var(--c-bg); padding: 100px 64px 80px; }
.home-cta {
    position: relative;
    overflow: hidden;
    max-width: 1152px;
    margin-inline: auto;
    padding: 80px 40px;
    background: var(--c-primary);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.home-cta__glow { position: absolute; border-radius: 50%; filter: blur(32px); pointer-events: none; }
.home-cta__glow--tl { top: -128px; left: -128px; width: 256px; height: 256px; background: rgba(48, 150, 168, 0.1); }
.home-cta__glow--br { bottom: -128px; right: -128px; width: 384px; height: 384px; background: rgba(41, 58, 130, 0.2); }
.home-cta__content {
    position: relative;
    max-width: 744px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}
.home-cta__title {
    font-family: var(--f-heading);
    font-weight: 700;
    font-size: 64px;
    line-height: 72px;
    letter-spacing: -1.28px;
    color: var(--c-white);
}
.home-cta__text { font-size: 18px; line-height: 28px; color: var(--home-cta-text); }
.home-cta__btn {
    margin-top: 24px;
    padding: 16px 48px;
    color: var(--c-primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.home-cta__btn:focus-visible { outline-color: var(--c-white); }

/* ---------- Responzivita ---------- */
@media (max-width: 1100px) {
    .home-logos__list { flex-wrap: wrap; justify-content: center; gap: 24px 40px; }
    .home-logo { flex: none; }
    .home-workshop { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 960px) {
    .home-br { display: none; }

    .home-hero { min-height: 560px; padding: 64px var(--gutter); }
    .home-hero__title { font-size: 52px; line-height: 64px; }

    .home-logos, .home-intro, .home-services { padding-block: 64px; }
    .home-logos__inner, .home-intro__inner, .home-services__inner { padding-inline: 0; }

    .home-h2 { font-size: 40px; line-height: 48px; }

    .home-intro__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .home-intro__text, .home-intro__media { grid-column: auto; }
    .home-intro__copy { margin-right: 0; }
    .home-intro__media { justify-self: center; max-width: 520px; margin-right: 0; }
    .home-intro__frame img { height: auto; aspect-ratio: 432 / 414; }

    .home-services__head { margin-bottom: 48px; }
    .home-services__grid { grid-template-columns: minmax(0, 1fr); }
    .home-card { min-height: 0; }

    .home-testimonials__body { padding-block: 64px; }
    .home-slide__quote { min-height: 0; }
    .home-slide__quote p { font-size: 26px; line-height: 40px; }
    .home-carousel__arrow { align-self: center; margin-top: 0; }

    .home-cta-wrap { padding: 64px var(--gutter); }
    .home-cta { padding: 64px 40px; }
    .home-cta__title { font-size: 48px; line-height: 56px; }
}

@media (max-width: 560px) {
    .home-hero { min-height: 0; padding-block: 48px 56px; }
    .home-hero__title { font-size: 40px; line-height: 48px; letter-spacing: -0.8px; margin-bottom: 16px; }
    .home-hero__lead { font-size: 16px; line-height: 26px; }
    .home-hero__actions { flex-direction: column; }
    .home-btn { font-size: 20px; line-height: 28px; padding: 14px 24px; min-height: 56px; width: 100%; }

    .home-logos, .home-intro, .home-services { padding-block: 48px; }
    .home-logos__inner { gap: 32px; }
    .home-logos__list { gap: 24px 28px; }
    .home-logo { max-width: 40%; }

    .home-h2 { font-size: 32px; line-height: 40px; letter-spacing: -0.32px; }
    .home-intro__copy { font-size: 16px; line-height: 26px; }
    .home-stats { gap: 24px; }

    .home-card, .home-workshop { padding: 28px 24px; }
    .home-card__title { font-size: 26px; line-height: 34px; }
    .home-workshop__tiles { width: 100%; gap: 8px; }
    .home-tile { flex: 1 1 0; width: auto; height: auto; aspect-ratio: 1; min-width: 0; padding: 8px; }

    .home-testimonials__head { padding-bottom: 32px; }
    .home-testimonials__body { padding-block: 48px; gap: 24px; }
    .home-carousel {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        grid-template-areas: "track track track" "prev . next";
        row-gap: 16px;
    }
    .home-slide { gap: 24px; }
    .home-slide__quote p { font-size: 20px; line-height: 32px; }

    .home-cta { padding: 48px 24px; border-radius: 16px; }
    .home-cta__content { gap: 24px; }
    .home-cta__title { font-size: 34px; line-height: 40px; letter-spacing: -0.6px; }
    .home-cta__text { font-size: 16px; line-height: 24px; }
    .home-cta__btn { margin-top: 8px; font-size: 18px; line-height: 26px; padding: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-slide, .home-slide.is-active { transition: none; }
}
