/* home-v2.css
   Obchodnejšie usporiadanie úvodnej stránky.
   Farby preberá z existujúcich CSS premenných v variables.css. */

.home-v2-container {
    width: min(1200px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.home-v2-section-head {
    max-width: 760px;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.home-v2-section-head > p:last-child {
    margin: 0.8rem auto 0;
    line-height: 1.75;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    color: var(--text-color-muted);
}

.home-v2-kicker {
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    line-height: 1.3;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-color-muted);
}

/* Hero: obsah je obchodnejší, pôvodný vizuálny základ zostáva. */
.home-v2-hero .home-hero-lead {
    max-width: 38ch;
}

.home-v2-hero .home-hero-sublead {
    max-width: 64ch;
}

.home-v2-hero .home-hero-info-card strong {
    line-height: 1.25;
}

.home-v2-hero .home-hero-actions {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.home-v2-hero .home-hero-actions .btn-custom {
    margin: 0;
}

/* Čo má web firme priniesť */
.home-v2-goals,
.home-v2-projects,
.home-v2-process {
    position: relative;
    margin: 2rem 0;
    padding: 4.5rem 0;
}

.home-v2-goals-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-v2-goal-card {
    position: relative;
    min-height: 230px;
    padding: 1.5rem;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    background: var(--card-bg);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.home-v2-card-number {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-color-muted);
}

.home-v2-goal-card .page-title-h3 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.25;
}

.home-v2-goal-card p {
    margin: 0;
    line-height: 1.65;
    color: var(--text-color-muted);
}

/* Služby – iba jemné dorovnanie novej hierarchie */
.home-services .home-v2-section-head {
    margin-bottom: 2rem;
}

.home-services .home-service-card {
    text-align: left;
}

/* Projekty */
.home-v2-projects {
    padding-top: 3.5rem;
}

.home-v2-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.home-v2-project-card {
    min-width: 0;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    display: flex;
    flex-direction: column;
}

.home-v2-project-card:hover,
.home-v2-project-card:focus-within {
    transform: translateY(-4px);
    border-color: var(--border-color-card);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}

.home-v2-project-image-link,
.home-v2-project-title-link {
    color: inherit;
    text-decoration: none;
}

.home-v2-project-image-link {
    display: block;
}

.home-v2-project-image-link:focus-visible,
.home-v2-project-title-link:focus-visible,
.home-v2-text-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 4px;
}

.home-v2-project-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-color1);
}

.home-v2-project-image::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 -1px 0 var(--card-border);
}

.home-v2-project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-v2-project-card:hover .home-v2-project-image img,
.home-v2-project-card:focus-within .home-v2-project-image img {
    transform: scale(1.025);
}

.home-v2-project-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.35rem;
}

.home-v2-project-copy h3 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.25;
    color: var(--text-color-secondary);
}

.home-v2-project-description {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.2rem;
    line-height: 1.65;
    color: var(--text-color-muted);
}

.home-v2-project-description > :last-child {
    margin-bottom: 0;
}

.home-v2-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    font-weight: 700;
    color: var(--text-color-primary);
    text-decoration: none;
}

.home-v2-text-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.home-v2-project-card:hover .home-v2-text-link::after,
.home-v2-project-card:focus-within .home-v2-text-link::after {
    transform: translateX(4px);
}

.home-v2-center-action {
    margin-top: 1.75rem;
    text-align: center;
}

/* Ako vzniká web */
.home-v2-process-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-v2-process-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1.35rem;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    background: var(--bg-lin-gradient3);
}

.home-v2-process-card > span {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--card-border3);
    border-radius: 50%;
    font-weight: 800;
    color: var(--text-color-primary);
}

.home-v2-process-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.18rem;
    color: var(--text-color-secondary);
}

.home-v2-process-card p {
    margin: 0;
    line-height: 1.65;
    color: var(--text-color-muted);
}

/* Technický dôkaz – pôvodné PSI karty ostávajú, len sú výrazne kratšie. */
.home-v2-proof .home-psi-container {
    max-width: 1200px;
}

.home-v2-proof-scores .home-psi-score-card {
    min-height: 0;
}

.home-v2-proof-scores .home-psi-score-card p {
    margin-top: 0.5rem;
    line-height: 1.55;
    color: var(--text-color-muted);
}

/* Blogové piliere */
.home-pillars .home-v2-section-head {
    margin-bottom: 2rem;
}

/* TvojBooking */
.home-v2-booking {
    margin-bottom: 1rem;
}

.home-v2-booking-container {
    width: min(820px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border: 1px solid var(--card-border);
    border-radius: 22px;
    background: var(--card-bg);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.home-v2-booking-container > p {
    width: auto;
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

.home-v2-booking-container .home-v2-kicker {
    margin-top: 0;
}

.home-v2-booking-frame-wrap {
    width: min(1200px, calc(100% - 2.5rem));
    margin: 0 auto 4rem;
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    background: var(--card-bg);
}

.home-v2-booking-frame-wrap iframe {
    display: block;
    width: 100%;
    min-height: 700px;
    border: 0;
}

/* O jzDev je zámerne až pod obchodnou časťou. */
.home-v2-about {
    margin-top: 3rem;
}

.home-v2-about .home-about-container {
    width: min(900px, calc(100% - 2.5rem));
    margin-bottom: 0;
}

.home-v2-about .home-v2-kicker {
    margin-bottom: 0.6rem;
}

.home-v2-about p {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
}

.home-v2-tech-icons {
    margin-top: 2.25rem;
}

.home-v2-cta {
    margin-top: 1rem;
}

.home-v2-cta .home-v2-kicker {
    margin-bottom: 0.6rem;
}

@media (max-width: 1050px) {
    .home-v2-goals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-v2-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 756px) {
    .home-v2-container,
    .home-v2-booking-container,
    .home-v2-booking-frame-wrap,
    .home-v2-about .home-about-container {
        width: min(100%, calc(100% - 1rem));
    }

    .home-v2-goals,
    .home-v2-projects,
    .home-v2-process {
        padding: 3rem 0;
    }

    .home-v2-section-head {
        margin-bottom: 1.6rem;
    }

    .home-v2-goals-grid,
    .home-v2-projects-grid,
    .home-v2-process-grid {
        grid-template-columns: 1fr;
    }

    .home-v2-goal-card {
        min-height: 0;
    }

    .home-v2-project-description {
        -webkit-line-clamp: 5;
    }

    .home-v2-booking-frame-wrap {
        border-radius: 12px;
    }

    .home-v2-booking-frame-wrap iframe {
        min-height: 650px;
    }
}

@media (max-width: 576px) {
    .home-v2-hero .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-v2-hero .home-hero-actions .btn-custom {
        width: 100%;
    }

    .home-v2-goal-card,
    .home-v2-process-card,
    .home-v2-project-copy,
    .home-v2-booking-container {
        padding: 1.15rem;
    }

    .home-v2-process-card {
        grid-template-columns: 1fr;
    }

    .home-v2-process-card > span {
        width: 2.25rem;
        height: 2.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-v2-project-card,
    .home-v2-project-image img,
    .home-v2-text-link::after {
        transition: none;
    }
}
