/* Holistic Therapy Clinic */

@font-face { font-family: Inter; src: url('fonts/inter-variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Cardo; src: url('fonts/cardo-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Cardo; src: url('fonts/cardo-italic.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --text: #26332f;
  --muted: #5f6b66;
  --green: #3d6b55;
  --green-dark: #2c5140;
  --bg: #fbfaf7;
  --sand: #f2eee6;
  --border: #e2ddd2;
  --serif: Cardo, Georgia, serif;
  --sans: Inter, -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--text); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 6px; background: var(--green); color: #fff; border: 1px solid var(--green); font-size: .95rem; font-weight: 500; text-decoration: none; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }

/* Header */
/* Header: brand left, links centred, language switch right */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.container.header-inner { max-width: none; padding: 0 clamp(20px, 3vw, 40px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 76px; }
.brand { min-width: 0; justify-self: start; display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; color: var(--text); font-family: var(--serif); font-size: 1.3rem; }
.brand:hover { color: var(--text); }
.brand img { width: 44px; height: 44px; flex: none; }
.site-header #main-navigation { justify-self: center; display: flex; align-items: center; gap: 32px; font-size: .95rem; }
.site-header #main-navigation a { color: var(--text); text-decoration: none; white-space: nowrap; }
.site-header #main-navigation a:hover, .site-header #main-navigation a[aria-current=page] { color: var(--green); }
.site-header #main-navigation a[aria-current=page]:not(.btn) { text-decoration: underline; text-underline-offset: 6px; }
.site-header #main-navigation .nav-phone, .site-header #main-navigation .btn { display: none; }
.menu-toggle { display: none; }

/* Language switch: two equal segments, a pill slides to the active one */
.lang-switch { justify-self: end; position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.lang-switch::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--sand); box-shadow: inset 0 0 0 1px var(--border); transition: transform .28s cubic-bezier(.4, 0, .2, 1); }
.lang-switch[data-lang="pl"]::before { transform: translateX(100%); }
.lang-switch a { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-decoration: none; transition: color .2s; }
.lang-switch a:hover, .lang-switch a[aria-current] { color: var(--text); }
.lang-switch a:focus-visible { outline-offset: 1px; }
.lang-switch img { width: 20px; height: 14px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Home */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 64px 24px 72px; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 68% 30%; border-radius: 8px; }
.hero-quote { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--green); margin-bottom: 18px; }

section { padding: 72px 0; }
.section-alt { background: var(--sand); }
.section-intro { max-width: 36em; color: var(--muted); }

.treatment-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.treatment-list li { border-top: 1px solid var(--border); padding: 22px 0; }
.treatment-list h3 { margin-bottom: 4px; }
.treatment-list h3 a { color: var(--text); text-decoration: none; }
.treatment-list h3 a:hover { color: var(--green); }
.treatment-list p { margin: 0; color: var(--muted); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.split img { border-radius: 8px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }

.booking { text-align: center; }
.booking p { max-width: 34em; margin-left: auto; margin-right: auto; color: var(--muted); }
.phone-big { display: inline-block; font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); color: var(--text); text-decoration: none; margin: 8px 0 12px; }
.phone-big:hover { color: var(--green); }

/* Inner pages */
.page-header { padding-top: 56px; padding-bottom: 8px; }
.page-header p { font-size: 1.1rem; color: var(--muted); max-width: 36em; }

.treatments { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding-top: 32px; }
.treatments-nav { position: sticky; top: 100px; align-self: start; font-size: .92rem; }
.treatments-nav p { font-weight: 600; margin-bottom: 8px; }
.treatments-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.treatments-nav a { display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; }
.treatments-nav a:hover { color: var(--green); }
.treatment { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--border); max-width: 40em; }
.treatment:last-child { border-bottom: 0; margin-bottom: 0; }
.treatment h2 { margin-bottom: 4px; }
.treatment .sub { font-family: var(--serif); font-style: italic; color: var(--green); font-size: 1.15rem; margin-bottom: 14px; }
.wide-photo { width: 100%; height: 340px; object-fit: cover; object-position: center 62%; border-radius: 8px; margin-top: 24px; }

.price-table { width: 100%; border-collapse: collapse; margin-top: 20px; max-width: 40em; }
.price-table th, .price-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--border); }
.price-table th { font-weight: 600; font-size: .9rem; }
.tbc { color: var(--muted); font-style: italic; }

