/*
Theme Name: dds_topmovielocations.com
Author: Анна Ковалёва
Description: Информационный портал о строительстве, ремонте и интерьерном дизайне с архивной рубрикой об архитектуре и интерьерах в кино.
Version: 1.1
Text Domain: tml
*/

/* ===== Tokens ===== */
:root {
    --ink: #20242a;
    --ink-soft: #3a4049;
    --paper: #f6f2ec;
    --paper-2: #efe8df;
    --card: #ffffff;
    --line: #ddd4c7;
    --accent: #b5613a;
    --accent-dark: #8f4a2c;
    --accent-soft: #e4c9b6;
    --muted: #6c6258;
    --footer-bg: #20242a;
    --footer-text: #d7cfc3;
    --footer-title: #f3ede4;
    --footer-link: #e0b79f;
    --max: 1180px;
    --radius: 10px;
}

/* ===== Reset / base ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ===== Header ===== */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}
.brand-logo { display: block; width: auto; height: 52px; }
.brand-text { min-width: 0; }
.brand-name {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    display: block;
    line-height: 1.2;
    max-width: 30ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand-desc {
    font-size: 0.82rem;
    color: var(--muted);
    display: block;
    max-width: 46ch;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    color: var(--ink-soft);
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); text-decoration: none; }
.main-nav .current-menu-item > a { color: var(--accent-dark); border-bottom-color: var(--accent); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.45rem 0.6rem;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--ink);
}

/* ===== Layout ===== */
.site-main { padding: 2.2rem 0 3rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 67% 27%;
    justify-content: space-between;
    gap: 3%;
    align-items: start;
}
.layout-single { display: block; }
.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.content-area { min-width: 0; }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
}
.breadcrumbs a { color: var(--accent-dark); }
.breadcrumbs .sep { color: var(--line); margin: 0 0.15rem; }

/* ===== Cards ===== */
.card-list {
    display: grid;
    gap: 1.6rem;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 10px 26px rgba(32, 36, 42, 0.12); transform: translateY(-2px); }

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

.card-body {
    flex: 1;
    padding: 1.3rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
}
.card-title { font-size: 1.3rem; margin-bottom: 0.4rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent-dark); text-decoration: none; }
.card-meta {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}
.card-excerpt { color: var(--ink-soft); margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
    color: var(--accent-dark);
    border-bottom: 1px solid var(--accent-soft);
}
.card-more:hover { text-decoration: none; border-bottom-color: var(--accent); }

/* ===== Single / page content ===== */
.entry-header { margin-bottom: 1.4rem; }
.entry-title { font-size: 2.1rem; }
.entry-meta {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.85rem;
    color: var(--muted);
}
.entry-thumb {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 1.6rem;
}
.entry-content { font-size: 1.05rem; }
.entry-content img { border-radius: 8px; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content blockquote {
    border-left: 4px solid var(--accent);
    margin: 1.4em 0;
    padding: 0.4em 1.2em;
    color: var(--ink-soft);
    background: var(--paper-2);
    border-radius: 0 8px 8px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--line);
}
th, td {
    border: 1px solid var(--line);
    padding: 0.6rem 0.8rem;
    text-align: left;
}
th { background: var(--paper-2); }

/* ===== Sidebar / widgets ===== */
.sidebar { min-width: 0; }
.widget {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}
.sidebar .widget-title {
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-soft);
}
.sidebar .widget a { color: var(--accent-dark); }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--line);
    color: var(--ink-soft);
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget .post-date { display: block; font-size: 0.78rem; color: var(--muted); }

/* ===== Front page sections ===== */
.home-section { padding: 2.6rem 0; }
.home-section + .home-section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 1.6rem; }
.section-kicker {
    font-family: "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-dark);
    display: block;
    margin-bottom: 0.4rem;
}
.section-title { font-size: 1.9rem; }

/* Hero / text + illustration */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
    align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { display: block; width: 100%; border-radius: var(--radius); }
