/*
Theme Name: We take Care
Theme URI: https://wetakecare.pl
Author: We take Care
Author URI: https://wetakecare.pl
Description: Banki 2.0 (Liquid Bubble) - dreamy, airy wedding planner block theme. Apricot sky, iridescent soap bubbles that react to the pointer, floating glass navigation, scroll-driven reveals, watercolor gypsophila and eucalyptus, Pinyon Script lettering.
Version: 2.1.2
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wedding-planner-v6
*/

@property --rim-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 210deg;
}

@property --mx {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

@property --my {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

:root {
  --apricot: #FBEFE7;
  --apricot-light: #FFF8F3;
  --apricot-edge: #F5D8C8;
  --eucalyptus: #6E8F78;
  --eucalyptus-ink: #4F6E58;
  --sage: #B4C7B6;
  --ink: #3C3735;
  --ink-soft: #655B58;
  --irid-pink: #F9CBDA;
  --irid-lilac: #D8CBEC;
  --irid-aqua: #C6E5E5;
  --irid-gold: #F6E5C3;
  --font-script: 'Pinyon Script', 'Brush Script MT', cursive;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Mulish', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --hero-bubble-size: min(max(70vh, 24rem), 90vw);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --section-pad: clamp(5rem, 9vw, 8rem);
  --nav-offset: 5.5rem;
  --img-frame: url('/wp-content/themes/wedding-planner-v6/assets/images/hero-neutral-white-babys-breath-frame-v4.png');
  --img-clusters: url('/wp-content/themes/wedding-planner-v6/assets/images/neutral-white-babys-breath-clusters-v4.png');
  --img-eucalyptus: url('/wp-content/themes/wedding-planner-v6/assets/images/neutral-white-eucalyptus-scatter-v4.png');
}

/* ---------- base / sky ---------- */
html {
  min-height: 100%;
  background: var(--apricot);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  background-color: var(--apricot);
  background-image:
    radial-gradient(ellipse 58% 52% at 50% 52%, var(--apricot-light) 0%, rgba(255, 248, 243, 0) 72%),
    radial-gradient(ellipse 110% 96% at 50% 50%, var(--apricot) 40%, var(--apricot-edge) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: fixed;
}

/* faint watercolour-paper grain under everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .46 0 0 0 0 .40 0 0 0 0 .35 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

p {
  text-wrap: pretty;
}

.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* anchored sections must clear the floating header */
.section-kroki,
.section-onas,
.section-oferta,
.section-kontakt {
  scroll-margin-top: 4.5rem;
}

/* circular flex bubbles must never wrap children into a second column
   (WP layout styles set flex-wrap: wrap on flex groups) */
.wp-block-group.hero-bubble,
.wp-block-group.step-bubble,
.wp-block-group.pakiet-bubble,
.wp-block-group.kontakt-bubble,
.wp-block-group.quote-bubble {
  flex-wrap: nowrap;
}

/* ---------- shared iridescent rim (thin conic ring via masked padding) ---------- */
.wtc-bubble::before,
.hero-bubble::before,
.step-bubble::before,
.pakiet-bubble::before,
.kontakt-bubble::before,
.quote-bubble::before,
.team-card::before,
.wtc-dialog::before,
.page-title-bubble::before,
.site-header-inner::before,
.btn-top::before,
.btn-cta .wp-block-button__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: var(--rim-w, 1.5px);
  pointer-events: none;
  opacity: var(--rim-alpha, .7);
  background: conic-gradient(from var(--rim-angle, 210deg),
    var(--irid-pink) 0%,
    var(--irid-lilac) 20%,
    var(--irid-aqua) 40%,
    var(--irid-gold) 58%,
    var(--irid-pink) 74%,
    var(--irid-aqua) 88%,
    var(--irid-pink) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
}

/* ---------- header: floating glass pill ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  width: 100%;
  margin: 0 !important;
  padding: .85rem clamp(.75rem, 2vw, 1.5rem) 0;
  background: transparent;
  pointer-events: none;
  animation: fade-down 1.1s var(--ease-soft) .15s both;
}

.site-header > .site-header-inner {
  position: relative;
  z-index: 0;
  pointer-events: auto;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: .55rem .6rem .55rem 1.35rem;
  border-radius: 999px;
  --rim-w: 1px;
  --rim-alpha: 0;
  transition: padding .55s var(--ease-soft), --rim-alpha .55s var(--ease-soft);
}

.site-header-inner::before {
  transition: opacity .55s var(--ease-soft);
}

/* the glass lives on a pseudo-element: backdrop-filter on the pill itself would
   turn it into the containing block of the fixed mobile menu overlay */
.site-header-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 248, 243, .66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 18px 40px -26px rgba(120, 86, 66, .4);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
          backdrop-filter: blur(16px) saturate(1.25);
  opacity: 0;
  transition: opacity .55s var(--ease-soft);
}

.site-header.is-scrolled > .site-header-inner {
  padding: .4rem .5rem .4rem 1.2rem;
  --rim-alpha: .8;
}

.site-header.is-scrolled > .site-header-inner::after {
  opacity: 1;
}

.wp-block-site-title {
  margin: 0;
  line-height: 1;
}

.wp-block-site-title a {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
  transition: font-size .55s var(--ease-soft);
}

.site-header.is-scrolled .wp-block-site-title a {
  font-size: 1.4rem;
}

.wp-block-site-title a::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .98), rgba(255, 255, 255, .18) 42%, rgba(255, 255, 255, .06) 70%, rgba(255, 255, 255, .45) 100%);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, .95),
    inset 0 0 0 1px rgba(216, 203, 236, .9),
    0 3px 8px -3px rgba(120, 86, 66, .35);
  transition: transform .5s var(--ease-soft);
}

.wp-block-site-title a:hover::before {
  transform: translateY(-3px);
}

.wp-block-site-title a:focus-visible {
  outline: 2px solid var(--eucalyptus);
  outline-offset: 6px;
  border-radius: 2px;
}

.site-nav-wrap.wp-block-group {
  gap: 1.6rem;
}

.site-nav.wp-block-navigation {
  gap: 2.1rem;
}

.site-nav .wp-block-navigation-item__content {
  position: relative;
  display: inline-block;
  padding: .35rem 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  font-variant-caps: small-caps;
  letter-spacing: .16em;
  transition: color .35s var(--ease-soft), text-shadow .35s var(--ease-soft);
}

.site-nav .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: 0;
  right: .16em;
  bottom: .05rem;
  height: 1px;
  background: linear-gradient(90deg, var(--irid-pink), var(--eucalyptus), var(--irid-aqua));
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform .45s var(--ease-soft);
}

.site-nav .wp-block-navigation-item__content:hover,
.site-nav .wp-block-navigation-item__content:focus-visible {
  color: var(--eucalyptus-ink);
  text-shadow: 0 0 10px rgba(255, 255, 255, .95), 0 0 22px rgba(198, 229, 229, .8);
}

.site-nav .wp-block-navigation-item__content:hover::after,
.site-nav .wp-block-navigation-item__content:focus-visible::after {
  transform: scaleX(1);
}

