/* =========================================================
   HOME.CSS — Головна сторінка (темний преміум-стиль)
   ========================================================= */

/* === BANNER з фоновим зображенням (об'єднаний з hero) === */
.home-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url('/images/homeMainImg2.png') center/cover no-repeat;
    overflow: hidden;
    will-change: transform;
}

/* Overlay darkens only the background, sits below the PNG */
.home-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(33,37,41,.28);
    z-index: 1;
}

/* Layer 1: main image — hidden for now */
.home-banner-main-img {
    display: none;
}

/* === Banner inner layout — two columns === */
.home-banner-inner {
    position: relative;
    z-index: 3;
    padding: 150px 0 100px;
    display: flex;
    align-items: flex-start;
    gap: 3.5rem;
}

.home-banner-left {
    flex: 1 1 0;
    max-width: 480px;
}

/* === Right column: why choose us === */
.home-banner-right {
    flex: 1 1 0;
    max-width: 500px;
    margin-left: auto;
    padding-top: 2.5rem;
}

.home-trust-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .3px;
    margin-bottom: 1.6rem;
    text-shadow: 0 3px 20px rgba(0,0,0,.5);
    line-height: 1.2;
}

.home-trust-cards {
    counter-reset: trust-step;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-trust-card {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    background: rgba(33,37,41,.85);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 1.2rem 1.3rem;
    transition: all .3s ease;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .home-trust-card {
        pointer-events: auto;
    }
}

@media (hover: hover) {
    .home-trust-card:hover {
        background: rgba(255,255,255,.09);
        border-color: rgba(255,255,255,.2);
        transform: scale(1.02);
        box-shadow: 0 12px 36px rgba(0,0,0,.3);
    }
}

/* Large number accent */
.home-trust-card::before {
    counter-increment: trust-step;
    content: counter(trust-step, decimal-leading-zero);
    flex-shrink: 0;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,.1);
    letter-spacing: -1px;
    min-width: 2.5rem;
    padding-top: .15rem;
}

.home-trust-card h3 {
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .4rem;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
    letter-spacing: .3px;
}

.home-trust-card p {
    font-size: .87rem;
    color: rgba(255,255,255,.6);
    line-height: 1.55;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,.25);
}

/* Small elegant label */
.home-banner-label {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.2);
    padding: .4rem 1.2rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.home-banner-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: .3px;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0,0,0,.6);
}

.home-banner-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

/* Thin divider */
.home-banner-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,.1));
    margin-bottom: 1.5rem;
}

/* === Hero list — clean vertical list === */
.home-hero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.home-hero-list li {
    position: relative;
    padding-left: 1.5rem;
    padding-bottom: .6rem;
    margin-bottom: .6rem;
    font-size: .95rem;
    color: rgba(255,255,255,.8);
    letter-spacing: .2px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255,255,255,.06);
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.home-hero-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.home-hero-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    box-shadow: 0 0 6px rgba(255,255,255,.2);
}

/* === Banner buttons — premium style === */
.home-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.home-btn-primary {
    padding: .8rem 2.4rem;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .5px;
    color: #111;
    background: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
    transition: all .25s ease;
}

.home-btn-primary:hover {
    background: #f0f0f0;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0,0,0,.4);
}

.home-btn-ghost {
    padding: .8rem 2.4rem;
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .3px;
    color: rgba(255,255,255,.85);
    background: transparent;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
    transition: all .25s ease;
}

.home-btn-ghost:hover {
    color: #fff;
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.08);
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .home-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 2.5rem;
    }
    .home-banner-left,
    .home-banner-right {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .home-banner {
        min-height: auto;
    }
    .home-banner-inner {
        padding: 100px 16px 48px;
    }
    .home-banner-left {
        text-align: center;
    }
    .home-banner-title {
        font-size: 1.6rem;
    }
    .home-banner-subtitle {
        font-size: .95rem;
    }
    .home-banner-divider {
        margin-left: auto;
        margin-right: auto;
    }
    .home-hero-list li {
        text-align: left;
        font-size: .88rem;
    }
    .home-banner-actions {
        justify-content: center;
    }
    /* Trust cards — compact on phone */
    .home-trust-heading {
        font-size: 1.15rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    .home-trust-cards {
        gap: .7rem;
    }
    .home-trust-card {
        padding: .9rem 1rem;
        border-radius: 14px;
        background: rgba(15,17,19,.92);
    }
    .home-trust-card::before {
        font-size: 1.5rem;
        min-width: 2rem;
    }
    .home-trust-card h3 {
        font-size: .82rem;
        margin-bottom: .2rem;
        color: #fff;
    }
    .home-trust-card p {
        font-size: .8rem;
        line-height: 1.45;
        color: rgba(255,255,255,.7);
    }
}

/* === Фон і налаштування під плаваючий навбар === */
body.home-dark {
    background-color: var(--bg-page);
    color: var(--text-primary);
}

/* Загальні секції після hero */
.home-section {
    background: #181b1f;
    color: var(--text-primary);
    padding: 72px 0 80px;
    border-top: 1px solid rgba(255,255,255,.04);
}

/* Трохи темніший фон для блоку напрямків */
.home-directions {
    background: #15181c;
}

/* === Заголовки і текст === */
.home-section h2 {
    color: var(--text-bright);
    text-shadow: 0 2px 16px rgba(0,0,0,.35);
    letter-spacing: .3px;
    font-weight: 900;
}

.home-section p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

.home-section-subtitle {
    max-width: 720px;
    margin: 0 auto;
}

/* === Список з квадратними маркерами === */
.home-bullets {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.home-bullets li {
    position: relative;
    padding-left: 1.2rem;
    margin: .4rem 0;
    color: var(--text-primary);
    transition: color .18s ease, transform .18s ease;
}

.home-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55rem;
    width: .55rem;
    height: .55rem;
    border-radius: 3px;
    border: 2px solid var(--border-medium);
}

.home-bullets li:hover,
.home-bullets li:focus-visible {
    color: #ffffff;
    transform: translateX(3px);
}

.home-bullets li:hover::before,
.home-bullets li:focus-visible::before {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

/* === Block 2: Directions — horizontal luxury layout === */
.home-dir {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    padding: 2.5rem 0;
}

/* Left: big number + tag */
.home-dir-visual {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.home-dir-number {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,.06);
    letter-spacing: -3px;
    margin-bottom: .6rem;
}

.home-dir-tag {
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    white-space: nowrap;
}

/* Center: text content */
.home-dir-content {
    flex: 1;
}

.home-dir-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .75rem;
    text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.home-dir-text {
    color: rgba(255,255,255,.55);
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.home-dir-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-dir-list li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: .45rem;
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    line-height: 1.55;
}

.home-dir-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
}

/* Buttons under content */
.home-dir-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

/* Separator between two directions */
.home-dir-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    margin: 0;
}

