/*
Theme Name: Ion Alexandru Avocat
Theme URI: https://ionalexandruavocat.ro/
Author: Ion Alexandru Avocat
Description: Temă WordPress personalizată pentru cabinetul de avocat Ion Alexandru.
Version: 1.0.12
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: ion-alexandru-avocat
*/

.ia-header-nav .ia-nav-list,
.ia-header-nav .ia-nav-list > li {
	display: contents;
}

.ia-header-nav .current-menu-item > a,
.ia-header-nav .current_page_item > a {
	color: #fff;
}

.ia-header-logo .custom-logo-link {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
}

.ia-header-logo .custom-logo {
	display: block;
	width: 100%;
	height: auto;
	max-height: 64px;
	object-fit: contain;
	object-position: left center;
}

.ia-content-main {
	min-height: 60vh;
	padding: clamp(150px, 13vw, 210px) 0 clamp(80px, 8vw, 130px);
	color: rgba(255, 255, 255, 0.78);
	background: #071f35;
}

.ia-content-shell {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
}

.ia-content-header {
	max-width: 900px;
	margin-bottom: 50px;
}

.ia-content-header h1 {
	margin: 0;
	color: #fff;
	font-family: var(--font-family-cormorant);
	font-size: clamp(56px, 8vw, 108px);
	line-height: .9;
}

.ia-entry-content {
	font-size: 18px;
	line-height: 1.75;
}

.ia-entry-content h2,
.ia-entry-content h3,
.ia-entry-content h4 {
	color: #fff;
}

.ia-post-grid,
.ia-service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.ia-post-card,
.ia-service-card {
	overflow: hidden;
	padding: 22px;
	background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
	border: 1px solid rgba(255,255,255,.24);
	border-radius: 20px;
	box-shadow: 0 22px 55px rgba(0,0,0,.18);
	backdrop-filter: blur(18px);
}

.ia-post-card img,
.ia-service-card img {
	width: 100%;
	aspect-ratio: 16/10;
	margin-bottom: 22px;
	object-fit: cover;
	border-radius: 13px;
}

.ia-post-card h2,
.ia-service-card h2 {
	font-family: var(--font-family-cormorant);
	font-size: 34px;
	line-height: 1;
}

.ia-post-card h2 a,
.ia-service-card h2 a {
	color: #fff;
}

.ia-pagination {
	margin-top: 45px;
}

.ia-form-notice {
	grid-column: 1 / -1;
	margin: 0 0 18px;
	padding: 14px 18px;
	border-radius: 10px;
}

.ia-form-success { background: rgba(46, 160, 100, .18); border: 1px solid rgba(75, 205, 131, .45); }
.ia-form-error { background: rgba(190, 64, 64, .18); border: 1px solid rgba(235, 105, 105, .45); }

/* WordPress can contain any number of services; keep Slick's track stable. */
.portfolio-slider-5 .slick-track {
	display: flex;
	align-items: stretch;
}

.portfolio-slider-5 .portfolio-slide-5 {
	display: block !important;
	flex: 0 0 auto;
	color: #fff;
}

.portfolio-slider-5:not(.slick-initialized) {
	display: flex;
	gap: 16px;
	overflow-x: auto;
}

/* Recalculate the WordPress hero independently from the other Slick sliders. */
.ia-copy-slider.hero-slider-5,
.ia-copy-slider.hero-slider-5 .slick-list,
.ia-copy-slider.hero-slider-5 .slick-track {
	min-width: 0;
	width: 100%;
}

