/*
Theme Name: Aura Zdrowie
Theme URI: https://aura-zdrowie.pl/
Author: Aura Zdrowie
Description: Jednostronicowy motyw startowy dla gabinetu masażu i terapii Aura Zdrowie.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: aura-zdrowie
*/

:root {
  --az-cream: #f8efe5;
  --az-paper: #fffaf3;
  --az-ink: #352217;
  --az-text: #432f24;
  --az-muted: #706052;
  --az-green: #496b31;
  --az-green-dark: #31501f;
  --az-line: rgba(75, 54, 39, 0.18);
  --az-shadow: 0 24px 70px rgba(63, 43, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--az-text);
  background: var(--az-cream);
  font-family: "Segoe UI", Arial, sans-serif;
}

body.admin-bar .az-header {
  min-height: calc(720px - 32px);
}

a {
  color: inherit;
  text-decoration: none;
}

.az-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--az-cream);
}

.az-wrap {
  width: min(100% - 48px, 1088px);
  margin: 0 auto;
}

.az-header {
  min-height: 720px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248, 239, 229, 1) 0%, rgba(248, 239, 229, 0.94) 43%, rgba(248, 239, 229, 0.36) 70%, rgba(248, 239, 229, 0.04) 100%),
    url("assets/images/hero-spa.png") right top / clamp(440px, 43vw, 660px) 570px no-repeat;
}

.az-header::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 38vw;
  min-width: 420px;
  height: 100%;
  background:
    radial-gradient(ellipse at 12% 30%, rgba(73, 107, 49, 0.08), transparent 45%),
    linear-gradient(90deg, rgba(255, 250, 243, 0.42), transparent);
  content: "";
  pointer-events: none;
}

.az-header::after {
  position: absolute;
  right: -8vw;
  bottom: -76px;
  width: 62vw;
  height: 160px;
  border-radius: 56% 0 0 0;
  background: var(--az-cream);
  content: "";
  pointer-events: none;
}

.az-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.45vw, 20px);
  min-height: 118px;
  position: relative;
  z-index: 2;
}

.az-logo {
  display: grid;
  gap: 8px;
  width: 184px;
  flex: 0 0 184px;
  color: var(--az-green);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.az-logo-mark {
  width: 150px;
  height: 44px;
  margin: 0 auto;
  position: relative;
}

.az-logo-mark::before {
  position: absolute;
  left: 50%;
  top: 0;
  width: 56px;
  height: 34px;
  border: 4px solid var(--az-green);
  border-bottom: 0;
  border-radius: 70px 70px 0 0;
  transform: translateX(-50%);
  content: "";
}

.az-logo-mark::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 18px;
  border-bottom: 4px solid #4b3427;
  border-radius: 50%;
  content: "";
}

.az-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.35vw, 22px);
  margin-left: clamp(0px, 2.4vw, 34px);
  color: #2e2119;
  font-size: clamp(0.9rem, 1vw, 0.98rem);
  white-space: nowrap;
}

.az-menu a:first-child {
  position: relative;
}

.az-menu a:first-child::after {
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: 106px;
  height: 12px;
  border-top: 1px solid rgba(49, 80, 31, 0.48);
  transform: translateX(-50%);
  content: "";
}

.az-menu a:first-child::before {
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 18px;
  height: 10px;
  border-radius: 100% 0 100% 0;
  background: var(--az-green);
  transform: translateX(-50%) rotate(-18deg);
  content: "";
  z-index: 1;
}

.az-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: linear-gradient(180deg, #5b7a3d, #365822);
  box-shadow: 0 14px 30px rgba(49, 80, 31, 0.25);
  color: #fff;
  font-weight: 700;
}

.az-nav > .az-button {
  margin-left: auto;
}

.az-hero-copy {
  width: min(100%, 560px);
  padding-top: 54px;
  position: relative;
  z-index: 1;
}

