/* =========================================================================
   Maria Psychologist — style.css
   Calm & warm design system (sage-green + warm beige), light + dark themes.
   No font-awesome: all icons are inline SVG in the markup.
   ========================================================================= */

/* ---------- Fonts (local Montserrat) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/400-Montserrat-Regular.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/500-Montserrat-Medium.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/700-Montserrat-Bold.ttf") format("truetype"); }

/* ---------- Theme tokens ---------- */
:root,
[data-theme="morning"] {
  --bg:        #f4efe6;
  --surface:   #fffdf9;
  --surface-2: #ebe3d5;
  --ink:       #2f3428;
  --muted:     #5f6a4e;
  --line:      #e0d6c2;
  --sage:      #5c6a45;
  --sage-deep: #414a32;
  --sand:      #bd8f63;
  --sand-deep: #9c6f43;
  --shadow:    0 18px 50px -24px rgba(79, 90, 65, .35);
  --shadow-sm: 0 8px 24px -14px rgba(79, 90, 65, .28);
  --radius:    22px;
  --radius-sm: 14px;
}

[data-theme="night"] {
  --bg:        #1c201b;
  --surface:   #262b23;
  --surface-2: #2f362c;
  --ink:       #eceadf;
  --muted:     #a8ae9c;
  --line:      #3a4133;
  --sage:      #9fb083;
  --sage-deep: #b8c79e;
  --sand:      #d9b58d;
  --sand-deep: #e0c19c;
  --shadow:    0 22px 60px -26px rgba(0, 0, 0, .6);
  --shadow-sm: 0 10px 28px -16px rgba(0, 0, 0, .55);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* overflow-x: clip (not hidden) — prevents sideways scroll WITHOUT breaking position:sticky */
html, body { max-width: 100%; overflow-x: clip; }
/* Content copy protection (form fields remain selectable) */
body.no-copy { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
body.no-copy input, body.no-copy textarea, body.no-copy select, body.no-copy [contenteditable] { -webkit-user-select: text; -moz-user-select: text; user-select: text; }
/* Reserve the scrollbar gutter so opening a modal/offcanvas doesn't shift the page */
html { scrollbar-gutter: stable; }
/* Bootstrap adds body padding when a modal opens — neutralize the horizontal jump */
body.modal-open { padding-right: 0 !important; overflow: hidden; }

body {
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s ease, color .4s ease;
}

h1, h2, h3, h4, h5, h6, .h-disp {
  font-family: Georgia, "Times New Roman", "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: .2px;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-header { font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin-bottom: .2em; }
.section-header span { color: var(--sage); }
.sub-header { font-family: Georgia, serif; font-weight: 600; font-size: 1.18rem; color: var(--ink); margin: 0; }

p { margin: 0 0 1rem; }
a { color: var(--sage-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sand-deep); }
img, picture, svg { max-width: 100%; }
ul { padding-left: 1.15rem; margin: 0; }
ul li { margin-bottom: .5rem; }

.container { max-width: 1180px; }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec { position: relative; }
.text-muted { color: var(--muted) !important; }
.mono { font-variant-numeric: tabular-nums; }
.u-hide { display: none !important; }
.fz-78 { font-size: .78rem; } .fz-90 { font-size: .9rem; } .fz-95 { font-size: .95rem; }
.mw-46 { max-width: 46ch; }

/* Row helpers carried from source markup */
.row-second-layer > [class*="col-"] { margin-bottom: 0; }
.row-pagging > * + * { margin-top: .35rem; }

/* ---------- Icons ---------- */
.ic { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn-olive, .btn-sand {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: .8rem 1.6rem; font-weight: 600; font-size: 1rem;
  transition: transform .25s ease, box-shadow .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease;
  text-align: center;
}
.btn-olive { background: var(--sage); color: #fff; box-shadow: var(--shadow-sm); }
.btn-olive:hover { background: var(--sage-deep); color: #fff; transform: translateY(-2px); }
.btn-sand { background: var(--sand); color: #3a2f22; }
.btn-sand:hover { background: var(--sand-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: .7rem 1.35rem; font-weight: 600; color: var(--ink); background: transparent;
  transition: border-color .2s ease, color .2s ease;
}
.btn-ghost:hover { border-color: var(--sage); color: var(--sage-deep); }

/* ---------- Header / nav ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease; }
.nav-wrap.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); }
.navbar { padding-top: .55rem; padding-bottom: .55rem; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 42px; width: auto; }
.logo-night { display: none; }
[data-theme="night"] .logo-morning { display: none; }
[data-theme="night"] .logo-night { display: inline-block; }

.navlink { position: relative; color: var(--ink); font-weight: 500; padding: .35rem .1rem; }
.navlink::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--sage); border-radius: 2px; transition: width .25s ease; }
.navlink:hover, .navlink.active { color: var(--sage-deep); }
.navlink.active::after, .navlink:hover::after { width: 100%; }

.theme-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.theme-toggle:hover { border-color: var(--sage); transform: rotate(-12deg); }
.theme-toggle .ic-moon { display: none; }
[data-theme="night"] .theme-toggle .ic-sun { display: none; }
[data-theme="night"] .theme-toggle .ic-moon { display: inline-block; }

.navbar-toggler { padding: .35rem; border-radius: 12px; color: var(--ink); }
.navbar-toggler:focus { box-shadow: none; }

/* Language switch */
.lang-switch { display: inline-flex; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.lang-item { padding: .28rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.lang-item.active { background: var(--surface); color: var(--sage-deep); box-shadow: var(--shadow-sm); }

/* ---------- Hero / intro ---------- */
#introduction { padding-top: clamp(2.5rem, 5vw, 4rem); }
.hero-badge { display: inline-flex; align-items: center; gap: .45rem; background: var(--surface-2); color: var(--sage-deep); font-size: .82rem; font-weight: 600; padding: .35rem .85rem; border-radius: 999px; margin-bottom: 1rem; }
#introduction h2 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--sage-deep); margin-top: .8rem; }
.profile-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 3/4; background: var(--surface-2); }
.modal-ask-a-question, .service, .button-working-process {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--sage); color: #fff; border-radius: 999px;
  padding: .8rem 1.5rem; font-weight: 600; margin-top: .8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.modal-ask-a-question:hover, .button-working-process:hover { background: var(--sage-deep); color: #fff; transform: translateY(-2px); }
/* Buttons inside content blocks span the full width */
.block-process .button-working-process { display: flex; width: 100%; margin-top: 1.2rem; justify-content: center; }
/* Hero CTA full width (item 11) */
#introduction .modal-ask-a-question { display: flex; width: 100%; justify-content: center; }
/* Worries CTAs centered (item 12) */
#worries .card-cta .d-flex { justify-content: center; }
#worries .card-cta .btn-olive, #worries .card-cta .btn-ghost { flex: 1 1 auto; justify-content: center; text-align: center; }
@media (max-width: 575.98px) { #worries .card-cta .btn-olive, #worries .card-cta .btn-ghost { flex: 1 1 100%; width: 100%; } }

/* ---------- Marquee (running line) ---------- */
#marguee { padding: 0; }
.marquee { overflow: hidden; background: var(--sage-deep); color: #fff; padding: .95rem 0; width: 100%; }
.marquee-track { display: inline-flex; flex-wrap: nowrap; align-items: center; white-space: nowrap; will-change: transform; animation: marquee 32s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-track span { font-family: Georgia, serif; font-size: 1.05rem; position: relative; padding: 0 1.5rem 0 3rem; flex: none; }
.marquee-track span::before { content: "✦"; position: absolute; left: 1rem; color: var(--sand); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Hero typeit line ---------- */
.type-line { font-family: Georgia, serif; font-weight: 600; color: var(--sage); font-size: clamp(1.2rem, 2.6vw, 1.7rem); min-height: 1.3em; margin-bottom: .6rem; }
.type-line .ti-cursor { color: var(--sand); }

/* ---------- Cards / generic surfaces ---------- */
.card-soft { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(1.4rem, 3vw, 2rem); }

/* ---------- Jarallax parallax media ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface-2); }
.media.portrait { aspect-ratio: 3/4; }
.media.square { aspect-ratio: 1/1; }
.media .jarallax-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* jarallax needs the img to be static-positioned once initialized; keep cover */
.media.jarallax { min-height: 60px; }

/* ---------- Experience timeline ---------- */
.date-experience { position: relative; padding-left: 4.3rem; margin-bottom: 1rem; }
.date-experience span { position: absolute; left: 0; top: 0; font-family: Georgia, serif; font-weight: 700; color: var(--sage); background: var(--surface-2); border-radius: 999px; padding: .1rem .6rem; font-size: .9rem; }

/* ---------- Achievements ---------- */
#achivments .block-achivments { text-align: center; padding: 1.4rem 1rem; }
.border-achivments { border-right: 1px solid var(--line); }
@media (max-width: 767px) { .border-achivments { border-right: 0; border-bottom: 1px solid var(--line); } }
.scroll-size { font-family: Georgia, serif; font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.2rem); color: var(--sage); margin: 0; line-height: 1; }
.block-achivments p:last-child { color: var(--muted); margin: .4rem 0 0; }

/* ---------- Working process ---------- */
.block-process { position: relative; background: linear-gradient(160deg, var(--surface) 0%, color-mix(in srgb, var(--surface-2) 55%, var(--surface)) 100%); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(1.5rem, 3vw, 2.4rem); margin-bottom: 1.6rem; overflow: hidden; transition: box-shadow .3s ease, transform .3s ease; }
.block-process:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.block-process::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--sage), var(--sand)); }
.problem-img { width: 100%; border-radius: var(--radius-sm); object-fit: cover; aspect-ratio: 1/1; background: var(--surface-2); }
.block-process .media.square { border-radius: var(--radius-sm); }
.block-process .sub-header { display: inline-flex; align-items: center; gap: .5rem; background: color-mix(in srgb, var(--sage) 12%, transparent); color: var(--sage-deep); padding: .4rem .9rem; border-radius: 999px; font-size: 1rem; }
/* Check-list instead of bullets */
.block-process ul { list-style: none; padding-left: 0; margin: 0; }
.block-process ul li { position: relative; padding-left: 2rem; margin-bottom: .7rem; color: var(--ink); }
.block-process ul li::before { content: ""; position: absolute; left: 0; top: .18em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: color-mix(in srgb, var(--sage) 16%, transparent) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6a45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M4 12.5 10 18 20 6'/%3e%3c/svg%3e") center / .78rem no-repeat; }
[data-theme="night"] .block-process ul li::before { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb083' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M4 12.5 10 18 20 6'/%3e%3c/svg%3e"); }

/* ---------- Forbidden ---------- */
.block-forbidden { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.4rem 1.4rem 1.4rem 3.4rem; height: 100%; box-shadow: var(--shadow-sm); }
.block-forbidden .no-mark { position: absolute; left: 1.2rem; top: 1.4rem; width: 26px; height: 26px; color: var(--sand-deep); }
.block-forbidden .sub-header { margin-bottom: .3rem; }
.block-forbidden p:last-child { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Consultations services ---------- */
.service { width: 100%; justify-content: space-between; margin: 0 0 .8rem; padding: 1rem 1.4rem; text-align: left; }
.service .ic { flex: none; }
.service-02 { background: var(--sand); color: #3a2f22; }
.service-02:hover { background: var(--sand-deep); color: #fff; }
.service-03 { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.service-03:hover { border-color: var(--sage); color: var(--sage-deep); background: var(--surface); }

/* ---------- FAQ accordion (Bootstrap-native chevron) ---------- */
.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--line);
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--sage-deep);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 18%, transparent);
  display: grid; gap: .8rem;
}
.accordion-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm) !important; overflow: hidden; box-shadow: var(--shadow-sm); }
.accordion-header { margin: 0; }
.accordion-button { background: transparent; color: var(--ink); font-family: Georgia, serif; font-weight: 600; font-size: 1.06rem; padding: 1.05rem 1.3rem; box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: var(--sage-deep); background: color-mix(in srgb, var(--sage) 8%, transparent); }
/* recolor the default Bootstrap chevron to the sage accent */
.accordion-button::after { --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236f7d5e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m3 6 5 5 5-5'/%3e%3c/svg%3e"); --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon); background-size: 1.15rem; }
[data-theme="night"] .accordion-button::after { --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239fb083' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m3 6 5 5 5-5'/%3e%3c/svg%3e"); }
.accordion-body { padding: .2rem 1.3rem 1.25rem; color: var(--muted); }
.accordion-body .sub-header, .accordion-body p, .accordion-body li { color: var(--muted); }
.accordion-body p:last-child { margin-bottom: 0; }

/* ---------- Reviews slider ---------- */
.feedback-slider { overflow: hidden; }
.feedback-slider .swiper-slide { height: auto; display: flex; }
/* Photo review cards (fancybox gallery) */
.review-photo { display: block; width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface); transition: transform .2s ease; }
.review-photo:hover { transform: translateY(-3px); }
.review-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
/* Text review cards (fallback / SEO) */
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.6rem; height: 100%; display: flex; flex-direction: column; }
.review-card .quote { font-size: 2.4rem; font-family: Georgia, serif; color: var(--sand); line-height: 1; margin-bottom: .3rem; }
.review-card p { color: var(--ink); }
.review-stars { color: var(--sand); margin-top: auto; letter-spacing: 2px; }
.review-author { font-weight: 600; color: var(--sage-deep); margin-top: .6rem; }
/* Pagination sits BELOW the cards, styled as a soft pill row */
#reviews .swiper-pagination { position: static; margin-top: 1.8rem; display: flex; justify-content: center; align-items: center; gap: 8px; }
#reviews .swiper-pagination-bullet { background: var(--line); opacity: 1; width: 8px; height: 8px; margin: 0 !important; transition: width .3s ease, background .3s ease; }
#reviews .swiper-pagination-bullet-active { background: var(--sage); width: 26px; border-radius: 999px; }

/* ---------- Worries CTA ---------- */
#worries .card-cta { background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(1.6rem, 4vw, 2.6rem); }

/* ---------- Footer ---------- */
.foot { background: var(--surface); border-top: 1px solid var(--line); margin-top: 2rem; padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.foot .brand-logo { height: 40px; }
.foot-links { display: flex; flex-direction: column; gap: .5rem; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--sage-deep); }
.contacts-list a { color: var(--ink); }
.soc { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: all .2s ease; }
.soc:hover { border-color: var(--sage); color: var(--sage-deep); background: var(--surface-2); transform: translateY(-2px); }

/* ---------- Forms / modals ---------- */
/* Only real text controls are full-width — never checkboxes/radios */
.form-control, .form-select {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  color: var(--ink); padding: .7rem .95rem; width: 100%; max-width: 100%; margin-bottom: .55rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea.form-control { resize: vertical; }
.form-control:focus, .form-select:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 20%, transparent);
}
.form-label { font-size: .85rem; color: var(--muted); margin-bottom: .2rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-check-input { flex: none; margin-top: .28rem; }
.form-check-input:checked { background-color: var(--sage); border-color: var(--sage); }
.form-check-input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 20%, transparent); border-color: var(--sage); }
.form-status { border-radius: 12px; padding: .7rem .9rem; font-size: .92rem; }
.form-status.is-ok { background: color-mix(in srgb, var(--sage) 16%, transparent); color: var(--sage-deep); }
.form-status.is-err { background: color-mix(in srgb, var(--sand) 20%, transparent); color: var(--sand-deep); }

.modal-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.modal-header { border-bottom: 1px solid var(--line); }
.modal-title { font-family: Georgia, serif; font-weight: 600; font-size: 1.25rem; margin: 0; line-height: 1.25; padding-right: .5rem; }
.modal-body { overflow-x: hidden; }
.modal-questions .sub-header { color: var(--sage-deep); margin-top: .7rem; margin-bottom: .35rem; font-size: 1.05rem; }
/* Robust checkbox/radio rows — text wraps, never overflows */
.modal-questions .form-check { display: flex; gap: .55rem; align-items: flex-start; margin: 0 0 .4rem; padding-left: 0; min-width: 0; }
.modal-questions .form-check .form-check-input { margin-left: 0; float: none; }
.modal-questions .form-check .form-check-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.thanks-ico { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; background: color-mix(in srgb, var(--sage) 18%, transparent); color: var(--sage-deep); display: flex; align-items: center; justify-content: center; }
.btn-close { filter: none; }
[data-theme="night"] .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }

/* ---------- FAB stack ---------- */
.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; flex-direction: column; gap: .6rem; }
.fab { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--surface); color: var(--sage-deep); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.fab:hover { transform: translateY(-3px); }
.fab-chat { background: var(--sage); color: #fff; position: relative; }
.fab-top { opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .2s ease; }
.fab-top.show { opacity: 1; pointer-events: auto; }
.fab-dot { position: absolute; top: 10px; right: 12px; width: 9px; height: 9px; background: var(--sand); border-radius: 50%; box-shadow: 0 0 0 3px var(--sage); }

/* ---------- Chat panel (fixed-height, like the reference) ---------- */
.chat-panel { position: fixed; right: 18px; bottom: 88px; width: 360px; max-width: calc(100vw - 24px); height: 500px; max-height: calc(100vh - 120px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1041; display: none; flex-direction: column; overflow: hidden; }
.chat-panel.open { display: flex; animation: chatIn .22s ease; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) { .chat-panel { right: 12px; bottom: 80px; } }
.chat-head { display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem; background: var(--sage); color: #fff; }
.chat-head b { font-family: Georgia, serif; }
.chat-head span { font-size: .78rem; opacity: .85; }
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #a8e6a1; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.chat-close { background: transparent; border: 0; color: #fff; opacity: .85; display: inline-flex; cursor: pointer; }
.chat-close:hover { opacity: 1; }
.chat-setup, .chat-gate, .chat-form { padding: 1rem; }
.chat-gate input, .chat-form input { width: 100%; border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: .6rem .8rem; margin-bottom: .55rem; color: var(--ink); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.chat-msg { max-width: 82%; padding: .55rem .8rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.chat-msg.me { align-self: flex-end; background: var(--sage); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.op { align-self: flex-start; background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-msg.sys { align-self: center; background: transparent; color: var(--muted); font-size: .8rem; }
.chat-form { display: flex; gap: .5rem; padding-top: 0; }
.chat-form input { margin-bottom: 0; }
.chat-form button { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--sage); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chat-count { font-size: .7rem; color: var(--muted); text-align: right; padding: 0 1rem .3rem; }
.chat-count.over { color: var(--sand-deep); }

/* ---------- Callback offcanvas (bottom) ---------- */
#callbackOc { --bs-offcanvas-height: auto; background: var(--surface); border-top: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; color: var(--ink); z-index: 1090; }
/* padding-right only on the TEXT (to clear the close button), NOT on the form */
#callbackOc .oc-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; padding: 1.1rem 0 1.2rem; }
#callbackOc .oc-text { flex: 1 1 260px; padding-right: 52px; }
#callbackOc .oc-text b { font-family: Georgia, serif; font-size: 1.12rem; }
#callbackOc form { display: flex; flex: 1 1 320px; flex-wrap: wrap; gap: .55rem; align-items: center; }
#callbackOc .form-control { flex: 1 1 100%; width: 100%; min-width: 0; margin-bottom: 0; }
#callbackOc .btn-olive { flex: 1 1 100%; width: 100%; white-space: nowrap; }
.oc-close { position: absolute; top: 10px; right: 14px; z-index: 5; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.oc-close:hover { border-color: var(--sage); color: var(--sage-deep); }
@media (min-width: 768px) { #callbackOc form { flex: 0 1 auto; } #callbackOc .form-control { flex: 1 1 180px; width: auto; } #callbackOc .btn-olive { flex: 0 0 auto; width: auto; } }
@media (max-width: 575.98px) { #callbackOc .oc-inner { padding-right: 44px; } }

/* ---------- Reveal on scroll ---------- */
/* Initial hidden state + reveal are provided by kno-animation.css (bidirectional replay).
   No-JS / reduced-motion fallback so content is never stuck invisible: */
html:not(.js) [kno-position], html:not(.js) .reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { [kno-position], .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Responsive niceties ---------- */
/* Mobile (≤576): center the text inside every button */
@media (max-width: 575.98px) {
  .btn-olive, .btn-sand, .btn-ghost, .service, .modal-ask-a-question, .button-working-process {
    justify-content: center; text-align: center;
  }
  .service { justify-content: center; gap: .6rem; }
}

@media (max-width: 991px) {
  .navbar-collapse { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin-top: .6rem; box-shadow: var(--shadow-sm); }
  /* Header actions stack full-width on mobile: language row, then the CTA */
  .navbar-collapse .nav-actions { flex-direction: column; align-items: stretch !important; gap: .6rem !important; }
  .navbar-collapse .lang-switch { display: flex; width: 100%; justify-content: center; }
  .navbar-collapse .lang-switch .lang-item { flex: 1 1 0; text-align: center; }
  .navbar-collapse .modal-ask-a-question { display: flex; width: 100%; }
}
