/*
Theme Name:   BN Parohia
Theme URI:    https://bartolomeunord.ro
Description:  Child theme Blocksy pentru Parohia Bartolomeu Nord Brașov.
              Header cu denumirea parohiei, meniu principal, footer simplu.
Author:       wp-migration
Template:     blocksy
Version:      0.1.0
License:      GPL-2.0-or-later
Text Domain:  bn-parohia
*/

/* Paletă din site-ul legacy (Joomla/Helix):
   - top bar: gradient vișiniu #ab1642 → #540c21
   - header: negru semitransparent, text alb
   - accent linkuri: #ffae00 */
:root {
	--bn-accent: #540c21;
	--bn-accent-2: #ab1642;
	--bn-gold: #ffae00;
}

/* Header ca pe legacy: bară închisă, text alb, hover auriu.
   Blocksy stilizează prin variabile CSS pe selectori cu specificitate mare;
   le suprascriem cu #header (id) + variabilele temei, nu color direct. */
#header [data-row] {
	background: rgba(0, 0, 0, 0.85);
}

#header [data-id="logo"] .site-title {
	--theme-link-initial-color: #fff;
}

#header [data-id="menu"] > ul > li > a {
	font-family: 'Poppins', sans-serif;
	--theme-font-size: 14px;
	--theme-font-weight: 500;
	--theme-text-transform: capitalize;
	--theme-link-initial-color: #fff;
	--theme-link-hover-color: var(--bn-gold);
}

#header [data-id="menu"] > ul > li.current-menu-item > a {
	--theme-link-initial-color: var(--bn-gold);
}

#header .ct-header-search,
#header .ct-header-trigger {
	color: #fff;
}

/* Top bar legacy (#sp-top-bar): gradient vișiniu, ~40px, elemente reale
   (Facebook stânga, telefon + email dreapta). Marcată în functions.php. */
.bn-topbar {
	background: linear-gradient(145deg, var(--bn-accent-2) 0%, var(--bn-accent) 100%);
	color: #fff;
	font-size: 0.85rem;
	padding: 0.55rem 0;
}

.bn-topbar .ct-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.bn-topbar a {
	color: #fff;
	text-decoration: none;
}

.bn-topbar a:hover {
	color: #ddd;
}

.bn-topbar-contact {
	display: flex;
	gap: 1.5rem;
}

.bn-topbar-social {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

/* Toate cele 8 iteme de meniu trebuie să încapă fără overflow „More":
   container mai lat (Blocksy: 1290px) + spațiere redusă între iteme. */
body {
	--theme-normal-container-max-width: 1400px;
}

#header [data-id="menu"] {
	--menu-items-spacing: 14px;
}

/* Header subțire ca pe legacy (~80px; Blocksy defaultează la 120px). */
#header [data-row*="middle"] {
	--height: 80px;
}

html body[data-header*="type-1"] {
	--header-height: 80px;
}

/* Itemele meniului și logo-ul ocupă toată înălțimea row-ului → centrate
   vertical. */
#header [data-id="menu"] > ul > li,
#header [data-id="menu"] > ul > li > a,
#header .site-branding,
#header .site-logo-container {
	display: flex;
	align-items: center;
	height: 100%;
}

/* Logo-ul legacy (cruce + text) afișat mare; titlul text e redundant —
   imaginea conține deja denumirea parohiei. */
#header [data-id="logo"] img.default-logo {
	max-height: 35px;
	width: auto;
}

#header [data-id="logo"] .site-title-container {
	display: none;
}

/* Poppins (fontul meniului legacy) — bundle local, fără CDN.
   Subseturi latin + latin-ext (diacriticele ro: ș ț î â ă). */
@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/poppins-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
		U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
		U+1EF2-1EFF, U+2020, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/poppins-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
		U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/poppins-500-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
		U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
		U+1EF2-1EFF, U+2020, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/poppins-500-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
		U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/poppins-600-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
		U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
		U+1EF2-1EFF, U+2020, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/poppins-600-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
		U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