.az-heading,
.az-section-heading,
.az-card-title,
.az-about-title {
  margin: 0;
  color: var(--az-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.az-heading {
  max-width: 650px;
  font-size: clamp(3.35rem, 5.25vw, 5.15rem);
  line-height: 1.05;
  text-wrap: balance;
}

.az-ornament {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.az-ornament::before,
.az-ornament::after {
  width: 92px;
  height: 1px;
  background: rgba(75, 54, 39, 0.35);
  content: "";
}

.az-leaf {
  width: 18px;
  height: 10px;
  border-radius: 100% 0 100% 0;
  background: var(--az-green);
  transform: rotate(-18deg);
}

.az-lead {
  max-width: 420px;
  margin: 0 0 26px;
  color: #35271e;
  font-size: 1.12rem;
  line-height: 1.55;
}

.az-section {
  padding: 58px 0;
  position: relative;
}

.az-offer {
  margin-top: -78px;
  position: relative;
  z-index: 3;
}

.az-section-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-align: center;
}

.az-section-heading,
.az-about-title {
  font-size: clamp(2.15rem, 3vw, 2.75rem);
  line-height: 1;
}

.az-section-head .az-ornament {
  margin: 0;
}

.az-section-head .az-ornament::before,
.az-section-head .az-ornament::after {
  width: 78px;
}

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

.az-card {
  min-height: 220px;
  padding: 26px 24px;
  border: 1px solid var(--az-line);
  border-radius: 12px;
  background: rgba(255, 250, 243, 0.82);
  box-shadow: 0 14px 38px rgba(63, 43, 28, 0.07);
  text-align: center;
}

.az-icon {
  display: block;
  width: 76px;
  height: 62px;
  margin: 0 auto 18px;
  position: relative;
  color: var(--az-green);
}

.az-icon::before,
.az-icon::after,
.az-icon span,
.az-feature-icon::before,
.az-feature-icon::after {
  position: absolute;
  content: "";
}

.az-icon-massage::before {
  left: 31px;
  top: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--az-green);
  border-radius: 50%;
}

.az-icon-massage::after {
  left: 15px;
  top: 23px;
  width: 18px;
  height: 30px;
  border: solid var(--az-green);
  border-width: 0 2px 2px 0;
  border-radius: 0 0 24px 0;
  transform: rotate(33deg);
}

.az-icon-massage span {
  right: 14px;
  top: 23px;
  width: 18px;
  height: 30px;
  border: solid var(--az-green);
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 24px;
  transform: rotate(-33deg);
}

.az-icon-therapy::before {
  left: 31px;
  top: 6px;
  width: 16px;
  height: 52px;
  border-left: 2px solid var(--az-green);
  border-radius: 50%;
  transform: rotate(8deg);
}

.az-icon-therapy::after {
  left: 14px;
  top: 13px;
  width: 42px;
  height: 42px;
  border: solid var(--az-green);
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 30px;
  transform: rotate(-26deg);
}

.az-icon-therapy span {
  left: 48px;
  top: 14px;
  width: 24px;
  height: 36px;
  border-right: 2px solid var(--az-green);
  border-radius: 50%;
  transform: rotate(22deg);
}

.az-icon-drop::before {
  left: 28px;
  top: 3px;
  width: 22px;
  height: 34px;
  border: 2px solid var(--az-green);
  border-radius: 100% 100% 100% 0;
  transform: rotate(-45deg);
}

.az-icon-drop::after {
  left: 9px;
  bottom: 8px;
  width: 58px;
  height: 18px;
  border: 2px solid var(--az-green);
  border-top: 0;
  border-radius: 50%;
}

.az-icon-stones::before,
.az-icon-stones::after,
.az-icon-stones span {
  left: 50%;
  border: 2px solid var(--az-green);
  border-radius: 50%;
  transform: translateX(-50%);
}

.az-icon-stones::before {
  top: 6px;
  width: 34px;
  height: 14px;
}

.az-icon-stones span {
  top: 24px;
  width: 48px;
  height: 17px;
}

.az-icon-stones::after {
  top: 45px;
  width: 62px;
  height: 15px;
}

.az-card-title {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.az-card p,
.az-about-copy p {
  margin: 0;
  line-height: 1.55;
}

.az-small-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--az-green-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

.az-about {
  padding-top: 20px;
}

.az-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr) minmax(250px, 0.72fr);
  align-items: center;
  gap: 42px;
}

.az-about-photo {
  width: 100%;
  aspect-ratio: 1.58 / 1;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--az-shadow);
  background: #dfcbb9;
}

.az-about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.az-about-copy .az-ornament {
  margin: 14px 0 18px;
}

.az-about-copy .az-button {
  margin-top: 24px;
}

.az-features {
  display: grid;
  gap: 20px;
}

.az-feature {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 16px;
}

.az-feature-icon {
  display: block;
  width: 50px;
  height: 50px;
  position: relative;
  border: 1px solid var(--az-line);
  border-radius: 50%;
}

.az-feature-leaf::before {
  left: 15px;
  top: 11px;
  width: 20px;
  height: 27px;
  border: 2px solid var(--az-green);
  border-radius: 100% 0 100% 0;
  transform: rotate(14deg);
}