.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; padding-top: 24px; }
.about-grid img { border-radius: 8px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.plain-list { padding-left: 1.2em; margin: 0 0 1.2em; }
.plain-list li { margin-bottom: 4px; }
.note { background: var(--sand); border-left: 3px solid var(--green); padding: 14px 18px; font-size: .95rem; color: var(--muted); border-radius: 0 6px 6px 0; }

.contact-single { padding-top: 24px; }
.contact-single > div { max-width: 40em; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; padding-top: 24px; }
.details { margin: 24px 0 0; }
.details div { padding: 12px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.details dt { font-weight: 600; font-size: .92rem; }
.details dd { margin: 0; }
form { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .92rem; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfc9bc; border-radius: 6px; background: #fff; font: inherit; font-size: 1rem; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid #d6e5dc; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-small { font-size: .85rem; color: var(--muted); }
.form-status:not(:empty) { margin-top: 16px; padding: 12px 14px; background: var(--sand); border-radius: 6px; font-size: .92rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 72px; padding: 40px 0 28px; font-size: .92rem; color: var(--muted); background: #fff; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-cols h3 { font-family: var(--sans); font-size: .92rem; font-weight: 600; margin-bottom: 8px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 4px; }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--green); }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; font-size: .85rem; }
.home-page .site-footer { margin-top: 0; }

/* Quotes and mottos */
.pull { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--green); font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.35; color: var(--green-dark); }
.motto { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--green-dark); margin: 0; }
.split-text { grid-template-columns: 1.3fr 1fr; }
.split-text .motto { padding-left: 32px; border-left: 1px solid var(--border); }

/* Therapies */
.treatment .opening { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--text); margin-bottom: 18px; }

/* About */
.about-side { position: sticky; top: 100px; }
.training { margin-top: 28px; font-size: .95rem; }
.training h2 { font-size: 1.5rem; }
.training h3 { font-family: var(--sans); font-size: .92rem; font-weight: 600; margin: 22px 0 6px; }
.training ul { list-style: none; padding: 0; margin: 0; }
.training li { padding: 7px 0; border-top: 1px solid var(--border); }
.training strong { font-weight: 600; }
.story { max-width: 36em; }
.story > p:first-child { font-size: 1.1rem; }
.story .question { font-family: var(--serif); font-size: 1.6rem; color: var(--green-dark); margin: 6px 0 22px; }
.story .closing { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; margin-top: 8px; }
.story .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Courses */
.page-header .tagline { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--green); margin-top: -4px; }
.page-header .motto { margin: 20px 0 0; font-size: 1.35rem; color: var(--green-dark); }
.course-feature { margin-top: 40px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 36px; }
.course-feature > div { max-width: 40em; }
.course-feature .details { margin-top: 20px; }
.status { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); background: var(--sand); padding: 3px 10px; border-radius: 99px; margin-bottom: 14px; }
.status-live { color: #fff; background: var(--green); }
.courses-heading { margin-top: 64px; }
.course-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.course { border-top: 1px solid var(--border); padding: 24px 0 8px; }
.course .status { margin-bottom: 10px; }
.course p:last-child { color: var(--muted); }
.courses-close { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); max-width: 40em; }
.courses-close p:first-child { font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; }


/* Photos beside therapies and the STR course */
.treatment.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 36px; align-items: start; max-width: 54em; }
.treatment-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; margin-top: 6px; }
.course-feature { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: center; }
.course-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 8px; }
@media (max-width: 720px) {
  .treatment.has-photo, .course-feature { grid-template-columns: 1fr; gap: 18px; }
  .treatment-photo, .course-photo { order: -1; aspect-ratio: 4 / 3; }
}

/* Tablet */
@media (max-width: 900px) {
  .hero, .split, .about-grid, .contact-grid { gap: 36px; }
  .treatments { grid-template-columns: 1fr; gap: 24px; }
  .treatments-nav { position: static; }
  .treatments-nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; border-left: 0; }
  .treatments-nav a { padding: 2px 0; }
  .about-side { position: static; }
  .split-text { grid-template-columns: 1fr; }
  .split-text .motto { padding-left: 0; border-left: 0; }
}


/* Mobile */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero, .split, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 24px 48px; }
  .hero img { aspect-ratio: 4 / 3; }
  .split img, .about-grid img { aspect-ratio: 1; }
  section { padding: 52px 0; }
  .treatment-list, .course-list { grid-template-columns: 1fr; }
  .course-feature { padding: 24px; }
  .pull { font-size: 1.25rem; }
  .wide-photo { height: 220px; }
  .details div { grid-template-columns: 1fr; gap: 2px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  form { padding: 20px; }
  .footer-cols { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Compact header: links move into the Menu panel */
@media (max-width: 1060px) {
  .container.header-inner { grid-template-columns: 1fr auto auto; gap: 14px; height: 64px; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 38px; height: 38px; }
  .menu-toggle { display: block; background: none; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font: 500 .9rem var(--sans); color: var(--text); cursor: pointer; }
  .site-header #main-navigation { display: flex; position: fixed; top: 64px; right: 0; bottom: 0; left: auto; width: min(86vw, 360px); max-width: none; margin: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 28px 32px; font-size: 1.1rem; overflow-y: auto; box-shadow: -12px 0 32px rgba(38, 51, 47, .12); transform: translateX(100%); visibility: hidden; transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .32s; z-index: 30; }
  .site-header #main-navigation[data-open] { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
  .site-header::after { content: ""; position: fixed; top: 64px; right: 0; bottom: 0; left: 0; background: rgba(38, 51, 47, .28); opacity: 0; pointer-events: none; transition: opacity .32s; z-index: 25; }
  body.menu-open .site-header::after { opacity: 1; pointer-events: auto; }
  .site-header #main-navigation a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .site-header #main-navigation .nav-phone { display: block; font-weight: 600; }
  .site-header #main-navigation .btn { display: block; margin-top: 18px; text-align: center; padding: 13px; border-bottom: 0; color: #fff; }
}

/* Small phones: name may wrap; flags without the EN/PL letters */
@media (max-width: 420px) {
  .container.header-inner { gap: 8px; padding: 0 14px; }
  .brand { white-space: normal; font-size: 1rem; line-height: 1.15; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .lang-switch a { padding: 0 9px; }
  .lang-switch a span[aria-hidden] { display: none; }
  .menu-toggle { padding: 6px 11px; }
}

/* Phones: the language switch moves into the Menu panel so the top bar has room */
.lang-switch-menu { display: none; }
@media (max-width: 600px) {
  .header-inner > .lang-switch { display: none; }
  .brand { white-space: normal; line-height: 1.15; }
  .site-header #main-navigation .lang-switch-menu { display: grid; align-self: center; margin-top: 24px; }
  .site-header #main-navigation .lang-switch-menu a { height: 38px; padding: 0 18px; border-bottom: 0; font-size: .85rem; }
  .site-header #main-navigation .lang-switch-menu a span[aria-hidden] { display: inline; }
}

@media (prefers-reduced-motion: reduce) { .lang-switch::before, .site-header #main-navigation, .site-header::after { transition: none; } }