.bn-site-tagline {
	display: block;
	font-size: 0.85rem;
	font-weight: 400;
	opacity: 0.85;
}

/* Elemente full-bleed (harta cărămizilor pe homepage) — ies din coloana
   îngustă de conținut și ocupă tot viewportul, ca sliderul legacy. */
/* Iese din coloana de conținut până la viewport. margin-inline (nu
   left+translateX) funcționează și în .entry-content.is-layout-constrained;
   !important + selector dublu ca să reziste la margin-inline:auto pe care
   WP pune pe copiii constrânși (după update-uri). */
.entry-content .bn-fullbleed,
.bn-fullbleed {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	position: relative;
	margin-bottom: 2rem;
}

/* Pe homepage ascundem doar titlul „Acasă" — conținutul paginii conține
   blocurile editabile (hartă, cover donate, stadiul, 3.5%). */
body.home .entry-header {
	display: none;
}

/* Fără spațiu alb deasupra hărții — harta începe imediat sub header. */
body.home .ct-container-full[data-vertical-spacing] {
	padding-top: 0 !important;
}

body.home .hero-section,
body.home article.page,
body.home .entry-content {
	margin-top: 0;
	padding-top: 0;
	margin-bottom: 0;
}

/* Cover-ul „Pune o cărămidă" din homepage (bloc Gutenberg editabil) —
   aceeași întindere vizuală ca .bn-donate din hook. */
.wp-block-cover.bn-donate-block {
	padding: 100px 1rem 70px;
	text-align: center;
	margin-bottom: 0;
}

@media (max-width: 991px) {
	.wp-block-cover.bn-donate-block { padding: 60px 1rem; }
}

@media (max-width: 767px) {
	.wp-block-cover.bn-donate-block { padding: 50px 1rem; }
}

/* Secțiunile homepage de sub hartă (legacy footer_page.php):
   Stadiul lucrarilor (video + 4 poze) + Directioneaza 3.5%. */
.bn-home-section {
	max-width: 1200px;
	margin: 3rem auto;
	padding: 0 1rem;
	text-align: center;
}

.bn-home-title {
	font-size: 1.8rem;
	font-weight: 600;
	margin: 0 0 1.5rem;
}

.bn-home-video {
	max-width: 960px;
	margin: 0 auto 1.5rem;
}

.bn-home-video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	display: block;
}

.bn-home-section .bn-foto-grid {
	max-width: 1200px;
	margin: 0 auto;
}

.bn-home-more {
	margin-top: 1.5rem;
}

.bn-btn {
	display: inline-block;
	padding: 0.7rem 2.2rem;
	background: #540c21;
	color: #fff !important;
	border-radius: 4px;
	font-size: 1rem;
	transition: background 0.2s;
}

.bn-btn:hover {
	background: #ab1642;
}

/* Footer legacy: sp-bottom #303030 cu 4 coloane (Despre noi / Ultimele
   evenimente / Meniu / Gallerie) + sp-footer bara de copyright.
   Footerul implicit Blocksy (copyright-ul temei) e ascuns. */
#footer [data-row="bottom"] {
	display: none;
}

.bn-footer-bottom {
	margin-top: 3rem;
	padding: 3rem 0 2rem;
	background: #303030;
	color: #ccc;
	font-size: 0.9rem;
}

.bn-footer-cols {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.bn-footer-col h3 {
	color: #fff;
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0 0 1rem;
}

.bn-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bn-footer-col li {
	margin-bottom: 0.4rem;
}

.bn-footer-col a {
	color: #ccc;
}

.bn-footer-col a:hover {
	color: var(--bn-gold);
}

.bn-footer-date {
	color: #999;
	font-size: 0.85em;
}

.bn-footer-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
}

.bn-footer-gallery img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.bn-footer {
	padding: 1.2rem 0;
	background: #222;
	color: #999;
	font-size: 0.85rem;
}

.bn-footer .ct-container {
	display: flex;
	justify-content: space-between;
}

.bn-footer a {
	color: var(--bn-gold);
}

