/*
Theme Name: avera
Theme URI: https://avera.pl
Description: Lekki customowy motyw WordPress dla gabinetu psychoterapii avera.
Version: 1.0.0
Author: avera
Author URI: https://avera.pl
Text Domain: avera
*/

:root {
  --avera-ink: #2a3530;
  --avera-muted: #68746d;
  --avera-sage: #8fa99b;
  --avera-mint: #dfeae3;
  --avera-rose: #d99a8c;
  --avera-paper: #fbfaf6;
  --avera-line: rgba(42, 53, 48, .14);
  --avera-soft: #f0f5ee;
  --avera-shadow: 0 24px 80px rgba(42, 53, 48, .13);
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--avera-ink);
  background: var(--avera-paper);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

h1,
h2,
h3,
.avera-wordmark {
  font-family: "Quicksand", system-ui, sans-serif;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  width: 100%;
}

.narrow {
  max-width: 860px;
}

.btn-avera {
  align-items: center;
  background: var(--avera-ink);
  border: 1px solid var(--avera-ink);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  gap: .5rem;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.25rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.btn-avera:hover,
.btn-avera:focus {
  background: var(--avera-rose);
  border-color: var(--avera-rose);
  color: var(--avera-ink);
  transform: translateY(-2px);
}

.eyebrow {
  color: var(--avera-rose);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: .75rem;
  text-transform: uppercase;
}

.avera-header {
  background: rgba(251, 250, 246, .92);
  border-bottom: 1px solid var(--avera-line);
  min-height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
}

.admin-bar .avera-header {
  top: 32px;
}

.avera-header .navbar {
  align-items: center;
  display: flex;
  min-height: var(--header-height);
  padding: 0;
}

.avera-header .navbar > .container {
  align-items: center;
  display: flex;
  gap: 1.25rem;
}

.navbar-brand {
  align-items: center;
  display: inline-flex;
  min-height: 54px;
  padding: 0;
  text-decoration: none;
}

.avera-logo {
  display: block;
  height: auto;
  max-height: 58px;
  width: auto;
}

.avera-wordmark {
  color: var(--avera-ink);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.nav-link {
  color: var(--avera-ink);
  display: block;
  font-weight: 800;
  padding: .75rem .85rem;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--avera-rose);
}

.avera-menu-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  flex: 0 0 auto;
  gap: 5px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  width: 44px;
}

.navbar-collapse {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 1rem;
  justify-content: space-between;
}

.navbar-nav {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .25rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -.75rem;
  margin-right: -.75rem;
  row-gap: 1.5rem;
}

.row > [class*="col-"] {
  padding-left: .75rem;
  padding-right: .75rem;
  width: 100%;
}

.align-items-start {
  align-items: flex-start;
}

.col-12,
.col-lg-12 {
  flex: 0 0 auto;
  width: 100%;
}

.col-lg-2 {
  flex: 0 0 auto;
  width: 16.6667%;
}

.col-lg-3 {
  flex: 0 0 auto;
  width: 25%;
}

.col-lg-4 {
  flex: 0 0 auto;
  width: 33.3333%;
}

.col-lg-5 {
  flex: 0 0 auto;
  width: 41.6667%;
}

.col-lg-6 {
  flex: 0 0 auto;
  width: 50%;
}

.col-lg-8 {
  flex: 0 0 auto;
  width: 66.6667%;
}

.g-4 {
  row-gap: 1.5rem;
}

@media (min-width: 992px) {
  .header-call {
    display: inline-flex;
  }
}

@media (max-width: 991.98px) {
  .col-md-6,
  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-8 {
    width: 100%;
  }
}

.avera-menu-toggle span {
  background: var(--avera-ink);
  border-radius: 99px;
  display: block;
  height: 2px;
  width: 24px;
}

.avera-mobile-call {
  align-items: center;
  background: var(--avera-ink);
  color: #fff;
  display: flex;
  font-size: .92rem;
  gap: .5rem;
  justify-content: center;
  min-height: 42px;
  padding: .4rem 1rem;
}

.avera-mobile-call a {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

@media (min-width: 992px) {
  .avera-mobile-call {
    display: none;
  }
}

.avera-hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(42, 53, 48, .84), rgba(42, 53, 48, .34)),
    url("assets/hero-therapy-room.jpg") center/cover;
  color: #fff;
  display: flex;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.hero-content {
  max-width: 680px;
}

