/*
Theme Name: Fizjoterapia Natalia Wojcik
Theme URI: https://example.com/
Author: Codex
Description: One-page WordPress theme based on the supplied physiotherapy design.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: fizjo-natalia
*/

:root {
  --green: #8d9d79;
  --green-dark: #657553;
  --pink: #e5aaa4;
  --pink-light: #f8e8e2;
  --cream: #fbf7f1;
  --warm: #f3e7dd;
  --ink: #252525;
  --muted: #5d5a56;
  --line: rgba(129, 119, 101, 0.22);
  --white: #fffdf9;
  --shadow: 0 18px 45px rgba(93, 78, 60, 0.09);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

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

.site-shell {
  overflow: hidden;
  background:
    radial-gradient(circle at 0 26%, rgba(248, 221, 210, 0.78), transparent 20rem),
    radial-gradient(circle at 100% 13%, rgba(243, 212, 199, 0.7), transparent 18rem),
    var(--cream);
}

.container {
  width: min(1110px, calc(100% - 48px));
  margin-inline: auto;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.05;
  text-align: center;
}

.section-title::after,
.accent-line::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 99px;
  background: var(--pink);
}

.accent-line.left::after {
  margin-left: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-outline {
  color: var(--ink);
  border-color: rgba(57, 54, 48, 0.5);
  background: rgba(255, 255, 255, 0.55);
}

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  padding: 18px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 304px;
  line-height: 1.05;
  font-weight: 600;
}

.brand-mark {
  flex: 0 0 auto;
  width: 76px;
  height: 82px;
  object-fit: contain;
  object-position: center;
}

.brand-text {
  display: block;
  color: #252525;
  font-size: 24px;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

.brand img:not(.brand-mark) {
  width: 254px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  font-size: 14px;
  font-weight: 600;
}

.nav li {
  list-style: none;
}

.nav a {
  position: relative;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  background: var(--pink);
  transition: transform 0.2s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  min-width: 151px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 12px 23px;
  text-align: center;
}

.hero {
  position: relative;
  min-height: 560px;
  padding: 128px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(510px, 48%) minmax(0, 52%);
  align-items: stretch;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 28px 40px 52px 52px;
}

.hero-title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(52px, 5.2vw, 66px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-title span {
  color: var(--pink);
}

.hero-copy p {
  max-width: 470px;
  margin: 0 0 24px;
  color: #2d2d2d;
  font-size: 15px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-media {
  position: relative;
  min-height: 455px;
  border-bottom-left-radius: 44% 58%;
  overflow: hidden;
}

.hero-media::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -22px auto -20px -74px;
  width: 160px;
  background: var(--cream);
  border-radius: 47% 53% 49% 51% / 31% 42% 58% 69%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 455px;
  object-fit: cover;
  object-position: center;
}

.botanical {
  position: absolute;
  pointer-events: none;
  opacity: 0.75;
}

.botanical-left {
  left: -12px;
  top: 333px;
  width: 105px;
  color: #efc3b7;
}

.botanical-small {
  left: 47%;
  top: 250px;
  width: 66px;
  color: var(--green);
}

.botanical-about {
  right: 5%;
  bottom: 30px;
  width: 175px;
  color: #efc3b7;
}

.services {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  padding: 19px 0 34px;
  background: rgba(255, 253, 249, 0.95);
  border-top-right-radius: 60px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 26px;
  margin-top: 32px;
}

.service-item {
  text-align: center;
  color: #201f1d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 116px;
  height: 98px;
  margin: 0 auto 14px;
  border: 1px solid rgba(141, 157, 121, 0.18);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 237, 231, 0.86));
  box-shadow: 0 16px 34px rgba(143, 122, 101, 0.12);
}

.service-icon svg {
  width: 68px;
  height: 68px;
  stroke: #5f704f;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon .heart {
  stroke: var(--pink);
}

.check,
.stars {
  color: var(--pink);
}

.about {
  position: relative;
  padding: 0;
  background: rgba(246, 237, 230, 0.72);
}

.about-inner {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  min-height: 286px;
  align-items: center;
}

.about-photo {
  align-self: center;
  height: 286px;
  overflow: hidden;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 18px 45px rgba(93, 78, 60, 0.08);
}

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

.about-text {
  max-width: 720px;
  padding: 34px 0;
}

.about-text h2,
.symptoms h2,
.contact h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(27px, 2.7vw, 34px);
  font-weight: 500;
  line-height: 1.1;
}

.about-text p {
  margin: 0;
}

.symptoms {
  position: relative;
  padding: 0 0 14px;
  background: rgba(255, 253, 249, 0.96);
}

.symptoms-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: stretch;
}

.symptom-panel {
  padding: 36px 44px 38px;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.98), rgba(255, 253, 249, 0.92)),
    #fffdf9;
  box-shadow: 0 18px 50px rgba(93, 78, 60, 0.08);
}