@media (max-width: 900px) {
	.bn-footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.bn-footer-cols { grid-template-columns: 1fr; }
}

/* Buton gradient ca .sppb-btn-primary din legacy
   (linear-gradient #ab1642 → #540c21, rotunjit, uppercase alb).
   În blocul Button Gutenberg clasa cade pe wrapperul .wp-block-button —
   stilizăm linkul interior + resetăm wrapperul, altfel rămâne vizibil
   chenarul nostru cu fundalul albastru implicit WP dedesubt. */
.bn-btn-primary,
.wp-block-button.bn-btn-primary .wp-block-button__link {
	display: inline-block;
	text-transform: uppercase;
	color: #fff !important;
	padding: 10px 28px;
	font-weight: 400;
	border-radius: 25px;
	border: 1px solid #dfe6ee;
	background-image: linear-gradient(145deg, #ab1642 0%, #540c21 100%);
	transition: opacity 0.2s;
}

.wp-block-button.bn-btn-primary {
	padding: 0;
	border: none;
	border-radius: 0;
	background-image: none;
}

.bn-btn-primary:hover,
.bn-btn-primary:focus,
.wp-block-button.bn-btn-primary .wp-block-button__link:hover,
.wp-block-button.bn-btn-primary .wp-block-button__link:focus {
	color: #eee !important;
	background-image: linear-gradient(145deg, #540c21 0%, #ab1642 100%);
}

/* Secțiunea „Pune o cărămidă…" (footer_page.php) — fundal întunecat
   bg2.jpg cover/fixed, divider1.png, titlu alb uppercase, buton Doneaza.
   Randată din hook-ul temei pe toate paginile. */
.bn-donate {
	margin-bottom: 0;
	padding: 100px 1rem 70px;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	background-position: 50% 0;
	background-color: #303030;
	text-align: center;
}

.bn-donate-inner {
	max-width: var(--theme-normal-container-max-width, 1200px);
	margin: 0 auto;
}

.bn-donate-divider {
	display: inline-block;
	margin-bottom: -25px;
}

.bn-donate-title {
	color: #fff;
	font-size: 35px;
	line-height: 45px;
	text-transform: uppercase;
	font-weight: 700;
	margin: 0 0 10px;
}

.bn-donate-sub {
	color: #fff;
	font-size: 14px;
	line-height: 24px;
	margin: 0 0 35px;
}

.bn-section-divider {
	display: inline-block;
	margin-bottom: 1rem;
}

@media (max-width: 991px) {
	.bn-donate { padding: 60px 1rem; }
}

@media (max-width: 767px) {
	.bn-donate { padding: 50px 1rem; }
	.bn-donate-title { font-size: 30px; line-height: 40px; }
	.bn-donate-divider { margin-bottom: -15px; }
}

/* Pagina /centrul-cultural/ — secțiune full-bleed cu fundal bgpattern.png
   pe #fff8eb (ca .sppb-section.events din legacy). */
.bn-cc {
	margin-bottom: 0;
	padding: 60px 0;
	background-color: #fff8eb;
	background-image: url('assets/images/bgpattern.png');
	background-repeat: repeat;
}

.bn-cc-inner {
	max-width: var(--theme-normal-container-max-width, 1200px);
	margin: 0 auto;
	padding: 0 1rem;
}

.bn-cc-title {
	font-size: 1.4rem;
	font-weight: 600;
	margin: 0 0 1.5rem;
}

.bn-cc .bn-foto-grid {
	margin-bottom: 1.5rem;
}

/* Program (box #fff1db cu border) + coloana cu embeduri video. */
.bn-cc-cols {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2rem;
	margin: 1.5rem 0;
	align-items: start;
}

.bn-cc-program {
	background-color: #fff1db;
	border: 1px solid;
	padding: 20px;
}

.bn-cc-videos iframe {
	width: 100%;
	height: 315px;
	display: block;
	margin-bottom: 1rem;
	border: 0;
}

.bn-cc-cta {
	text-align: left;
}

@media (max-width: 767px) {
	.bn-cc-cols { grid-template-columns: 1fr; }
}