.site-nav .wp-block-navigation-item__content:focus-visible {
  outline: 2px solid var(--eucalyptus);
  outline-offset: 4px;
  border-radius: 2px;
}

/* compact CTA inside the pill */
.nav-cta.wp-block-buttons {
  gap: 0;
}

.btn-cta.is-small .wp-block-button__link {
  padding: .62rem 1.15rem .62rem 1.3rem;
  font-size: .76rem;
  gap: .6rem;
}

.btn-cta.is-small .wp-block-button__link::after {
  width: .62rem;
  height: .62rem;
}

/* mobile overlay menu (WP navigation block) */
.site-nav .wp-block-navigation__responsive-container-open,
.site-nav .wp-block-navigation__responsive-container-close {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 0 0 1px rgba(216, 203, 236, .75),
    0 12px 26px -16px rgba(120, 86, 66, .4);
  cursor: pointer;
}

.site-nav .wp-block-navigation__responsive-container-open svg,
.site-nav .wp-block-navigation__responsive-container-close svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* WP shows the burger only below 600px; keep that after our display override */
@media (min-width: 600px) {
  .site-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none;
  }
}

.site-nav .wp-block-navigation__responsive-container-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--apricot-light) !important;
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 85% 90%, rgba(249, 203, 218, .5), rgba(249, 203, 218, 0) 45%),
    radial-gradient(circle at 10% 80%, rgba(198, 229, 229, .55), rgba(198, 229, 229, 0) 45%) !important;
  color: var(--ink);
  padding: 5.5rem 2rem 3rem;
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  align-items: center;
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  align-items: center;
  gap: 1.6rem;
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-size: 2rem;
  letter-spacing: .14em;
  padding: .4rem 0;
}

/* the CTA lives inside the navigation block so it also appears in the overlay */
.site-nav .wp-block-navigation__responsive-container.is-menu-open .nav-cta.wp-block-buttons {
  display: flex !important;
  justify-content: center;
  margin-top: 1.6rem;
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open .btn-cta.is-small .wp-block-button__link {
  font-size: .9rem;
  padding: .95rem 2rem .95rem 2.2rem;
  gap: .85rem;
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open .btn-cta.is-small .wp-block-button__link::after {
  width: .8rem;
  height: .8rem;
}

.site-nav .nav-cta.wp-block-buttons {
  margin-left: .5rem;
}

/* ---------- hero: full-viewport ambient composition ---------- */
.hero-section {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-offset) + 1rem) 1rem 4.5rem;
  overflow: hidden;
}

/* watercolor baby's-breath frame: both sides framed, empty centre */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--img-frame) center / cover no-repeat;
  opacity: .8;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 86%, transparent 100%);
  animation: botanical-drift 12s ease-in-out infinite alternate;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  max-width: none !important;
  margin: 0 !important;
  pointer-events: none;
}

/* ---------- ambient soap bubbles ---------- */
.wtc-bubble {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
  --rim-w: 1.5px;
  --rim-alpha: .72;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  min-height: 0;
  padding: 0 !important;
  opacity: var(--alpha);
  filter: blur(var(--blur));
  background: radial-gradient(circle at 32% 28%,
    rgba(255, 255, 255, .55) 0%,
    rgba(255, 255, 255, .14) 22%,
    rgba(255, 255, 255, .04) 48%,
    rgba(255, 255, 255, .08) 78%,
    rgba(255, 255, 255, .45) 100%);
  box-shadow:
    inset 3px 4px 8px -3px rgba(255, 255, 255, .95),
    inset -4px -5px 10px -4px rgba(216, 203, 236, .65),
    inset 0 0 14px rgba(255, 255, 255, .25),
    0 12px 26px -12px rgba(120, 86, 66, .24);
  animation:
    bubble-rise var(--dur) linear var(--delay) infinite,
    bubble-sway var(--sway-dur) ease-in-out var(--delay) infinite;
}

.wtc-bubble::before {
  animation: rim-turn 16s linear infinite;
}

/* small specular highlight, top-left */
.wtc-bubble::after {
  content: "";
  position: absolute;
  left: 16%;
  top: 12%;
  width: 30%;
  height: 17%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .98), rgba(255, 255, 255, 0) 72%);
  transform: rotate(-32deg);
}

.wtc-bubble.bubble-front { z-index: 4; }

.b1 { --size: 160px; --x: 5%;  --y: 58%; --alpha: .92; --blur: 0px;   --dur: 25s; --delay: -6s;  --sway: 18px; --sway-dur: 7.5s; }
.b2 { --size: 132px; --x: 85%; --y: 28%; --alpha: .88; --blur: 0px;   --dur: 23s; --delay: -14s; --sway: 15px; --sway-dur: 6.8s; }
.b3 { --size: 112px; --x: 21%; --y: 16%; --alpha: .82; --blur: .2px;  --dur: 21s; --delay: -3s;  --sway: 16px; --sway-dur: 6.1s; }
.b4 { --size: 96px;  --x: 71%; --y: 72%; --alpha: .8;  --blur: .3px;  --dur: 20s; --delay: -11s; --sway: 12px; --sway-dur: 6.4s; }
.b5 { --size: 80px;  --x: 47%; --y: 88%; --alpha: .76; --blur: .4px;  --dur: 19s; --delay: -8s;  --sway: 10px; --sway-dur: 5.6s; }
.b6 { --size: 60px;  --x: 93%; --y: 60%; --alpha: .7;  --blur: .5px;  --dur: 18s; --delay: -1s;  --sway: 12px; --sway-dur: 5.9s; }
.b7 { --size: 40px;  --x: 13%; --y: 38%; --alpha: .6;  --blur: .9px;  --dur: 15s; --delay: -12s; --sway: 7px;  --sway-dur: 4.7s; }
.b8 { --size: 26px;  --x: 44%; --y: 24%; --alpha: .48; --blur: 1.4px; --dur: 13s; --delay: -7s;  --sway: 5px;  --sway-dur: 4.1s; }

