/*
Theme Name: Iveta – Regresinė terapija
Description: Blokinė Ivetos Mališauskaitės svetainės tema.
Version: 1.2.5
Requires at least: 6.4
Requires PHP: 8.5
Text Domain: iveta
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
* { box-sizing: border-box; }
:root { color-scheme: light; --ink:#182c25; --muted:#40564c; --paper:#f8f6ef; --sage:#e7ece2; --line:#b6c4b8; --green:#294a3d; --serif: Georgia, 'Times New Roman', serif; }
html { scroll-behavior:smooth; }
body, .editor-styles-wrapper { margin:0; background:var(--paper); color:var(--ink); font-family:system-ui,sans-serif; font-size:17px; line-height:1.65; }
a { color:inherit; text-underline-offset:.2em; }
a:focus-visible { outline:2px solid #845829; outline-offset:5px; }
img { display:block; max-width:100%; height:auto; }
figure { margin:0; }
h1,h2,h3 { font-family:var(--serif); font-weight:400; line-height:1.08; letter-spacing:-.035em; margin:0 0 .45em; }
h1 { font-size:clamp(3.55rem,9vw,7.8rem); }
h2 { font-size:clamp(2.35rem,5.25vw,4.35rem); }
h3 { font-size:1.8rem; }
p { margin:0 0 1em; }
.wrap { width:min(calc(100% - 3rem),72rem); margin-inline:auto; }
.section { padding-block:clamp(3.8rem,8vw,7.5rem); }
.site-header { border-bottom:1px solid var(--line); }
.header-inner,.site-nav,.actions,.footer-inner,.footer-links { display:flex; align-items:center; flex-wrap:wrap; gap:.85rem 1.6rem; }
.header-inner { justify-content:space-between; min-height:82px; padding-block:.8rem; }
.brand { font-family:var(--serif); font-size:1.45rem; line-height:1.2; text-decoration:none; }
.site-nav { font-size:.94rem; }
.site-nav a { text-decoration:none; }
.site-nav a:hover,.text-link a:hover { text-decoration:underline; }
.site-nav a:last-child { border:1px solid var(--green); border-radius:35px; padding:.35rem .85rem; }
.hero { display:grid; grid-template-columns:1.14fr .86fr; align-items:center; gap:clamp(2rem,7vw,7rem); padding-block:clamp(3rem,7vw,6.5rem); }
.eyebrow { font-weight:650; color:var(--green); font-size:.88rem; letter-spacing:.09em; text-transform:uppercase; }
.intro,.section-intro { max-width:40rem; font-size:clamp(1.09rem,2vw,1.3rem); color:var(--muted); }
.actions p { margin:0; }
.actions { margin-block:1.65rem .6rem; }
.cta a { display:inline-block; padding:.72rem 1.2rem; background:var(--green); color:#fff; border-radius:32px; text-decoration:none; font-weight:600; }
.cta a:hover { background:#173227; }
.text-link { font-weight:600; }
.portrait-wrap { position:relative; }
.portrait { overflow:hidden; background:#d6dfd0; border-radius:48% 48% 8px 8px / 36% 36% 8px 8px; }
.portrait img { width:100%; aspect-ratio:4/4.55; object-fit:cover; object-position:50% 34%; }
.portrait-caption { margin:.65rem 0 0; color:var(--muted); text-align:center; font-family:var(--serif); font-size:1.12rem; }
.band { background:var(--sage); }
.section-head { display:grid; grid-template-columns:1fr 1fr; gap:1rem 3rem; padding-block:clamp(3rem,6vw,5.25rem); }
.section-head .eyebrow { grid-column:1/-1; margin:0; }
.section-head :is(h2,p) { margin-bottom:0; }
.steps,.quotes { display:grid; gap:1.4rem; margin-top:2rem; }
.steps { grid-template-columns:repeat(3,minmax(0,1fr)); }
.step { border-top:1px solid var(--line); padding:1.3rem 1rem 0 0; }
.step p,.bio-copy p { color:var(--muted); }
.bio { border-top:1px solid var(--line); display:grid; grid-template-columns:.75fr 1.25fr; align-items:center; gap:clamp(2rem,7vw,6rem); }
.bio-mark { display:grid; place-items:center; background:#e9e9dc; border-radius:8px 46% 8px 46%; min-height:clamp(13rem,27vw,24rem); padding:2rem; }
.brand-art img { max-height:15rem; object-fit:contain; mix-blend-mode:multiply; }
.quotes { grid-template-columns:repeat(2,minmax(0,1fr)); }
.quotes blockquote { margin:0; padding:1.5rem; border:1px solid var(--line); border-radius:0 1.5rem 0 0; background:var(--paper); display:flex; flex-direction:column; justify-content:space-between; }
.quotes blockquote p { font-family:var(--serif); font-size:1.35rem; line-height:1.45; }
.quotes cite { font-style:normal; font-weight:650; }
.booking { display:grid; grid-template-columns:1.25fr .75fr; align-items:center; gap:clamp(2rem,7vw,6rem); }
.booking-email,.footer-links { overflow-wrap:anywhere; }
.rate { background:var(--green); color:#fff; border-radius:2rem 0 2rem 0; padding:1.7rem 2rem; }
.rate .eyebrow { color:#e4ebde; }
.rate p:last-child { margin-bottom:0; }
.price { font:400 4rem/1 var(--serif); margin:.15em 0 .3em; }
.site-footer { background:var(--ink); color:#f8f6ef; }
.footer-inner { justify-content:space-between; padding-block:1.65rem; }
.footer-inner p { margin:0; }
.footer-brand { font-family:var(--serif); font-size:1.25rem; }
.footer-links,.footer-policy { font-size:.92rem; }
.article { max-width:52rem; min-height:46vh; overflow-wrap:anywhere; }
.skip { position:absolute; left:1rem; top:-5rem; z-index:20; background:white; padding:.5rem; }
.skip:focus { top:1rem; }
@media(max-width:760px) {
  .hero,.section-head,.bio,.booking,.steps { grid-template-columns:1fr; }
  .hero { gap:2.1rem; }
  .hero h1 { font-size:clamp(3.2rem,13vw,6rem); }
  .portrait-wrap { width:min(100%,29rem); margin-inline:auto; }
  .bio-mark { width:min(100%,25rem); }
  .section-head .eyebrow { grid-column:auto; }
}
@media(max-width:520px) {
  .wrap { width:calc(100% - 2rem); }
  .site-nav { gap:.45rem 1rem; }
  .site-nav a:last-child { border:0; padding:0; }
  .quotes { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }


.hero-copy .intro,
.section-intro,
.step p,
.bio-copy p:not(.eyebrow),
.booking-copy > p:not(.eyebrow, .booking-email),
.article .wp-block-post-content p:not([class*="has-text-align-"]) {
  text-align: justify;
  hyphens: auto;
}

/* Sticky navigation and session booking. */
:root { --iveta-menu-offset: 6rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); }
body.admin-bar .site-header { top: 32px; }
.landing section[id] { scroll-margin-top: calc(var(--iveta-menu-offset) + 32px); }
.booking { align-items: start; }
.iveta-reservation { margin-block: 1.4rem; }
.iveta-reservation form { display: grid; gap: .8rem; }
.iveta-reservation form > label { display: grid; gap: .25rem; font-weight: 600; }
.iveta-reservation [hidden] { display: none !important; }
.iveta-reservation input:not([type="radio"],[type="hidden"]) { width: 100%; padding: .6rem; border: 1px solid var(--line); border-radius: .4rem; background: white; color: var(--ink); font: inherit; }
.iveta-reservation fieldset { min-width: 0; padding: .75rem; border: 1px solid var(--line); border-radius: .5rem; }
.iveta-reservation legend { font-weight: 650; }
.iveta-slot-day + .iveta-slot-day { margin-top: .6rem; }
.iveta-times { display: flex; flex-wrap: wrap; gap: .4rem .8rem; }
.iveta-times span { color: var(--muted); }
.iveta-reservation button { justify-self: start; padding: .7rem 1.1rem; border: 0; border-radius: 2rem; background: var(--green); color: white; font: inherit; font-weight: 650; cursor: pointer; }
.iveta-reservation button:disabled { opacity: .63; cursor: default; }
.iveta-booking-notice { padding: .65rem .85rem; background: var(--sage); border-radius: .4rem; }
@media (max-width: 782px) {
  :root { --iveta-menu-offset: 8rem; }
  body.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
  body.admin-bar .site-header { top: 0; }
}

