/* ===========================================
   Heaven Tanudiredja - Кастомные стили
   Цветовая палитра: "Cold Editorial"
   Background: #F5F7FA
   Surface: #FFFFFF
   Text: #0F172A
   Text muted: #64748B
   Borders: #E2E8F0
   Accent: #1D4ED8 (кобальт)
   Accent hover: #1E40AF
   Link: #1D4ED8
   Link hover: #0F172A
============================================ */

:root {
    --bg-color: #F5F7FA;
    --surface-color: #FFFFFF;
    --text-color: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --accent-color: #1D4ED8;
    --accent-hover: #1E40AF;
    --link-color: #1D4ED8;
    --link-hover: #0F172A;
}

/* Общие стили */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Навигация */
.menu-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Герой секция */
.hero-section {
    background: linear-gradient(135deg, var(--bg-color) 0%, #e8edf5 100%);
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 4.5rem;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }
}

.btn-outline-dark {
    border-color: var(--text-color);
    color: var(--text-color);
    border-radius: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: var(--text-color);
    color: var(--surface-color);
    border-color: var(--text-color);
}

/* О бренде */
.about-section {
    background-color: var(--surface-color);
}

.about-image-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.image-placeholder-about {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #e2e8f0 25%, #f1f5f9 25%, #f1f5f9 50%, #e2e8f0 50%, #e2e8f0 75%, #f1f5f9 75%, #f1f5f9 100%);
    background-size: 40px 40px;
}

/* Карточки коллекций */
.collection-card {
    background-color: var(--surface-color);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
}

.collection-image {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.img-1 {
    background-image: url('/img/photo-1490481651871-ab68de25d43d.avif');
}

.img-2 {
    background-image: url('/img/photo-1523381210434-271e8be1f52b.avif');
}

.img-3 {
    background-image: url('/img/photo-1544441893-675973e31985.avif');
}

.collection-info {
    border-top: 1px solid var(--border-color);
}

/* Видео секция */
.video-container {
    background-color: var(--surface-color);
    padding: 1rem;
}

.video-placeholder {
    position: relative;
    height: 400px;
    background-color: var(--text-color);
    background-image: url('/img/photo-1520006403909-838d6b92c22e.avif');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button i {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-left: 5px;
}

.play-button:hover {
    transform: scale(1.1);
    background-color: var(--surface-color);
}

/* Пресса и контакты */
.press-card {
    background-color: var(--surface-color);
    border-radius: 0;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.press-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.contact-info {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* Карточки списка */
.list-card, .blog-card, .related-card {
    background-color: var(--surface-color);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.list-card:hover, .blog-card:hover, .related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
}

.list-card-img, .blog-card-img, .related-card-img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.list-card-placeholder, .blog-card-placeholder, .related-card-placeholder {
    height: 250px;
    background-color: var(--border-color);
}

/* Одиночная страница */
.single-hero-img {
    max-height: 600px;
    object-fit: cover;
    width: 100%;
}

.single-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-content p {
    margin-bottom: 1.5rem;
}

/* Пагинация */
.pagination .page-link {
    color: var(--text-color);
    border-color: var(--border-color);
    border-radius: 0;
}

.pagination .page-link:hover {
    background-color: var(--accent-color);
    color: var(--surface-color);
    border-color: var(--accent-color);
}

.pagination .active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Футер */
.footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

/* Markdown body */
.markdown-body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.markdown-body a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.markdown-body a:hover {
    color: var(--link-hover);
}

.markdown-body code {
    background-color: var(--border-color);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.markdown-body pre {
    background-color: var(--border-color);
    padding: 1rem;
    border-radius: 0;
    overflow-x: auto;
}

.markdown-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .about-image-container {
        height: 300px;
        margin-bottom: 2rem;
    }

    .video-placeholder {
        height: 250px;
    }
}

/* === HERO fullscreen background === */
.hero-section{
    /* modern mobile viewport fix */
    min-height: 100svh;
    min-height: 100vh;

    /* background image (from inline --hero-bg) with fallback */
    background-image: var(--hero-bg, linear-gradient(135deg, var(--bg-color) 0%, #e8edf5 100%));
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: hidden;

    /* a bit of breathing room (works with your navbar) */
    padding-top: clamp(72px, 8vh, 120px);
    padding-bottom: clamp(56px, 8vh, 110px);
}

/* overlay for readability */
.hero-section::before{
    content: "";
    position: absolute;
    inset: 0;
    /* light editorial overlay: readable dark text + still see the image */
    background: linear-gradient(
            90deg,
            rgba(250,247,242,0.92) 0%,
            rgba(250,247,242,0.86) 55%,
            rgba(250,247,242,0.55) 100%
    );
}

/* content above overlay */
.hero-section > .container{
    position: relative;
    z-index: 1;
}

/* tighten typography on small screens */
.hero-section h1{
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.05;
}

.hero-section .lead{
    max-width: 58ch;
}

/* tablet/mobile: make overlay more opaque so text stays readable */
@media (max-width: 991.98px){
    .hero-section{
        align-items: flex-start !important; /* nicer with tall mobile screens */
        padding-top: 96px;
        padding-bottom: 72px;
    }

    .hero-section::before{
        background: rgba(250,247,242,0.92);
    }

    .hero-section .lead{
        max-width: 62ch;
    }
}

/* small phones: center the hero copy */
@media (max-width: 575.98px){
    .hero-section .row{
        text-align: center;
    }

    .hero-section .lead{
        margin-left: auto;
        margin-right: auto;
    }
}
/* === ABOUT image === */
.about-image{
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.about-image img{
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

/* better proportions on tablets */
@media (max-width: 991.98px){
    .about-image img{
        height: 380px;
    }
}

/* small phones */
@media (max-width: 575.98px){
    .about-image{
        border-radius: 16px;
    }
    .about-image img{
        height: 300px;
    }
}