/* Tablet: stack vertically */
@media (max-width: 991.98px) {
    .home-dir {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .home-dir-visual {
        width: auto;
        flex-direction: row;
        gap: 1rem;
        align-items: baseline;
    }
    .home-dir-number {
        font-size: 3rem;
    }
    .home-dir-actions {
        justify-content: center;
    }
    .home-dir-list li {
        text-align: left;
    }
}

/* Phone: directions as glass cards */
@media (max-width: 767.98px) {
    .home-directions {
        padding: 48px 0 56px;
    }
    .home-dir {
        background: rgba(255,255,255,.04);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 18px;
        padding: 1.5rem 1.25rem;
        text-align: left;
        gap: 1rem;
    }
    .home-dir-visual {
        gap: .6rem;
    }
    .home-dir-number {
        font-size: 2.2rem;
        color: rgba(255,255,255,.08);
    }
    .home-dir-tag {
        font-size: .65rem;
    }
    .home-dir-title {
        font-size: 1.15rem;
        margin-bottom: .5rem;
    }
    .home-dir-text {
        font-size: .88rem;
        margin-bottom: .75rem;
    }
    .home-dir-list li {
        font-size: .85rem;
        text-align: left;
    }
    .home-dir-actions {
        justify-content: flex-start;
    }
    .home-dir-actions .btn {
        width: 100%;
        text-align: center;
        padding: .7rem 1.5rem;
        font-size: .88rem;
    }
    .home-dir-separator {
        margin: .5rem 0;
        background: none;
    }
}

/* === Анонс вій === */
.home-announcement {
    background: #181b1f;
    padding: 70px 0 80px;
    margin-bottom: -40px;
}

.home-announcement-card {
    max-width: 980px;
    margin: 0 auto;
    background: #21252b;
    border-radius: 22px;
    border: 1px solid var(--border-light);
    box-shadow:
            0 24px 60px rgba(0,0,0,.8),
            0 0 0 1px rgba(255,255,255,.02);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.home-announcement-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(255,255,255,.06), transparent 60%);
    opacity: .8;
    pointer-events: none;
}

.home-announcement-card > * {
    position: relative;
    z-index: 1;
}

.home-announcement-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-bright);
    margin-bottom: 1.2rem;
    background: rgba(24,27,32,.95);
}

/* Layout картки анонсу: картинка + текст */
.home-announcement-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    align-items: stretch;
}

.home-announcement-image-wrap {
    flex: 0 0 250px;
    max-width: 260px;
}

.home-announcement-image {
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 16px 40px rgba(0,0,0,.7);
    border: 1px solid rgba(255,255,255,.2);
}

.home-announcement-content {
    flex: 1 1 260px;
}

/* Блок ціни + переваги */
.home-announcement-price-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.home-announcement-price {
    min-width: 230px;
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    background: radial-gradient(circle at top left, #f9fafb, #cbd5f5);
    color: #111827;
    box-shadow: 0 16px 40px rgba(15,23,42,.55);
}

.home-announcement-price-label {
    display: block;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .8;
    margin-bottom: .25rem;
}

.home-announcement-price-value {
    display: inline-block;
    font-size: 1.9rem;
    font-weight: 800;
    margin-right: .25rem;
}

.home-announcement-price-note {
    display: inline-block;
    font-size: .9rem;
    opacity: .85;
}

/* Ховер для контурних кнопок */
.home-announcement .btn-outline-light:hover,
.home-section .btn-outline-light:hover {
    background: var(--btn-bg);
    color: var(--btn-text);
}

/* === Адаптив === */
@media (max-width: 767.98px) {
    .home-section {
        padding: 56px 0 64px;
    }

    .home-announcement-inner {
        flex-direction: column;
    }

    .home-announcement-image-wrap {
        max-width: 100%;
    }

    .home-announcement {
        margin-bottom: -30px;
    }
}

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

    .home-announcement-price-row {
        flex-direction: column;
    }
}

/* Prevent buttons from overflowing */
.home-banner-actions .btn,
.home-dir-actions .btn,
.home-announcement .btn{
    white-space:nowrap;
}

/* Modal, form, button styles now in components.css */