/* ---------- the big bubble that carries the words (reacts to the pointer) ---------- */
.hero-bubble {
  position: relative;
  z-index: 3;
  width: var(--hero-bubble-size);
  max-width: none;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9%;
  margin-inline: auto;
  --rim-w: 3px;
  --rim-alpha: .8;
  --mx: 0;
  --my: 0;
  background:
    radial-gradient(ellipse 34% 20% at calc(28% + var(--mx) * 14%) calc(22% + var(--my) * 12%), rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 18% 8% at calc(73% + var(--mx) * 8%) calc(83% + var(--my) * 6%), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at calc(82% - var(--mx) * 10%) calc(22% - var(--my) * 8%), rgba(249, 203, 218, .34), rgba(249, 203, 218, 0) 38%),
    radial-gradient(circle at calc(18% - var(--mx) * 10%) calc(78% - var(--my) * 8%), rgba(246, 229, 195, .36), rgba(246, 229, 195, 0) 38%),
    radial-gradient(circle at calc(22% + var(--mx) * 6%) calc(30% + var(--my) * 6%), rgba(198, 229, 229, .28), rgba(198, 229, 229, 0) 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .2) 52%, rgba(216, 203, 236, .16) 82%, rgba(198, 229, 229, .32) 94%, rgba(255, 255, 255, .6) 100%);
  box-shadow:
    inset 0 0 54px rgba(255, 255, 255, .6),
    inset -16px -20px 44px rgba(249, 203, 218, .24),
    inset 16px 20px 44px rgba(198, 229, 229, .24),
    0 34px 64px -32px rgba(120, 86, 66, .3),
    0 2px 20px rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(2px) saturate(1.08);
          backdrop-filter: blur(2px) saturate(1.08);
  transform: perspective(1400px) rotateX(calc(var(--my) * -3deg)) rotateY(calc(var(--mx) * 4deg));
  transition: --mx .6s var(--ease-soft), --my .6s var(--ease-soft), transform .6s var(--ease-soft);
  animation:
    hero-enter 1.7s var(--ease-soft) .25s both,
    hero-bubble-breathe 6s ease-in-out 2s infinite;
}

.hero-bubble::before {
  animation: rim-shimmer 24s linear infinite;
}

/* crisp glossy arcs hugging the inside of the rim, they swing with the pointer */
.hero-bubble::after {
  content: "";
  position: absolute;
  inset: 2.5%;
  border-radius: inherit;
  padding: clamp(6px, 1.6%, 12px);
  pointer-events: none;
  opacity: .95;
  background: conic-gradient(from 0deg,
    transparent 0deg 100deg,
    rgba(255, 255, 255, .55) 135deg,
    transparent 170deg 275deg,
    rgba(255, 255, 255, 1) 318deg,
    transparent 356deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  filter: blur(3px);
  rotate: calc(var(--mx) * 14deg);
  transition: rotate .6s var(--ease-soft);
}

.hero-bubble > * {
  margin-block: 0;
}

.hero-title {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.8rem, calc(var(--hero-bubble-size) * .15), 6.2rem);
  line-height: 1.1;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 10px 28px rgba(255, 255, 255, .6);
  animation: content-enter 1.2s var(--ease-soft) .55s both;
}

.hero-subtitle {
  margin: .2rem 0 1rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .2em;
  text-indent: .2em;
  font-size: clamp(1rem, calc(var(--hero-bubble-size) * .031), 1.3rem);
  line-height: 1.25;
  color: var(--eucalyptus-ink);
  animation: content-enter 1.2s var(--ease-soft) .75s both;
}

.hero-lead {
  margin: 0 0 1.6rem;
  max-width: 34ch;
  text-wrap: balance;
  font-size: clamp(1rem, calc(var(--hero-bubble-size) * .03), 1.22rem);
  line-height: 1.65;
  font-weight: 300;
  color: var(--ink);
  animation: content-enter 1.2s var(--ease-soft) .9s both;
}

.hero-bubble .wp-block-buttons {
  animation: content-enter 1.2s var(--ease-soft) 1.05s both;
}

.hero-actions.wp-block-buttons {
  gap: 1rem 1.8rem;
  align-items: center;
}

/* scroll cue at the bottom of the hero */
.hero-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.3rem;
  z-index: 3;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .3em;
  text-indent: .3em;
  font-size: .85rem;
  animation: content-enter 1.2s var(--ease-soft) 1.6s both;
}

.hero-cue a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  color: var(--eucalyptus-ink);
  text-decoration: none;
  transition: color .35s var(--ease-soft);
}

.hero-cue a::after {
  content: "";
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 1), rgba(255, 255, 255, .2) 45%, rgba(255, 255, 255, .05) 70%, rgba(255, 255, 255, .5) 100%);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, .95),
    inset 0 0 0 1px rgba(110, 143, 120, .6);
  animation: cue-float 2.6s ease-in-out infinite;
}

.hero-cue a:hover,
.hero-cue a:focus-visible {
  color: var(--ink);
}

.hero-cue a:focus-visible {
  outline: 2px solid var(--eucalyptus);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- glassy pill CTA ---------- */
.btn-cta .wp-block-button__link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: .95rem 2.2rem .95rem 2.4rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.2;
  --rim-w: 1.5px;
  --rim-alpha: .85;
  --rim-angle: 140deg;
  background: linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -10px 18px -12px rgba(216, 203, 236, .6),
    0 16px 32px -18px rgba(120, 86, 66, .38);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .45s var(--ease-soft);
}

/* small bubble dot inside the CTA */
.btn-cta .wp-block-button__link::after {
  content: "";
  display: inline-block;
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 1), rgba(255, 255, 255, .2) 45%, rgba(255, 255, 255, .05) 70%, rgba(255, 255, 255, .5) 100%);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, .95),
    inset 0 0 0 1px rgba(216, 203, 236, .9);
  transition: transform .5s var(--ease-soft);
}

.btn-cta .wp-block-button__link:hover,
.btn-cta .wp-block-button__link:focus-visible {
  transform: translateY(-2px);
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .64));
  box-shadow:
    inset 0 1px 0 #fff,
    0 0 0 5px rgba(255, 255, 255, .38),
    0 0 30px rgba(198, 229, 229, .75),
    0 20px 36px -18px rgba(120, 86, 66, .42);
}

.btn-cta .wp-block-button__link:hover::after {
  transform: translateY(-4px);
}

.btn-cta .wp-block-button__link:focus-visible {
  outline: 2px solid var(--eucalyptus);
  outline-offset: 5px;
}

/* quiet secondary action: serif small caps with a gradient underline */
.btn-ghost .wp-block-button__link {
  position: relative;
  padding: .55rem .1rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--eucalyptus-ink);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.08rem;
  font-variant-caps: small-caps;
  text-transform: none;
  letter-spacing: .18em;
  line-height: 1.2;
  transition: color .35s var(--ease-soft);
}

.btn-ghost .wp-block-button__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: .18em;
  bottom: .2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--irid-pink), var(--eucalyptus), var(--irid-aqua));
  opacity: .9;
  transform-origin: 0 50%;
  transition: transform .45s var(--ease-soft);
}

.btn-ghost .wp-block-button__link:hover,
.btn-ghost .wp-block-button__link:focus-visible {
  color: var(--ink);
  background: transparent;
}

.btn-ghost .wp-block-button__link:hover::after {
  transform: scaleX(.6);
}

.btn-ghost .wp-block-button__link:focus-visible {
  outline: 2px solid var(--eucalyptus);
  outline-offset: 5px;
  border-radius: 2px;
}

/* ---------- marquee: what we take care of ---------- */
.wtc-marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: .4rem 0 1.2rem;
  margin-top: -1.5rem !important;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.wtc-marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 52s linear infinite;
}

.wtc-marquee:hover .wtc-marquee__track {
  animation-play-state: paused;
}

.wtc-marquee__list {
  display: flex;
  align-items: center;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wtc-marquee__list li {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  padding-right: 1.7rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.wtc-marquee__list li::after {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 1), rgba(255, 255, 255, .25) 55%, rgba(255, 255, 255, .5) 100%);
  box-shadow: inset 0 0 0 1px rgba(110, 143, 120, .55);
}