.hero-content h1 {
  font-size: clamp(2.65rem, 6vw, 5.7rem);
  font-weight: 700;
  line-height: .98;
  margin: 0 0 1.4rem;
}

.hero-content > p:not(.eyebrow) {
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  max-width: 610px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 2rem;
}

.hero-phone {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.trust-strip {
  background: var(--avera-mint);
  border-bottom: 1px solid var(--avera-line);
  border-top: 1px solid rgba(255, 255, 255, .5);
  padding: 1.2rem 0;
}

.trust-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-grid div {
  border-right: 1px solid rgba(42, 53, 48, .16);
  min-height: 86px;
  padding: .4rem 1.2rem .4rem 0;
}

.trust-grid div:last-child {
  border-right: 0;
}

.trust-grid strong {
  display: block;
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1;
}

.trust-grid span {
  color: var(--avera-muted);
  display: block;
  font-size: .98rem;
  font-weight: 700;
  margin-top: .35rem;
}

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.section-heading {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  max-width: 760px;
}

.section-heading h2,
.archive-header h1,
.content-page h1,
.service-page h1,
.specialist-content h1,
.not-found h1 {
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

.service-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-tile a,
.blog-item a,
.team-card a {
  color: inherit;
  display: block;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.service-tile a {
  background: #fff;
  min-height: 260px;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: background .25s ease, transform .25s ease;
}

.service-tile a::before,
.team-card a::before,
.blog-item a::before {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(217, 154, 140, .18), transparent 36%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity .25s ease;
}

.service-tile a:hover::before,
.team-card a:hover::before,
.blog-item a:hover::before {
  opacity: 1;
}

.service-tile span {
  display: block;
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  position: relative;
}

.service-tile p,
.team-card p,
.blog-item p,
.opinion p,
.content-body,
.service-page .lead {
  color: var(--avera-muted);
}

.section-steps,
.section-opinions {
  background: #fff;
}

.split-layout {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
}

.sticky-copy {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 3rem);
}

.steps-list {
  counter-reset: steps;
  display: grid;
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps-list li {
  background: var(--avera-soft);
  min-height: 178px;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.steps-list span {
  color: var(--avera-rose);
  display: inline-block;
  font-weight: 900;
  margin-bottom: 1rem;
}

.steps-list h3,
.blog-item h2,
.blog-item h3,
.team-card h2,
.team-card h3,
.profile-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}

.team-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-card a {
  background: #fff;
  border: 1px solid var(--avera-line);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.team-card a:hover {
  box-shadow: var(--avera-shadow);
  transform: translateY(-5px);
}

.team-card img,
.photo-placeholder {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--avera-mint), #fff);
  display: block;
  object-fit: cover;
  width: 100%;
}

.team-card h2,
.team-card h3,
.team-card p {
  margin-left: 1.35rem;
  margin-right: 1.35rem;
}

.team-card h2,
.team-card h3 {
  margin-top: 1.35rem;
}

.team-card p:last-child {
  margin-bottom: 1.35rem;
}

.role {
  color: var(--avera-rose) !important;
  font-weight: 900;
}

.opinion-rail,
.blog-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.opinion,
.blog-item a {
  background: var(--avera-paper);
  border: 1px solid var(--avera-line);
  min-height: 250px;
  padding: clamp(1.35rem, 3vw, 1.8rem);
}

.stars {
  color: var(--avera-rose);
  letter-spacing: 0;
  margin-bottom: 1rem;
}

.blog-item time,
.content-page time {
  color: var(--avera-rose);
  display: block;
  font-size: .9rem;
  font-weight: 900;
  margin-bottom: .75rem;
}

.faq-item {
  border-top: 1px solid var(--avera-line);
  padding: 1.25rem 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--avera-line);
}

.faq-item summary {
  cursor: pointer;
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
}

.faq-item[open] summary::after {
  content: "-";
}

.location-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
}

.map-frame {
  background: var(--avera-mint);
  min-height: 420px;
  overflow: hidden;
}

.map-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  min-height: 420px;
  width: 100%;
}

.map-empty {
  align-items: center;
  color: var(--avera-muted);
  display: flex;
  font-weight: 800;
  min-height: 420px;
  padding: 2rem;
}

