/*
Theme Name: dds_alajaweed-uae.com
Author: Алина Хафизова
Description: Экспертный портал о недвижимости в гастрономических кварталах, фуд-холлах и кулинарных кластерах. Информационная тема для WordPress.
Version: 1.4
Text Domain: gastrore
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ============================ Токены ============================ */
:root {
    --ink:      #241c15;
    --muted:    #6b5f52;
    --wine:     #7a2f39;
    --terra:    #c1502e;
    --saffron:  #c98a12;
    --cream:    #f7f1e7;
    --cream-2:  #efe6d6;
    --card:     #ffffff;
    --line:     #e5dac8;
    --dark:     #221a14;
    --dark-2:   #2d241c;
    --light:    #f4ead6;
    --shell:    1600px;
    --radius:   12px;
    --shadow:   0 6px 24px rgba(60, 40, 20, 0.08);
}

/* ============================ База ============================ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    max-width: none;
    border: none;
    box-shadow: none;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
    font-size: 18px;
    overflow-x: hidden;
}
body#error-page {
    margin: 0;
    padding: 0;
    max-width: none;
    border: none;
    box-shadow: none;
    background: var(--cream);
}

h1, h2, h3, h4 {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 0.6em;
}
h1 { font-size: 2.15rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

a { color: var(--wine); text-decoration: none; }
a:hover { color: var(--terra); text-decoration: underline; }

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

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

.btn {
    display: inline-block;
    background: var(--wine);
    color: #fff;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    padding: 0.7em 1.5em;
    border-radius: 40px;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}
.btn:hover { background: var(--terra); color: #fff; text-decoration: none; }

/* ============================ Шапка ============================ */
.site-header {
    background: var(--card);
    border-bottom: 3px solid var(--wine);
}
.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.9rem;
    min-width: 0;
    max-width: 62%;
}
.brand-logo,
.brand-svg { flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-title {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--wine);
    line-height: 1.3;
    display: block;
    text-decoration: none;
}
.brand-title:hover { color: var(--terra); text-decoration: none; }
.brand-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 0.25rem;
}

/* ============================ Навигация ============================ */
.nav-toggle {
    display: none;
    background: var(--wine);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 0.55em 0.9em;
    font-size: 0.95rem;
    cursor: pointer;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    display: block;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    padding: 0.5em 0.9em;
    border-radius: 30px;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: var(--cream-2);
    color: var(--wine);
    text-decoration: none;
}

/* ============================ Раскладка ============================ */
.site-main { padding: 2.5rem 0 3rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3%;
    align-items: start;
}
.layout-single .content-area { width: 100%; }
.layout-single { display: block; }

/* ============================ Хлебные крошки ============================ */
.crumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 1.6rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
}
.crumbs a { color: var(--wine); }
.crumbs .sep { margin: 0 0.35em; color: var(--muted); }

/* ============================ Сайдбар ============================ */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}
.sidebar .widget-title {
    color: var(--wine);
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cream-2);
}
.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--terra); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--cream-2);
    font-size: 0.95rem;
}
.sidebar li:last-child { border-bottom: 0; }
.sidebar .post-date { display: block; font-size: 0.78rem; color: var(--muted); }

/* ============================ Карточки записей ============================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.6rem;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 0;
}
.card-thumb-wrap {
    display: block;
    overflow: hidden;
}
.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.04); }
.card-thumb-fallback {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--wine), var(--terra));
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
    min-width: 0;
}
.card-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--wine); text-decoration: none; }
.card-meta {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}
.card-excerpt { font-size: 0.95rem; color: #453b30; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 0.9rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--wine);
}

/* ============================ Одиночная запись / страница ============================ */
.entry {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 2.2rem 2.4rem;
}
.entry-title { margin-bottom: 0.4rem; }
.entry-meta {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}
.entry-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.6rem; }
.entry-thumb img { width: 100%; display: block; }
.entry-content { min-width: 0; }
.entry-content img { border-radius: 8px; display: block; }
.entry-content h2 { margin-top: 1.6rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }

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

/* ============================ Пагинация ============================ */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 2.4rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.7em;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    color: var(--ink);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
}
.pager a.page-numbers:hover { background: var(--cream-2); color: var(--wine); }
.pager .page-numbers.current {
    background: var(--wine);
    color: #fff;
    border-color: var(--wine);
}
.pager .page-numbers.dots {
    border: 0;
    background: none;
}