/* ---------- shared section chrome ---------- */
.section-kroki,
.section-onas,
.section-oferta,
.section-kontakt {
  position: relative;
  overflow: hidden;
  padding: var(--section-pad) 1.5rem;
}

.botanical-section > * {
  position: relative;
  z-index: 1;
}

.section-head {
  margin-bottom: 3.2rem;
}

.section-head > * {
  margin-block: 0;
}

.section-eyebrow {
  margin: 0 0 .5rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .32em;
  text-indent: .32em;
  font-size: 1rem;
  color: var(--eucalyptus-ink);
}

.section-title {
  margin: 0 0 .7rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .1em;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--eucalyptus-ink);
}

.section-lead {
  margin: 0 auto;
  max-width: 46ch;
  text-wrap: balance;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.section-sub {
  margin: 0 auto .9rem;
  max-width: 36ch;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

.section-lead.oferta-lead {
  max-width: 62ch;
}

/* ---------- Kroki: four bubble steps on a scroll-drawn path ---------- */
.section-kroki::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4%;
  z-index: 0;
  width: min(38vw, 480px);
  aspect-ratio: 3 / 2;
  pointer-events: none;
  background: var(--img-eucalyptus) right bottom / contain no-repeat;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 100%);
          mask-image: linear-gradient(to left, #000 45%, transparent 100%);
}

.section-kroki > * {
  position: relative;
  z-index: 1;
}

.kroki-track {
  position: relative;
  view-timeline-name: --kroki;
  view-timeline-axis: block;
}

.kroki-path {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.kroki-path path {
  fill: none;
  stroke: var(--eucalyptus);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: .1 6.5;
  vector-effect: non-scaling-stroke;
  opacity: .9;
}

.kroki-row {
  position: relative;
  z-index: 1;
  gap: 3rem;
}

.step-bubble {
  position: relative;
  width: 100%;
  max-width: 16.5rem;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12%;
  --rim-w: 2px;
  --rim-alpha: .75;
  background:
    radial-gradient(ellipse 34% 20% at 28% 22%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 80% 24%, rgba(249, 203, 218, .3), rgba(249, 203, 218, 0) 42%),
    radial-gradient(circle at 20% 76%, rgba(246, 229, 195, .3), rgba(246, 229, 195, 0) 42%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .24) 55%, rgba(216, 203, 236, .18) 84%, rgba(255, 255, 255, .55) 100%);
  box-shadow:
    inset 0 0 34px rgba(255, 255, 255, .55),
    inset -10px -12px 28px rgba(249, 203, 218, .22),
    inset 10px 12px 28px rgba(198, 229, 229, .22),
    0 24px 44px -26px rgba(120, 86, 66, .3);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}

.step-bubble::before {
  animation: rim-shimmer 24s linear infinite;
}

.step-bubble:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 34px rgba(255, 255, 255, .6),
    0 0 26px rgba(198, 229, 229, .6),
    0 30px 50px -26px rgba(120, 86, 66, .34);
}

.step-bubble > * {
  margin-block: 0;
}

.step-num {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  color: var(--eucalyptus-ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}

.step-title {
  margin: .35rem 0 .4rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .1em;
  font-size: 1.32rem;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

.step-desc {
  margin: 0;
  font-size: .94rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- O nas: quote bubble + copy ---------- */
.section-onas {
  padding-block: var(--section-pad);
}

.section-onas::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  width: min(30vw, 400px);
  pointer-events: none;
  background: var(--img-clusters) left center / contain no-repeat;
  opacity: .6;
  -webkit-mask-image: linear-gradient(to right, #000 50%, transparent 100%);
          mask-image: linear-gradient(to right, #000 50%, transparent 100%);
  animation: botanical-drift 11s ease-in-out infinite alternate;
}

/* .wp-block-columns prefix: WordPress prints the columns gap after this file with class specificity */
.wp-block-columns.onas-grid {
  --onas-overlap: calc(clamp(6rem, 12vw, 8.75rem) + 4.75rem); /* +4.75rem = ok. 2 cm glebiej w banke */
  gap: 0;
}

/* the copy starts inside the bubble and runs out of it to the right */
.wp-block-columns.onas-grid > .onas-copy {
  position: relative;
  z-index: 2;
  flex-grow: 1;
  margin-left: calc(-1 * var(--onas-overlap));
}

.quote-bubble {
  position: relative;
  width: min(100%, 24rem);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 13%;
  margin-inline: auto 0;
  --rim-w: 2.5px;
  --rim-alpha: .82;
  background:
    radial-gradient(ellipse 34% 20% at 28% 22%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 18% 8% at 73% 83%, rgba(255, 255, 255, .65), rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 82% 22%, rgba(249, 203, 218, .32), rgba(249, 203, 218, 0) 40%),
    radial-gradient(circle at 18% 78%, rgba(246, 229, 195, .32), rgba(246, 229, 195, 0) 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, .24) 55%, rgba(216, 203, 236, .16) 84%, rgba(198, 229, 229, .3) 94%, rgba(255, 255, 255, .58) 100%);
  box-shadow:
    inset 0 0 44px rgba(255, 255, 255, .58),
    inset -14px -16px 36px rgba(249, 203, 218, .22),
    inset 14px 16px 36px rgba(198, 229, 229, .22),
    0 30px 56px -30px rgba(120, 86, 66, .32);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  animation: quote-drift 9s ease-in-out infinite alternate;
}

.quote-bubble::before {
  animation: rim-shimmer 24s linear infinite;
}

.onas-copy .section-eyebrow,
.onas-copy .section-title {
  text-align: left;
}

.onas-copy .section-title {
  margin-bottom: 1.2rem;
}

.onas-text {
  max-width: 54ch;
  margin: 0 0 1.1rem;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink);
}

.onas-text:last-of-type {
  margin-bottom: 0;
}

.onas-subtitle {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

.onas-team {
  gap: 2.6rem;
  margin-top: 3.6rem;
}

.team-card {
  position: relative;
  padding: 2.4rem 2.2rem 2.3rem;
  border-radius: 2.6rem;
  --rim-w: 2px;
  --rim-alpha: .75;
  background:
    radial-gradient(ellipse 34% 20% at 28% 22%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 82% 22%, rgba(249, 203, 218, .26), rgba(249, 203, 218, 0) 40%),
    radial-gradient(circle at 18% 78%, rgba(246, 229, 195, .26), rgba(246, 229, 195, 0) 40%),
    linear-gradient(135deg, rgba(255, 255, 255, .52), rgba(255, 255, 255, .3));
  box-shadow:
    inset 0 0 40px rgba(255, 255, 255, .5),
    0 28px 52px -30px rgba(120, 86, 66, .3);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}

.team-card::before {
  animation: rim-shimmer 24s linear infinite;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 40px rgba(255, 255, 255, .55),
    0 0 28px rgba(198, 229, 229, .5),
    0 34px 56px -30px rgba(120, 86, 66, .34);
}

.team-card > * {
  margin-block: 0;
}

.team-name {
  margin: 0 0 .35rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .1em;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--eucalyptus-ink);
}

.team-role {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .14em;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--eucalyptus-ink);
}

.team-text {
  margin: 0 0 .9rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
}

.team-text:last-child {
  margin-bottom: 0;
}

.value-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1.8rem 0 0;
  padding: 0;
}

