/*
Theme Name: Trichologist Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Современная тема для сайта трихолога с использованием Tailwind CSS и современной океанической цветовой палитрой
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trichologist-theme
Tags: medical, health, education, modern, tailwind
*/

/* Front page hero */
.home-hero {
    padding: 3rem 0 4.5rem;
    background: #ffffff;
    overflow: hidden;
}

.home-hero__stage {
    position: relative;
    display: grid;
    grid-template-columns: 0.4fr 5.2fr 0.2fr 5fr 0.2fr;
    align-items: end;
    column-gap: 0;
    row-gap: 0;
}

.home-hero__bg-name {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    display: block;
    aspect-ratio: 4623.52 / 1819.1;
    pointer-events: none;
    z-index: 3;
    margin-bottom: -226px;
    margin-left: 30px;
}

.home-hero__bg-logo {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    overflow: visible;
}

.home-hero__card {
    position: relative;
    grid-column: 2 / 5;
    grid-row: 2;
    z-index: 2;
    padding: 2.75rem 33rem 2.75rem 1.25rem;
    min-height: 25rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, #3b6b8a 0%, #315b75 100%);
    color: #ffffff;
    overflow: visible;
}

.home-hero__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.6rem, 2.7vw, 2.5rem);
    line-height: 1.05;
    font-weight: 700;
    text-align: left;
    color: #ffffff;
    transform: translateX(100px);
}

.home-hero__subtitle {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
}

.home-hero__description {
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.home-hero__description--secondary {
    margin-bottom: 1.25rem;
}

.home-hero__lead {
    margin: 0 0 1.5rem;
    font-size: 0.88rem;
    line-height: 1.5;
    font-weight: 600;
    color: #ffffff;
    text-align: left;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.home-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11.5rem;
    padding: 0.85rem 1.1rem;
    border-radius: 1rem;
    border: 2px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(26, 43, 60, 0.16);
}

.home-hero__button--accent {
    background: var(--color-warm-sunset);
    color: #ffffff;
}

.home-hero__button--secondary {
    background: #ffffff;
    color: var(--color-sea-wave);
}

.home-hero__button--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
}

.home-hero__button--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.home-hero__image-wrap {
    position: relative;
    grid-column: 4;
    grid-row: 1 / span 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 44rem;
    margin-top: 0;
    margin-right: 0.5rem;
    align-self: end;
    z-index: 4;
}

.home-hero__image {
    display: block;
    width: 85%;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom center;
}

/* Large desktop ≥1600 */
@media (min-width: 1600px) {
    .home-hero__image-wrap {
        width: 80%;
        min-height: 40rem;
        margin-right: 0;
        justify-self: end;
        justify-content: flex-end;
    }

    .home-hero__image {
        width: 85%;
    }
}

/* Compact desktop 1024–1279 */
@media (min-width: 1024px) and (max-width: 1279px) {
    .home-hero__stage {
        grid-template-columns: 0.35fr 5.4fr 0.15fr 4.8fr 0.3fr;
    }

    .home-hero__bg-name {
        margin-bottom: -84px;
    }

    .home-hero__card {
        padding: 2.25rem 17rem 2.25rem 1.25rem;
        min-height: 22rem;
    }

    .home-hero__image-wrap {
        min-height: 34rem;
    }
}

/* Tablet & mobile ≤1023: текст и фото в одном синем блоке */
@media (max-width: 1023px) {
    .home-hero__stage {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        align-items: stretch;
        row-gap: 0;
    }

    .home-hero__bg-name {
        grid-column: 1;
        grid-row: 1;
        width: min(70%, 22rem);
        margin-bottom: -62px;
        margin-left: 1rem;
    }

    .home-hero__card {
        grid-column: 1;
        grid-row: 2;
        padding: 2.5rem 1.5rem 1.25rem;
        min-height: 0;
        border-radius: 2rem 2rem 0 0;
    }

    .home-hero__title {
        transform: translateX(2rem);
    }

    .home-hero__image-wrap {
        position: relative;
        grid-column: 1;
        grid-row: 3 / auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 0;
        height: auto;
        margin: 0;
        padding: 0.5rem 1.5rem 2rem;
        transform: none;
        align-self: stretch;
        z-index: 1;
        background: linear-gradient(135deg, #3b6b8a 0%, #315b75 100%);
        border-radius: 0 0 2rem 2rem;
    }

    .home-hero__image {
        display: block;
        width: auto;
        max-width: min(20rem, 60vw);
        max-height: 24rem;
        object-fit: contain;
        object-position: center bottom;
    }
}

@media (max-width: 767px) {
    .home-hero__bg-name {
        margin-bottom: -48px;
    }

    .home-hero__image-wrap {
        padding-bottom: 0;
    }

    .home-hero__actions {
        gap: 0.5rem;
    }

    .home-hero__button {
        min-width: 0;
        flex: 1 1 calc(50% - 0.5rem);
        padding: 0.65rem 0.75rem;
        font-size: clamp(0.72rem, 2.8vw, 0.85rem);
    }

    .home-hero__button--outline {
        flex-basis: 100%;
    }
}

/* 
СОХРАНЕННАЯ ПАЛИТРА - Теплая Академическая:
1. Темно-Коричневый: #3D2817 (Основной текст)
2. Светло-Бежевый Крем: #F5F1EB (Фон)
3. Темно-Коричневый/Кирпичный: #8B4513 (Акцент, CTA)
4. Средний Коричневый: #A0826D (Второстепенный)
5. Мягкий Коричневый: #6B4E3D (Контраст, тени)

ТЕКУЩАЯ ПАЛИТРА — Чернильный океан:
1. Чернильный океан: #1A2B3C (Тёмный синий — основной)
2. Туманный берег: #F0F2F4 (Светло-серый — фон)
3. Солнечный блик: #FF9966 (Акцент, CTA)
4. Морская глубина: #3B6B8A (Второстепенный синий)
5. Песчаная отмель: #C7B5A0 (Мягкий акцент)
*/