.ia-copy-slider.hero-slider-5.slick-initialized {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.ia-copy-slider.hero-slider-5 .slick-slide {
	height: auto;
}

.ia-copy-slider.hero-slider-5 .slick-slide.slick-active {
	visibility: visible !important;
	opacity: 1 !important;
}

/* Dashboard-driven testimonials. */
.ia-testimonial-slider {
	min-width: 0;
	margin: 0 -10px;
	padding: 32px 0 12px;
}

.ia-testimonial-slider:not(.slick-initialized) {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
}

.ia-testimonial-slider .slick-list {
	min-width: 0;
	padding: 28px 0 20px !important;
}

.ia-testimonial-slider .slick-track {
	display: flex;
	align-items: stretch;
}

.ia-testimonial-slider .slick-slide {
	height: auto;
}

.ia-testimonial-slider .slick-slide > div {
	height: 100%;
}

.ia-testimonial-slider .ia-testimonial-card {
	height: 100%;
}

.ia-testimonial-slider .ia-testimonial-card.ia-featured-testimonial {
	min-height: 430px;
	background: linear-gradient(145deg, rgba(12, 42, 68, .82), rgba(255, 255, 255, .14)) !important;
	border-color: rgba(255, 205, 112, .58) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 26px 54px rgba(0, 0, 0, .3);
	opacity: 1;
	transform: translateY(-20px);
}

/* Independent glass FAQ component. */
.ia-faq-list {
	display: grid;
	gap: 12px;
	width: 100%;
}

.ia-faq-item {
	overflow: hidden;
	background: linear-gradient(135deg, rgba(5, 25, 43, .7), rgba(255, 255, 255, .09));
	border: 1px solid rgba(255, 255, 255, .32);
	border-radius: 15px;
	box-shadow: 0 16px 34px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .14);
	backdrop-filter: blur(18px) saturate(125%);
}

.ia-faq-trigger {
	position: relative;
	display: flex;
	width: 100%;
	min-height: 72px;
	align-items: center;
	padding: 18px 82px 18px 24px;
	color: #fff;
	font-family: var(--font-family-cormorant);
	font-size: clamp(20px, 1.5vw, 24px);
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	background: transparent;
	border: 0;
}

.ia-faq-trigger i {
	position: absolute;
	top: 50%;
	right: 16px;
	display: block;
	width: 42px;
	height: 42px;
	background: linear-gradient(135deg, rgba(5, 25, 43, .52), rgba(255, 255, 255, .12));
	border: 1px solid rgba(255, 255, 255, .36);
	border-radius: 50%;
	transform: translateY(-50%);
}

.ia-faq-trigger i::after {
	position: absolute;
	top: 14px;
	left: 15px;
	width: 10px;
	height: 10px;
	border-right: 2px solid #ffcd70;
	border-bottom: 2px solid #ffcd70;
	content: "";
	transform: rotate(45deg);
	transition: transform 180ms ease;
}

.ia-faq-item.is-open .ia-faq-trigger i {
	background: linear-gradient(135deg, #d89a26, #ffcd70);
	border-color: #ffcd70;
}

.ia-faq-item.is-open .ia-faq-trigger i::after {
	border-color: #0b3151;
	transform: translateY(5px) rotate(225deg);
}

.ia-faq-panel {
	padding: 0 82px 24px 24px;
	color: rgba(255, 255, 255, .72);
	font-size: 14px;
	line-height: 1.7;
}

.ia-faq-panel[hidden] {
	display: none !important;
}

.ia-faq-panel p:last-child {
	margin-bottom: 0;
}

/* Independent WordPress blog grid. */
.blog-showcase .blog-showcase-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: clamp(34px, 4vw, 58px);
}

.blog-showcase .blog-showcase-heading > div {
	min-width: 0;
}

.blog-showcase .blog-showcase-heading .section-title {
	margin: 12px 0 0;
	color: #fff !important;
	text-align: left !important;
}

.blog-showcase .blog-all-link {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 22px;
	color: #fff;
	font-weight: 700;
	background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 12px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 15px 34px rgba(0, 0, 0, .18);
	backdrop-filter: blur(16px);
}

.ia-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(22px, 2.3vw, 34px);
}

.ia-blog-card {
	display: flex;
	overflow: hidden;
	min-width: 0;
	flex-direction: column;
	background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .045));
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 18px;
	box-shadow: 0 22px 50px rgba(0, 0, 0, .2);
	backdrop-filter: blur(16px);
}

