/*
Theme Name: SPZZOD Augustów
Theme URI: https://spzzod.augustow.pl/
Author: Migrated from Joomla 3 / simplev2
Description: Odwzorowanie wyglądu i układu strony Samodzielnego Publicznego Zespołu Zakładów Opieki Długoterminowej w Augustowie (migracja z Joomla 3 do WordPress).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spzzod
Tags: custom-menu, custom-logo, one-column, accessibility-ready
*/

:root {
  --frame: #cccccc;
  --panel: #fafafa;
  --nav: #363636;
  --nav-active: #252525;
  --line: #dedede;
  --line-strong: #c0c0c0;
  --text: #222222;
  --link: #0000ee;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: #cccccc;
}

@media screen and (min-width: 1024px) {
  body {
    background-image: url("assets/img/autumn.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    background-size: cover;
  }
}

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

a {
  color: var(--link);
}

a:hover,
a:focus {
  text-decoration-thickness: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  line-height: 1.25;
}

h1 { font-size: 26px; }
h2 { font-size: 24px; }
h3 { font-size: 22px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }

p {
  margin: 15px 0;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

blockquote {
  margin: 1em 0;
  padding: 0.5em 1em;
  border-left: 4px solid var(--frame);
  background: #f0f0f0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
}

td,
th {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  text-align: left;
  vertical-align: top;
}

iframe {
  max-width: 100%;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: #fff;
  color: #000;
  border: 2px solid #000;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}

@media screen and (min-width: 1024px) {
  .container {
    width: 990px;
  }
}

.panel {
  border-left: 7px solid var(--frame);
  border-right: 7px solid var(--frame);
}

@media (max-width: 767px) {
  .panel {
    border-left-width: 3px;
    border-right-width: 3px;
  }
}

.site-header .panel {
  background: #fff url("assets/img/header-texture.gif") center repeat;
  padding: 12px 18px;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 30px;
  min-height: 76px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
}

.site-branding .custom-logo-link {
  display: block;
  flex: 0 0 auto;
}

.site-branding img.custom-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
}

.site-branding-text {
  border-left: 1px solid var(--line-strong);
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.35;
  color: #444;
}

.site-branding-text strong {
  display: block;
  font-size: 14px;
  color: #111;
}

.header-contact {
  text-align: right;
  font-size: 13px;
  line-height: 1.4;
}

.header-contact a {
  color: #111;
  font-weight: bold;
  text-decoration: none;
}

.header-contact a:hover,
.header-contact a:focus {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .site-branding {
    align-items: flex-start;
  }

  .site-branding img.custom-logo {
    width: 170px;
  }

  .site-branding-text,
  .header-contact {
    display: none;
  }
}

/* Navigation ----------------------------------------------------------- */
.site-nav .panel {
  background: var(--nav);
  padding: 0 10px;
}

.site-nav .container {
  position: relative;
}

.menu-toggle {
  display: none;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  color: #fff;
  background: var(--nav);
  border: 0;
  border-top: 1px solid #4b4b4b;
  font: inherit;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
}

.menu-toggle::after {
  content: "\2630";
  float: right;
  font-size: 20px;
  line-height: 1;
}

.primary-menu,
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.primary-menu > li {
  position: relative;
}

.primary-menu > li > a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 7px 12px;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
}

.primary-menu > li:hover > a,
.primary-menu > li:focus-within > a,
.primary-menu > .current-menu-item > a,
.primary-menu > .current_page_item > a,
.primary-menu > .current-menu-ancestor > a {
  background: var(--nav-active);
}

.primary-menu li.menu-item-bip > a {
  width: 48px;
  min-height: 32px;
  margin: 6px 8px;
  padding: 0;
  text-indent: -9999px;
  overflow: hidden;
  background: url("assets/img/bip.gif") center / contain no-repeat;
}

.primary-menu li.menu-item-bip:hover > a,
.primary-menu li.menu-item-bip:focus-within > a {
  background-color: var(--nav-active);
}

.primary-menu .sub-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 220px;
  margin: 0;
  padding: 5px 0;
  background: var(--nav);
  border: 1px solid var(--nav-active);
  border-top: 0;
  display: none;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  display: block;
}

