/* ========================================
   HOMEPAGE
   ======================================== */

/* --- Hero Wrapper --- */
.hero-wrapper {
    position: relative;
}

/* Override slider to full viewport height */
.hero-wrapper .slider {
    height: 100vh !important;
    max-height: none !important;
}

/* Bigger title */
.hero-wrapper .slider .slider__title {
    font-size: 100px !important;
    line-height: 100px !important;
    letter-spacing: -4px !important;
}

/* Bigger description */
.hero-wrapper .slider .slider__description {
    font-size: 20px !important;
    line-height: 32px !important;
}

/* --- Search Bar overlaying slider --- */
.hero-search-bar {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 20;
}

.search-bar {
    display: flex;
    gap: 0;
    background: var(--color-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto;
}

.search-bar__field {
    flex: 1;
    min-width: 0;
}

.search-bar__field select,
.search-bar__field input {
    border: none;
    border-right: 1px solid rgba(255,255,255,0.15);
    border-radius: 0;
    padding: 20px 24px;
    font-size: 16px;
    height: 64px;
    background: transparent;
    color: var(--color-white);
}

.search-bar__field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.search-bar__field select option {
    color: var(--color-text);
    background: var(--color-white);
}

.search-bar__field input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-bar__field:last-of-type select,
.search-bar__field:last-of-type input {
    border-right: none;
}

.search-bar__btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 60px;
    white-space: nowrap;
    height: 64px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* --- Intro --- */
.intro {
    padding: 40px 0;
}

.intro__text {
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--color-gray-700);
}

/* --- Section titles --- */
.section__title {
    text-align: center;
    margin-bottom: 40px;
}

/* --- Properties grid --- */
.properties-grid {
    margin-bottom: 8px;
}

/* --- Counters --- */
.counters-section {
    padding: 80px 0;
}

.counter {
    text-align: center;
}

.counter__row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.counter__number {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
}

.counter__suffix {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--color-white);
}

.counter__label {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.counter__label small {
    font-size: 12px;
    opacity: 0.7;
    font-weight: 400;
}

/* --- App Section --- */
.app-section {
    padding: 80px 0;
}

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

.app-grid__phones {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-mockup-img {
    max-width: 100%;
    height: auto;
    max-height: 520px;
}

.app-grid__content h2 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.app-subtitle {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.app-desc {
    font-size: 14px;
    color: var(--color-gray-700);
    line-height: 1.8;
    margin-bottom: 24px;
}

.app-buttons {
    display: flex;
    gap: 16px;
}

.app-btn-img {
    display: inline-block;
    transition: transform var(--transition), box-shadow var(--transition);
}

.app-btn-img:hover {
    transform: translateY(-2px);
}

.app-btn-img img {
    height: 50px;
    width: auto;
}

/* --- Categories --- */
.categories-section-wrapper {
    padding-top: 60px;
}

.categories-section-wrapper .section__title {
    margin-bottom: 0;
    padding-bottom: 32px;
}

.categories-bg {
    background-color: var(--color-secondary);
    padding: 40px 0;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    text-decoration: none;
    min-height: 160px;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.category-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card__icon svg {
    width: 100%;
    height: 100%;
}

.category-card:hover .category-card__icon {
    transform: scale(1.15) rotate(-5deg);
}

.category-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    text-transform: lowercase;
}

/* --- Services --- */
.service-card {
    padding: 32px 24px;
    text-align: center;
}

.service-card__icon {
    color: var(--color-primary);
    margin-bottom: 16px;
}

.service-card__title {
    font-size: 18px;
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 14px;
    color: var(--color-gray-700);
    line-height: 1.7;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .hero-search-bar {
        bottom: 30px;
        padding: 0 16px;
    }

    .search-bar {
        flex-direction: column;
        border-radius: var(--radius-md);
    }

    .search-bar__field select,
    .search-bar__field input {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .search-bar__btn {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        width: 100%;
    }

    .counter__number {
        font-size: 48px;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .app-grid__phones {
        height: 360px;
    }

    .app-phone { width: 180px; }

    .app-buttons {
        flex-direction: column;
    }

    .categories-bg .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
