/* ===========================================================
   EmocinėGerovė — Gutenberg blokų stiliai
   Naudojama ir front-end'e, ir redaktoriuje (add_editor_style).
   Visas titulinio puslapio turinys = įprasti Gutenberg blokai
   su šiomis eg-* klasėmis (jas nustato block patterns / pradinis turinys).
   =========================================================== */

/* ---------- Sekcijų karkasas ---------- */
.eg-section { padding-block: clamp(72px, 11vw, 140px); padding-inline: clamp(22px, 5vw, 64px); }
.eg-section.is-tight { padding-block: clamp(56px, 8vw, 100px); }
.eg-section.eg-sand { background: var(--sand); }
.eg-section.eg-white { background: var(--white); }
.eg-section.eg-green-tint { background: linear-gradient(180deg, #EEF0EA 0%, var(--white) 100%); }

/* alignfull grupės turinį centruojam į contentSize, bet leidžiam tarpus iš šonų */
.eg-section.alignfull > .wp-block-group__inner-container,
.eg-section.alignfull { scroll-margin-top: 88px; }

/* ---------- Tipografiniai akcentai blokuose ---------- */
.eg-eyebrow {
  font-size: 0.78rem !important; text-transform: uppercase; letter-spacing: 0.26em;
  font-weight: 500; color: var(--green-deep) !important; margin-bottom: 0;
}
.eg-display { font-size: clamp(2.6rem, 6vw, 4.4rem) !important; font-weight: 300; line-height: 1.04; letter-spacing: -0.03em; }
.eg-h2 { font-size: clamp(1.9rem, 3.6vw, 3rem) !important; font-weight: 300; letter-spacing: -0.025em; }
.eg-lead { font-size: clamp(1.12rem, 1.6vw, 1.35rem) !important; line-height: 1.6; color: var(--ink-soft); }
.eg-muted { color: var(--ink-soft); }

/* ---------- Mygtukų blokų stiliai (Buttons block) ---------- */
.wp-block-button__link { display: inline-block; text-decoration: none; line-height: 1; }
.wp-block-button.is-style-eg-primary > .wp-block-button__link {
  background: var(--ink); color: var(--white); border-radius: 999px;
  padding: 0.95em 1.7em; font-weight: 500; font-size: 1rem; border: 0;
  box-shadow: var(--shadow-md); transition: transform .35s var(--ease), background .35s var(--ease);
}
.wp-block-button.is-style-eg-primary > .wp-block-button__link:hover { background: #2A2722; transform: translateY(-2px); }
.wp-block-button.is-style-eg-green > .wp-block-button__link {
  background: var(--green); color: #2C322A; border-radius: 999px;
  padding: 0.95em 1.7em; font-weight: 500; font-size: 1rem; border: 0; transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.wp-block-button.is-style-eg-green > .wp-block-button__link:hover { background: var(--green-deep); color: var(--white); transform: translateY(-2px); }
.wp-block-button.is-style-eg-ghost > .wp-block-button__link {
  background: transparent; color: var(--ink); border-radius: 999px;
  padding: 0.95em 1.7em; font-weight: 500; font-size: 1rem; border: 1px solid var(--line);
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.wp-block-button.is-style-eg-ghost > .wp-block-button__link:hover { border-color: var(--ink); background: rgba(255,255,255,.5); }

/* ===========================================================
   HERO
   =========================================================== */
.eg-hero {
  position: relative; overflow: hidden;
  background-image: var(--eg-hero-img);
  background-size: cover; background-position: 60% center;
  padding-block: clamp(96px, 16vh, 188px) clamp(64px, 9vw, 110px) !important;
}
.eg-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, rgba(247,245,242,.94) 0%, rgba(247,245,242,.80) 38%, rgba(247,245,242,.30) 64%, rgba(247,245,242,.05) 100%);
}
.eg-hero > .wp-block-group__inner-container { position: relative; z-index: 1; }
.eg-hero__content { max-width: 640px; }
.eg-hero__content > * + * { margin-top: 22px; }
.eg-hero__content .eg-display { margin-top: 10px; }
.eg-hero__note { font-size: 0.92rem !important; color: var(--ink-soft); }

/* ===========================================================
   SRITYS (areas)
   =========================================================== */
.eg-areas__head { max-width: 56ch; }
.eg-areas__grid { margin-top: clamp(34px, 5vw, 48px) !important; gap: 16px !important; }
.eg-areas__grid > .wp-block-column {
  background: rgba(255,255,255,.6); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 26px 24px 30px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease);
}
.eg-areas__grid > .wp-block-column:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: #fff; }
.eg-areas__grid > .wp-block-column::before {
  content: ""; display: block; width: 38px; height: 38px; border-radius: 50%;
  margin-bottom: 16px; background-color: #EDEFE9;
  background-repeat: no-repeat; background-position: center; background-size: 20px 20px;
}
.eg-area--anxiety::before  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C9E84' stroke-width='1.6'%3E%3Cpath d='M12 21s-7-4.6-7-10a7 7 0 0 1 14 0c0 5.4-7 10-7 10z' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='11' r='2.4'/%3E%3C/svg%3E"); }
.eg-area--overthinking::before { background-color:#E7EDF0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E97A1' stroke-width='1.6'%3E%3Cpath d='M9 18a5 5 0 1 1 4-8M15 6a5 5 0 0 1 0 9' stroke-linecap='round'/%3E%3Cpath d='M12 3v3M12 18v3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.eg-area--stress::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C9E84' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l2.5 1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.eg-area--burnout::before { background-color:#E7EDF0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E97A1' stroke-width='1.6'%3E%3Cpath d='M5 19c2-4 5-6 7-12 2 6 5 8 7 12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 19h14' stroke-linecap='round'/%3E%3C/svg%3E"); }
.eg-areas__grid h3 { font-size: 1.18rem !important; font-weight: 500; }
.eg-areas__grid p { font-size: 0.96rem !important; color: var(--ink-soft); margin-top: 8px; }

/* Planšetėse — 2 stulpeliai vietoj 4 */
@media (min-width: 600px) and (max-width: 920px) {
  .eg-areas__grid { flex-wrap: wrap !important; }
  .eg-areas__grid > .wp-block-column { flex-basis: calc(50% - 8px) !important; }
}

.eg-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px !important; }
.eg-pills p {
  margin: 0 !important; display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--line); font-size: 0.95rem !important; color: var(--ink);
}

/* ===========================================================
   APIE (homepage preview)
   =========================================================== */
.eg-about__grid { gap: clamp(36px, 6vw, 84px) !important; align-items: center; }
.eg-about__grid .wp-block-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.eg-about__grid .wp-block-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.eg-about__grid .wp-block-list li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.eg-about__grid .wp-block-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green-deep); font-weight: 600; }

