/* РазходиМе: mobile-first styles. Base: 360px; enhancements at 700px and 1000px. */

:root { --rz-radius: 18px; --rz-shadow: 0 10px 30px rgba(28, 27, 25, .08); }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { -webkit-font-smoothing: antialiased; font-feature-settings: "locl" 0; }  /* standard Cyrillic forms (no Bulgarian д/т variants) */
img { max-width: 100%; height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks { padding: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Header */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 0px); }
.rz-header { background: rgba(251, 246, 238, .92);
  backdrop-filter: saturate(1.4) blur(8px); padding: .6rem 1.25rem; border-bottom: 1px solid rgba(28,27,25,.06); }
.rz-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--wp--preset--color--ink);
  text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.rz-brand img { width: 52px; height: auto; }
.rz-header-cta .wp-block-button__link { padding: .6rem 1rem; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 420px) { .rz-header-cta .wp-block-button__link { font-size: .8125rem; padding: .55rem .8rem; } .rz-brand { font-size: 1.05rem; } .rz-brand img { width: 44px; } }

/* Sections */
.rz-section { padding-block: var(--wp--preset--spacing--60); }
.rz-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800;
  color: var(--wp--preset--color--orange-dark); margin-bottom: .25rem; }
.rz-lead { font-size: 1.125rem; color: var(--wp--preset--color--ink-soft); max-width: 40ch; }

/* Hero */
.rz-hero.wp-block-cover { min-height: min(88svh, 760px) !important; align-items: flex-end; padding: 1.25rem 1.25rem 2.25rem; }
.rz-hero .wp-block-cover__inner-container { max-width: 1180px; margin-inline: auto; width: 100%; }
.rz-hero h1 { color: #fff; max-width: 15ch; margin-bottom: .75rem; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.rz-hero p { color: #fff; max-width: 36ch; font-size: 1.125rem; }
.rz-hero .wp-block-buttons { margin-top: 1.25rem; gap: .75rem; }
.rz-hero .is-style-outline .wp-block-button__link { color: #fff; border: 2px solid #fff; background: transparent; }
.rz-hero .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--ink); }

/* Trust strip */
.rz-trust { display: grid; gap: .75rem; padding: 1.25rem; margin: -1.5rem 1.25rem 0 !important; position: relative; z-index: 2;
  background: #fff; border-radius: var(--rz-radius); box-shadow: var(--rz-shadow); max-width: 1180px; }
.rz-trust p { margin: 0; display: flex; gap: .6rem; align-items: center; font-weight: 700; }
.rz-trust p::before { content: ""; flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--wp--preset--color--orange); }

/* Steps */
.rz-steps { list-style: none; padding: 0; counter-reset: rz; display: grid; gap: 1rem; }
.rz-steps li { counter-increment: rz; background: #fff; border-radius: var(--rz-radius); padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  position: relative; box-shadow: var(--rz-shadow); }
.rz-steps li::before { content: counter(rz); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.3rem; height: 2.3rem;
  border-radius: 50%; background: var(--wp--preset--color--orange); display: grid; place-items: center; font-weight: 800; }

/* Service cards */
.rz-cards { display: grid; gap: 1.25rem; }
.rz-card { background: #fff; border-radius: var(--rz-radius); overflow: hidden; box-shadow: var(--rz-shadow);
  display: flex; flex-direction: column; margin: 0 !important; }
.rz-card .wp-block-image { margin: 0; }
.rz-card .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; }
.rz-card-body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.rz-card-body h3 { margin: 0; }
.rz-card-body p { margin: 0; color: var(--wp--preset--color--ink-soft); }
.rz-price { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto !important; padding-top: .5rem; }
.rz-price strong { font-size: 1.75rem; color: var(--wp--preset--color--ink); }
.rz-price span { font-weight: 700; color: var(--wp--preset--color--ink-soft); }
.rz-card .wp-block-buttons { margin-top: .5rem; }
.rz-card .wp-block-button, .rz-card .wp-block-button__link { width: 100%; text-align: center; }
.rz-note { font-size: .95rem; color: var(--wp--preset--color--ink-soft); }

