/*
Theme Name: lechateaudegendersberg.com
Theme URI: https://lechateaudegendersberg.com/
Author: Воробьева Елена
Author URI: https://lechateaudegendersberg.com/
Description: Тема для информационного сайта о выборе отелей: практические советы, анализ отзывов и рекомендации.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lcdg
*/

/* ===== Imports ===== */
@import url("/assets/4112323c27f32062abda.css");

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: #2A2F36;
    background-color: #F8F9FA;
    background-image:
        radial-gradient(circle at 25% 30%, rgba(30,58,95,0.025) 1px, transparent 1px),
        radial-gradient(circle at 75% 70%, rgba(199,110,74,0.02) 1px, transparent 1px);
    background-size: 24px 24px, 32px 32px;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #1E3A5F;
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: #C76E4A;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', Georgia, serif;
    color: #1E3A5F;
    line-height: 1.25;
    margin: 1.4em 0 0.6em;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.12rem; }

p {
    margin: 0 0 1em;
}

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

blockquote {
    margin: 1.5em 0;
    padding: 1.1em 1.4em;
    background: #F5EDE2;
    border-left: 4px solid #C76E4A;
    border-radius: 6px;
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    color: #3A3A3A;
}

blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 0.92em;
    background: #ECEEF1;
    border-radius: 4px;
}
code { padding: 0.15em 0.4em; }
pre {
    padding: 1em;
    overflow-x: auto;
    margin: 1em 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid #D8DCE2;
    background: #FFFFFF;
}
th, td {
    border: 1px solid #D8DCE2;
    padding: 0.65em 0.85em;
    text-align: left;
}
th {
    background: #F5EDE2;
    color: #1E3A5F;
    font-weight: 600;
}

hr {
    border: 0;
    border-top: 1px solid #DCE0E5;
    margin: 2em 0;
}

/* ===== Layout ===== */
.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    padding: 32px 0 56px;
}

.layout-cols {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 6%;
    align-items: start;
}

.layout-cols.no-sidebar .content-area,
.layout-wide .content-area {
    grid-column: 1 / -1;
    width: 85%;
    margin: 0 auto;
}

.layout-wide {
    display: block;
}

.layout-wide .content-area {
    width: 85%;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .layout-cols { grid-template-columns: 1fr; gap: 36px; }
    .layout-cols.no-sidebar .content-area,
    .layout-wide .content-area { width: 100%; }
}

/* ===== Header ===== */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E5EA;
    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;
}

.brand:hover { text-decoration: none; }

.brand-logo,
.brand-logo-fallback {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: block;
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    font-size: 1.18rem;
    color: #1E3A5F;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.82rem;
    color: #6B7280;
    margin-top: 2px;
    max-width: 380px;
}

/* ===== Primary Navigation ===== */
.primary-nav {
    display: flex;
    align-items: center;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.primary-nav li { margin: 0; }

.primary-nav a {
    display: block;
    padding: 8px 14px;
    color: #1E3A5F;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.primary-nav a:hover {
    background: #F5EDE2;
    color: #C76E4A;
    text-decoration: none;
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    background: #1E3A5F;
    color: #FFFFFF;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #1E3A5F;
    color: #1E3A5F;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle { display: inline-block; }
    .primary-nav { width: 100%; display: none; }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; gap: 2px; width: 100%; }
    .primary-nav a { padding: 10px 14px; }
}

