/*
Theme Name: ZDO26 Kindergarten
Theme URI: https://zdo26.uz.ua/
Author: ZDO26
Description: Адаптивна тема закладу дошкільної освіти, створена за мотивами попереднього сайту ЗДО №26.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: zdo26-kindergarten
*/

:root {
  --green: #6aa526;
  --green-dark: #3f7614;
  --green-pale: #e5f1cb;
  --orange: #ee9d26;
  --orange-dark: #b86e09;
  --ink: #25321d;
  --muted: #63705e;
  --paper: #fffef9;
  --line: #d8dfca;
  --shadow: 0 5px 24px rgba(35, 63, 14, .28);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #82be2f url("assets/images/page.png") repeat;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  top: 0;
  bottom: 0;
  width: min(27vw, 416px);
  content: "";
  opacity: .56;
  background: url("assets/images/pageglare.png") top left / 100% auto repeat-y;
}

body::before { left: 0; }
body::after { right: 0; transform: scaleX(-1); }

a { color: #3d7914; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--orange-dark); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  clip: auto !important;
  width: auto;
  height: auto;
  padding: 12px 18px;
  color: #fff;
  background: #111;
}

.site-shell {
  width: min(1100px, calc(100% - 28px));
  margin: 18px auto 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-header {
  position: relative;
  aspect-ratio: 1100 / 300;
  min-height: 220px;
  overflow: hidden;
  background: #dbeee3 url("assets/images/header.jpg") center / cover no-repeat;
}

.site-branding-accessible { position: absolute; inset: auto 24px 16px auto; }
.site-branding-accessible a { color: inherit; }

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px;
  padding: 6px 14px;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(#4f871d, #346a10);
}

.primary-menu,
.primary-menu ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: block; padding: 6px 12px; color: #fff; text-decoration: none; border-radius: 5px; }
.primary-menu a:hover, .primary-menu a:focus, .primary-menu .current-menu-item > a { background: var(--orange); }

.mobile-navigation-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.site-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; padding: 8px; }

.site-sidebar {
  overflow: hidden;
  border: 1px solid #c8d9a9;
  border-radius: var(--radius);
  background: var(--green-pale) url("assets/images/sidebar-glare.png") top left / 100% auto no-repeat;
}

.sidebar-heading,
.widget-title {
  margin: 0;
  padding: 9px 14px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  background: linear-gradient(#82b943, #5e9622);
}

.sidebar-menu,
.sidebar-menu ul { margin: 0; padding: 0; list-style: none; }
.sidebar-menu { padding: 7px 10px 13px; }
.sidebar-menu li { border-bottom: 1px solid rgba(85, 124, 41, .22); }
.sidebar-menu li:last-child { border-bottom: 0; }
.sidebar-menu a {
  position: relative;
  display: block;
  padding: 7px 6px 7px 23px;
  color: #38571e;
  font-size: .89rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.sidebar-menu a::before { position: absolute; left: 3px; content: "✓"; color: #6da622; font-weight: 900; }
.sidebar-menu a:hover, .sidebar-menu a:focus, .sidebar-menu .current-menu-item > a { color: #994f00; background: rgba(255,255,255,.58); }
.sidebar-menu .sub-menu { padding-left: 12px; }

.sidebar-widget { margin: 12px 10px; overflow: hidden; border: 1px solid #c8d9a9; border-radius: 6px; background: rgba(255,255,255,.72); }
.sidebar-widget > :not(.widget-title) { margin-right: 12px; margin-left: 12px; }
.sidebar-widget ul { padding-left: 20px; }
.login-form { padding: 12px; }
.login-form p { margin: 0 0 10px; }
.login-form label { display: block; font-size: .88rem; font-weight: 600; }
.login-form input[type="text"], .login-form input[type="password"] { width: 100%; padding: 7px 8px; border: 1px solid #aebd98; border-radius: 4px; background: #fff; }

.site-main { min-width: 0; padding: 4px 8px 18px 0; }
.breadcrumbs { margin: 2px 0 10px; color: var(--muted); font-size: .84rem; }
.breadcrumbs a { color: #537535; }

.page-banner {
  margin: 0 0 18px;
  padding: 8px 15px;
  color: #593400;
  border-left: 6px solid var(--orange);
  border-radius: 3px;
  background: #fff0cc;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.25;
}

.entry-card { margin: 0 0 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.9); box-shadow: 0 2px 7px rgba(65, 82, 47, .08); }
.entry-title { margin: 0 0 8px; color: #4a761b; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.3; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-meta { margin-bottom: 10px; color: var(--muted); font-size: .84rem; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }

.welcome-card { text-align: center; }
.welcome-lead { max-width: 700px; margin: 0 auto 18px; color: #4f6046; font-size: 1.05rem; }
.welcome-image { display: block; width: 100%; border: 1px solid #e0e0d2; border-radius: 6px; }

.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.posts-grid .entry-card { margin: 0; }
.posts-section-title { margin: 28px 0 12px; color: #466f1d; }

.button, button, input[type="submit"] { display: inline-block; padding: 8px 15px; color: #fff; border: 0; border-radius: 5px; background: linear-gradient(#f4ad3d, #db8412); font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover, button:hover, input[type="submit"]:hover { color: #fff; filter: brightness(.95); }

.pagination { margin: 22px 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination a, .pagination .current { padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }

.site-footer { padding: 18px 22px; color: #553000; border-top: 5px solid #5d9423; background: linear-gradient(#ffc960, #efa331); text-align: center; }
.site-footer p { margin: 3px 0; }
.site-footer a { color: #5f3600; }

.comments-area { margin-top: 24px; }
.comment-list { padding-left: 24px; }
.comment-body { margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.comment-form label { display: block; font-weight: 600; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 8px; border: 1px solid #b8c3ab; border-radius: 4px; }

@media (max-width: 820px) {
  .site-shell { width: min(100% - 16px, 720px); margin-top: 8px; }
  .site-header { min-height: 180px; background-size: cover; }
  .utility-bar { justify-content: space-between; }
  .mobile-navigation-toggle { display: inline-flex; }
  .primary-navigation { display: none; width: 100%; }
  .primary-navigation.is-open { display: block; }
  .primary-menu, .primary-menu ul { flex-direction: column; }
  .site-body { grid-template-columns: 1fr; padding: 10px; }
  .site-sidebar { display: none; }
  .site-sidebar.is-open { display: block; }
  .site-main { padding-right: 0; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .site-shell { width: 100%; margin: 0; box-shadow: none; }
  .site-header { min-height: 155px; background-size: auto 100%; }
  .utility-bar { flex-wrap: wrap; gap: 7px; }
  .site-body { padding: 7px; }
  .entry-card { padding: 13px; }
  .posts-grid { grid-template-columns: 1fr; }
  .welcome-image { border-radius: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
