/*
Theme Name: במה
Description: תבנית עברית (RTL) נקייה לפורטל הזמנת להקות ואמנים לאירועים: תפריט נפתח לפי קטגוריות, חיפוש גדול, כרטיסי אמנים ועמודי נחיתה. עובדת עם התוסף "במה – הזמנת אמנים לאירועים", עם עורך הבלוקים ועם Elementor.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 7.4
Author: רועי
License: GPL-2.0-or-later
Text Domain: bama-theme
*/

:root {
	--navy: #0d1b4c;
	--navy-2: #16286a;
	--accent: var(--bama-accent, #ef3e6b);
	--accent-ink: #ffffff;
	--sky: #eef1fb;
	--line: #e2e6f2;
	--text: #1d2340;
	--muted: #5d6480;
	--gold: #ffc65c;
	--white: #ffffff;

	--bama-bg: #ffffff;
	--bama-surface: #ffffff;
	--bama-surface-2: var(--sky);
	--bama-text: var(--text);
	--bama-muted: var(--muted);
	--bama-border: var(--line);
	--bama-accent: #ef3e6b;
	--bama-accent-ink: #ffffff;
	--bama-radius: 14px;
	--bama-shadow: 0 1px 2px rgba(13, 27, 76, .06), 0 8px 24px rgba(13, 27, 76, .06);

	--wrap: 1240px;
	--display: Rubik, Heebo, Arial, sans-serif;
	--body: Heebo, Rubik, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.2; color: var(--navy); text-wrap: balance; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 8px; right: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 16px; border-radius: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* ---------- Header + drop-down menu ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 72px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.01em; flex: none; }
.brand__mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.brand img { max-height: 46px; width: auto; }
.brand--light { color: #fff; }
.nav { display: flex; align-items: center; gap: 8px; flex: 1; }
.nav > .menu, .nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex: 1; }
.nav li { position: relative; }
.nav a, .mega__toggle { color: var(--navy); text-decoration: none; font: 500 15.5px var(--body); padding: 10px 10px; border-radius: 10px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mega__toggle::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.nav a:hover, .mega__toggle:hover, .mega.is-open > .mega__toggle { background: var(--sky); }
.mega__panel { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 70; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(13, 27, 76, .16); padding: 18px; display: none; grid-template-columns: 170px minmax(220px, auto); gap: 18px; min-width: 440px; }
.mega--narrow .mega__panel { grid-template-columns: 1fr; min-width: 220px; }
.mega.is-open > .mega__panel { display: grid; }
@media (hover: hover) and (min-width: 1181px) {
	.mega:hover > .mega__panel, .mega:focus-within > .mega__panel { display: grid; }
	.mega::after { content: ""; position: absolute; inset: 100% 0 auto; height: 10px; }
}
.mega__img { border-radius: 12px; background: var(--navy) center / cover; min-height: 150px; }
.mega__title { margin: 0 0 6px; font-family: var(--display); font-weight: 700; color: var(--navy); }
.mega__panel ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 0; }
.mega__panel ul a { display: block; padding: 6px 8px; font-size: 15px; }
.mega__all { font-weight: 700 !important; color: var(--accent) !important; padding: 6px 8px !important; }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav__link { font-weight: 500; }
.nav .nav-cta, .btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 0;
	font: 700 16px var(--body); text-decoration: none; background: var(--accent); color: #fff !important; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.nav .nav-cta:hover, .btn:hover, .wp-block-button__link:hover { background: color-mix(in srgb, var(--accent) 88%, #000); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn--small { padding: 8px 18px; font-size: 15px; }
.is-style-outline .wp-block-button__link, .btn--ghost { background: transparent; color: var(--navy) !important; border: 2px solid var(--navy); }
.is-style-outline .wp-block-button__link:hover { background: var(--navy); color: #fff !important; box-shadow: none; }
.nav-toggle { display: none; margin-inline-start: auto; background: #fff; border: 1px solid var(--line); color: var(--navy); border-radius: 10px; padding: 8px 14px; font: 500 16px var(--body); cursor: pointer; }

/* ---------- Layout ---------- */
.site-main { padding: 36px 0 80px; min-height: 60vh; }
.page-title { font-size: clamp(30px, 4vw, 46px); margin: 0 0 14px; letter-spacing: -.01em; }
.entry-content > *:first-child { margin-top: 0; }
.bama-crumbs { font-size: 14px; color: var(--muted); margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.bama-crumbs a { color: var(--muted); text-decoration: none; }
.bama-crumbs a:hover { color: var(--accent); }

/* ---------- Home (block-built) ---------- */
.bama-block-front .site-main { padding: 0; }
.front-content > * { margin-block: 0; }
.front-content > .alignfull { width: auto; margin-inline: 0; }
.alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }

.hero.wp-block-cover { padding: 80px 20px 96px; text-align: center; }
.hero .wp-block-cover__inner-container { max-width: 980px; margin-inline: auto; display: grid; gap: 18px; justify-items: center; color: #fff; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; margin: 0; letter-spacing: -.02em; }
.hero__lead { font-size: clamp(17px, 2vw, 21px); max-width: 680px; margin: 0 !important; opacity: .92; }
.hero__popular { font-size: 15px; margin: 4px 0 0 !important; opacity: .9; }
.hero__popular a { color: #fff; text-underline-offset: 4px; }

.hero-search { width: 100%; max-width: 920px; display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 0; background: #fff; border-radius: 18px; padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); text-align: right; }
.hero-search__field { display: grid; gap: 0; padding: 6px 16px; border-inline-start: 1px solid var(--line); min-width: 0; }
.hero-search__field:first-child { border-inline-start: 0; }
.hero-search__field span { font-size: 13px; font-weight: 700; color: var(--navy); }
.hero-search select, .hero-search input { border: 0; padding: 4px 0; font: 16px var(--body); color: var(--text); background: transparent; min-width: 0; width: 100%; }
.hero-search select:focus, .hero-search input:focus { outline: none; }
.hero-search__field:focus-within { background: var(--sky); border-radius: 12px; }
.hero-search button { border: 0; border-radius: 14px; padding: 0 30px; font: 700 17px var(--body); background: var(--accent); color: #fff; cursor: pointer; min-height: 56px; }

.section { padding: 72px 20px; }
.section > h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 auto !important; text-align: center; }
.section__sub { color: var(--muted); text-align: center; margin: 8px auto 32px !important; }
.section > h2 + .wp-block-shortcode, .section > h2 + div { margin-top: 32px; }
.section--sky { background: var(--sky); }
.section--navy { background: var(--navy); padding-block: 44px; }
.section .wp-block-buttons { margin-top: 32px; }

/* marketplace: main categories with sub-links */
.bama-market { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bama-market__card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.bama-market__card:hover { box-shadow: 0 18px 44px rgba(13, 27, 76, .12); transform: translateY(-3px); }
.bama-market__img { aspect-ratio: 4 / 3; background: var(--navy) center / cover; display: flex; align-items: flex-end; padding: 16px; text-decoration: none; position: relative; }
.bama-market__img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 14, 40, .85), rgba(8, 14, 40, 0) 60%); }
.bama-market__img span { position: relative; color: #fff; font: 800 22px var(--display); }
.bama-market__list { list-style: none; margin: 0; padding: 14px 18px 4px; display: grid; gap: 2px; flex: 1; align-content: start; }
.bama-market__list a { color: var(--text); text-decoration: none; display: block; padding: 4px 0; font-size: 15px; }
.bama-market__list a:hover { color: var(--accent); }
.bama-market__all { margin: 4px 18px 18px; font-weight: 700; color: var(--accent); text-decoration: none; font-size: 15px; }

.steps { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; margin-top: 32px; }
.step { background: #fff; border-radius: 18px; padding: 28px; margin: 0 !important; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font: 800 20px var(--display); margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 22px; }
.step p { margin: 0; color: var(--muted); }

.bama-stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: center; color: #fff; }
.bama-stats-row strong { display: block; font: 800 clamp(30px, 4vw, 44px) var(--display); color: var(--gold); }
.bama-stats-row span { opacity: .85; }

.bama-events { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bama-events__item { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; font-weight: 500; }
.bama-events__item:hover { border-color: var(--navy); }
.bama-events__item span { font-size: 22px; }

.bama-guides { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bama-guide { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--text); border: 1px solid var(--line); transition: box-shadow .2s ease, transform .2s ease; }
.bama-guide:hover { box-shadow: 0 18px 44px rgba(13, 27, 76, .12); transform: translateY(-3px); }
.bama-guide__img { aspect-ratio: 16 / 9; background: var(--navy) center / cover; }
.bama-guide__body { display: grid; gap: 6px; padding: 16px 18px 20px; }
.bama-guide__kicker { font-size: 13px; font-weight: 700; color: var(--accent); }
.bama-guide strong { font: 700 19px/1.35 var(--display); color: var(--navy); }
.bama-guide__excerpt { font-size: 15px; color: var(--muted); }

.split { display: grid; gap: 24px; grid-template-columns: 1fr 1.2fr; align-items: stretch; }
.split__card { border-radius: 22px; padding: 40px; margin: 0 !important; }
.split__card--artist { background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; overflow: hidden; }
.split__img { margin: -40px -40px 12px !important; }
.split__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.split__card--artist h3 { color: #fff; font-size: 30px; margin: 0; }
.split__card--artist p { opacity: .85; margin: 0; }
.split__card--form { background: var(--sky); padding: 8px; }
.split__card--form .bama-contact-form { margin: 0; border: 0; box-shadow: none; }

/* ---------- Plugin skin: cards ---------- */
.bama-tiles { gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.bama-tile { border: 0; box-shadow: none; border-radius: 0; background: transparent; overflow: visible; }
.bama-tile:hover { transform: none; box-shadow: none; }
.bama-tile__img { border-radius: 16px; aspect-ratio: 4 / 3; transition: transform .25s ease; }
.bama-tile:hover .bama-tile__img { transform: scale(1.02); }
.bama-tile__body { padding: 12px 2px 0; display: grid; gap: 2px; }
.bama-tile__cat { font-size: 13px; font-weight: 700; color: var(--accent); }
.bama-tile__body h3 { font-size: 19px; margin: 0; color: var(--navy); }
.bama-tile__excerpt { min-height: 0; margin: 2px 0 4px; font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bama-tile__meta { margin: 0; font-size: 14px; }
.bama-tile__cta { margin-top: 10px; justify-self: start; padding: 8px 16px; border: 1.5px solid var(--navy); border-radius: 999px; color: var(--navy); font-size: 14px; font-weight: 700; }
.bama-tile:hover .bama-tile__cta { background: var(--navy); color: #fff; }

/* category landing */
.bama-landing > * + * { margin-top: 28px; }
.bama-landing__lead { font-size: 19px; color: var(--muted); margin: 0; max-width: 760px; }
.bama-subcats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.bama-subcat { display: grid; gap: 2px; text-decoration: none; color: var(--navy); }
.bama-subcat__img { aspect-ratio: 16 / 10; border-radius: 14px; background: var(--navy) center / cover; margin-bottom: 6px; }
.bama-subcat small { color: var(--muted); }
.bama-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.bama-chiprow a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: 15px; }
.bama-chiprow a:hover { border-color: var(--navy); }
.bama-chiprow a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.bama-results { color: var(--muted); font-size: 15px; margin-bottom: -10px !important; }
.bama-landing__text { background: var(--sky); border-radius: 18px; padding: 24px 28px; }
.bama-landing__text p:first-child { margin-top: 0; }
.bama-landing__text p:last-child { margin-bottom: 0; }

/* band profile */
.bama-profile .bama-crumbs { margin-bottom: 14px; }
.bama-hero { border-radius: 22px; min-height: 380px; display: flex; align-items: flex-end; }
.bama-hero::before { background: linear-gradient(0deg, rgba(8, 14, 40, .9) 8%, rgba(8, 14, 40, .1) 70%); backdrop-filter: none; }
.bama-hero__inner { width: 100%; }
.bama-hero__title { font-weight: 800; }
.bama-hero__avatar { border-radius: 18px; }
.bama-hero .bama-pill { background: var(--accent); color: #fff; }
.bama-profile__grid { margin-top: 32px; gap: 40px; grid-template-columns: minmax(0, 1fr) 380px; }
.bama-profile__main h2 { font-size: 24px; }
.bama-profile__side { top: 96px; }
.bama-tag { background: #fff; border: 1px solid var(--line); color: var(--navy); }
.bama-tag:hover { border-color: var(--navy); }
.bama-contact-form { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(13, 27, 76, .1); }
.bama-contact-form h3 { font-size: 22px; margin-top: 0; }
.bama .bama-btn { background: var(--accent); border-color: var(--accent); border-radius: 999px; font-weight: 700; }
.bama .bama-btn--ghost { background: transparent; color: var(--navy) !important; border-color: var(--navy); }
.bama input[type=text], .bama input[type=email], .bama input[type=password], .bama input[type=number],
.bama input[type=tel], .bama input[type=url], .bama input[type=date], .bama input[type=search],
.bama select, .bama textarea { border: 1px solid #cfd5e6; background: #fff; border-radius: 10px; }
.bama-similar__list img { border-radius: 12px; border: 0; }
.bama-articles a { border-radius: 12px; }

/* guides */
.archive-head { margin-bottom: 28px; }
.archive-head__lead { color: var(--muted); font-size: 19px; margin: 0; }
.bama-guides--grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.article { max-width: 820px; margin-inline: auto; }
.article__lead { font-size: 20px; color: var(--muted); margin: 0 0 8px; }
.article__meta { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.article__img { aspect-ratio: 16 / 7; border-radius: 20px; background: var(--navy) center / cover; margin-bottom: 32px; }
.article .entry-content > h2 { font-size: 28px; margin: 40px 0 10px; }
.article .entry-content > h3 { font-size: 21px; margin: 26px 0 6px; }
.article .entry-content a { color: var(--accent); }
.article .bama-tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding: 56px 0 26px; font-size: 15px; }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)); }
.site-footer__brand p { margin: 10px 0 16px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 16px; }
.site-footer h4 a { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }

/* Block editor helpers */
.wp-block-cover, .wp-block-image img { border-radius: 0; }
.has-sky-background-color { background-color: var(--sky); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.nav-toggle { display: inline-flex; }
	.nav { position: absolute; top: 100%; inset-inline: -20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(13, 27, 76, .12); flex-direction: column; align-items: stretch; padding: 10px 20px 20px; display: none; max-height: calc(100vh - 72px); overflow-y: auto; }
	.nav.is-open { display: flex; }
	.nav > .menu, .nav > ul { flex-direction: column; align-items: stretch; }
	.nav a, .mega__toggle { width: 100%; justify-content: space-between; padding: 12px 6px; }
	.mega__panel { position: static; box-shadow: none; border: 0; padding: 0 12px 8px; min-width: 0; grid-template-columns: 1fr; }
	.mega__img, .mega__title { display: none; }
	.nav__actions { flex-direction: column; align-items: stretch; margin: 8px 0 0; }
	.bama-market { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.wrap { width: calc(100% - 32px); }
	.hero.wp-block-cover { padding: 48px 16px 56px; min-height: 0 !important; }
	.hero-search { grid-template-columns: 1fr; padding: 6px; }
	.hero-search__field { border-inline-start: 0; border-top: 1px solid var(--line); padding: 10px 12px; }
	.hero-search__field:first-child { border-top: 0; }
	.hero-search button { margin-top: 6px; min-height: 50px; }
	.section { padding: 52px 16px; }
	.bama-market { grid-template-columns: 1fr; }
	.bama-market__card { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
	.bama-market__img { aspect-ratio: auto; min-height: 100%; grid-row: span 2; padding: 10px; }
	.bama-market__img span { font-size: 17px; }
	.bama-market__list { padding: 12px 14px 0; }
	.bama-market__all { margin: 4px 14px 14px; }
	.steps, .bama-guides, .split { grid-template-columns: 1fr; }
	.bama-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.split__card { padding: 28px; }
	.bama-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
	.bama-tile__body h3 { font-size: 16px; }
	.bama-tile__excerpt { display: none; }
	.bama-tile__cta { padding: 6px 12px; font-size: 13px; }
	.bama-subcats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bama-hero { min-height: 300px; }
	.article__img { aspect-ratio: 16 / 9; }
	.site-footer .wrap { grid-template-columns: 1fr 1fr; }
	.brand { font-size: 20px; }
}

@media (max-width: 760px) { .split__img { margin: -28px -28px 10px !important; } }
@media (min-width: 1181px) and (max-width: 1320px) { .nav .nav__link { display: none; } }
@media (max-width: 900px) { .bama-profile__grid { grid-template-columns: minmax(0, 1fr); } .bama-profile__side { position: static; } }