/* Area */
.rz-area { position: relative; color: #fff; }
.rz-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.rz-chips li { background: #fff; color: var(--wp--preset--color--ink); border-radius: 999px; padding: .5rem 1rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: .4rem; }
.rz-chips li::before { content: ""; width: .6rem; height: .6rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--wp--preset--color--orange); }

/* About */
.rz-about .wp-block-image img { border-radius: var(--rz-radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* Reviews */
.rz-reviews { display: grid; gap: 1rem; }
.rz-review { background: #fff; border-radius: var(--rz-radius); padding: 1.35rem; margin: 0 !important; box-shadow: var(--rz-shadow); border: 0; }
.rz-review p { font-size: 1.05rem; margin: 0 0 .75rem; }
.rz-review cite { font-style: normal; font-size: .95rem; color: var(--wp--preset--color--ink-soft); }
.rz-review cite strong { color: var(--wp--preset--color--ink); }

/* FAQ */
.rz-faq details { background: #fff; border-radius: 14px; padding: 0; margin-bottom: .65rem; box-shadow: var(--rz-shadow); }
.rz-faq h2 { margin-bottom: 1.25rem; }
.rz-faq summary { cursor: pointer; padding: 1rem 3rem 1rem 1.15rem; font-weight: 800; list-style: none; position: relative; }
.rz-faq summary::-webkit-details-marker { display: none; }
.rz-faq summary::after { content: "+"; position: absolute; right: 1.15rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 600; color: var(--wp--preset--color--orange-dark); }
.rz-faq details[open] summary::after { content: "−"; }
.rz-faq details > :not(summary) { padding: 0 1.15rem 1.1rem; margin: 0; color: var(--wp--preset--color--ink-soft); }

/* Booking */
.rz-booking { background: var(--wp--preset--color--sand); }
.rz-demo-note { background: #FFF4E6; border-left: 4px solid var(--wp--preset--color--orange); border-radius: 10px;
  padding: .9rem 1.1rem; font-size: .95rem; }
.rz-booking-form { margin-top: 1.25rem; }
.rz-booking-form .amelia-v2-booking, .rz-booking-form #amelia-container { margin: 0 !important; max-width: 100% !important; }

/* Contact */
.rz-contact ul { list-style: none; padding: 0; display: grid; gap: .35rem; }

/* Sticky booking bar (phones only) */
.rz-sticky { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 60; margin: 0 !important;
  transform: translateY(150%); transition: transform .25s ease; }
.rz-sticky.is-shown { transform: none; }
.rz-sticky .wp-block-button, .rz-sticky .wp-block-button__link { width: 100%; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* Footer */
.rz-footer a { color: var(--wp--preset--color--orange); }
.rz-footer p { margin: 0 0 .4rem; }

/* Focus */
a:focus-visible, summary:focus-visible { outline: 2px solid var(--wp--preset--color--orange-dark); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rz-sticky { transition: none; } }

/* ≥ 700px: tablets */
@media (min-width: 700px) {
  .rz-trust { grid-template-columns: repeat(3, 1fr); margin-inline: auto !important; }
  .rz-steps { grid-template-columns: repeat(3, 1fr); }
  .rz-cards { grid-template-columns: repeat(2, 1fr); }
  .rz-reviews { grid-template-columns: repeat(3, 1fr); }
  .rz-sticky { display: none; }
}

/* ≥ 1000px: desktop */
@media (min-width: 1000px) {
  .rz-hero.wp-block-cover { min-height: min(82vh, 760px) !important; padding: 3rem 2rem 4.5rem; align-items: center; }
  .rz-cards { grid-template-columns: repeat(4, 1fr); }
  .rz-header { padding-inline: max(1.25rem, calc((100vw - 1180px) / 2)); }
}

/* ---------- Review fixes, 2026-10-31 ---------- */

/* P2-8: button labels at 16px (theme.json fluid sizing rendered ~14px) */
.wp-element-button, .wp-block-button__link { font-size: 1rem; }

/* P2-6: one CTA at a time on phones: hide the header button while the bottom bar is shown */
@media (max-width: 699px) { .rz-bar-on .rz-header-cta { visibility: hidden; } }

/* P2-11: hero buttons share one row at 360px; gradient overlay keeps white text readable */
@media (max-width: 440px) {
  .rz-hero .wp-block-buttons { flex-direction: column; align-items: stretch; gap: .6rem; }
  .rz-hero .wp-block-button, .rz-hero .wp-block-button__link { width: 100%; text-align: center; }
}
.rz-hero .wp-block-cover__background { opacity: 1 !important;
  background: linear-gradient(to top, rgba(28,27,25,.85), rgba(28,27,25,.45) 55%, rgba(28,27,25,.1)) !important; }

/* P2-12: shorter service cards on phones */
@media (max-width: 699px) { .rz-card .wp-block-image img { aspect-ratio: 16 / 9; } }

/* Image placeholders while lazy photos load (instead of alt text on white) */
.rz-card img, .rz-about img { background: var(--wp--preset--color--sand); color: transparent; }

/* P1-3: tappable contact actions */
.rz-contact-actions { display: grid; gap: .65rem; margin: 1.25rem 0; }
.rz-contact-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px;
  border-radius: 999px; font-weight: 800; text-decoration: none; background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--cream); }
.rz-contact-btn--viber { background: #7360F2; color: #fff; }
.rz-contact-btn:focus-visible { outline: 2px solid var(--wp--preset--color--orange-dark); outline-offset: 3px; }
.rz-demo-inline { background: #FFF4E6; border-left: 4px solid var(--wp--preset--color--orange); border-radius: 10px;
  padding: .75rem 1rem; font-size: .95rem; }
@media (min-width: 700px) { .rz-contact-actions { grid-template-columns: repeat(2, minmax(0, 260px)); } }

/* Focus mode: booking opens full-screen with nothing else on screen */
.rz-focus-bar { display: none; }
body.rz-focus { overflow: hidden; }
body.rz-focus header.wp-block-template-part,
body.rz-focus .rz-sticky,
body.rz-focus .rz-booking .rz-eyebrow { display: none !important; }
body.rz-focus #zapazi { position: fixed; inset: 0; z-index: 1000; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; margin: 0; padding: 0 1rem 2rem; background: var(--wp--preset--color--cream); }
body.rz-focus #zapazi > * { max-width: 760px; margin-inline: auto; }
body.rz-focus .rz-focus-bar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0;
  z-index: 2; margin: 0 -1rem 1rem; max-width: none; padding: .5rem 1rem; background: rgba(251, 246, 238, .96);
  border-bottom: 1px solid rgba(28,27,25,.08); }
body.rz-focus #zapazi > .rz-focus-bar { max-width: none; }
.rz-focus-close { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem 0 .4rem;
  border: 0; background: none; font: inherit; font-weight: 800; color: var(--wp--preset--color--ink); cursor: pointer; }
.rz-focus-close span { font-size: 1.25rem; }
.rz-focus-brand { font-weight: 800; color: var(--wp--preset--color--ink-soft); font-size: .95rem; }
body.rz-focus #zapazi-title { font-size: 1.5rem; margin: .25rem 0 .75rem; outline: none; }
body.rz-focus .rz-demo-note { font-size: .875rem; padding: .6rem .85rem; }
body.rz-focus .rz-booking-form { margin-top: .75rem; }

/* Amelia booking form in brand colours. Unscoped so it also reaches Amelia's dropdowns and
   popups, which are attached to <body>. Amelia sets these variables inline, hence !important. */
[class*="amelia"], [class*="am-"] {
  --am-c-primary: #C2650D !important;  /* darker than brand orange so it also works as text */
  --am-c-btn-first: #F28C28 !important;
  --am-c-btn-first-op80: rgba(242, 140, 40, .8) !important;
  --am-c-btn-first-op30: rgba(242, 140, 40, .3) !important;
  --am-c-btn-first-op20: rgba(242, 140, 40, .2) !important;
  --am-c-btn-first-darken30: #B85F0E !important;
  --am-c-btn-second: #1C1B19 !important;
  --am-c-btn-prim: #F28C28 !important;
  --am-c-btn-prim-text: #1C1B19 !important;
  --am-c-btn-text: #1C1B19 !important;
  --am-c-btn-sec: #FFFFFF !important;
  --am-c-btn-sec-text: #1C1B19 !important;
  --am-c-sb-bgr: #1C1B19 !important;
  --am-c-sb-text: #FBF6EE !important;
  --am-c-main-heading-text: #1C1B19 !important;
  --am-c-main-text: #1C1B19 !important;
  --am-c-success: #3F7D3A !important;
  --am-font-family: Manrope, system-ui, sans-serif !important;
  /* Component colours Amelia derives from its blue default (found by walking every step) */
  --am-c-scroll-op30: rgba(156, 79, 10, .3) !important;
  --am-c-scroll-op10: rgba(156, 79, 10, .1) !important;
  --am-c-ss-item-price: #9C4F0A !important;
  --am-c-option-selected: #9C4F0A !important;
  --am-c-option-selected-op10: rgba(242, 140, 40, .12) !important;
  --am-c-checkbox-border-focused: #F28C28 !important;
  --am-c-checkbox-border-disabled: #F3D2AE !important;
  --am-c-cal-init: #F28C28 !important;  --am-c-cal-init-text: #9C4F0A !important;
  --am-c-cal-low: #F28C28 !important;   --am-c-cal-low-text: #9C4F0A !important;
  --am-c-cal-high: #F28C28 !important;  --am-c-cal-high-text: #9C4F0A !important;
  --am-c-cal-init-op10: rgba(242, 140, 40, .12) !important; --am-c-cal-init-op20: rgba(242, 140, 40, .2) !important;
  --am-c-cal-init-op30: rgba(242, 140, 40, .3) !important;  --am-c-cal-init-op60: rgba(242, 140, 40, .6) !important;
  --am-c-cal-low-op10: rgba(242, 140, 40, .12) !important;  --am-c-cal-low-op20: rgba(242, 140, 40, .2) !important;
  --am-c-cal-low-op30: rgba(242, 140, 40, .3) !important;   --am-c-cal-low-op60: rgba(242, 140, 40, .6) !important;
  --am-c-cal-low-op80: rgba(242, 140, 40, .8) !important;
  --am-c-cal-high-op10: rgba(242, 140, 40, .12) !important; --am-c-cal-high-op20: rgba(242, 140, 40, .2) !important;
  --am-c-cal-high-op30: rgba(242, 140, 40, .3) !important;  --am-c-cal-high-op60: rgba(242, 140, 40, .6) !important;
  --am-c-cal-high-op80: rgba(242, 140, 40, .8) !important;
  --am-c-cal-selected: #9C4F0A !important;
  --am-c-cal-selected-op80: rgba(156, 79, 10, .8) !important;
  /* P1-2: 16px inputs so iOS Safari does not zoom on focus */
  --am-fs-inp: 16px !important;
  --am-fs-input: 16px !important;
  --am-fs-select: 16px !important;
  --am-fs-select-option: 16px !important;
}
[class*="amelia"] *, [class*="am-"], [class*="el-"], .rz-picker-head {
  font-family: Manrope, system-ui, sans-serif; font-feature-settings: "locl" 0 !important; }  /* standard Cyrillic forms, as on the page */
/* P2-5: no fixed 444px step height (empty gap above "Продължи") */
.rz-booking-form .am-fs__main-content { height: auto !important; min-height: 240px; }
.rz-booking-form .am-fs__wrapper { height: auto !important; }
.rz-booking-form .am-fs__main-footer { position: static !important; }
/* In focus mode the step's "Продължи" bar sticks to the bottom of the screen */
@media (max-width: 699px) {
  body.rz-focus .rz-booking-form .am-fs__main-footer { position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 3;
    width: auto !important; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)) !important;
    background: #fff; box-shadow: 0 -6px 18px rgba(28,27,25,.1); justify-content: flex-end; }
  body.rz-focus .rz-booking-form .am-fs__main-footer .am-button { min-height: 48px; padding-inline: 1.75rem; font-size: 1rem; }
  body.rz-focus #zapazi { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
}
@media (min-width: 700px) { body.rz-focus #zapazi { padding-top: 0; } body.rz-focus .rz-booking-form { margin-top: 1.5rem; } }
/* Short demo notice in focus mode, full one on the page */
.rz-demo-short { display: none; }
body.rz-focus .rz-demo-note { display: none; }
body.rz-focus .rz-demo-short { display: block; font-size: .875rem; color: var(--wp--preset--color--ink-soft); margin: 0 0 .5rem; }

/* Full-screen service picker on phones (Amelia's "Услуга" dropdown is a popper attached to <body>).
   Amelia hides it with an inline display:none, so display here must not be !important. */
@media (max-width: 699px) {
  .el-popper.am-service-dropdown {
    position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh; height: 100dvh;
    transform: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important; background: var(--wp--preset--color--cream) !important;
    z-index: 2147483000 !important; padding-top: 64px; box-sizing: border-box;
  }
  .el-popper.am-service-dropdown .el-popper__arrow { display: none !important; }
  .el-popper.am-service-dropdown .el-select-dropdown { width: 100% !important; height: 100%; background: transparent !important; }
  .el-popper.am-service-dropdown .el-scrollbar,
  .el-popper.am-service-dropdown .el-select-dropdown__wrap { height: 100% !important; max-height: none !important; }
  .el-popper.am-service-dropdown .el-select-dropdown__list { padding: .5rem 1rem calc(1.5rem + env(safe-area-inset-bottom)) !important; }
  .el-popper.am-service-dropdown .el-select-dropdown__item {
    height: auto !important; min-height: 72px; margin: 0 0 .75rem !important; padding: 1rem 1.15rem !important;
    border-radius: 14px; background: #fff !important; box-shadow: 0 4px 14px rgba(28, 27, 25, .06);
    display: flex; align-items: center; line-height: 1.3 !important; white-space: normal !important;
  }
  .el-popper.am-service-dropdown .el-select-dropdown__item.is-selected { outline: 2px solid #F28C28; }
  .el-popper.am-service-dropdown .am-select-service { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: .2rem; width: 100%; text-align: left; }
  .el-popper.am-service-dropdown .am-select-service > * { margin: 0 !important; text-align: left !important; }
  .el-popper.am-service-dropdown .am-select-service-name { font-size: 1.0625rem !important; font-weight: 700; color: #1C1B19; white-space: normal; }
  .el-popper.am-service-dropdown .am-select-service-price { font-size: 1rem !important; font-weight: 800; color: #9C4F0A !important; }
  .rz-picker-head {
    position: absolute; top: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center;
    justify-content: space-between; padding: 0 .5rem 0 1rem; border-bottom: 1px solid rgba(28, 27, 25, .08);
    background: var(--wp--preset--color--cream); font: 800 1.125rem/1 Manrope, system-ui, sans-serif; color: #1C1B19;
  }
  .rz-picker-close {
    width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; font-size: 1.5rem;
    line-height: 1; color: #1C1B19; cursor: pointer;
  }
  .rz-picker-close:focus-visible { outline: 2px solid #9C4F0A; }
}
@media (min-width: 700px) { .rz-picker-head { display: none; } }

/* Pick-up address field added to Amelia's details step (a copy of Amelia's email field) */
#zapazi .rz-field-hint { margin: .4rem 0 0 !important; font-size: .8125rem !important; line-height: 1.4 !important; color: var(--wp--preset--color--ink-soft) !important; }
#zapazi .el-form-item.is-error .el-input__wrapper,
#zapazi .el-form-item.is-error .m-input-wrapper { box-shadow: 0 0 0 1px #B4190F inset !important; }
.rz-field-error { position: static !important; padding-top: .3rem; color: #B4190F; font-size: .8125rem; }

/* The bottom booking bar is for phones only (WordPress' .wp-block-buttons.is-layout-flex would win otherwise) */
@media (min-width: 700px) { .wp-block-buttons.rz-sticky { display: none !important; } }