.primary-menu .sub-menu a {
  display: block;
  padding: 8px 15px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus {
  background: var(--nav-active);
}

@media (max-width: 1023px) {
  .menu-toggle {
    display: block;
  }

  .primary-menu {
    display: none;
    padding-bottom: 8px;
  }

  .primary-menu.is-open {
    display: block;
  }

  .primary-menu > li > a {
    min-height: 0;
    padding: 10px 14px;
    border-top: 1px solid #4b4b4b;
  }

  .primary-menu li.menu-item-bip > a {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 10px 14px;
    text-indent: 0;
    background: none;
  }

  .primary-menu li.menu-item-bip > a::before {
    content: "";
    display: inline-block;
    width: 42px;
    height: 26px;
    margin-right: 8px;
    vertical-align: middle;
    background: url("assets/img/bip.gif") center / contain no-repeat;
  }

  .primary-menu .sub-menu {
    position: static;
    display: block;
    border: 0;
    border-top: 1px solid #4b4b4b;
    background: #2c2c2c;
    padding: 0;
  }
}

/* Slider --------------------------------------------------------------- */
.site-slider .panel {
  padding: 10px;
  background: #dedede;
  border-bottom: 1px solid var(--frame);
}

.spzzod-slider {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.spzzod-slider .slides {
  position: relative;
  aspect-ratio: 813 / 313;
  background: #fff;
}

.spzzod-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.spzzod-slider .slide.is-active {
  opacity: 1;
}

.spzzod-slider .slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 54px;
  margin-top: -27px;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.spzzod-slider .slider-btn:hover,
.spzzod-slider .slider-btn:focus {
  background: rgba(0, 0, 0, 0.6);
}

.spzzod-slider .slider-prev { left: 0; }
.spzzod-slider .slider-next { right: 0; }

.spzzod-slider .slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.spzzod-slider .slider-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.spzzod-slider .slider-dot.is-active {
  background: #fff;
}

/* Main content --------------------------------------------------------- */
.site-main .panel {
  padding: 18px 22px 4px;
  background: var(--panel);
}

.site-main {
  min-height: 300px;
}

.breadcrumbs {
  margin: 0 0 16px;
  font-size: 13px;
  color: #555;
}

.breadcrumbs a {
  color: #111;
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
  text-decoration: underline;
}

.page-title,
.entry-title {
  margin: 0 0 16px;
  padding: 6px 12px;
  font-size: 20px;
  font-weight: bold;
  background: #f0f0f0;
  border: 1px solid var(--line);
}

.entry-title a {
  color: #000;
  text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
  text-decoration: underline;
}

.entry-meta {
  margin: -6px 0 14px;
  font-size: 13px;
  color: #666;
}

.entry-content::after {
  content: "";
  display: table;
  clear: both;
}

.entry-content a {
  overflow-wrap: anywhere;
}

.read-more {
  display: inline-block;
  margin: 5px 0 15px;
  padding: 5px 12px;
  color: #000;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: url("assets/img/button.gif") center repeat;
}

.read-more:hover,
.read-more:focus {
  text-decoration: underline;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  padding: 0 0 18px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.post-list .entry-title {
  font-size: 18px;
  padding: 0 0 6px;
  margin-bottom: 8px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.post-list .entry-summary p:first-child {
  margin-top: 0;
}

.pagination {
  clear: both;
  margin: 10px 0 24px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  min-width: 34px;
  padding: 5px 10px;
  margin: 0 2px;
  color: #000;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: url("assets/img/button.gif") center repeat;
}

.pagination .page-numbers.current {
  font-weight: bold;
  background: #e2e2e2;
}

/* Forms ---------------------------------------------------------------- */
input,
select,
textarea,
button {
  font-family: inherit;
  font-size: 17px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
textarea,
select {
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
}

input[type="submit"],
button[type="submit"],
.wp-block-button__link {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: url("assets/img/button.gif") center repeat;
  color: #000;
  cursor: pointer;
}

/* Footer --------------------------------------------------------------- */
.site-footer .panel {
  padding: 20px 22px 10px;
  background: var(--panel);
  border-top: 1px solid var(--frame);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 26px;
}

.footer-grid h2 {
  margin: 0 0 10px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-grid p {
  margin: 0 0 8px;
  font-size: 14px;
}

.footer-grid a {
  color: #111;
}

.footer-menu li {
  margin: 0 0 5px;
  font-size: 14px;
}

.footer-menu a {
  text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus {
  text-decoration: underline;
}

.site-footer .login-link {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 12px;
  color: #000;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: url("assets/img/button.gif") center repeat;
}

.site-copyright .panel {
  height: auto;
  min-height: 50px;
  padding: 12px 22px;
  background: #fff url("assets/img/header-texture.gif") bottom repeat;
  border-top: 1px solid var(--frame);
}

.copyright-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 13px;
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-main .panel {
    padding: 15px 14px 2px;
  }

  .site-footer .panel,
  .site-copyright .panel {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* WordPress alignments and blocks -------------------------------------- */
.alignleft {
  float: left;
  margin: 0 18px 15px 0;
}

.alignright {
  float: right;
  margin: 0 0 15px 18px;
}

.aligncenter {
  display: block;
  margin: 0 auto 15px;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 13px;
  color: #555;
}

.sticky {
  display: block;
}

.bypostauthor {
  display: block;
}

/* Joomla content compatibility ----------------------------------------- */
.item-page .pager,
.pager {
  text-align: center;
  margin: 0 0 15px;
}

.pager li {
  display: inline;
  margin: 0 10px;
}

/* Print ---------------------------------------------------------------- */
@media print {
  body {
    background: #fff;
  }

  .site-nav,
  .site-slider,
  .site-footer,
  .site-copyright,
  .skip-link {
    display: none !important;
  }

  .panel {
    border: 0;
  }

  .container {
    width: 100%;
  }

  a {
    color: #000;
  }
}
