/*
Theme Name: dds_laconnerseasidegallery.com
Author: Анастасия Миронова
Description: Информационная тема об искусстве и выставках: галереи, контекст и авторский замысел. Русскоязычный текстово-визуальный сайт со страницей журнала, хлебными крошками, виджетами и cookie-баннером.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lcsg
*/

/* ============================================================
   Переменные и база
   ============================================================ */
:root {
    --cream: #f6f2ea;
    --paper: #fffdf8;
    --ink: #23201c;
    --muted: #6b6155;
    --ochre: #b06a3f;
    --ochre-d: #8a4d2c;
    --gold: #e7b04a;
    --teal: #3f6b6b;
    --line: #e4dac8;
    --footer-bg: #201c18;
    --footer-panel: #2a2621;
    --footer-text: #ddd3c3;
    --footer-muted: #a89d8b;
    --shadow: 0 6px 24px rgba(35, 32, 28, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", "PT Serif", serif;
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

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

a { color: var(--ochre-d); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: "Georgia", "PT Serif", serif;
    line-height: 1.25;
    color: var(--ink);
}

p { margin: 0 0 1em; }

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 4px;
    font-family: Georgia, serif;
    font-size: 17px;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.btn:hover { text-decoration: none; }
.btn-accent { background: var(--ochre); color: #fff; border-color: var(--ochre); }
.btn-accent:hover { background: var(--ochre-d); border-color: var(--ochre-d); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }

/* ============================================================
   Шапка
   ============================================================ */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.site-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    margin-right: auto;
}
.brand-link { display: inline-flex; }
.brand-logo { max-height: 60px; width: auto; display: block; }
.brand-mark { display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--ink);
    line-height: 1.2;
}
.brand-tagline {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.35;
    max-width: 520px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle-bar {
    width: 26px; height: 3px;
    background: var(--ink);
    border-radius: 2px;
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.primary-menu li { margin: 0; }
.primary-menu a {
    display: block;
    padding: 8px 14px;
    color: var(--ink);
    font-size: 16px;
    border-radius: 4px;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    background: var(--cream);
    color: var(--ochre-d);
    text-decoration: none;
}

.site-main { display: block; }

/* ============================================================
   Раскладки контента
   ============================================================ */
.layout { padding: 34px 0 60px; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 46px;
    align-items: start;
}
.layout-single .content-area {
    width: 85%;
    margin-inline: auto;
}
.content-area { min-width: 0; }

/* ============================================================
   Хлебные крошки
   ============================================================ */
.breadcrumbs {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 22px;
    font-family: Arial, Helvetica, sans-serif;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ochre-d); }
.breadcrumbs .crumb-sep { margin: 0 6px; color: #b9ad98; }

/* ============================================================
   Заголовки страниц
   ============================================================ */
.page-head { margin-bottom: 28px; }
.page-title { font-size: 34px; margin: 0 0 8px; }
.page-lead, .section-lead { color: var(--muted); font-size: 17px; }
.archive-desc { color: var(--muted); }

/* ============================================================
   Карточки записей
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 0;
}
.card-thumb-wrap {
    display: block;
    overflow: hidden;
}
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img,
.card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.card:hover .card-thumb { transform: scale(1.04); }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
    min-width: 0;
}
.card-meta {
    font-size: 13px;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 8px;
}
.card-title { font-size: 21px; margin: 0 0 10px; line-height: 1.3; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--ochre-d); }
.card-excerpt { color: #4c463d; font-size: 16px; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: var(--ochre-d);
    font-weight: bold;
}

.empty-note { color: var(--muted); }

/* ============================================================
   Одиночная запись / страница
   ============================================================ */
.single-head { margin-bottom: 18px; }
.single-title { font-size: 32px; margin: 0 0 10px; }
.single-meta {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: var(--muted);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.single-cats a {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 10px;
    background: var(--cream);
    border-radius: 20px;
    color: var(--ochre-d);
    font-size: 13px;
}
.single-thumb {
    margin: 0 0 26px;
    border-radius: 8px;
    overflow: hidden;
}
.single-thumb img { width: 100%; display: block; }
.single-content { font-size: 18px; }
.single-content img { border-radius: 6px; height: auto; }
.single-content h2 { font-size: 26px; margin: 1.4em 0 .5em; }
.single-content h3 { font-size: 22px; margin: 1.2em 0 .5em; }
.single-content blockquote {
    margin: 1.4em 0;
    padding: 18px 24px;
    background: var(--paper);
    border-left: 4px solid var(--ochre);
    border-radius: 0 8px 8px 0;
    color: #40392f;
}
.single-content ul, .single-content ol { padding-left: 1.4em; }
.single-tags {
    margin-top: 26px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.single-tags a {
    font-size: 14px;
    color: var(--teal);
    font-family: Arial, Helvetica, sans-serif;
}
.page-links { margin-top: 20px; font-family: Arial, sans-serif; }

/* Таблицы */
.single-content table,
.content-area table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
}
.single-content table th,
.single-content table td,
.content-area table th,
.content-area table td {
    border: 1px solid var(--line);
    padding: 10px 14px;
    text-align: left;
}
.single-content table th,
.content-area table th {
    background: var(--paper);
    font-weight: bold;
}

/* ============================================================
   Сайдбар и виджеты
   ============================================================ */
.sidebar { min-width: 0; }
.widget {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px 22px;
    margin-bottom: 26px;
    box-shadow: var(--shadow);
}
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-size: 18px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ochre);
    color: var(--ink);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ink); }
.widget a:hover { color: var(--ochre-d); }
.widget p { color: #464036; margin: 0 0 .6em; }
.sidebar .widget .post-date { color: var(--muted); font-size: 13px; }

/* ============================================================
   Пагинация (type => plain: .page-numbers)
   ============================================================ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    font-family: Arial, Helvetica, sans-serif;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
}
.pagination a.page-numbers:hover {
    background: var(--cream);
    border-color: var(--ochre);
    text-decoration: none;
}
.pagination .page-numbers.current {
    background: var(--ochre);
    border-color: var(--ochre);
    color: #fff;
}
.pagination .page-numbers.dots {
    border: none;
    background: none;
}

.comment-navigation, .pagination-comments { margin: 24px 0; }

/* ============================================================
   Форма поиска
   ============================================================ */
.search-form {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    max-width: 520px;
}
.search-field {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    background: var(--paper);
}
.search-submit {
    padding: 11px 22px;
    background: var(--ochre);
    color: #fff;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
}
.search-submit:hover { background: var(--ochre-d); }

/* ============================================================
   Комментарии
   ============================================================ */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}
.comments-title { font-size: 24px; margin: 0 0 22px; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 0 28px; padding: 0; }
.comment-inner {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.comment-meta {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 8px;
}
.comment-author { font-weight: bold; }
.comment-date { font-size: 13px; color: var(--muted); font-family: Arial, sans-serif; }
.comment-awaiting { color: var(--ochre-d); font-style: italic; }
.comment-actions { margin-top: 8px; font-size: 14px; font-family: Arial, sans-serif; }
.comment-respond {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px 24px;
}
.comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    margin-top: 4px;
    background: #fff;
}
.comment-form p { margin-bottom: 14px; }
.form-submit .submit {
    padding: 11px 26px;
    background: var(--ochre);
    color: #fff;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
}
.form-submit .submit:hover { background: var(--ochre-d); }
.comments-closed { color: var(--muted); font-style: italic; }

/* ============================================================
   404
   ============================================================ */
.error-404 { text-align: center; padding: 30px 0 50px; }
.error-code {
    font-size: 96px;
    margin: 0;
    color: var(--ochre);
    line-height: 1;
}
.error-title { font-size: 30px; margin: 6px 0 14px; }
.error-text { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }
.error-404 .search-form { margin-inline: auto; }
.error-home { margin-top: 24px; }

/* ============================================================
   Главная — секции
   ============================================================ */
.front { padding-bottom: 60px; }
.front-section { margin-bottom: 66px; }
.section-title {
    font-size: 30px;
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 12px;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 60px; height: 3px;
    background: var(--ochre);
}

/* Hero */
.fs-hero {
    position: relative;
    margin-bottom: 60px;
    background: #e2d6bf;
}
.fs-hero-media { line-height: 0; }
.fs-hero-media img {
    width: 100%;
    height: clamp(320px, 46vw, 560px);
    object-fit: cover;
    display: block;
}
.fs-hero-caption {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    background: rgba(32, 28, 24, 0.82);
    color: #fff;
    padding: 30px 34px;
    border-radius: 10px;
    max-width: 720px;
}
.fs-hero-kicker {
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
    color: var(--gold, #e7b04a);
    margin: 0 0 10px;
}
.fs-hero-title { color: #fff; font-size: 34px; margin: 0 0 10px; }
.fs-hero-sub { color: #e6ddce; margin: 0 0 20px; font-size: 17px; }

.front-body { width: 85%; }

/* Блок текст + иллюстрация */
.fs-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}
.fs-split-text { min-width: 0; }
.fs-split-media { min-width: 0; }
.fs-split-media img {
    width: 100%;
    border-radius: 10px;
    display: block;
    box-shadow: var(--shadow);
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 8px;
}
.gallery-item {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 1 / 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Пошаговый блок */
.steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}
.step-item {
    display: flex;
    gap: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px 26px;
    min-width: 0;
}
.step-num {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ochre);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}
.step-body { min-width: 0; }
.step-title { font-size: 20px; margin: 4px 0 8px; }
.step-body p { margin: 0; color: #4c463d; font-size: 16px; }

/* CTA */
.fs-cta {
    background: var(--teal);
    border-radius: 12px;
    padding: 46px 44px;
    text-align: center;
    color: #fff;
}
.fs-cta-inner { max-width: 640px; margin-inline: auto; }
.fs-cta-title { color: #fff; font-size: 28px; margin: 0 0 12px; }
.fs-cta-text { color: #e4eeea; margin: 0 0 22px; font-size: 17px; }

/* ============================================================
   Подвал (тёмный фон — светлый текст)
   ============================================================ */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 40px;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding: 50px 0 40px;
}
.footer-col { min-width: 0; }
.footer-col .widget {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    color: var(--footer-text);
}
.footer-col .widget-title {
    color: #fff;
    border-bottom-color: var(--ochre);
    font-size: 17px;
}
.footer-col .widget p { color: var(--footer-text); }
.footer-col .widget a { color: var(--footer-text); }
.footer-col .widget a:hover { color: #fff; }
.footer-col .widget li { border-bottom-color: rgba(255, 255, 255, 0.12); }
.footer-col .widget .post-date { color: var(--footer-muted); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}
.copyright {
    margin: 0;
    text-align: center;
    color: var(--footer-muted);
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

/* ============================================================
   Cookie-баннер (A11: [hidden] правило до основного блока)
   ============================================================ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    background: rgba(32, 28, 24, 0.97);
    color: #f2ece0;
    padding: 16px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}
.cookie-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.cookie-text { margin: 0; font-size: 15px; min-width: 0; flex: 1; }
.cookie-accept {
    flex: 0 0 auto;
    padding: 11px 28px;
    background: var(--ochre);
    color: #fff;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
}
.cookie-accept:hover { background: var(--ochre-d); }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fs-split { gap: 32px; }
}

@media (max-width: 600px) {
    body { font-size: 17px; }

    .nav-toggle { display: flex; }
    .primary-nav {
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .primary-nav.is-open { max-height: 500px; }
    .primary-menu { flex-direction: column; gap: 2px; padding-top: 10px; }
    .primary-menu a { padding: 12px 10px; }

    .layout-single .content-area { width: 100%; }
    .front-body { width: 100%; }

    .fs-split { grid-template-columns: minmax(0, 1fr); }
    .fs-split-media { order: -1; }

    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .steps-list { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 26px; text-align: left; }

    .fs-hero-caption {
        position: static;
        transform: none;
        width: 100%;
        border-radius: 0;
        padding: 24px 22px;
    }
    .fs-hero-title { font-size: 26px; }
    .page-title { font-size: 27px; }
    .section-title { font-size: 25px; }

    .fs-cta { padding: 32px 22px; }
    .fs-cta-title { font-size: 23px; }

    .cookie-inner { justify-content: flex-start; }
    .cookie-accept { width: 100%; }
    .search-form { flex-wrap: wrap; }
}
