/*
Theme Name: Vinarium
Theme URI: https://vinarium.example
Author: Custom build
Description: Кастомная тема для строительства погребов и цокольных этажей. ACF-driven (Option Pages + per-template field groups), CPT «Проекты» с drag&drop приоритетом, отправка форм по SMTP + Telegram. Стили и скрипты разнесены по файлам с авто-версионированием (filemtime).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vinarium
*/

/*! Vinarium theme — style.css : design system, base, shared utilities */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================================
   ВСЕ ЦВЕТА И ТОКЕНЫ — В ОДНОМ МЕСТЕ (СВЕТЛАЯ ТЕМА)
   ============================================================ */
:root {
    /* Фоны */
    --bg: #f7f3ec;
    --bg-soft: #efe9df;
    --bg-card: #ffffff;
    --bg-deep: #e7dfd1;

    /* Текст */
    --ink: #2a2520;
    --ink-muted: #4f4840;
    --ink-dim: #756c62;

    /* Акцент */
    --brass: #9a7434;
    --brass-soft: #b58e4d;
    --brass-deep: #7a5a26;

    /* Границы */
    --border: rgba(42, 37, 32, 0.12);
    --border-strong: rgba(42, 37, 32, 0.25);

    /* Прозрачные слои основного фона для оверлеев и масок */
    --bg-trans-0:   rgba(247, 243, 236, 0);
    --bg-trans-30:  rgba(247, 243, 236, 0.3);
    --bg-trans-40:  rgba(247, 243, 236, 0.4);
    --bg-trans-50:  rgba(247, 243, 236, 0.5);
    --bg-trans-65:  rgba(247, 243, 236, 0.65);
    --bg-trans-85:  rgba(247, 243, 236, 0.88);
    --bg-trans-95:  rgba(247, 243, 236, 0.95);
    --bg-trans-98:  rgba(247, 243, 236, 0.98);

    /* Тёмные оверлеи поверх изображений */
    --shade-25: rgba(42, 37, 32, 0.25);
    --shade-40: rgba(42, 37, 32, 0.4);
    --shade-55: rgba(42, 37, 32, 0.55);
    --shade-65: rgba(42, 37, 32, 0.65);

    /* Шрифты */
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}


/* ---- Buttons (shared) ---- */
.btn-primary {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brass-deep);
    padding: 18px 0;
    border-bottom: 1px solid var(--brass-soft);
    transition: letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.btn-primary:hover {
    letter-spacing: 0.38em;
    color: var(--brass);
}

.btn-secondary {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-muted);
    transition: color 0.3s ease;
}

.btn-secondary:hover { color: var(--brass-deep); }

/* ---- Section utilities (shared) ---- */
section { padding: 80px 0; position: relative; }

.section-label {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--brass);
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.005em;
    margin-bottom: 24px;
    max-width: 900px;
}

.section-title em {
    font-style: italic;
    color: var(--brass-deep);
}

.section-intro {
    color: var(--ink-muted);
    font-size: 16px;
    line-height: 1.8;
}


/* ---- Reveal-on-scroll (shared) ---- */

/* ---- Reveal-on-scroll (shared) ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Breadcrumb (shared, inner pages) ---- */
.breadcrumb {
    padding: 130px 0 0;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-dim);
    display: flex;
    flex-flow: row wrap;
    gap: 14px;
    align-items: center;
}
.breadcrumb a { color: var(--ink-muted); transition: color 0.3s ease; }
.breadcrumb a:hover { color: var(--brass-deep); }
.breadcrumb .sep { color: var(--brass); }
.breadcrumb .current { color: var(--brass-deep); }

/* ---- Block base (shared, inner pages) ---- */
/* none */