.iveta-booking-privacy { font-size: .94rem; }
.iveta-booking-privacy summary { cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

.iveta-reservation { background: #fff; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: .75rem; }
.iveta-reservation h3 { margin-bottom: .65rem; }
.iveta-reservation .iveta-booking-contact { display: grid; gap: .65rem; }
.iveta-booking-contact label { display: grid; gap: .2rem; }

.site-nav a.language-switch { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0 0 0 .85rem; }
.site-nav a[href$="#registracija"] { border: 1px solid var(--green); border-radius: 35px; padding: .35rem .85rem; }

/* Align grid children independently of WordPress block spacing. */
.landing #sesija .steps > .step,
.landing #atsiliepimai .quotes > .wp-block-quote,
.landing #apie.bio > .wp-block-group {
  margin-block: 0;
}
.landing #sesija .steps > .step {
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}
.landing #sesija .step > .wp-block-heading { margin-block: 0 .65rem; }
.landing #sesija .step > p { margin-block: 0; }

.landing #apie.bio {
  align-items: start;
  padding-top: clamp(1.75rem, 3.5vw, 3rem);
}
.landing #apie .bio-copy > .eyebrow { margin-top: 0; }
.landing #atsiliepimai > .section {
  padding-top: clamp(1.75rem, 3.5vw, 3rem);
  margin-block: 0;
}
.landing #atsiliepimai .section > .wp-block-heading { margin-top: 0; }

