/*
Theme Name: dds_chefservicefrance.com
Author: Галкина Арина
Description: Информационная тема о кейтеринге и организации мероприятий — современная классика, премиальный стиль.
Version: 1.1
Text Domain: dds_chefservicefrance
*/

/* ====== Подключение шрифтов ====== */
@import url("/assets/8f8f468023b40596325f.css");

/* ====== Базовый сброс ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #2c2a28;
    background: #f9f6f0;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #c25a3a;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: #9a4029; }

/* ====== Типографика ====== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: #2c2a28;
    line-height: 1.25;
    margin: 1.5em 0 0.6em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
blockquote {
    margin: 1.5em 0;
    padding: 0.8em 1.4em;
    border-left: 3px solid #c25a3a;
    background: #f1ecdf;
    font-style: italic;
}
code {
    font-family: 'Courier New', monospace;
    background: #efe9dc;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.92em;
}
pre {
    background: #efe9dc;
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
}

/* ====== Таблицы ====== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid #d8cfbf;
}
th, td {
    border: 1px solid #d8cfbf;
    padding: 10px 14px;
    text-align: left;
}
th {
    background: #efe9dc;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}

/* ====== Контейнер ====== */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====== Шапка ====== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #ece5d6;
    padding: 18px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}
.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c2a28;
    line-height: 1.2;
}
.brand-tagline {
    font-size: 0.84rem;
    color: #6b6760;
    margin-top: 2px;
}

/* ====== Главное меню ====== */
.primary-nav {
    display: flex;
    align-items: center;
}
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.primary-nav li a {
    display: inline-block;
    padding: 8px 14px;
    color: #2c2a28;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.18s ease, color 0.18s ease;
}
.primary-nav li.current-menu-item a,
.primary-nav li a:hover {
    background: #efe9dc;
    color: #c25a3a;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #d8cfbf;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

/* ====== Основная область ====== */
.site-main { padding: 36px 0 60px; }

.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}
.layout.has-sidebar {
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 6%;
}
.layout.no-sidebar .content { max-width: 85%; margin: 0 auto; }
.layout.full-width .content { max-width: 100%; }

/* ====== Хлебные крошки ====== */
.breadcrumbs {
    font-size: 0.88rem;
    color: #6b6760;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ece5d6;
}
.breadcrumbs a { color: #6a7a5c; }
.breadcrumbs a:hover { color: #c25a3a; }
.breadcrumbs .sep { margin: 0 8px; color: #b6ad9c; }

/* ====== Карточки записей (горизонтальный «меню-карточный» стиль) ====== */
.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid #ece5d6;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -14px rgba(44, 42, 40, 0.18);
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: #efe9dc;
}
.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.04); }

.card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a7a5c;
    background: #efe9dc;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 26px;
}
.card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    margin: 0 0 8px;
    line-height: 1.3;
}
.card-title a { color: #2c2a28; }
.card-title a:hover { color: #c25a3a; }
.card-meta {
    font-size: 0.85rem;
    color: #6b6760;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-excerpt {
    color: #4a4742;
    margin-bottom: 16px;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-more {
    display: inline-block;
    align-self: flex-start;
    padding: 8px 18px;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #c25a3a;
    color: #c25a3a;
    transition: background 0.2s ease, color 0.2s ease;
}
.card-more:hover {
    background: #c25a3a;
    color: #fff;
}

/* ====== Кнопки ====== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #c25a3a;
    color: #fff;
    border: 1px solid #c25a3a;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover {
    background: #9a4029;
    color: #fff;
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: #c25a3a;
}
.btn-outline:hover {
    background: #c25a3a;
    color: #fff;
}

/* ====== Поля форм ====== */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d8cfbf;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    color: #2c2a28;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #6a7a5c;
    box-shadow: 0 0 0 3px rgba(106, 122, 92, 0.15);
}

/* ====== Главная страница ====== */
.front-section {
    background: #fff;
    border: 1px solid #ece5d6;
    border-radius: 14px;
    padding: 40px 44px;
    margin: 0 0 36px;
}
.front-section.alt { background: #efe9dc; border-color: #e2d9cd; }
.front-section h2 {
    margin-top: 0;
    font-size: 2rem;
    color: #2c2a28;
}
.front-section h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: #c25a3a;
    margin-top: 10px;
    border-radius: 2px;
}

.front-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 22px;
}
.front-grid .item {
    background: #f9f6f0;
    border-radius: 10px;
    padding: 22px;
    border: 1px solid #ece5d6;
}
.front-grid .item h3 {
    margin: 12px 0 8px;
    font-size: 1.2rem;
}
.icon-circle {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #d8cfbf;
    border-radius: 50%;
    color: #6a7a5c;
}

.front-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 20px;
    counter-reset: step;
}
.front-steps .step {
    background: #f9f6f0;
    border: 1px solid #ece5d6;
    border-radius: 10px;
    padding: 22px 20px;
    position: relative;
    counter-increment: step;
}
.front-steps .step::before {
    content: counter(step);
    position: absolute;
    top: -16px;
    left: 18px;
    width: 34px;
    height: 34px;
    background: #c25a3a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 1.05rem;
}
.front-steps .step h3 { margin-top: 8px; font-size: 1.1rem; }

