/*
Theme Name: Sherwood Cafe
Theme URI: https://example.com/
Author: ChatGPT
Description: WordPress тема для кафе «Шервуд»: главная страница, меню, банкеты, галерея, контакты и настройки через админку.
Version: 1.8.8
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: sherwood
*/

:root {
  --green: #1f3a26;
  --green-2: #2f5a3b;
  --brown: #8b5e34;
  --sand: #f3ead9;
  --cream: #fff9ef;
  --charcoal: #171717;
  --muted: #706a61;
  --line: rgba(23, 23, 23, 0.12);
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(0,0,0,0.18);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 239, 0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(31,58,38,0.12);
}
.nav {
  min-height: 78px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.logo-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--green); color: var(--sand); font-family: Georgia, serif;
}
.logo-text { font-size: 18px; }
.nav-menu { display: flex; align-items: center; gap: 26px; color: #3d3a35; font-size: 15px; }
.nav-menu a:hover { color: var(--green-2); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(31,58,38,0.08); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--green); margin: 5px auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--brown); color: white; font-weight: 800; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(139,94,52,0.24); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.45); color: white; }
.btn-outline.dark { border-color: rgba(31,58,38,0.25); color: var(--green); }

.section { padding: 92px 0; }
.section-dark {
  color: var(--cream);
  background:
    radial-gradient(circle at top left, rgba(139,94,52,0.35), transparent 36%),
    linear-gradient(135deg, #122016, #1f3a26 56%, #152119);
}
.muted { background: var(--sand); }
.hero { min-height: 760px; display: flex; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); align-items: center; gap: 50px; }
.eyebrow { margin: 0 0 16px; color: var(--brown); text-transform: uppercase; letter-spacing: 0.17em; font-size: 12px; font-weight: 900; }
.section-dark .eyebrow { color: #d7b178; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1 { max-width: 760px; font-size: clamp(44px, 7vw, 82px); letter-spacing: -0.055em; }
h2 { font-size: clamp(34px, 4.5vw, 58px); letter-spacing: -0.04em; }
h3 { font-size: 22px; }
.hero-text { max-width: 670px; margin: 26px 0 34px; color: rgba(255,249,239,0.82); font-size: 20px; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 46px; }
.hero-badges div { padding: 22px; border: 1px solid rgba(255,255,255,0.16); border-radius: 20px; background: rgba(255,255,255,0.08); }
.hero-badges strong { display: block; font-size: 28px; color: #fff; }
.hero-badges span { display: block; color: rgba(255,249,239,0.74); font-size: 14px; }
.hero-card {
  min-height: 520px; padding: 20px; border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.46)),
    radial-gradient(circle at 30% 20%, #d6a763 0, transparent 25%),
    linear-gradient(135deg, #2d1a0d, #72451f 45%, #182419);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-card.has-image { background-size: cover; background-position: center; }
.hero-card:before { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(255,255,255,0.18); border-radius: 32px; pointer-events: none; }
.hero-card-inner { height: 100%; display: flex; flex-direction: column; justify-content: end; padding: 42px; position: relative; z-index: 1; }
.fire { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.16); font-size: 38px; margin-bottom: 22px; }
.hero-card p { color: rgba(255,249,239,0.78); }
.hero-card a { margin-top: 18px; color: #f3c981; font-weight: 900; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr); gap: 56px; align-items: start; }
.split p { font-size: 18px; color: var(--muted); }
.feature-list { display: grid; gap: 16px; }
.feature-list article, .page-card { padding: 28px; border-radius: var(--radius); background: white; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(23,23,23,0.05); }
.feature-list span { color: var(--brown); font-weight: 900; }
.feature-list p, .menu-card p, .section-head p { color: var(--muted); }

.section-head { max-width: 760px; margin-bottom: 34px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.menu-card { overflow: hidden; border-radius: var(--radius); background: white; border: 1px solid rgba(31,58,38,0.1); box-shadow: 0 14px 36px rgba(23,23,23,0.06); }
.menu-card h3, .menu-card p, .menu-card .price { padding: 0 24px; }
.menu-card h3 { margin-top: 22px; }
.menu-card p { margin-bottom: 16px; }
.menu-card .price { display: block; margin-bottom: 26px; color: var(--brown); font-size: 20px; font-weight: 900; }
.menu-image { height: 220px; background: radial-gradient(circle at 25% 20%, rgba(255,255,255,0.3), transparent 26%), linear-gradient(135deg, #573016, #9a6335); }
.menu-image img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.8); font-weight: 900; background: linear-gradient(135deg, #3a1711, #9c3f28); }

.banquet-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 32px; color: rgba(255,249,239,0.86); }
.check-list li:before { content: "✓"; position: absolute; left: 0; color: #d7b178; font-weight: 900; }
.booking-card { padding: 30px; border-radius: var(--radius); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); box-shadow: var(--shadow); }
.booking-card label { display: grid; gap: 8px; margin-top: 16px; color: rgba(255,249,239,0.82); font-weight: 800; }
input, textarea { width: 100%; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.12); color: white; border-radius: 16px; padding: 15px 16px; outline: 0; font: inherit; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.48); }
.booking-card .btn { width: 100%; margin-top: 18px; }
.form-note { color: rgba(255,249,239,0.62); font-size: 13px; margin-bottom: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; }
.gallery-item { position: relative; display: flex; align-items: end; padding: 22px; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, #1f3a26, #8b5e34); min-height: 210px; }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-item:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.48)); }
.gallery-item span { position: relative; z-index: 1; color: white; font-size: 22px; font-weight: 900; }
.gallery-item:nth-child(1), .gallery-item:nth-child(4) { grid-column: span 2; }

.reviews { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: center; }
.review-card { padding: 34px; border-radius: var(--radius); background: var(--green); color: white; }
.review-card strong { display: block; font-size: 34px; margin-bottom: 10px; }
.review-card p { color: rgba(255,249,239,0.78); }

.contacts-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr); gap: 44px; align-items: stretch; }
.map-placeholder { min-height: 340px; border-radius: var(--radius); background: linear-gradient(45deg, rgba(31,58,38,0.16) 25%, transparent 25%), linear-gradient(-45deg, rgba(31,58,38,0.16) 25%, transparent 25%), var(--sand); background-size: 38px 38px; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); }
.map-placeholder span { display: block; color: var(--green); font-size: 26px; font-weight: 900; }
.map-frame iframe { width: 100%; min-height: 340px; border: 0; border-radius: var(--radius); }

.footer { padding: 34px 0; background: #111; color: rgba(255,255,255,0.76); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer strong { color: #fff; }
.page-wrap { padding: 80px 0; min-height: 60vh; }
.page-card { max-width: 900px; margin: 0 auto; }
.page-card h1 { color: var(--green); font-size: clamp(36px, 5vw, 64px); }
.wp-block-image img { border-radius: var(--radius); }

@media (max-width: 980px) {
  .nav-menu, .nav .btn-small { display: none; }
  .nav-menu.open { position: absolute; left: 20px; right: 20px; top: 82px; display: grid; padding: 18px; border-radius: 18px; background: var(--cream); box-shadow: var(--shadow); }
  .nav-toggle { display: block; }
  .hero { min-height: auto; padding: 70px 0; }
  .hero-grid, .split, .banquet-grid, .reviews, .contacts-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(4) { grid-column: span 1; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 26px, 1180px); }
  .section { padding: 66px 0; }
  .hero-badges { grid-template-columns: 1fr; }
  .hero-card { min-height: 420px; }
  .hero-card-inner { padding: 28px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { display: grid; }
}


/* Sherwood v1.3 editable fields */
.legal-lines {
  margin-top: 18px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.legal-lines a {
  color: rgba(255,255,255,0.86);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.booking-shortcode {
  margin-top: 18px;
}
.booking-shortcode input,
.booking-shortcode textarea {
  background: rgba(255,255,255,0.12);
  color: white;
}
.social-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-links a {
  font-weight: 800;
  color: var(--green);
  border-bottom: 1px solid rgba(31,58,38,0.25);
}
.footer-logo-line {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* VK button in contacts */
.social-links {
  margin-top: 0;
}
.social-links a.vk-button,
.vk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(31,58,38,0.25);
  background: rgba(31,58,38,0.08);
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.social-links a.vk-button:hover,
.vk-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(31,58,38,0.16);
  background: rgba(31,58,38,0.14);
}


/* Booking action buttons */
.booking-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.booking-actions .btn {
  width: 100%;
  margin-top: 0;
}


/* Header delivery button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-delivery {
  background: var(--green);
  color: white;
}
.btn-delivery:hover {
  box-shadow: 0 14px 30px rgba(31,58,38,0.24);
}
@media (max-width: 980px) {
  .header-actions {
    display: none;
  }
}

/* v1.8.7 — корректная кнопка доставки на главной и в мобильном выпадающем меню */

/* Кнопка доставки в hero-блоке */
.hero-actions .btn-delivery-hero {
  background: var(--green);
  border-color: rgba(255,255,255,.32);
  color: #fff !important;
}

.hero-actions .btn-delivery-hero:hover {
  background: var(--brown);
}

/* Ссылка доставки внутри выпадающего мобильного меню.
   На ПК скрыта, чтобы не дублировать верхние кнопки. */
.nav-menu .mobile-menu-delivery-link,
.mobile-menu-delivery-link {
  display: none;
}

@media (max-width: 980px) {
  .nav-menu.open {
    z-index: 10000;
  }

  .nav-menu.open .mobile-menu-delivery-link,
  .nav-menu.open > .mobile-menu-delivery-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 8px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--brown);
    color: #fff !important;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(139,94,52,.18);
  }
}

@media (max-width: 620px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
  }

  .hero-actions .btn-delivery-hero {
    grid-column: 1 / -1;
    background: var(--brown);
    border-color: transparent;
    color: #fff !important;
  }
}


/* Legal footer links: same size and color as company details */
.site-footer .footer-legal a,
.site-footer a[href*="privacy-policy"],
.site-footer a[href*="personal-data-consent"],
.footer-legal a,
footer a[href*="privacy-policy"],
footer a[href*="personal-data-consent"] {
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  line-height: inherit !important;
}

.site-footer .footer-legal a:hover,
.site-footer a[href*="privacy-policy"]:hover,
.site-footer a[href*="personal-data-consent"]:hover,
.footer-legal a:hover,
footer a[href*="privacy-policy"]:hover,
footer a[href*="personal-data-consent"]:hover {
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}


/* Footer legal links exact muted style */
.footer .legal-lines a,
.footer .legal-lines a:visited {
  color: rgba(255,255,255,.58) !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.footer .legal-lines a:hover {
  color: rgba(255,255,255,.78) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}


/* v20: new Sherwood logo in header */
.logo-mark-image {
  width: 48px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  background: #f6e0be !important;
  border: 1px solid rgba(31,58,38,.18);
  box-shadow: 0 5px 16px rgba(31,58,38,.10);
}

.logo-mark-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