.symptom-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.symptom-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid rgba(229, 170, 164, 0.17);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: #242321;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
}

.check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #fff;
  background: var(--pink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.symptom-photo {
  min-height: 100%;
  overflow: hidden;
  border-radius: 0 0 0 18px;
}

.symptom-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials {
  position: relative;
  padding: 17px 0 41px;
  background: var(--cream);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 25px;
}

.testimonial {
  min-height: 126px;
  padding: 24px 28px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.stars {
  margin-bottom: 10px;
  color: var(--pink);
  font-size: 18px;
  letter-spacing: 2px;
}

.testimonial p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
}

.testimonial strong {
  font-size: 13px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eadbd2;
}

.dots span:first-child {
  background: var(--pink);
}

.contact {
  padding: 27px 0 29px;
  background: linear-gradient(90deg, #f7ebe5, #fbf1ec 52%, #f1ded5);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 42px;
}

.contact-card {
  min-height: 160px;
  padding: 0 25px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.95);
}

.contact-card:last-child {
  border-right: 0;
  padding-right: 0;
}

.address-line {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 19px;
}

.pin {
  width: 36px;
  height: 46px;
  stroke: var(--green);
  fill: none;
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid rgba(101, 117, 83, 0.55);
  border-radius: 7px;
  background: rgba(255, 253, 249, 0.65);
  font-size: 13px;
}

.contact-button.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.contact-button svg {
  width: 18px;
  height: 18px;
}

.map-image {
  width: 100%;
  height: 122px;
  border-radius: 8px;
  object-fit: cover;
}

.site-footer {
  padding: 14px 0 10px;
  color: #fff;
  background: var(--green);
  text-align: center;
}

.footer-inner {
  position: relative;
}

.site-footer strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.site-footer small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  opacity: 0.9;
}

.privacy-link {
  position: absolute;
  right: 0;
  top: 8px;
  font-size: 12px;
}

.content-shell {
  min-height: calc(100vh - 74px);
  padding: 138px 0 72px;
  background:
    radial-gradient(circle at 0 15%, rgba(248, 221, 210, 0.55), transparent 22rem),
    radial-gradient(circle at 100% 18%, rgba(223, 232, 215, 0.5), transparent 24rem),
    var(--cream);
}

.narrow-content {
  max-width: 920px;
}

.content-header {
  margin-bottom: 32px;
  text-align: center;
}

.content-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.03;
}

.content-article,
.post-card {
  border: 1px solid rgba(141, 157, 121, 0.16);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: var(--shadow);
}

.content-article {
  padding: clamp(26px, 5vw, 54px);
}

.entry-content {
  color: #2d2d2d;
  font-size: 16px;
  line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
  margin: 1.6em 0 0.5em;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
}

.entry-content a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-list {
  display: grid;
  gap: 24px;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  overflow: hidden;
}

.post-card-image {
  min-height: 230px;
  background: var(--warm);
}

.post-card-image img,
.single-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 26px 30px;
}

.post-date {
  margin: 0 0 9px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-card h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.05;
}

.post-excerpt p {
  margin: 0 0 16px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.single-featured-image {
  overflow: hidden;
  margin: 0 0 32px;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(101, 117, 83, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.78);
}

.page-numbers.current {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

@media (max-width: 980px) {
  .site-header {
    position: relative;
    padding: 15px 0;
    background: var(--cream);
  }

  .header-inner,
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand img:not(.brand-mark) {
    width: 230px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 66px;
    height: 72px;
  }

  .brand-text {
    font-size: 23px;
  }

  .hero {
    padding-top: 10px;
  }

  .hero-grid,
  .about-inner,
  .symptoms-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 34px 0;
  }

  .hero-media {
    min-height: 380px;
    border-radius: 36px 36px 0 0;
  }

  .hero-media::before {
    display: none;
  }

  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-photo {
    max-width: 320px;
    height: 310px;
    border-radius: 14px;
  }

  .symptom-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .symptom-photo {
    min-height: 220px;
    border-radius: 0;
  }

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

  .post-card {
    grid-template-columns: 1fr;
  }

  .content-shell {
    padding-top: 46px;
  }

  .contact-card {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.95);
    padding: 0 0 24px;
  }

  .privacy-link {
    position: static;
    display: block;
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1110px);
  }

  .nav {
    gap: 14px 18px;
    font-size: 13px;
  }

  .nav-cta {
    min-width: 130px;
  }

  .hero-title {
    font-size: 46px;
  }

  .brand-mark {
    width: 58px;
    height: 63px;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero-actions {
    display: grid;
  }

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

  .symptom-list {
    grid-template-columns: 1fr;
  }

  .symptom-panel {
    padding: 24px 18px;
  }
}