.page-shell {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.avera-breadcrumbs {
  align-items: center;
  color: var(--avera-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .92rem;
  font-weight: 800;
  gap: .55rem;
  margin-bottom: 2rem;
}

.avera-breadcrumbs a {
  color: var(--avera-muted);
  text-decoration: none;
}

.archive-header,
.content-page header,
.service-page header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.content-body > * + * {
  margin-top: 1.1rem;
}

.content-body h2,
.content-body h3 {
  color: var(--avera-ink);
  margin-top: 2rem;
}

.content-body img {
  height: auto;
}

.specialist-profile {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
}

.specialist-photo {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.specialist-photo img,
.specialist-photo .photo-placeholder {
  width: 100%;
}

.profile-section {
  border-top: 1px solid var(--avera-line);
  margin-top: 2.4rem;
  padding-top: 2rem;
}

.credential-list {
  display: grid;
  gap: .75rem;
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
}

.credential-list li {
  background: #fff;
  border: 1px solid var(--avera-line);
  padding: 1rem 1.15rem;
}

.credential-list span {
  color: var(--avera-muted);
  display: block;
}

.profile-note {
  background: var(--avera-soft);
  margin: 2rem 0;
  padding: 1rem 1.15rem;
}

.contact-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, .8fr) minmax(320px, 520px);
}

.contact-details {
  border-top: 1px solid var(--avera-line);
  display: grid;
  gap: .75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.contact-details p {
  margin: 0;
}

.contact-form-wrap {
  align-self: start;
  background: #fff;
  border: 1px solid var(--avera-line);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.avera-contact-form {
  display: grid;
  gap: .9rem;
}

.avera-contact-form label {
  font-weight: 900;
}

.avera-contact-form input:not([type="checkbox"]),
.avera-contact-form textarea {
  background: var(--avera-paper);
  border: 1px solid var(--avera-line);
  color: var(--avera-ink);
  font: inherit;
  min-height: 48px;
  padding: .75rem .9rem;
  width: 100%;
}

.avera-contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.consent-field {
  align-items: flex-start;
  display: flex;
  gap: .7rem;
}

.consent-field input {
  flex: 0 0 auto;
  margin-top: .45rem;
}

.honeypot-field {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.form-message {
  border: 1px solid;
  font-weight: 900;
  margin-bottom: 1rem;
  padding: .9rem 1rem;
}

.form-message.is-success {
  background: var(--avera-soft);
  border-color: rgba(143, 169, 155, .5);
}

.form-message.is-error {
  background: #fff1ef;
  border-color: rgba(217, 154, 140, .55);
}

.avera-footer {
  background: var(--avera-ink);
  color: rgba(255, 255, 255, .78);
  padding: 4rem 0 1.6rem;
}

.footer-brand {
  color: #fff;
  display: inline-flex;
  margin-bottom: 1rem;
  text-decoration: none;
}

.avera-footer .avera-wordmark {
  color: #fff;
}

.avera-footer h2 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.avera-footer ul {
  display: grid;
  gap: .55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.avera-footer a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}

.avera-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 991.98px) {
  :root {
    --header-height: 70px;
  }

  .admin-bar .avera-header {
    top: 0;
  }

  .navbar-collapse {
    border-top: 1px solid var(--avera-line);
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: .75rem;
    width: 100%;
    padding: .75rem 0 1rem;
  }

  .navbar-collapse.is-open {
    display: flex;
  }

  .avera-header .navbar > .container {
    flex-wrap: wrap;
  }

  .avera-menu-toggle {
    display: grid;
  }

  .navbar-nav {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .header-call {
    width: 100%;
  }

  .avera-hero {
    min-height: calc(100svh - var(--header-height) - 42px);
    padding: 5rem 0;
  }

  .trust-grid,
  .service-grid,
  .team-grid,
  .opinion-rail,
  .blog-grid,
  .split-layout,
  .location-layout,
  .specialist-profile,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .trust-grid div {
    border-bottom: 1px solid rgba(42, 53, 48, .16);
    border-right: 0;
  }

  .trust-grid div:last-child {
    border-bottom: 0;
  }

  .sticky-copy,
  .specialist-photo {
    position: static;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 16px;
  }

  .hero-content h1 {
    font-size: 2.55rem;
  }

  .section {
    padding: 4rem 0;
  }

  .service-tile a,
  .opinion,
  .blog-item a {
    min-height: auto;
  }

  .footer-bottom {
    display: grid;
  }
}