.front-recent {
    background: transparent;
    padding: 0;
    border: none;
}
.front-recent h2 { padding: 0 0 0 4px; }

/* ====== Сайдбар ====== */
.sidebar { font-size: 0.96rem; }
.widget {
    background: #fff;
    border: 1px solid #ece5d6;
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 22px;
}
.widget-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ece5d6;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget li {
    padding: 7px 0;
    border-bottom: 1px solid #f3eeda;
}
.widget li:last-child { border-bottom: none; }
.widget a { color: #2c2a28; }
.widget a:hover { color: #c25a3a; }

/* ====== Подвал ====== */
.site-footer {
    background: #2c2a28;
    color: #d6cfc1;
    padding: 50px 0 0;
    margin-top: 60px;
}
.site-footer a { color: #e2d9cd; }
.site-footer a:hover { color: #c25a3a; }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 30px;
}
.footer-col .widget {
    background: transparent;
    border: none;
    padding: 0;
    color: #d6cfc1;
}
.footer-col .widget-title {
    color: #f9f6f0;
    border-bottom-color: #4a4742;
}
.footer-col li { border-bottom-color: #3a3835; }

.tip-of-the-day {
    background: #3a3835;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 30px 0;
    border-left: 3px solid #c25a3a;
}
.tip-of-the-day .tip-label {
    font-family: 'Playfair Display', Georgia, serif;
    color: #e2d9cd;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.site-copyright {
    border-top: 1px solid #4a4742;
    padding: 18px 0;
    text-align: center;
    font-size: 0.88rem;
    color: #b8b0a3;
}

/* ====== Запись и страница ====== */
.entry-header { margin-bottom: 24px; }
.entry-title { margin: 0 0 10px; }
.entry-meta {
    color: #6b6760;
    font-size: 0.9rem;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.entry-thumb {
    margin: 0 0 26px;
    border-radius: 12px;
    overflow: hidden;
}
.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.entry-content > *:first-child { margin-top: 0; }

/* ====== Пагинация ====== */
.pagination {
    margin: 36px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d8cfbf;
    border-radius: 8px;
    color: #2c2a28;
    background: #fff;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.pagination a:hover {
    background: #efe9dc;
    border-color: #c25a3a;
    color: #c25a3a;
}
.pagination .current {
    background: #c25a3a;
    border-color: #c25a3a;
    color: #fff;
}

/* ====== Комментарии ====== */
.comments-area { margin-top: 50px; }
.comments-title {
    font-size: 1.5rem;
    margin: 0 0 22px;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
}
.comment-list li {
    background: #fff;
    border: 1px solid #ece5d6;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 14px;
}
.comment-list .children {
    list-style: none;
    padding-left: 24px;
    margin-top: 12px;
}
.comment-author {
    font-weight: 600;
    margin-bottom: 4px;
}
.comment-meta {
    font-size: 0.85rem;
    color: #6b6760;
    margin-bottom: 10px;
}
.comment-form-comment textarea { min-height: 130px; }
.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}
.comment-form > p { margin-bottom: 14px; }

/* ====== Поиск ====== */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 520px;
}
.search-form input[type="search"] { flex: 1; }

/* ====== 404 ====== */
.error-404 {
    text-align: center;
    padding: 50px 20px;
}
.error-404 .big {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 6rem;
    line-height: 1;
    color: #c25a3a;
    margin: 0;
}

/* ====== Cookie-баннер ====== */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: #2c2a28;
    color: #f9f6f0;
    border-radius: 10px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.3);
}
.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 240px;
    font-size: 0.95rem;
    background: none;
}
.cookie-banner button {
    padding: 10px 22px;
    background: #c25a3a;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
}
.cookie-banner button:hover { background: #9a4029; }

/* ====== Адаптив ====== */
@media (max-width: 960px) {
    .layout.has-sidebar {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .front-grid { grid-template-columns: 1fr 1fr; }
    .front-steps { grid-template-columns: 1fr 1fr; }

    .menu-toggle { display: inline-flex; }
    .primary-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 4px;
        margin-top: 14px;
        background: #fff;
        border: 1px solid #ece5d6;
        border-radius: 8px;
        padding: 10px;
    }
    .primary-nav.is-open ul { display: flex; }
    .primary-nav { width: 100%; flex-wrap: wrap; }
    .header-inner { gap: 14px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.55rem; }

    .wrap { padding: 0 16px; }
    .front-section { padding: 28px 22px; }
    .front-grid { grid-template-columns: 1fr; }
    .front-steps { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }

    .layout.no-sidebar .content { max-width: 100%; }

    .card { flex-direction: column; }
    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .card-body { padding: 18px 20px; }

    .btn { padding: 14px 22px; min-height: 48px; }
    .menu-toggle { min-height: 48px; }

    .cookie-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 14px 16px;
    }
}