.az-feature-leaf::after {
  left: 23px;
  top: 18px;
  width: 2px;
  height: 20px;
  background: var(--az-green);
  transform: rotate(42deg);
}

.az-feature-person::before {
  left: 18px;
  top: 10px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--az-green);
  border-radius: 50%;
}

.az-feature-person::after {
  left: 13px;
  top: 27px;
  width: 24px;
  height: 13px;
  border: 2px solid var(--az-green);
  border-radius: 18px 18px 4px 4px;
}

.az-feature-heart::before,
.az-feature-heart::after {
  top: 17px;
  width: 16px;
  height: 24px;
  border: 2px solid var(--az-green);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.az-feature-heart::before {
  left: 13px;
  transform: rotate(-45deg);
  transform-origin: 100% 100%;
}

.az-feature-heart::after {
  right: 13px;
  transform: rotate(45deg);
  transform-origin: 0 100%;
}

.az-booking-page {
  background:
    radial-gradient(ellipse at 12% 4%, rgba(73, 107, 49, 0.08), transparent 34%),
    var(--az-cream);
}

.az-booking-header {
  padding-bottom: 56px;
  background:
    linear-gradient(90deg, rgba(248, 239, 229, 0.98) 0%, rgba(248, 239, 229, 0.92) 52%, rgba(248, 239, 229, 0.62) 100%),
    url("assets/images/hero-spa.png") right top / 520px 430px no-repeat;
}

.az-booking-nav {
  min-height: 116px;
}

.az-booking-intro {
  max-width: 660px;
  padding: 42px 0 10px;
}

.az-kicker {
  margin: 0 0 12px;
  color: var(--az-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.az-booking-main {
  padding: 0 0 78px;
}

.az-booking-shell {
  display: grid;
  gap: 22px;
}

.az-booking-panel {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(75, 54, 39, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.78);
  box-shadow: var(--az-shadow);
}

.az-step-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(73, 107, 49, 0.3);
  border-radius: 50%;
  color: var(--az-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.az-booking-panel h2 {
  margin: 0;
  color: var(--az-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 400;
  letter-spacing: 0;
}

.az-booking-panel p {
  margin: 8px 0 0;
  color: var(--az-muted);
  line-height: 1.6;
}

.az-service-picker,
.az-calendar,
.az-booking-fields,
.az-booking-summary,
.az-submit,
.az-booking-message {
  grid-column: 2;
}

.az-service-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.az-service-option {
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(73, 107, 49, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.72);
  color: var(--az-text);
  cursor: pointer;
  text-align: left;
}

.az-service-option strong,
.az-service-option span {
  display: block;
}

.az-service-option strong {
  color: var(--az-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.az-service-option span {
  margin-top: 8px;
  color: var(--az-green);
  font-weight: 700;
}

.az-service-option.is-active {
  border-color: var(--az-green);
  background: #fffdf8;
  box-shadow: 0 18px 42px rgba(63, 43, 28, 0.12);
}

.az-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(124px, 1fr));
  gap: 12px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.az-day {
  min-width: 124px;
  border: 1px solid rgba(75, 54, 39, 0.13);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.68);
}

.az-day-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 8px;
  border-bottom: 1px solid rgba(75, 54, 39, 0.1);
  color: var(--az-muted);
  font-size: 0.82rem;
}

.az-day-title strong {
  color: var(--az-ink);
  font-size: 0.96rem;
}

.az-slots {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.az-slot {
  min-height: 38px;
  border: 1px solid rgba(73, 107, 49, 0.24);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--az-green-dark);
  cursor: pointer;
  font-weight: 800;
}

.az-slot:hover,
.az-slot.is-selected {
  border-color: var(--az-green);
  background: linear-gradient(180deg, #5b7a3d, #365822);
  color: #fff;
}

.az-slot.is-booked,
.az-slot:disabled {
  border-color: rgba(75, 54, 39, 0.12);
  background: rgba(75, 54, 39, 0.06);
  color: rgba(67, 47, 36, 0.38);
  cursor: not-allowed;
}

.az-empty-day {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  color: rgba(67, 47, 36, 0.45);
  font-weight: 700;
}

.az-booking-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.az-booking-fields label {
  display: grid;
  gap: 8px;
  color: var(--az-ink);
  font-weight: 700;
}

.az-booking-fields input,
.az-booking-fields textarea {
  width: 100%;
  border: 1px solid rgba(75, 54, 39, 0.18);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--az-text);
  font: inherit;
}

.az-booking-fields input {
  min-height: 48px;
  padding: 0 14px;
}

.az-booking-fields textarea {
  resize: vertical;
  padding: 14px;
}

.az-field-wide {
  grid-column: 1 / -1;
}

.az-consent {
  display: flex !important;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px !important;
  color: var(--az-muted) !important;
  font-weight: 500 !important;
}

.az-consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--az-green);
}

.az-booking-summary {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(73, 107, 49, 0.2);
  border-radius: 8px;
  background: rgba(73, 107, 49, 0.08);
  color: var(--az-green-dark);
  font-weight: 700;
}

.az-submit {
  width: fit-content;
  margin-top: 18px;
  border: 0;
  cursor: pointer;
}

.az-submit:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.az-booking-message {
  min-height: 24px;
  margin-top: 14px;
  font-weight: 700;
}

.az-booking-message.is-success {
  color: var(--az-green-dark);
}

.az-booking-message.is-error {
  color: #9d3028;
}

@media (max-width: 1120px) {
  .az-header {
    background:
      linear-gradient(90deg, rgba(248, 239, 229, 1) 0%, rgba(248, 239, 229, 0.98) 58%, rgba(248, 239, 229, 0.72) 72%, rgba(248, 239, 229, 0.08) 100%),
      url("assets/images/hero-spa.png") calc(100% + 150px) top / clamp(470px, 52vw, 610px) 570px no-repeat;
  }

  .az-menu {
    margin-left: 0;
    gap: 14px;
    font-size: 0.9rem;
  }

  .az-nav > .az-button {
    display: none;
  }

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

  .az-service-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .az-calendar {
    grid-template-columns: repeat(4, minmax(124px, 1fr));
  }

  .az-about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .az-features {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .az-wrap {
    width: min(100% - 32px, 1088px);
  }

  .az-header {
    min-height: 100svh;
    background:
      linear-gradient(180deg, rgba(248, 239, 229, 0.98) 0%, rgba(248, 239, 229, 0.88) 42%, rgba(248, 239, 229, 0.44) 100%),
      url("assets/images/hero-spa.png") 68% bottom / auto 100% no-repeat;
  }

  .az-nav {
    min-height: 94px;
    padding-top: 14px;
  }

  .az-logo {
    width: 150px;
    flex-basis: 150px;
    font-size: 0.76rem;
    text-align: left;
  }

  .az-logo-mark {
    width: 120px;
    height: 32px;
    margin: 0;
  }

  .az-logo-mark::before {
    width: 42px;
    height: 23px;
    border-width: 3px 3px 0 3px;
  }

  .az-logo-mark::after {
    bottom: 6px;
    border-bottom-width: 3px;
  }

  .az-menu {
    display: none;
  }

  .az-nav > .az-button {
    display: inline-flex;
    min-height: 38px;
    margin-left: auto;
    padding: 0 14px;
    border-color: rgba(255, 255, 255, 0.86);
    border-radius: 7px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .az-hero-copy {
    padding-top: 72px;
  }

  .az-heading {
    max-width: 350px;
    font-size: clamp(2.65rem, 13vw, 3.35rem);
  }

  .az-lead {
    max-width: 330px;
    font-size: 1.02rem;
  }

  .az-section {
    padding: 48px 0;
  }

  .az-offer {
    margin-top: -64px;
  }

  .az-service-grid,
  .az-service-picker,
  .az-about-grid,
  .az-features {
    grid-template-columns: 1fr;
  }

  .az-booking-header {
    padding-bottom: 34px;
    background:
      linear-gradient(180deg, rgba(248, 239, 229, 0.98) 0%, rgba(248, 239, 229, 0.9) 100%),
      url("assets/images/hero-spa.png") 65% top / auto 100% no-repeat;
  }

  .az-booking-panel {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .az-service-picker,
  .az-calendar,
  .az-booking-fields,
  .az-booking-summary,
  .az-submit,
  .az-booking-message {
    grid-column: 1;
  }

  .az-calendar {
    display: flex;
    gap: 12px;
    margin-right: -16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .az-day {
    width: 146px;
    min-width: 146px;
    scroll-snap-align: start;
  }

  .az-booking-fields {
    grid-template-columns: 1fr;
  }

  .az-card {
    min-height: auto;
  }

  .az-about-photo {
    aspect-ratio: 1.28 / 1;
  }
}

@media (max-width: 380px) {
  .az-logo {
    width: 132px;
    flex-basis: 132px;
    font-size: 0.68rem;
  }

  .az-logo-mark {
    width: 108px;
  }

  .az-nav > .az-button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.76rem;
  }
}
