/* Barcelona Clinic — виправлення теми для всього сайту. */

/* Приховані підменю 3-го рівня стоять за правим краєм і давали горизонтальну прокрутку на ноутбуках.
   clip (не hidden) не ламає sticky-шапку. Меню 3 рівнів буде замінено новою структурою. */
html, body { overflow-x: clip; }

/* Шрифт: Source Sans 3 (найближчий вільний аналог Myriad Pro з брендбуку, з повною українською кирилицею).
   Lexend Deca теми/Elementor кирилиці не має — весь український текст ішов запасним шрифтом.
   !important потрібен, щоб перебити типографіку окремих віджетів Elementor. Іконки не чіпаємо. */
:root { --bc-font: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif; }
body,
body *:not(i):not(svg):not(svg *):not([class*="icon"]):not([class*="fa-"]):not([class^="fa"]):not([class*="eicon"]):not([class*="dashicons"]) {
	font-family: var(--bc-font) !important;
}

/* Нове лого (пропорції 4,8:1, з підписом «dental clinic») — тема обмежувала його ~140px, підпис не читався. */
.navbar .custom-logo, .custom-logo-link img.custom-logo { height: 46px !important; width: auto !important; max-width: none !important; max-height: none !important; }
@media (max-width: 1199px) { .navbar .custom-logo, .custom-logo-link img.custom-logo { height: 38px !important; } }
@media (max-width: 400px) { .navbar .custom-logo, .custom-logo-link img.custom-logo { height: 32px !important; } }

/* Перші заголовки Elementor, яким дали тег H1 для SEO: вигляд як у текстового блоку. */
.elementor-widget-text-editor h1.bc-h1 { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; margin: 0; padding: 0; }

/* Шапка сторінок: замість стокового фото теми — фірмовий графітовий фон з помаранчевим відблиском.
   Сторінки послуг з власним фото перекривають це своїм інлайн-стилем (друкується пізніше). */
#main-header {
	background-color: #2b2d31;
	background-image: radial-gradient(circle at 82% 18%, rgba(236, 102, 8, .28), transparent 42%), linear-gradient(135deg, #26282c 0%, #3a3d42 100%) !important;
	background-size: cover;
}
#main-header .header-title, #main-header .breadcrumbs, #main-header .breadcrumbs a, #main-header .breadcrumbs span { color: #fff !important; }
#main-header .breadcrumbs a:hover { color: #ec6608 !important; }

/* «Лікарі»: уся картка лікаря клікабельна (scripts/content/team-01-links.php). Посилання імені розтягнуте на колонку,
   соцмережі над ним, щоб лишались клікабельними. */