/* ===========================================================
   CITATA
   =========================================================== */
.eg-quote {
  position: relative; overflow: hidden; text-align: center;
  background-image: var(--eg-quote-img); background-size: cover; background-position: center 38%;
  padding-block: clamp(96px, 15vw, 176px) !important;
}
.eg-quote::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,36,30,.42), rgba(40,36,30,.58)); }
.eg-quote > .wp-block-group__inner-container { position: relative; z-index: 1; }
.eg-quote .eg-quote__text {
  color: #FBF8F3 !important; font-size: clamp(1.7rem, 3.4vw, 2.7rem) !important; font-weight: 300;
  line-height: 1.28; letter-spacing: -0.02em; max-width: 22ch; margin-inline: auto;
}

/* ===========================================================
   PASLAUGOS
   =========================================================== */
.eg-services__head { text-align: center; max-width: 60ch; margin-inline: auto; }
.eg-services__grid { margin-top: clamp(40px, 5vw, 64px) !important; gap: 24px !important; align-items: stretch; }
.eg-services__grid > .wp-block-column {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  overflow: hidden; padding: 0 !important;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  display: flex; flex-direction: column;
}
.eg-services__grid > .wp-block-column:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.eg-services__grid .wp-block-image { margin: 0; aspect-ratio: 16/11; overflow: hidden; }
.eg-services__grid .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.eg-services__grid .eg-card__pad { padding: 30px 28px 34px; display: flex; flex-direction: column; gap: 0; flex: 1; }
.eg-services__grid .eg-card__pad > * { margin-top: 14px; }
.eg-services__grid .eg-card__pad > *:first-child { margin-top: 0; }
.eg-card__tag { font-size: 0.72rem !important; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-deep) !important; font-weight: 500; }
.eg-services__grid h3 { font-size: 1.42rem !important; font-weight: 400; letter-spacing: -0.02em; }
.eg-services__grid p { color: var(--ink-soft); font-size: 1rem !important; }
.eg-services__grid .wp-block-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; }
.eg-services__grid .wp-block-list li { font-size: 0.95rem; color: var(--ink-soft); padding-left: 16px; position: relative; }
.eg-services__grid .wp-block-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); position: absolute; left: 0; top: 9px; }
.eg-services__grid .wp-block-buttons { margin-top: auto; padding-top: 22px; }

/* ===========================================================
   REGISTRACIJA
   =========================================================== */
.eg-booking__grid { gap: clamp(36px, 6vw, 72px) !important; align-items: start; }
.eg-booking__intro { position: sticky; top: 100px; }
.eg-booking__intro > * + * { margin-top: 20px; }
.eg-booking__intro .wp-block-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; }
.eg-booking__intro .wp-block-list li { padding-left: 30px; position: relative; color: var(--ink-soft); font-size: 0.98rem; }
.eg-booking__intro .wp-block-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='m5 13 4 4L19 7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

@media (max-width: 980px){ .eg-booking__intro { position: static; } }

/* ===========================================================
   KONTAKTAI
   =========================================================== */
.eg-contact__grid { gap: clamp(36px, 6vw, 72px) !important; align-items: center; }
.eg-contact__grid .wp-block-image img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.eg-contact__list { list-style: none !important; margin: 8px 0 0 !important; padding: 0 !important; display: grid; gap: 0; }
.eg-contact__list li { padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; font-weight: 500; }
.eg-contact__list li::before { content: none !important; }

/* ===========================================================
   Redaktoriaus prisitaikymas
   =========================================================== */
.editor-styles-wrapper { background: var(--white); }
.editor-styles-wrapper .eg-hero,
.editor-styles-wrapper .eg-quote { color: inherit; }
