/*
Theme Name: Dobra4 Classic
Theme URI: https://www.dobra4.waw.pl/
Author: Codex
Description: Klasyczny motyw Dobra4 odtwarzajacy dawny uklad strony: logo, boczne menu, waska kolumna tresci i pomaranczowa stopka.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: dobra4-classic
*/

:root {
  --d4c-text: #4c4c4c;
  --d4c-muted: #6b6b6b;
  --d4c-orange: #d64c21;
  --d4c-gold: #d7a520;
  --d4c-rule: #d8b321;
  --d4c-footer: #d84b21;
  --d4c-bg: #ffffff;
  --d4c-font: "Lato", "Helvetica Neue", Arial, sans-serif;
  --d4c-heading-font: "Lato", "Helvetica Neue", Arial, sans-serif;
  --d4c-menu-font: Georgia, "Times New Roman", serif;
  --d4c-serif: Georgia, "Times New Roman", serif;
  --d4c-body-size: 13px;
  --d4c-menu-size: 15px;
  --d4c-heading-size: 24px;
  --d4c-subtitle-size: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--d4c-text);
  background: var(--d4c-bg);
  font-family: var(--d4c-font);
  font-size: var(--d4c-body-size);
  font-weight: 300;
  line-height: 1.55;
}

a {
  color: var(--d4c-orange);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site {
  min-height: 100vh;
  background: #fff;
}

.site-header {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 62px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: var(--d4c-text);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 132px;
  height: auto;
}

.brand-subtitle {
  color: #666;
  font-size: var(--d4c-subtitle-size);
  font-weight: 300;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.classic-layout {
  display: grid;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.side-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px;
  gap: 28px;
  min-height: 580px;
}

.side-nav::after {
  display: block;
  width: 1px;
  min-height: 100%;
  background-image: linear-gradient(var(--d4c-rule) 45%, rgba(255, 255, 255, 0) 0%);
  background-position: right top;
  background-repeat: repeat-y;
  background-size: 1px 4px;
  content: "";
}

.menu-toggle {
  display: none;
}

.main-navigation {
  padding-top: 18px;
  text-align: right;
}

.main-navigation ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  color: #191919;
  font-family: var(--d4c-menu-font);
  font-size: var(--d4c-menu-size);
  line-height: 1.25;
  text-decoration: none;
}

.main-navigation .current-menu-item > a,
.main-navigation a:hover,
.main-navigation a:focus-visible {
  color: var(--d4c-orange);
}

.content-area {
  min-width: 0;
  padding: 18px 0 74px;
}

.entry-title,
.home-title,
.team-title,
.therapist-title,
.pricing-title {
  margin: 0 0 20px;
  color: var(--d4c-orange);
  font-family: var(--d4c-heading-font);
  font-size: var(--d4c-heading-size);
  font-weight: 300;
  line-height: 1.2;
}

.entry-content {
  max-width: 650px;
}

.entry-content h2,
.entry-content h3 {
  margin: 32px 0 10px;
  color: #333;
  font-size: 15px;
  font-weight: 700;
}

.entry-content p {
  margin: 0 0 18px;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 20px 20px;
  padding: 0;
}

.entry-content li {
  margin-bottom: 6px;
}

.home-offer {
  margin: 34px 0 44px;
}

.home-offer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-offer li::before {
  color: var(--d4c-orange);
  content: "- ";
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 58px;
  width: min(900px, calc(100% - 48px));
  margin: 74px auto 72px;
}

.team-person {
  color: var(--d4c-text);
  text-align: center;
  text-decoration: none;
}

.team-photo {
  display: block;
  width: 80px;
  height: 96px;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 6px;
  background: #ececec;
}

.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-initials {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #fff;
  background: var(--d4c-orange);
  font-size: 20px;
  font-weight: 700;
}

.team-name {
  display: block;
  margin-bottom: 4px;
  color: var(--d4c-orange);
  font-size: 13px;
  line-height: 1.25;
}

.team-note {
  display: block;
  color: #555;
  font-size: 12px;
  line-height: 1.35;
}

.therapist-title {
  margin-bottom: 8px;
}

.therapist-lead {
  margin: 0 0 16px;
  color: #333;
  font-size: 12px;
  font-weight: 700;
}

.therapist-contact {
  margin-top: 18px;
  font-weight: 700;
}

.therapist-contact span {
  color: #333;
}

.pricing-list {
  display: grid;
  gap: 18px;
  max-width: 650px;
}

.pricing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dotted var(--d4c-rule);
}

.pricing-row h2 {
  margin: 0 0 5px;
  color: var(--d4c-orange);
  font-size: 16px;
  font-weight: 400;
}

.pricing-row p {
  margin: 0;
}

.pricing-price {
  color: var(--d4c-orange);
  font-size: 18px;
  white-space: nowrap;
}

.site-footer {
  margin-top: 0;
  color: #fff;
  background: var(--d4c-footer);
}

.footer-inner {
  display: grid;
  width: min(980px, calc(100% - 48px));
  min-height: 220px;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 68px;
  align-items: start;
  padding: 54px 0 44px;
}

.footer-box h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.footer-box p,
.footer-box a {
  margin: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  justify-content: space-between;
  padding: 0 0 18px;
  color: #fff;
  font-size: 11px;
}

.footer-facebook {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 760px) {
  .site-header {
    padding: 24px 0 24px;
  }

  .brand-link {
    gap: 14px;
  }

  .brand-logo {
    width: 92px;
  }

  .brand-subtitle {
    font-size: clamp(13px, var(--d4c-subtitle-size), 18px);
    white-space: normal;
  }

  .classic-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .side-nav {
    display: block;
    min-height: 0;
    border-bottom: 1px dotted var(--d4c-rule);
    padding-bottom: 16px;
  }

  .side-nav::after {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    border: 0;
    background: transparent;
    color: var(--d4c-orange);
    font: inherit;
    padding: 0;
  }

  .main-navigation {
    display: none;
    padding-top: 14px;
    text-align: left;
  }

  .main-navigation.is-open {
    display: block;
  }

  .content-area {
    padding-top: 0;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
  }
}

@media (max-width: 460px) {
  body {
    font-size: 14px;
  }

  .site-header,
  .classic-layout,
  .footer-inner,
  .footer-bottom,
  .team-grid {
    width: min(100% - 28px, 980px);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .pricing-row {
    grid-template-columns: 1fr;
  }
}