.ia-blog-media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.ia-blog-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.ia-blog-card:hover .ia-blog-media img {
	transform: scale(1.035);
}

.ia-blog-content {
	flex: 1;
	padding: 25px 25px 18px;
}

.ia-blog-category {
	color: #ffcd70;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.ia-blog-content h3 {
	margin: 14px 0 0;
	font-family: var(--font-family-cormorant);
	font-size: clamp(28px, 2vw, 36px);
	line-height: 1.05;
}

.ia-blog-content h3 a {
	color: #fff !important;
}

.ia-blog-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 0 25px;
	padding: 18px 0 22px;
	border-top: 1px solid rgba(255, 255, 255, .16);
}

.ia-blog-footer p,
.ia-blog-footer a {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: rgba(255, 255, 255, .65);
	font-size: 13px;
}

.ia-blog-footer a {
	color: #ffcd70;
	font-weight: 700;
}

.ia-blog-footer img {
	width: 16px;
	height: 16px;
}

/* Footer navigation: consistently aligned, dashboard-editable menu buttons. */
.ia-editorial-footer .ia-footer-links {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 10px !important;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.ia-editorial-footer .ia-footer-links li,
.ia-editorial-footer .ia-footer-links li + li {
	display: block !important;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

.ia-editorial-footer .ia-footer-links a {
	display: flex !important;
	width: 100%;
	min-height: 44px;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 13px;
	color: rgba(255, 255, 255, .82) !important;
	background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 10px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
	backdrop-filter: blur(12px);
}

.ia-editorial-footer .ia-footer-links a::after {
	color: #ffcd70;
	content: "→";
	font-size: 16px;
	line-height: 1;
}

.ia-editorial-footer .ia-footer-links a:hover {
	color: #fff !important;
	background: rgba(216, 154, 38, .16);
	border-color: rgba(255, 205, 112, .55);
}

.ia-editorial-footer .ia-footer-useful ul {
	display: grid;
	gap: 12px;
}

.ia-editorial-footer .ia-footer-useful li,
.ia-editorial-footer .ia-footer-useful li + li {
	margin: 0;
}

.admin-bar .ia-showcase-header { top: 32px; }

.ia-contact-website {
	position: absolute !important;
	top: auto !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

@media (max-width: 782px) {
	.admin-bar .ia-showcase-header { top: 46px; }
	.ia-post-grid,
	.ia-service-grid { grid-template-columns: 1fr; }
	.ia-testimonial-slider:not(.slick-initialized),
	.ia-blog-grid { grid-template-columns: 1fr; }
	.blog-showcase .blog-showcase-heading {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 575px) {
	.ia-faq-trigger {
		min-height: 64px;
		padding: 15px 68px 15px 18px;
	}

	.ia-faq-trigger i {
		right: 12px;
		width: 38px;
		height: 38px;
	}

	.ia-faq-trigger i::after {
		top: 12px;
		left: 13px;
	}

	.ia-faq-panel {
		padding: 0 60px 20px 18px;
	}

	.ia-showcase-header {
		grid-template-columns: minmax(0, 1fr) auto !important;
		min-height: 68px !important;
		padding: 8px 10px 8px 14px !important;
	}

	.ia-showcase-header .ia-header-logo {
		display: inline-flex !important;
		width: min(188px, calc(100vw - 102px)) !important;
		min-width: 0;
		overflow: visible;
	}

	.ia-showcase-header .ia-header-logo .custom-logo-link {
		display: flex !important;
	}

	.ia-showcase-header .ia-header-logo img {
		width: 100% !important;
		height: auto !important;
		max-height: 48px !important;
		object-fit: contain !important;
		object-position: left center !important;
	}

	.ia-showcase-header .ia-header-actions {
		display: none !important;
	}

	.ia-showcase-header .ia-menu-toggle {
		display: inline-flex !important;
		width: 52px !important;
		height: 52px !important;
	}

	.ia-showcase-header .ia-menu-toggle span {
		width: 25px !important;
	}
}