.landing section:is(#apie, #atsiliepimai) { scroll-margin-top: var(--iveta-menu-offset); }
body.admin-bar .landing section:is(#apie, #atsiliepimai) {
  scroll-margin-top: calc(var(--iveta-menu-offset) + 32px);
}
@media (max-width: 782px) {
  body.admin-bar .landing section:is(#apie, #atsiliepimai) {
    scroll-margin-top: calc(var(--iveta-menu-offset) + 46px);
  }
}
@media (max-width: 760px) {
  .landing #apie .bio-copy { grid-row: 1; }
  .landing #apie.bio { row-gap: 1rem; }
}
@media (max-width: 600px) {
  body.admin-bar .landing section:is(#apie, #atsiliepimai) {
    scroll-margin-top: var(--iveta-menu-offset);
  }
}

.iveta-language-picker { display:flex; flex-wrap:wrap; align-items:center; gap:.3rem; padding:.2rem; background:var(--sage); border-radius:2rem; font-size:.88rem; line-height:1.3; }
.iveta-language-picker a { padding:.35rem .65rem; border-radius:2rem; text-decoration:none; white-space:nowrap; }
.iveta-language-picker a:hover { text-decoration:underline; }
.iveta-language-picker [aria-current] { background:var(--green); color:#fff; }
.header-inner { column-gap:1rem; }
@media (max-width:760px) {
  .header-inner { justify-content:flex-start; row-gap:.55rem; }
  .header-inner > .site-nav { order:3; flex-basis:100%; }
  .header-inner > .iveta-language-picker { margin-left:auto; }
}
