/*
Theme Name: atlas-a54fee
Theme URI:
Author: Atlas Forge
Description: Block theme for Wettzo information site.
Version: 1.0.19
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atlas-a54fee
*/

/* --- база (дев-стандарт NL, блок «КОРОТКО ПРО СТИЛІ») --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  word-wrap: anywhere;
  font-size: 1.12rem;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:where(a, li a span) {
  transition: color 0.5s ease-in-out, background-color 0.5s ease-in-out;
}

:where(p > a, .entry-content ul li a, .entry-content ol li a) {
  color: #e07f4a !important;
  text-underline-offset: 3px;
}

:where(p > a:hover, .entry-content ul li a:hover, .entry-content ol li a:hover) {
  text-decoration: none !important;
  color: #ebb191 !important;
}

.wp-block-button a {
  white-space: nowrap;
  text-transform: uppercase;
}

.img-filter {
  filter: brightness(0) invert(1);
}

.is-style-hover ul li a:hover span {
  color: #fbd965;
  transition: color 0.5s linear;
}

/* Внимание: в исходном base.css это правило стояло под `no-preference`,
   то есть анимации глушились у тех, кто их НЕ просил отключать. Исправлено. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- вариант A: флекс, space-between --- */
.site-header {
  padding-top: 1.5em;
  padding-bottom: 1.5em;
}

.site-footer {
  padding-top: 1.2em;
  padding-bottom: 1.2em;
}

.site-header .wp-block-site-logo img,
.site-header .wp-block-site-title {
  max-width: 150px;
}

.site-footer .wp-block-site-logo img {
  max-width: 140px;
}

.site-header .wp-block-navigation {
  gap: 16px;
}

.site-footer .wp-block-navigation {
  gap: 18px;
}

.rg-badge {
  width: 60px;
  height: auto;
}

.copyright-bar {
  border-radius: 4px;
}

@media (max-width: 991px) {
  .ftr-row-secondary {
    flex-direction: column-reverse;
  }
}

@media (max-width: 820px) {
  .hdr-row-reverse {
    flex-direction: row-reverse;
  }
  .img-float > .alignleft,
  .img-float > .alignright {
    float: none !important;
    margin: 0 auto;
  }
  .img-float figure {
    margin: 0 auto !important;
  }
  .wp-block-image.alignleft {
    margin-right: auto !important;
  }
}

@media (max-width: 390px) {
  .bttn-mobile-padding a {
    padding: 10px 20px;
    font-size: 12px;
  }
}

/* --- вариант B: grid-хедер и Columns-футер (docx «Основні вимоги до дизайну 2») --- */
.hdr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
}

.hdr-cell {
  margin: 0;
}

/* На бургер-брейкпойнте порядок меняется: меню вправо, лого в центр, кнопка влево. */
@media (max-width: 820px) {
  .hdr-grid {
    grid-template-columns: auto 1fr auto;
  }
  .hdr-cell-cta { order: 1; justify-content: flex-start; }
  .hdr-cell-logo { order: 2; justify-content: center; }
  .hdr-cell-nav { order: 3; justify-content: flex-end; }
}

.ftr-columns {
  gap: 18px;
  align-items: flex-start;
}

.ftr-col-brand {
  text-align: center;
}

.ftr-col-brand .wp-block-site-logo {
  display: flex;
  justify-content: center;
}

.ftr-disclaimer {
  opacity: 0.75;
  margin-top: 12px;
}

.ftr-menu-divider {
  border-left: 1px solid #fbd96533;
  padding-left: 18px;
}

.ftr-copyright {
  margin-top: 26px;
  border-radius: 4px;
}

@media (max-width: 781px) {
  .ftr-menu-divider {
    border-left: 0;
    padding-left: 0;
  }
}