.value-chips li {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1.05rem .5rem .85rem;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .12em;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--eucalyptus-ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 0 0 1px rgba(216, 203, 236, .7),
    0 12px 24px -18px rgba(120, 86, 66, .4);
}

.value-chips li::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 1), rgba(255, 255, 255, .25) 55%, rgba(255, 255, 255, .5) 100%);
  box-shadow: inset 0 0 0 1px rgba(110, 143, 120, .6);
}

/* ---------- Oferta: three packages in soap bubbles, the full-care one lifted ---------- */
.section-oferta::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: min(36vw, 460px);
  aspect-ratio: 3 / 2;
  pointer-events: none;
  background: var(--img-eucalyptus) right bottom / contain no-repeat;
  opacity: .65;
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent 100%);
          mask-image: linear-gradient(to left, #000 40%, transparent 100%);
  animation: botanical-drift 14s ease-in-out -4s infinite alternate-reverse;
}

.oferta-row {
  gap: 2.6rem;
}

.wp-block-columns.oferta-row {
  margin-top: 3.4rem;
}

.pakiet-bubble {
  position: relative;
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  border-radius: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 2.6rem 1.9rem 1.6rem;
  --rim-w: 2.5px;
  --rim-alpha: .8;
  background:
    radial-gradient(ellipse 34% 20% at 28% 22%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 18% 8% at 73% 83%, rgba(255, 255, 255, .65), rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 82% 22%, rgba(249, 203, 218, .32), rgba(249, 203, 218, 0) 40%),
    radial-gradient(circle at 18% 78%, rgba(246, 229, 195, .32), rgba(246, 229, 195, 0) 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, .24) 55%, rgba(216, 203, 236, .16) 84%, rgba(198, 229, 229, .3) 94%, rgba(255, 255, 255, .58) 100%);
  box-shadow:
    inset 0 0 44px rgba(255, 255, 255, .58),
    inset -14px -16px 36px rgba(249, 203, 218, .22),
    inset 14px 16px 36px rgba(198, 229, 229, .22),
    0 30px 56px -30px rgba(120, 86, 66, .32);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}

.pakiet-bubble::before {
  animation: rim-shimmer 24s linear infinite;
}

.pakiet-bubble:hover {
  transform: translateY(-8px);
  box-shadow:
    inset 0 0 44px rgba(255, 255, 255, .62),
    0 0 32px rgba(198, 229, 229, .65),
    0 36px 60px -30px rgba(120, 86, 66, .36);
}

.pakiet-bubble.is-featured {
  z-index: 1;
  scale: 1.06;
  transform-origin: 50% 100%;
  --rim-w: 3px;
  --rim-alpha: .95;
  background:
    radial-gradient(ellipse 34% 20% at 28% 22%, rgba(255, 255, 255, .98), rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 18% 8% at 73% 83%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 82% 22%, rgba(249, 203, 218, .42), rgba(249, 203, 218, 0) 42%),
    radial-gradient(circle at 18% 78%, rgba(246, 229, 195, .42), rgba(246, 229, 195, 0) 42%),
    radial-gradient(circle at 24% 30%, rgba(198, 229, 229, .3), rgba(198, 229, 229, 0) 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .3) 55%, rgba(216, 203, 236, .2) 84%, rgba(198, 229, 229, .34) 94%, rgba(255, 255, 255, .65) 100%);
  box-shadow:
    inset 0 0 54px rgba(255, 255, 255, .65),
    inset -16px -18px 40px rgba(249, 203, 218, .26),
    inset 16px 18px 40px rgba(198, 229, 229, .26),
    0 0 40px rgba(255, 255, 255, .5),
    0 36px 64px -30px rgba(120, 86, 66, .38);
}

.pakiet-bubble > * {
  margin-block: 0;
}

.pakiet-badge {
  position: static;
  align-self: center;
  margin: 0 0 1rem;
  padding: .38rem .95rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--eucalyptus-ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .6));
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 0 0 1px rgba(110, 143, 120, .35),
    0 10px 20px -14px rgba(120, 86, 66, .45);
}

.pakiet-name {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .1em;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--eucalyptus-ink);
  text-wrap: balance;
}

.pakiet-name::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 1px;
  margin: .6rem auto 0;
  background: var(--eucalyptus-ink);
  opacity: .45;
}

.pakiet-tagline {
  margin: 0 0 .9rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}

.pakiet-desc {
  margin: 0 0 1.3rem;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.pakiet-includes {
  align-self: center;
  margin: 0 0 .6rem;
  text-align: center;
  text-indent: .14em;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .14em;
  font-size: .92rem;
  color: var(--eucalyptus-ink);
}

.pakiet-list {
  list-style: none;
  align-self: stretch;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ink);
}

.pakiet-list li {
  margin: 0;
  padding: 0;
}

/* a pink dot separates the rows instead of opening each sentence */
.pakiet-list li + li::before {
  content: "";
  display: block;
  width: .4rem;
  height: .4rem;
  margin: .6rem auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--irid-pink), var(--irid-lilac));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .8);
}

.pakiet-cta {
  margin: auto 0 0;
  padding-top: 2.2rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .22em;
  font-size: .7rem;
}

/* higher specificity than the flow-layout margin WordPress prints after this file */
.pakiet-bubble > .pakiet-cta {
  margin-block-start: auto;
}

.pakiet-cta a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--eucalyptus-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 143, 120, .45);
  transition: color .35s var(--ease-soft), border-color .35s var(--ease-soft);
}

.pakiet-cta a::after {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 1), rgba(255, 255, 255, .25) 55%, rgba(255, 255, 255, .5) 100%);
  box-shadow: inset 0 0 0 1px rgba(110, 143, 120, .6);
  transition: transform .45s var(--ease-soft);
}

.pakiet-cta a:hover,
.pakiet-cta a:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

.pakiet-cta a:hover::after {
  transform: translateY(-3px);
}

.pakiet-cta a:focus-visible {
  outline: 2px solid var(--eucalyptus);
  outline-offset: 4px;
  border-radius: 2px;
}

.oferta-note {
  max-width: 52ch;
  margin: 3.2rem auto 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--eucalyptus-ink);
  text-wrap: balance;
}

/* ---------- Kontakt ---------- */
.section-kontakt {
  padding-block: var(--section-pad);
}