.split-text p { font-size: 1.08rem; color: var(--ink-soft); }
.btn {
    display: inline-block;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    background: var(--accent);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    margin-top: 0.6rem;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}
.feature {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.3rem;
    min-width: 0;
}
.feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0.8rem;
    color: var(--accent);
}
.feature h3 { font-size: 1.15rem; }
.feature p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.gallery-grid figure { margin: 0; }
.gallery-item {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}
.gallery-cap {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

/* CTA */
.cta {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 2.6rem 2rem;
    text-align: center;
}
.cta h2 { color: #fff; font-size: 1.8rem; }
.cta p { color: var(--footer-text); max-width: 60ch; margin: 0 auto 1.2rem; }

/* Latest posts on home */
.home-latest .card-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 2.4rem;
    justify-content: center;
    font-family: "Helvetica Neue", Arial, sans-serif;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink-soft);
    background: var(--card);
    font-size: 0.9rem;
}
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }
.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pagination .page-numbers.dots { border: none; background: none; }

/* ===== Comments ===== */
.comments-area { margin-top: 2.6rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 0 1.6rem; padding: 0; }
.comment-item { margin-bottom: 1.2rem; }
.comment-body {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
}
.comment-meta { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.5rem; }
.comment-author { font-weight: 700; color: var(--ink); margin-right: 0.6rem; }
.comment-form label { display: block; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 0.85rem; margin-bottom: 0.3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-family: inherit;
    margin-bottom: 1rem;
    background: #fff;
}
.comment-form .submit, .search-submit, .btn-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.65rem 1.3rem;
    border-radius: 8px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    cursor: pointer;
}
.comment-form .submit:hover, .search-submit:hover { background: var(--accent-dark); }

/* ===== Search form ===== */
.search-form {
    display: flex;
    gap: 0.5rem;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-family: inherit;
    background: #fff;
}

/* ===== 404 ===== */
.error-404 { text-align: center; padding: 2rem 0 3rem; }
.error-404 .big { font-size: 4rem; color: var(--accent); font-family: "Helvetica Neue", Arial, sans-serif; }
.error-404 .search-form { max-width: 420px; margin: 1.4rem auto 0; }

/* ===== Footer ===== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 2.8rem 0 1.4rem;
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.site-footer .widget {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--footer-text);
}
.site-footer .widget-title { color: var(--footer-title); font-size: 1.05rem; margin-bottom: 0.8rem; }
.site-footer .widget p { color: var(--footer-text); }
.site-footer .widget a { color: var(--footer-link); }
.site-footer .widget a:hover { color: #fff; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li { padding: 0.3rem 0; }
.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2rem;
    padding-top: 1.2rem;
    font-size: 0.82rem;
    color: var(--footer-text);
    text-align: center;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* ===== Cookie banner ===== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--ink);
    color: var(--paper);
    padding: 1rem 1.3rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
}
.cookie-banner p { margin: 0; max-width: 70ch; }
.cookie-banner a { color: var(--footer-link); }
.cookie-accept {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.55rem 1.3rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.cookie-accept:hover { background: var(--accent-dark); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 2rem; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-latest .card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .entry-title { font-size: 1.7rem; }
}

@media (max-width: 600px) {
    .nav-toggle { display: inline-block; }
    .main-nav {
        flex-basis: 100%;
        width: 100%;
    }
    .main-nav ul {
        display: none;
        flex-direction: column;
        gap: 0.2rem;
        width: 100%;
        margin-top: 0.6rem;
    }
    .main-nav.is-open ul { display: flex; }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .split { grid-template-columns: 1fr; gap: 1.4rem; }
    .split.reverse .split-media { order: 0; }
    .feature-grid { grid-template-columns: 1fr; }
    .home-latest .card-list { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: 1fr; gap: 1.6rem; }
    .layout-single .content-area { width: 100%; }
    .brand-name { white-space: normal; }
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}