/* ============================ Главная ============================ */
.front .site-main { padding-top: 0; }
.front-wrap {
    width: min(96%, var(--shell));
    margin-inline: auto;
}
.front-section { padding: 3rem 0; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { position: relative; display: inline-block; }
.section-kicker {
    font-family: "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: var(--terra);
    display: block;
    margin-bottom: 0.4rem;
}

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

/* Блок: сетка направлений */
.dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1.4rem;
}
.dir-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem 1.6rem;
    min-width: 0;
}
.dir-card .ic {
    width: 46px;
    height: 46px;
    color: var(--terra);
    margin-bottom: 0.8rem;
}
.dir-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.dir-card p { margin: 0; font-size: 0.95rem; color: #453b30; }

/* Блок: шаги */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.6rem;
    counter-reset: step;
}
.step {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem 1.6rem 1.5rem;
    position: relative;
    min-width: 0;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wine);
    color: #fff;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step p { margin: 0; font-size: 0.95rem; color: #453b30; }

/* Блок: CTA */
.fs-cta {
    background: linear-gradient(135deg, var(--dark), var(--wine));
    border-radius: 16px;
    padding: 3rem 2.6rem;
    text-align: center;
    color: var(--light);
}
.fs-cta h2 { color: #fff; }
.fs-cta p { color: #efe0d0; max-width: 640px; margin-inline: auto; }
.fs-cta .btn { background: var(--saffron); color: #241a10; margin-top: 0.6rem; font-weight: 700; }
.fs-cta .btn:hover { background: #e0a52a; color: #241a10; }

/* Последние записи на главной */
.latest-wrap { background: var(--cream-2); }

/* ============================ Подвал ============================ */
.site-footer {
    background: var(--dark);
    color: #d9cdbd;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 2.2rem;
}
.site-footer .widget { color: #d9cdbd; min-width: 0; }
.site-footer .widget-title {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}
.site-footer .widget p { color: #cdbfae; font-size: 0.92rem; }
.site-footer .widget a { color: #f0c98a; }
.site-footer .widget a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.92rem;
}
.site-footer .widget li:last-child { border-bottom: 0; }
.footer-bottom {
    text-align: center;
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.85rem;
    color: #b3a795;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* ============================ Поиск ============================ */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 460px;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.65em 1em;
    border: 1px solid var(--line);
    border-radius: 30px;
    font-size: 0.95rem;
    font-family: inherit;
}
.search-form .search-submit {
    background: var(--wine);
    color: #fff;
    border: 0;
    border-radius: 30px;
    padding: 0.65em 1.4em;
    cursor: pointer;
    font-family: "Helvetica Neue", Arial, sans-serif;
}
.search-form .search-submit:hover { background: var(--terra); }

/* ============================ Комментарии ============================ */
.comments-area {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 2rem;
    margin-top: 2rem;
}
.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.3rem; }
.comment-inner {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
}
.comment-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.comment-author { font-weight: 700; font-family: "Helvetica Neue", Arial, sans-serif; }
.comment-date { font-size: 0.8rem; color: var(--muted); }
.comment-await { color: var(--terra); font-size: 0.85rem; }
.comment-respond { margin-top: 1.6rem; }
.comment-form label { display: block; font-size: 0.9rem; margin: 0.6rem 0 0.3rem; font-family: "Helvetica Neue", Arial, sans-serif; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6em 0.8em;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

/* ============================ 404 ============================ */
.notfound { text-align: center; padding: 2rem 0 3rem; }
.notfound .code { font-size: 5rem; color: var(--terra); font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 800; line-height: 1; }
.notfound .search-form { margin: 1.6rem auto; }

/* ============================ Контакты (статично) ============================ */
.contacts-block { margin-top: 1.4rem; }
.contacts-block a { font-weight: 700; }
.social-links { list-style: none; padding: 0; display: flex; gap: 1rem; margin-top: 1rem; }

/* ============================ Cookie-баннер ============================ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    background: var(--dark-2);
    color: #ece2d4;
    padding: 1rem 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; }
.cookie-banner a { color: #f0c98a; }
.cookie-banner .btn { background: var(--saffron); color: #241a10; flex: 0 0 auto; }
.cookie-banner .btn:hover { background: #e0a52a; color: #241a10; }

/* ============================ Адаптив ============================ */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .fs-split { grid-template-columns: 1fr; }
    .fs-split.reverse .fs-split-media { order: 0; }
    .front-wrap { width: 100%; }
    .layout-single .content-area { width: 100%; }
}

@media (max-width: 600px) {
    body { font-size: 17px; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    .nav-toggle { display: inline-block; }
    .brand { max-width: 100%; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { border-radius: 8px; }
    .front-section { padding: 2.2rem 0; }
    .fs-cta { padding: 2rem 1.4rem; }
    .entry { padding: 1.4rem 1.3rem 1.6rem; }
    .cookie-inner { justify-content: center; text-align: center; }
}