.section-kontakt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4%;
  bottom: 0;
  z-index: 0;
  width: min(26vw, 340px);
  pointer-events: none;
  background: var(--img-clusters) left center / contain no-repeat;
  opacity: .55;
  -webkit-mask-image: linear-gradient(to right, #000 45%, transparent 100%);
          mask-image: linear-gradient(to right, #000 45%, transparent 100%);
  animation: botanical-drift 13s ease-in-out -4s infinite alternate-reverse;
}

.section-kontakt::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2%;
  z-index: 0;
  width: min(32vw, 420px);
  aspect-ratio: 3 / 2;
  pointer-events: none;
  background: var(--img-eucalyptus) right bottom / contain no-repeat;
  opacity: .55;
  -webkit-mask-image: linear-gradient(to left, #000 42%, transparent 100%);
          mask-image: linear-gradient(to left, #000 42%, transparent 100%);
  animation: botanical-drift 12s ease-in-out -2s infinite alternate;
}

.kontakt-bubble {
  position: relative;
  width: min(28rem, 92vw);
  max-width: none;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* fixed padding — % would resolve against the parent's width, not the bubble's */
  padding: 3rem 3.25rem;
  margin-inline: auto;
  --rim-w: 2.5px;
  --rim-alpha: .8;
  background:
    radial-gradient(ellipse 34% 20% at 28% 22%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 82% 22%, rgba(249, 203, 218, .3), rgba(249, 203, 218, 0) 40%),
    radial-gradient(circle at 18% 78%, rgba(246, 229, 195, .32), rgba(246, 229, 195, 0) 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .26) 55%, rgba(216, 203, 236, .16) 84%, rgba(198, 229, 229, .3) 94%, rgba(255, 255, 255, .6) 100%);
  box-shadow:
    inset 0 0 44px rgba(255, 255, 255, .6),
    inset -14px -16px 36px rgba(249, 203, 218, .22),
    inset 14px 16px 36px rgba(198, 229, 229, .22),
    0 30px 56px -30px rgba(120, 86, 66, .32);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.kontakt-bubble::before {
  animation: rim-shimmer 24s linear infinite;
}

.kontakt-bubble > * {
  margin-block: 0;
}

.kontakt-line {
  margin: 0 0 .55rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.4;
}

.kontakt-line a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 143, 120, .45);
  transition: color .35s var(--ease-soft), border-color .35s var(--ease-soft);
}

.kontakt-line a:hover,
.kontakt-line a:focus-visible {
  color: var(--eucalyptus-ink);
  border-color: var(--eucalyptus-ink);
}

.kontakt-social {
  margin: 0 0 1.5rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: .08em;
  font-size: 1rem;
  color: var(--eucalyptus-ink);
}

.kontakt-social a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 143, 120, .35);
  transition: color .35s var(--ease-soft), border-color .35s var(--ease-soft);
}

.kontakt-social a:hover,
.kontakt-social a:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  padding: 3.6rem 1.5rem 2.8rem;
  text-align: center;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(38rem, 82vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--irid-pink), var(--eucalyptus), var(--irid-aqua), transparent);
  opacity: .8;
}

.footer-wordmark {
  margin: 0 0 .7rem;
  font-family: var(--font-script);
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--ink);
}

.footer-links {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-variant-caps: small-caps;
  letter-spacing: .14em;
  font-size: 1.05rem;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  transition: color .35s var(--ease-soft);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--eucalyptus-ink);
}

.footer-copy {
  margin: 0;
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--eucalyptus-ink);
}

/* back-to-top bubble */
.btn-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 55;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--eucalyptus-ink);
  text-decoration: none;
  --rim-w: 1.5px;
  --rim-alpha: .85;
  background:
    radial-gradient(ellipse 40% 24% at 30% 24%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .45));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 16px 30px -18px rgba(120, 86, 66, .45);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  opacity: 0;
  translate: 0 14px;
  pointer-events: none;
  transition: opacity .5s var(--ease-soft), translate .5s var(--ease-soft), box-shadow .45s var(--ease-soft);
}

.btn-top.is-visible {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

.btn-top:hover,
.btn-top:focus-visible {
  box-shadow:
    inset 0 1px 0 #fff,
    0 0 0 5px rgba(255, 255, 255, .38),
    0 0 26px rgba(198, 229, 229, .75),
    0 18px 32px -18px rgba(120, 86, 66, .45);
}

.btn-top:focus-visible {
  outline: 2px solid var(--eucalyptus);
  outline-offset: 4px;
}

.btn-top span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.btn-top::after {
  content: "";
  width: .6rem;
  height: .6rem;
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  rotate: 45deg;
  translate: 0 2px;
}

/* ---------- page.html title section ---------- */
.page-title-section {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-offset) + 3rem) 1.5rem 3.5rem;
}

.page-title-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--img-frame) center / cover no-repeat;
  opacity: .6;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 80%, transparent 100%);
}

.page-title-bubble {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-inline: auto;
  padding: 2.2rem 3.6rem;
  border-radius: 999px;
  --rim-w: 2.5px;
  --rim-alpha: .8;
  background:
    radial-gradient(ellipse 34% 30% at 28% 22%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 82% 30%, rgba(249, 203, 218, .3), rgba(249, 203, 218, 0) 46%),
    linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .28));
  box-shadow:
    inset 0 0 34px rgba(255, 255, 255, .55),
    0 26px 48px -28px rgba(120, 86, 66, .3);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}

.page-title-bubble::before {
  animation: rim-shimmer 24s linear infinite;
}

.page-hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .1em;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--eucalyptus-ink);
}

.page-content-section {
  padding: 1rem 1.5rem 5rem;
}

/* ---------- equal-height cards ---------- */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* ---------- scroll reveals ----------
   Scroll-driven CSS animations where supported (no JS needed), IntersectionObserver
   fallback elsewhere (html.no-sda). Without JS nothing is ever hidden. */
@supports (animation-timeline: view()) {
  html.js .animate-on-scroll {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }

  html.js .kroki-row > .wp-block-column:nth-child(2) { animation-range: entry 8% entry 55%; }
  html.js .kroki-row > .wp-block-column:nth-child(3) { animation-range: entry 16% entry 65%; }
  html.js .kroki-row > .wp-block-column:nth-child(4) { animation-range: entry 24% entry 75%; }

  html.js .oferta-row > .wp-block-column:nth-child(2) { animation-range: entry 8% entry 55%; }
  html.js .oferta-row > .wp-block-column:nth-child(3) { animation-range: entry 16% entry 65%; }

  html.js .kroki-path {
    animation: draw-path linear both;
    animation-timeline: --kroki;
    animation-range: entry 15% cover 50%;
  }
}

html.no-sda .animate-on-scroll {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .8s var(--ease-soft), translate .8s var(--ease-soft);
}

html.no-sda .animate-on-scroll.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* ---------- keyframes ---------- */
/* no transform here: a transformed header would become the containing block
   of the fixed mobile menu overlay and clip it */
@keyframes fade-down {
  from { opacity: 0; top: -10px; }
  to   { opacity: 1; top: 0; }
}

@keyframes hero-enter {
  from { opacity: 0; scale: .9; translate: 0 18px; }
  to   { opacity: 1; scale: 1; translate: 0 0; }
}