.bc-doc-card > .elementor-widget-wrap, .bc-doc-card > .elementor-column-wrap { position: relative; }
.bc-doc-card .elementor-widget-heading, .bc-doc-card .elementor-widget-heading .elementor-widget-container { position: static; }
.bc-doc-card .elementor-widget-heading .elementor-heading-title a::after { content: ""; position: absolute; inset: 0; z-index: 10; } /* вище за фото, у якого в Elementor z-index 4 */
.bc-doc-card .elementor-widget-social-icons { position: relative; z-index: 11; }
.bc-doc-card .elementor-widget-image a { display: block; } /* інакше посилання стискає фото до власної ширини */
.bc-doc-card .elementor-heading-title a { color: inherit; }
.bc-doc-card > .elementor-widget-wrap { transition: transform .25s ease, box-shadow .25s ease; }
.bc-doc-card:hover > .elementor-widget-wrap { transform: scale(1.03); box-shadow: 0 18px 40px rgba(29, 36, 51, .18); }
@media (prefers-reduced-motion: reduce) { .bc-doc-card > .elementor-widget-wrap { transition: none; } }
.bc-doc-card .elementor-heading-title a:focus-visible { outline: 3px solid #1d2433; outline-offset: 3px; }

/* Головна, перший екран: вертикальне фото Олени (brand-05-hero-olena) не вище за екран, щоб блок не розтягувався. */
.elementor-element-bad730d img { max-height: min(720px, 80vh); width: auto !important; }

/* Головна, карусель «Наша команда»: уся картка веде на сторінку лікаря (scripts/content/team-02-home-links.php). */
.elementor-element-745987c .ue-carousel-item { position: relative; transition: transform .25s ease; }
.elementor-element-745987c .uc_classic_carousel_placeholder { position: static; }
.elementor-element-745987c .uc_classic_carousel_placeholder a::after { content: ""; position: absolute; inset: 0; z-index: 5; }
.elementor-element-745987c .ue-carousel-item:hover { transform: scale(1.03); }
.elementor-element-745987c .uc_classic_carousel_placeholder a:focus-visible { outline: 3px solid #1d2433; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .elementor-element-745987c .ue-carousel-item { transition: none; } }

/* «Контакти»: фото входу під картою (brand-07) */
.bc-contact-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; margin-top: 32px; }
.bc-contact-photos figure { margin: 0; }
.bc-contact-photos img { width: 100%; height: auto; border-radius: 16px; display: block; }
.bc-contact-photos figcaption { font-size: 14px; color: #5c6475; margin-top: 8px; }

/* Головна: «Наша клініка» (brand-08) */
.bc-gallery { max-width: 1200px; margin: 0 auto; padding: 0 16px; font-family: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif; }
.bc-gallery__title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; font-weight: 600; color: #1d2433; margin: 0 0 12px; }
.bc-gallery__lead { font-size: 18px; line-height: 1.6; color: #5c6475; max-width: 46em; margin: 0 0 28px; }
.bc-gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bc-gallery__grid figure { margin: 0; }
.bc-gallery__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; display: block; }
.bc-gallery__grid figcaption { font-size: 15px; color: #5c6475; margin-top: 8px; }
@media (max-width: 960px) { .bc-gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .bc-gallery__grid { gap: 10px; } .bc-gallery__grid figcaption { font-size: 14px; } }

/* Сторінка «Наша клініка» (pages-02) */
.bc-clinic { padding-top: 8px; padding-bottom: 40px; }
.bc-zone { margin: 0 0 56px; }
.bc-zone h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 600; color: #1d2433; margin: 0 0 10px; }
.bc-zone > p { font-size: 18px; line-height: 1.6; font-weight: 400; color: #1d2433; max-width: 46em; margin: 0 0 20px; }
.bc-zone > p a { color: #ec6608; }
.bc-clinic .bc-gallery__grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.bc-gallery__link { display: block; border-radius: 16px; overflow: hidden; cursor: zoom-in; }
.bc-gallery__link img { transition: transform .3s; }
.bc-gallery__link:hover img { transform: scale(1.03); }
.bc-zone--cta { padding: 32px; border: 1px solid #e6e8ee; border-radius: 16px; }
.bc-clinic .bc-btn, .bc-local .bc-btn { display: inline-block; padding: 16px 28px; border-radius: 999px; background: #ec6608; color: #fff !important; font-weight: 600; text-decoration: none !important; }
.bc-clinic .bc-btn:hover, .bc-local .bc-btn:hover { background: #c95405; }
.bc-lightbox { width: min(1200px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 16px; background: #10161f; overflow: visible; }
.bc-lightbox::backdrop { background: rgba(10, 14, 22, .85); }
.bc-lightbox img { display: block; width: 100%; max-height: 84vh; object-fit: contain; border-radius: 16px 16px 0 0; }
.bc-lightbox__cap { color: #e6e8ee; font-size: 15px; margin: 0; padding: 12px 16px; }
.bc-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .9); color: #1d2433; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.bc-lightbox__prev { left: 12px; top: 45%; }
.bc-lightbox__next { right: 12px; top: 45%; }
.bc-lightbox__close { right: 12px; top: 12px; }
@media (max-width: 600px) { .bc-zone--cta { padding: 24px 20px; } .bc-clinic .bc-btn, .bc-local .bc-btn { display: block; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .bc-gallery__link img { transition: none; } }
.bc-gallery__more { margin: 24px 0 0; font-size: 18px; }
.bc-gallery__more a { color: #ec6608; font-weight: 600; }

/* Головна, перший екран на телефоні: кнопку «Записатися» ховаємо, бо внизу екрана вже є панель запису (.bc-sticky-cta),
   дві кнопки поруч виглядали дивно (Антон 17.10). Відступ перед фото лишаємо, щоб воно не прилипало до тексту. */
@media (max-width: 767px) {
	.elementor-element-f381151 { display: none !important; }
	.elementor-element-1bbd8a2 { margin-top: 32px; }
}

/* Головна: модуль «Відгуки пацієнтів у Google» (brand-10) */
.bc-reviews { max-width: 1200px; margin: 0 auto; padding: 0 16px; font-family: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif; color: #1d2433; }
.bc-reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.bc-reviews__head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; font-weight: 600; margin: 0; color: #1d2433; }
.bc-reviews__rating { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0; font-size: 16px; color: #5c6475; }
.bc-reviews__score { font-size: 28px; font-weight: 700; color: #1d2433; }
.bc-reviews__stars, .bc-review__stars { display: inline-flex; gap: 2px; color: #f4b400; }
/* Карусель: доріжка з прокруткою і прилипанням до карток; 3 картки на десктопі, 2 на планшеті, ~1 на телефоні. */
.bc-reviews__carousel { position: relative; }
.bc-reviews__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.bc-reviews__track::-webkit-scrollbar { display: none; }
.bc-reviews__track > .bc-review { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
.bc-reviews__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #e6e8ee; background: #fff; color: #1d2433; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgba(29, 36, 51, .12); transition: opacity .2s; }
.bc-reviews__arrow--prev { left: -24px; }
.bc-reviews__arrow--next { right: -24px; }
.bc-reviews__arrow:disabled { opacity: 0; pointer-events: none; }
.bc-reviews__arrow:hover { border-color: #ec6608; color: #ec6608; }
@media (max-width: 1100px) { .bc-reviews__carousel { padding: 0 30px; } .bc-reviews__track > .bc-review { flex-basis: calc((100% - 16px) / 2); } .bc-reviews__arrow { width: 40px; height: 40px; font-size: 24px; } .bc-reviews__arrow--prev { left: -14px; } .bc-reviews__arrow--next { right: -14px; } }
@media (prefers-reduced-motion: reduce) { .bc-reviews__track { scroll-behavior: auto; } }
.bc-review { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid #e6e8ee; border-radius: 16px; background: #fff; }
.bc-review__text { margin: 0; font-size: 16px; line-height: 1.6; color: #1d2433; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.bc-review.is-open .bc-review__text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.bc-review__more { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: #ec6608; cursor: pointer; }
.bc-review__who { margin: auto 0 0; font-size: 14px; color: #5c6475; }
.bc-review__who strong { color: #1d2433; }
.bc-reviews__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bc-reviews__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 2px solid #ec6608; color: #ec6608 !important; font-weight: 600; font-size: 16px; text-decoration: none !important; }
.bc-reviews__btn--main { background: #ec6608; color: #fff !important; }
.bc-reviews__btn:hover { background: #c95405; border-color: #c95405; color: #fff !important; }
.bc-reviews__note { margin: 12px 0 0; font-size: 14px; color: #5c6475; max-width: 46em; }
@media (max-width: 767px) {
	/* Телефон: картки гортаються пальцем, наступна видно краєм, щоб було зрозуміло, що їх більше. */
	.bc-reviews__track { gap: 12px; }
	.bc-reviews__track > .bc-review { flex-basis: 84%; padding: 18px; }
	.bc-reviews__carousel { padding: 0; }
	.bc-reviews__arrow { display: none; } /* на телефоні гортають пальцем, край наступної картки підказує */
	.bc-reviews__actions { flex-direction: column; }
	.bc-reviews__btn { width: 100%; }
}

/* Мобільна панель «Записатися на консультацію» внизу екрана (inc/site.php), стиль «рідке скло» (Антон 16.10):
   плаваюча пігулка з відступами від країв, розмиття і насичення фону під нею, світлий край і внутрішній відблиск. */
.bc-sticky-cta { display: none; }
@media (max-width: 767px) {
	.bc-sticky-cta {
		display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 9990;
		padding: 7px; border-radius: 999px;
		background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .28));
		-webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
		border: 1px solid rgba(255, 255, 255, .65);
		box-shadow: 0 10px 30px rgba(29, 36, 51, .18), 0 2px 6px rgba(29, 36, 51, .08),
			inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .25);
	}
	.bc-sticky-cta__btn {
		flex: 1; display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px;
		background: linear-gradient(180deg, #f5822f 0%, #ec6608 55%, #e05f05 100%); color: #fff !important;
		font: 600 17px/1.2 "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif; text-decoration: none !important;
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 12px rgba(236, 102, 8, .35);
	}
	.bc-sticky-cta__btn:active { transform: scale(.98); }
	.bc-sticky-cta__call {
		flex: none; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%;
		color: #ec6608 !important; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .8);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 2px 8px rgba(29, 36, 51, .1);
	}
	/* щоб панель не закривала низ сторінки (футер, останні кнопки) */
	body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
/* Без підтримки розмиття: світла майже непрозора підкладка, щоб текст під панеллю не заважав кнопці. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	@media (max-width: 767px) { .bc-sticky-cta { background: rgba(255, 255, 255, .94); } }
}

/* Сторінки послуг і лікарів на телефоні: компактна шапка без «хлібних крихт», щоб суть сторінки була на першому екрані (21.10). */
@media (max-width: 767px) {
	body.single-bc_service #main-header, body.single-bc_doctor #main-header { padding-top: 84px !important; padding-bottom: 24px !important; min-height: 0 !important; } /* 54px під закріплену панель з логотипом */
	body.single-bc_service #main-header .breadcrumbs, body.single-bc_doctor #main-header .breadcrumbs { display: none !important; }
	body.single-bc_service #main-header .header-title, body.single-bc_doctor #main-header .header-title { font-size: 26px !important; line-height: 1.2 !important; margin: 0 !important; }
	body.single-bc_service #site-content.bc-svc, body.single-bc_doctor #site-content.bc-svc { padding-top: 24px !important; }
	.bc-sticky-cta__btn { font-size: 17px; }
}

/* NAP у футері (inc/site.php, local-seo 29.10) */
.bc-footer-nap { padding: 28px 0 8px; color: #fff; font-size: 15px; line-height: 1.6; }
.bc-footer-nap p { margin: 0 0 8px; }
.bc-footer-nap a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.bc-footer-nap__links { font-size: 14px; opacity: .95; }

/* Факти «Barcelona Clinic коротко» (pages-02) і локальні плейсхолдери bc_todo (на проді їх немає) */
.bc-facts { margin: 24px 0 40px; padding: 24px 28px; background: #f6f6f5; border-radius: 16px; }
.bc-facts h2 { margin-top: 0; }
.bc-facts ul { margin: 0; padding-left: 20px; }
.bc-facts li { margin: 6px 0; }
.bc-todo { color: #b00020; background: #fff3f3; outline: 1px dashed #b00020; padding: 2px 6px; }

/* Сторінка «Стоматологія біля метро Нивки» (pages-03) */
.bc-local__lead { font-size: 19px; line-height: 1.6; }
.bc-local-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.bc-local-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid #e4e4e2; border-radius: 14px; color: inherit; text-decoration: none; transition: border-color .2s; }
.bc-local-card:hover { border-color: #ec6608; }
.bc-local-card strong { color: #ec6608; font-size: 17px; }
.bc-local-card span { font-size: 15px; line-height: 1.45; color: #575756; }
.bc-local-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 16px 0; }
.bc-local-doc { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.bc-local-doc img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 14px; }
.bc-local-doc strong { font-size: 15px; line-height: 1.3; }
.bc-local-doc span { font-size: 13px; color: #757574; line-height: 1.35; }
.bc-local-quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 16px 0 8px; }
.bc-local-quote { margin: 0; padding: 18px 20px; background: #f6f6f5; border-radius: 14px; border: 0; }
.bc-local-quote p { margin: 0 0 8px; font-size: 16px; line-height: 1.5; }
.bc-local-quote footer { font-size: 13px; color: #757574; }
.bc-local-map { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin: 12px 0; background: #eee; }
.bc-local-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bc-local-faq { border-bottom: 1px solid #e4e4e2; padding: 12px 0; }
.bc-local-faq summary { cursor: pointer; font-weight: 600; }
.bc-local-faq p { margin: 8px 0 0; }
@media (max-width: 767px) { .bc-local-map { aspect-ratio: 4 / 5; } .bc-local__lead { font-size: 17px; } }
.bc-local-route { margin: 16px 0; }
.bc-local-route img { width: 100%; height: auto; border-radius: 14px; border: 1px solid #e4e4e2; }
.bc-local-steps { margin: 12px 0 16px; padding-left: 22px; }
.bc-local-steps li { margin: 6px 0; }
.bc-local-door { margin: 12px 0 0; max-width: 520px; }
.bc-local-door img { width: 100%; height: auto; border-radius: 14px; }
.bc-local-door figcaption { font-size: 13px; color: #757574; margin-top: 6px; }

/* Окремі посилання-дії кнопками (Антон 29.10): <p class="bc-btns"><a>…</a><a class="is-main">…</a></p>. Посилання всередині речень лишаються текстом. */
.bc-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.bc-btns a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 1.5px solid #ec6608; border-radius: 999px; background: #fff; color: #ec6608 !important; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none !important; transition: background .2s, color .2s; }
.bc-btns a:hover { background: #fff4ec; }
.bc-btns a.is-main { background: #ec6608; color: #fff !important; }
.bc-btns a.is-main:hover { background: #c95405; border-color: #c95405; }
@media (max-width: 600px) { .bc-btns { flex-direction: column; } .bc-btns a { width: 100%; } }
.bc-footer-nap__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bc-footer-nap .bc-footer-nap__links a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1.5px solid rgba(255,255,255,.85); border-radius: 999px; text-decoration: none; font-weight: 600; }
.bc-footer-nap .bc-footer-nap__links a:hover { background: rgba(255,255,255,.15); }
/* Головна: «Часто шукають» (brand-13) */
.bc-popular { max-width: 1140px; margin: 0 auto; padding: 0 16px; text-align: center; }
.bc-popular .bc-btns { justify-content: center; }

/* Футер: фірмовий сірий замість #9d9d9c, щоб білий текст читався (контраст 7,2:1; Антон 29.10) */
:root body { --footer-bg-color: #575759; }