/* ===== Breadcrumbs ===== */
.crumbs {
    padding: 14px 0 0;
    font-size: 0.92rem;
    color: #6B7280;
}
.crumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.crumbs li {
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.crumbs li + li::before {
    content: '›';
    margin-right: 6px;
    color: #C76E4A;
}
.crumbs a { color: #1E3A5F; }
.crumbs li[aria-current="page"] { color: #2A2F36; }

/* ===== Buttons ===== */
.btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
    display: inline-block;
    padding: 12px 24px;
    background: #C76E4A;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(199,110,74,0.25);
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    text-decoration: none;
    line-height: 1.3;
}

.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: #A15336;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 10px rgba(161,83,54,0.3);
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #1E3A5F;
    border: 2px solid #1E3A5F;
    box-shadow: none;
    padding: 10px 22px;
}
.btn-secondary:hover {
    background: #1E3A5F;
    color: #FFFFFF;
    box-shadow: none;
}

/* ===== Cards (post listings) ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin: 28px 0;
}

.card {
    display: flex;
    flex-direction: column;
    background: #F5EDE2;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(30,58,95,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(30,58,95,0.12);
}

.card-thumb {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    display: block;
    background: #E4D7C5;
}

.card > a {
    display: block;
    line-height: 0;
}

.card-thumb-placeholder {
    aspect-ratio: 16 / 9;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E3A5F 0%, #2C5179 100%);
    color: #F5EDE2;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 24px;
}

.card-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.18rem;
    margin: 0 0 10px;
    color: #1E3A5F;
    line-height: 1.3;
}
.card-title a { color: inherit; }
.card-title a:hover { color: #C76E4A; text-decoration: none; }

.card-meta {
    font-size: 0.82rem;
    color: #6B7280;
    margin-bottom: 12px;
}

.card-excerpt {
    color: #3A3F46;
    margin-bottom: 16px;
    font-size: 0.96rem;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-excerpt p:last-child { margin-bottom: 0; }

.card-footer { margin-top: auto; }

.card-readmore {
    display: inline-block;
    color: #C76E4A;
    font-weight: 600;
    font-size: 0.95rem;
}
.card-readmore:hover { color: #A15336; text-decoration: none; }
.card-readmore::after {
    content: ' →';
    transition: margin-left 0.18s ease;
    display: inline-block;
}
.card-readmore:hover::after { margin-left: 4px; }

/* ===== Front page sections ===== */
.front-section {
    margin: 56px 0;
    padding: 36px;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E8EBF0;
}

.front-section.cream {
    background: #F5EDE2;
    border-color: #E4D7C5;
}

.front-section.dark {
    background: linear-gradient(135deg, #1E3A5F 0%, #2C5179 100%);
    color: #F0E6D6;
    border: none;
}
.front-section.dark h1,
.front-section.dark h2,
.front-section.dark h3 { color: #F5EDE2; }
.front-section.dark a { color: #F5EDE2; border-bottom: 1px solid rgba(245,237,226,0.4); }
.front-section.dark a:hover { color: #FFE4CC; border-bottom-color: #FFE4CC; }

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: #C76E4A;
    font-weight: 600;
    margin-bottom: 8px;
}

.front-section h2 { margin-top: 0; }

.front-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 22px;
}

.front-tile {
    padding: 18px;
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
}
.front-section.cream .front-tile { background: #FFFFFF; }
.front-section.dark .front-tile { background: rgba(255,255,255,0.08); }

.front-tile h3 { margin-top: 0; font-size: 1.08rem; }

.front-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}
.front-steps li {
    counter-increment: step;
    padding: 18px 18px 18px 56px;
    position: relative;
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    margin: 0;
}
.front-section.cream .front-steps li { background: #FFFFFF; }
.front-steps li::before {
    content: counter(step);
    position: absolute;
    left: 14px;
    top: 16px;
    width: 32px;
    height: 32px;
    background: #C76E4A;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: 'Lora', Georgia, serif;
}

/* ===== Single post / page ===== */
.entry {
    background: #FFFFFF;
    padding: 36px;
    border-radius: 14px;
    border: 1px solid #E8EBF0;
}

.entry-header { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid #ECEFF3; }

.entry-title {
    margin-top: 0;
    font-size: 2rem;
    line-height: 1.2;
}

.entry-meta {
    color: #6B7280;
    font-size: 0.9rem;
    margin-top: 6px;
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: 8px; }

.entry-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #ECEFF3;
    font-size: 0.92rem;
    color: #6B7280;
}

.entry-footer .tags a,
.entry-footer .cats a {
    display: inline-block;
    padding: 3px 10px;
    margin-right: 4px;
    background: #F5EDE2;
    border-radius: 14px;
    font-size: 0.86rem;
    color: #1E3A5F;
}
.entry-footer .tags a:hover,
.entry-footer .cats a:hover { background: #1E3A5F; color: #FFFFFF; text-decoration: none; }

/* ===== Sidebar / Widgets ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.widget {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 22px 24px;
    border: 1px solid #E8EBF0;
}

.widget-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.1rem;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #C76E4A;
    color: #1E3A5F;
    display: inline-block;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #F0EDE6;
    margin: 0;
}
.widget ul li:last-child { border-bottom: none; }

.widget a { color: #1E3A5F; }
.widget a:hover { color: #C76E4A; }

/* Search widget */
.search-form {
    display: flex;
    gap: 8px;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #D8DCE2;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: #1E3A5F;
}
.search-form input[type="submit"] { padding: 10px 18px; }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 36px 0 12px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 12px;
    background: #FFFFFF;
    border: 1px solid #D8DCE2;
    border-radius: 8px;
    color: #1E3A5F;
    font-weight: 500;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pagination a:hover {
    background: #F5EDE2;
    border-color: #C76E4A;
    color: #C76E4A;
    text-decoration: none;
}

.pagination .current {
    background: #1E3A5F;
    border-color: #1E3A5F;
    color: #FFFFFF;
}

/* ===== Comments ===== */
.comments-area {
    margin-top: 36px;
    background: #FFFFFF;
    padding: 28px;
    border-radius: 14px;
    border: 1px solid #E8EBF0;
}

.comments-title {
    margin-top: 0;
    border-bottom: 2px solid #C76E4A;
    padding-bottom: 10px;
    display: inline-block;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.comment-list li.comment,
.comment-list li.pingback {
    margin: 0 0 18px;
    padding: 16px 18px;
    background: #F5EDE2;
    border-radius: 10px;
    list-style: none;
}

.comment-list .children {
    list-style: none;
    margin: 14px 0 0 24px;
    padding: 0;
}

.comment-author {
    font-weight: 600;
    color: #1E3A5F;
    margin-bottom: 4px;
}
.comment-author img.avatar {
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.comment-meta {
    font-size: 0.84rem;
    color: #6B7280;
    margin-bottom: 8px;
}

.comment-content p:last-child { margin-bottom: 0; }
.comment-reply-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.88rem;
    color: #C76E4A;
}

.comment-form label { display: block; margin-bottom: 4px; font-weight: 500; color: #1E3A5F; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D8DCE2;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.96rem;
    margin-bottom: 14px;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #1E3A5F;
}

/* ===== Footer ===== */
.site-footer {
    background: #1E3A5F;
    color: #DCE0E8;
    padding: 48px 0 22px;
    margin-top: 56px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col .widget {
    background: transparent;
    border: none;
    padding: 0;
    color: #DCE0E8;
}

.footer-col .widget-title {
    color: #F5EDE2;
    border-bottom-color: #C76E4A;
    margin-bottom: 14px;
}

.footer-col a { color: #DCE0E8; }
.footer-col a:hover { color: #FFD9BF; }

.footer-col ul li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-info {
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.88rem;
    color: #B8C0CC;
}

/* ===== Cookie banner ===== */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    background: #1E3A5F;
    color: #F5EDE2;
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    max-width: 720px;
    margin: 0 auto;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 220px;
    font-size: 0.94rem;
    background: none;
}

.cookie-banner button {
    flex-shrink: 0;
    padding: 10px 22px;
}

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    background: #FFFFFF;
    padding: 56px 32px;
    border-radius: 16px;
    border: 1px solid #E8EBF0;
}
.error-404 h1 {
    font-size: 4rem;
    margin: 0 0 12px;
    color: #C76E4A;
}
.error-404 .search-form { max-width: 420px; margin: 22px auto 18px; }

/* ===== Page header (for archives & search) ===== */
.page-header {
    background: #FFFFFF;
    padding: 24px 28px;
    border-radius: 12px;
    margin-bottom: 22px;
    border: 1px solid #E8EBF0;
}
.page-header h1 { margin: 0; }
.archive-description { color: #6B7280; margin-top: 6px; }

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

.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.86rem; color: #6B7280; text-align: center; margin-top: 4px; }

/* ===== Responsive tweaks ===== */
@media (max-width: 600px) {
    body { font-size: 16px; }
    h1, .entry-title { font-size: 1.55rem; }
    h2 { font-size: 1.32rem; }

    .wrap { padding: 0 16px; }
    .site-main { padding: 22px 0 36px; }

    .header-inner { gap: 14px; }
    .brand-name { font-size: 1.04rem; }
    .brand-tagline { font-size: 0.78rem; }

    .front-section { padding: 22px 18px; margin: 36px 0; }
    .entry { padding: 22px 18px; }

    .cards-grid { grid-template-columns: 1fr; gap: 20px; }

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