@keyframes content-enter {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

@keyframes hero-bubble-breathe {
  0%, 100% { scale: 1; }
  50%      { scale: 1.015; }
}

@keyframes quote-drift {
  from { translate: -18px 0; }
  to   { translate: 18px 0; }
}

@keyframes cue-float {
  0%, 100% { translate: 0 0; opacity: 1; }
  50%      { translate: 0 6px; opacity: .55; }
}

@keyframes rim-shimmer {
  to { --rim-angle: 570deg; }
}

@keyframes rim-turn {
  to { transform: rotate(360deg); }
}

@keyframes bubble-rise {
  0%   { translate: 0 32vh; opacity: 0; }
  10%  { opacity: var(--alpha); }
  85%  { opacity: var(--alpha); }
  100% { translate: 0 -62vh; opacity: 0; }
}

@keyframes bubble-sway {
  0%, 100% { transform: translateX(calc(var(--sway) * -1)); }
  50%      { transform: translateX(var(--sway)); }
}

@keyframes botanical-drift {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-7px) rotate(.8deg); }
}

@keyframes marquee {
  to { translate: -50% 0; }
}

@keyframes reveal-up {
  from { opacity: 0; translate: 0 32px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes draw-path {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .step-bubble {
    aspect-ratio: auto;
    max-width: none;
    border-radius: 2rem;
    padding: 1.6rem 1.1rem;
  }

  .pakiet-bubble {
    aspect-ratio: auto;
    max-width: none;
    border-radius: 2.6rem;
    padding: 2.6rem 1.6rem 2.2rem;
  }

  .pakiet-bubble.is-featured {
    scale: 1;
  }

  .wp-block-columns.oferta-row {
    margin-top: 2rem;
  }

  .pakiet-badge {
    position: static;
    translate: none;
    margin: 0 0 .9rem;
  }

  .kroki-row,
  .oferta-row {
    gap: 2rem;
  }

  .kroki-path path {
    stroke-width: 1.8;
  }
}

@media (max-width: 899px) {
  .nav-cta.wp-block-buttons {
    display: none;
  }
}

@media (max-width: 781px) {
  .site-header {
    padding-top: .6rem;
  }

  .site-header > .site-header-inner {
    padding: .45rem .5rem .45rem 1.05rem;
  }

  .site-nav .wp-block-navigation-item__content {
    font-size: 1rem;
    letter-spacing: .1em;
  }

  .site-nav.wp-block-navigation {
    gap: 1.3rem;
  }

  .wp-block-site-title a {
    font-size: 1.4rem;
  }

  .wtc-marquee__list li {
    font-size: 1.15rem;
    gap: 1.2rem;
    padding-right: 1.2rem;
  }

  /* Kroki becomes a vertical timeline: dotted line down the middle */
  .kroki-path {
    display: none;
  }

  .kroki-row {
    gap: 1.6rem;
  }

  .kroki-row::before {
    content: "";
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 50%;
    width: 0;
    border-left: 2px dotted rgba(110, 143, 120, .7);
    z-index: 0;
  }

  .kroki-row > .wp-block-column {
    position: relative;
    z-index: 1;
  }

  .step-bubble {
    max-width: 26rem;
  }

  .section-kroki,
  .section-onas,
  .section-oferta,
  .section-kontakt {
    padding-inline: 1.25rem;
  }

  .section-head {
    margin-bottom: 2.4rem;
  }

  /* stacked: the bubble becomes a 14rem seal with "Poznajmy sie / O nas" centred inside it;
     the overlap and the title margin are tuned so the subtitle starts just below the bubble */
  .wp-block-columns.onas-grid {
    --onas-overlap: 9.9rem;
    gap: 0;
  }

  .quote-bubble {
    width: min(100%, 14rem);
    margin-inline: auto;
    animation: none;
  }

  .wp-block-columns.onas-grid > .onas-copy {
    margin-left: 0;
    margin-top: calc(-1 * var(--onas-overlap));
  }

  .onas-copy .section-title {
    margin-bottom: 6.3rem;
  }

  .onas-copy .section-eyebrow,
  .onas-copy .section-title,
  .onas-copy .onas-subtitle {
    text-align: center;
  }

  .onas-team {
    margin-top: 2.4rem;
    gap: 1.6rem;
  }

  .team-card {
    padding: 2rem 1.4rem 1.9rem;
    border-radius: 2.2rem;
  }

  .onas-text {
    margin-inline: auto;
    text-align: center;
  }

  .value-chips {
    justify-content: center;
  }

  .oferta-note {
    margin-top: 2.4rem;
  }

  .section-onas::before,
  .section-kontakt::before {
    width: 42vw;
    opacity: .4;
  }

  .section-kroki::after,
  .section-oferta::after,
  .section-kontakt::after {
    width: 52vw;
    opacity: .42;
  }
}

@media (max-width: 699px) {
  .hero-section {
    padding: calc(var(--nav-offset) + .5rem) .75rem 4rem;
  }

  /* the big bubble becomes a rounded translucent panel that grows with its text */
  .hero-bubble {
    width: 92vw;
    min-height: 92vw;
    aspect-ratio: auto;
    padding: 13% 10%;
    --rim-w: 2px;
    transform: none;
  }

  .hero-title { font-size: clamp(2.5rem, 12vw, 3.3rem); }
  .hero-subtitle { font-size: .92rem; letter-spacing: .2em; text-indent: .2em; }
  .hero-lead { font-size: 1rem; max-width: 30ch; }

  .hero-actions.wp-block-buttons {
    flex-direction: column;
    gap: .6rem;
  }

  .btn-cta .wp-block-button__link {
    font-size: .85rem;
    padding: .85rem 1.7rem .85rem 1.9rem;
  }

  .hero-cue {
    bottom: 1rem;
  }

  .b6, .b8 { display: none; }
  .b1 { --size: 110px; }
  .b2 { --size: 92px; }
  .b3 { --size: 78px; }
  .b4 { --size: 66px; }
  .b5 { --size: 56px; }

  .kontakt-bubble {
    padding: 16% 10%;
  }

  .btn-top {
    width: 2.8rem;
    height: 2.8rem;
  }
}

@media (max-width: 380px) {
  .hero-title { font-size: 2.3rem; }
  .hero-bubble { padding: 14% 9%; }
  .hero-lead { font-size: .95rem; }
  .wp-block-site-title a { font-size: 1.25rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .wtc-bubble {
    translate: none;
    transform: none;
    animation: none !important;
  }

  .hero-bubble {
    transform: none !important;
  }

  .wtc-marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }

  .wtc-marquee__track {
    animation: none !important;
    width: auto;
    justify-content: center;
    flex-wrap: wrap;
  }

  .wtc-marquee__list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: .4rem;
  }

  .wtc-marquee__list[aria-hidden="true"] {
    display: none;
  }

  html.js .animate-on-scroll,
  html.js .kroki-path,
  html.no-sda .animate-on-scroll,
  .hero-bubble,
  .hero-title,
  .hero-subtitle,
  .hero-lead,
  .hero-cue,
  .hero-bubble .wp-block-buttons,
  .site-header {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    clip-path: none !important;
  }
}

/* ---------- editor: keep animated content visible while editing ---------- */
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .site-header,
.editor-styles-wrapper .hero-bubble,
.editor-styles-wrapper .hero-title,
.editor-styles-wrapper .hero-subtitle,
.editor-styles-wrapper .hero-lead,
.editor-styles-wrapper .hero-cue,
.editor-styles-wrapper .hero-bubble .wp-block-buttons {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.editor-styles-wrapper .site-header {
  position: relative;
  pointer-events: auto;
}

.editor-styles-wrapper .wtc-bubble,
.editor-styles-wrapper .wtc-marquee__track {
  animation: none !important;
}

.editor-styles-wrapper .btn-top {
  position: static;
  opacity: 1;
  translate: none;
  margin: 1.5rem auto 0;
}

/* ---------- contact dialog (opened from "Umów spotkanie" and "Zapytaj o pakiet") ---------- */
.wtc-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(92vw, 30rem);
  max-height: 92vh;
  max-height: min(92dvh, 46rem);
  padding: 0;
  border: 0;
  border-radius: 2.4rem;
  overflow: hidden;
  color: var(--ink);
  --rim-w: 2px;
  --rim-alpha: .8;
  background:
    radial-gradient(ellipse 34% 20% at 28% 16%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 84% 20%, rgba(249, 203, 218, .32), rgba(249, 203, 218, 0) 42%),
    radial-gradient(circle at 16% 84%, rgba(246, 229, 195, .32), rgba(246, 229, 195, 0) 42%),
    linear-gradient(135deg, rgba(255, 252, 249, .97), rgba(251, 239, 231, .95));
  box-shadow:
    inset 0 0 40px rgba(255, 255, 255, .6),
    0 40px 80px -30px rgba(120, 86, 66, .45);
}

.wtc-dialog::backdrop {
  background: rgba(60, 55, 53, .22);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.wtc-dialog[open] {
  animation: wtc-dialog-in .55s var(--ease-soft) both;
}

.wtc-dialog[open]::backdrop {
  animation: wtc-fade-in .4s ease both;
}

@keyframes wtc-dialog-in {
  from { opacity: 0; translate: 0 14px; scale: .98; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes wtc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* the same watercolour sprigs as on the home page, tucked into two corners under the content;
   the clusters PNG carries its flowers on the left, the eucalyptus PNG on the right */
.wtc-sprig {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: .72;
  background-repeat: no-repeat;
  background-size: contain;
}

.wtc-sprig--clusters {
  top: -3%;
  left: -6%;
  width: 66%;
  aspect-ratio: 2 / 3;
  background-image: var(--img-clusters);
  background-position: left top;
  -webkit-mask-image: radial-gradient(ellipse at 24% 18%, #000 34%, transparent 74%);
          mask-image: radial-gradient(ellipse at 24% 18%, #000 34%, transparent 74%);
}

.wtc-sprig--eucalyptus {
  right: -6%;
  bottom: -4%;
  width: 76%;
  aspect-ratio: 3 / 2;
  background-image: var(--img-eucalyptus);
  background-position: right bottom;
  -webkit-mask-image: radial-gradient(ellipse at 78% 84%, #000 34%, transparent 76%);
          mask-image: radial-gradient(ellipse at 78% 84%, #000 34%, transparent 76%);
}

/* paint order: sprigs, then the form, then the iridescent rim on top */
.wtc-dialog::before {
  z-index: 2;
}

.wtc-form {
  position: relative;
  z-index: 1;
  max-height: 92vh;
  max-height: min(92dvh, 46rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2.3rem 2.2rem 1.9rem;
  text-align: center;
}

.wtc-form__eyebrow {
  margin: 0 0 .45rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .32em;
  text-indent: .32em;
  font-size: .95rem;
  color: var(--eucalyptus-ink);
}

.wtc-form__title {
  margin: 0 0 1.2rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .1em;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--eucalyptus-ink);
}

.wtc-form__context {
  margin: -.7rem 0 1.2rem;
  font-size: .98rem;
  color: var(--ink-soft);
}

.wtc-form__context strong {
  font-weight: 500;
  color: var(--ink);
}

.wtc-field {
  display: block;
  margin: 0 0 .9rem;
  text-align: left;
}

.wtc-field > span {
  display: block;
  margin: 0 0 .35rem .25rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: .12em;
  font-size: .92rem;
  color: var(--eucalyptus-ink);
}

.wtc-field small {
  font-family: var(--font-sans);
  font-variant-caps: normal;
  font-weight: 400;
  font-size: .8rem;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.wtc-field input,
.wtc-field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: .8rem 1.05rem;
  border: 1px solid rgba(79, 110, 88, .26);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 #fff;
  transition: border-color .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}

.wtc-field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.wtc-field input::placeholder,
.wtc-field textarea::placeholder {
  color: rgba(101, 91, 88, .55);
}

.wtc-field input:focus-visible,
.wtc-field textarea:focus-visible {
  outline: none;
  border-color: var(--eucalyptus);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 4px rgba(198, 229, 229, .55);
}

/* honeypot: off-screen for people, present for bots */
.wtc-form__hp {
  position: absolute;
  top: 0;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wtc-form__status {
  min-height: 1.4em;
  margin: .2rem 0 0;
  font-size: .95rem;
  line-height: 1.45;
}

.wtc-form__status.is-error {
  color: #A14A3D;
}

.wtc-form__status.is-success {
  font-size: 1.05rem;
  color: var(--eucalyptus-ink);
}

.wtc-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem 1.6rem;
  margin-top: 1.1rem;
}

.wtc-form .btn-cta .wp-block-button__link {
  border: 0;
  cursor: pointer;
}

.wtc-form .btn-cta .wp-block-button__link:disabled {
  cursor: progress;
  opacity: .65;
  transform: none;
}

.wtc-form__cancel {
  padding: .55rem .2rem;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-caps: small-caps;
  font-size: 1.02rem;
  letter-spacing: .18em;
  color: var(--eucalyptus-ink);
  text-decoration: underline;
  text-decoration-color: rgba(79, 110, 88, .4);
  text-underline-offset: .35em;
  transition: text-decoration-color .3s var(--ease-soft);
}

.wtc-form__cancel:hover,
.wtc-form__cancel:focus-visible {
  text-decoration-color: var(--eucalyptus-ink);
}

.wtc-form__cancel:focus-visible {
  outline: 2px solid var(--eucalyptus);
  outline-offset: 4px;
  border-radius: .4rem;
}

/* after a successful send only the thank-you line and the close button remain */
.wtc-form.is-sent .wtc-field,
.wtc-form.is-sent .wtc-form__context,
.wtc-form.is-sent .btn-cta {
  display: none;
}

.wtc-form.is-sent .wtc-form__status {
  margin: 1.2rem 0 .6rem;
}

@media (max-width: 699px) {
  .wtc-dialog {
    width: min(94vw, 30rem);
    border-radius: 1.8rem;
  }

  .wtc-form {
    padding: 1.9rem 1.25rem 1.5rem;
  }

  .wtc-form__title {
    font-size: 1.6rem;
  }
}
