/*!
Theme Name: babcom
Theme URI: https://underscores.me/
Author: Automattic
Author URI: https://automattic.com/
Description: Hi. I'm a starter theme called <code>babcom</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: babcom
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

babcom is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
@font-face { font-family: 'ploni'; font-weight: 400; /*(regular)*/ font-style: normal; src: url('assets/fonts/ploni-regular-aaa.woff') format('woff'), url('assets/fonts/ploni-regular-aaa.woff2') format('woff2'), url('assets/fonts/ploni-regular-aaa.otf') format('opentype'); }
@font-face { font-family: 'ploni'; font-weight: 700; /*(bold)*/ font-style: normal; src: url('assets/fonts/ploni-bold-aaa.otf') format('opentype'); }


:root {
    font-size: 20px;
    
    --c-pink: #C60063; 
    --c-dark: #2F2F2F;
    --c-white: #ffffff;
    --c-purple: #B799F7;

    --mask-url: url('../img/mask-blob.svg'); 
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
    font-family: 'ploni', sans-serif; 
    background-color: var(--c-white);
    color: var(--c-dark);
}

/* RTL настройки */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Хедер --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0; /* 20px */
    transition: background-color 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Чтобы лого было слева визуально, а меню справа, 
       независимо от RTL, используем flex-direction: row-reverse */
    flex-direction: row-reverse; 
}

.logo img {
    height: 2rem; /* 40px */
}

/* Меню-бургер (точки) */
.menu-trigger {
    width: 2rem;
    height: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem; /* 5px */
    cursor: pointer;
}

.menu-trigger span {
    width: 4px;
    height: 4px;
    background-color: var(--c-pink);
    border-radius: 50%;
    display: block;
}
.container {
	width: 87.3rem;
	margin: 0 auto;
}
/* --- Hero Секция --- */
.hero-section {
    position: relative;
    padding-top: 7.5rem;   /* 150px - отступ сверху для хедера */
    padding-bottom: 5rem;  /* 100px */
    background-color: var(--c-white);
    z-index: 5;
    min-height: 90vh;      /* Чтобы секция была высокой */
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Текст | Картинка */
    gap: 2rem; /* 40px */
    align-items: center;
}

/* --- Текстовая часть Hero --- */
.hero-content {
    position: relative;
    z-index: 6;
    padding-left: 2.5rem; /* 50px - отступ от картинки, если нужно */
}

.hero-title {
    /* clamp(мин, предпочтительно, макс) */
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* 50px - 90px */
    color: var(--c-pink);
    line-height: 1.1;
    margin-bottom: 1rem; /* 20px */
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem; /* 25px */
    margin-bottom: 2rem; /* 40px */
    color: #333;
    max-width: 25rem; /* 500px ограничение ширины текста */
}

.hero-buttons {
    display: flex;
    gap: 1rem; /* 20px */
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem; /* 15px 40px */
    border-radius: 2.5rem; /* 50px */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem; /* 20px */
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-0.15rem); /* -3px */
}

.btn-primary {
    background: var(--c-pink);
    color: #fff;
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.3);
}

.btn-outline {
    border: 2px solid #ccc;
    color: #333;
    background: transparent;
}

/* --- Маска и визуальная часть (Клякса) --- */
.hero-visual-wrapper {
    position: absolute;
    top: 0;
    /* Визуально справа. В RTL right: -5% будет "началом" справа */
    left: auto; 
    right: -5%; 
    width: 60vw;   /* Ширина кляксы */
    height: 140%;  /* Высота больше секции, чтобы наезжать вниз */
    z-index: 10;
    pointer-events: none; /* Чтобы клики проходили сквозь пустые места */
}

.masked-media {
    width: 100%;
    height: 100%;
    
    /* Свойства маски */
    -webkit-mask-image: var(--mask-url);
    mask-image: var(--mask-url);
    
    -webkit-mask-size: contain;
    mask-size: contain;
    
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    
    -webkit-mask-position: center;
    mask-position: center;
}

/* Медиа внутри маски (Видео или Слайдер) */
.media-item {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Важно, чтобы картинка заполняла всю форму */
    display: block;
}

/* Swiper фиксы */
.hero-swiper {
    width: 100%;
    height: 100%;
}

/* --- Вторая секция (Черная) --- */
.dark-section {
    position: relative;
    background-color: var(--c-dark);
    color: var(--c-white);
    
    /* Большой отступ сверху, чтобы текст не спрятался под нависающей кляксой */
    padding: 8rem 0 5rem; /* 160px 0 100px */
    
    z-index: 1; /* Под кляксой */
    margin-top: -3rem; /* -60px (подтянуть секцию вверх под кляксу) */
}

.dark-content {
    position: relative;
    text-align: right; /* RTL */
    z-index: 2;
}

.dark-title {
    font-size: 2.5rem; /* 50px */
    margin-bottom: 1rem; /* 20px */
}

.dark-subtitle {
    font-size: 1.1rem; /* 22px */
    opacity: 0.9;
}

/* Фиолетовая фигура (вектор) во второй секции */
.purple-shape {
    position: absolute;
    bottom: -2.5rem; /* -50px */
    left: 0; /* Визуально слева */
    width: 15rem; /* 300px */
    z-index: -1;
}

/* --- Адаптив --- */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-content {
        padding-left: 0;
    }
    
    .hero-visual-wrapper {
        position: relative;
        width: 100%;
        height: 25rem; /* 500px */
        right: auto;
        margin-top: 2rem;
    }
    
    .dark-section {
        margin-top: 0;
        padding-top: 4rem;
    }
}

