/* ============================================================
   FozDigital – Global Frontend Enhancements
   Loaded site-wide to elevate standard Gutenberg blocks.
   ============================================================ */

/* ----- Hero Cover Enhancements ----- */
.home .wp-block-cover.alignfull {
	min-height: 70vh !important;
}
.home .wp-block-cover .wp-block-cover__inner-container {
	max-width: 1200px;
}
.home .wp-block-cover h1 {
	font-size: clamp(2rem, 3vw, 3rem) !important;
	line-height: 1.18 !important;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 20px rgba(0,0,0,0.25);
	font-weight: 700 !important;
}
.home .wp-block-cover p {
	font-size: clamp(0.95rem, 1.5vw, 1.1rem);
	opacity: 0.88;
}

/* ----- Buttons Polish ----- */
.wp-block-button__link {
	border-radius: 2px !important;
	padding: 14px 28px !important;
	font-weight: 600 !important;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	font-size: 0.9rem !important;
	transition: all 0.25s ease !important;
}
.wp-block-button.is-style-fill .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(29,100,161,0.35);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255,255,255,0.15);
}

/* ----- Content Sections ----- */
.home .wp-block-columns {
	transition: opacity 0.4s ease;
}

/* Image treatment: subtle frame accent */
.home .wp-block-cover.is-light {
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(15,36,66,0.12);
	border: 1px solid rgba(29,100,161,0.08);
}

/* ----- Service Cards (reusable block 1520 area) ----- */
/* Wrap each column's CONTENT in a card — no padding on the column itself to avoid overflow */
.home .has-palette-color-5-background-color .wp-block-columns {
	gap: 24px !important;
}
.home .has-palette-color-5-background-color .wp-block-column {
	background: #ffffff;
	border-radius: 2px;
	padding: 28px 24px;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	border: 1px solid rgba(29,100,161,0.08);
	border-left: 3px solid rgba(29,100,161,0.15);
	box-sizing: border-box;
}
.home .has-palette-color-5-background-color .wp-block-column:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(15,36,66,0.1);
	border-color: rgba(29,100,161,0.2);
}
.home .has-palette-color-5-background-color .wp-block-column h3 {
	padding-bottom: 12px;
	margin-bottom: 10px !important;
	border-bottom: 2px solid rgba(29,100,161,0.15);
	transition: border-color 0.3s ease;
}
.home .has-palette-color-5-background-color .wp-block-column:hover h3 {
	border-bottom-color: #1D64A1;
}
.home .has-palette-color-5-background-color .wp-block-column h3 a {
	color: #0f2442 !important;
	text-decoration: none;
}
.home .has-palette-color-5-background-color .wp-block-column h3 a:hover {
	color: #1D64A1 !important;
}
/* Hide empty filler column */
.home .has-palette-color-5-background-color .wp-block-column:empty {
	display: none !important;
}

/* ----- "Why Partner" Section Icon List Area ----- */
.foz-icon-list {
	background: #f8f9fb;
	border-radius: 2px;
	padding: 32px 28px !important;
	border: 1px solid rgba(29,100,161,0.08);
	border-left: 3px solid #1d64a1;
}
.foz-icon-list li {
	padding: 10px 0;
	border-bottom: 1px solid rgba(29,100,161,0.06);
}
.foz-icon-list li:last-child {
	border-bottom: none;
}

/* ============================================================
   Inner-Page Hero Standard (Blocksy hero section)
   Applied to all non-home pages via Blocksy's .hero-section
   ============================================================ */
body:not(.home) .hero-section {
	position: relative;
	min-height: 380px !important;
	display: flex;
	align-items: flex-end;
}

/* Dark cinematic overlay */
body:not(.home) .hero-section figure {
	position: absolute;
	inset: 0;
	z-index: 0;
}
body:not(.home) .hero-section figure::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		0deg,
		rgba(12, 30, 54, 0.92) 0%,
		rgba(12, 30, 54, 0.6) 40%,
		rgba(12, 30, 54, 0.25) 100%
	);
	z-index: 1;
}

body:not(.home) .hero-section .entry-header {
	position: relative;
	z-index: 2;
	padding-bottom: 48px !important;
	padding-top: 80px !important;
}

/* Accent bar above the title */
body:not(.home) .hero-section .page-title::before {
	content: '';
	display: block;
	width: 48px;
	height: 4px;
	background: #1d64a1;
	margin-bottom: 18px;
	border-radius: 1px;
}

body:not(.home) .hero-section .page-title {
	font-size: clamp(2.2rem, 5vw, 3.4rem) !important;
	font-weight: 800 !important;
	letter-spacing: -0.025em;
	line-height: 1.1 !important;
	color: #ffffff !important;
	text-transform: none;
}

body:not(.home) .hero-section .page-description {
	font-size: clamp(0.95rem, 1.5vw, 1.15rem);
	color: rgba(255, 255, 255, 0.75) !important;
	max-width: 560px;
	line-height: 1.6;
	margin-top: 12px;
}

body:not(.home) .hero-section .ct-breadcrumbs {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5) !important;
	margin-bottom: 10px;
}
body:not(.home) .hero-section .ct-breadcrumbs a {
	color: rgba(255, 255, 255, 0.5) !important;
}
body:not(.home) .hero-section .ct-breadcrumbs a:hover {
	color: rgba(255, 255, 255, 0.85) !important;
}
body:not(.home) .hero-section .ct-breadcrumbs svg {
	opacity: 0.4;
}

/* ============================================================
   Gradient-background text overrides
   Makes all text readable on dark gradient groups
   ============================================================ */
[style*="background:linear-gradient"] p,
[style*="background: linear-gradient"] p,
[style*="background:linear-gradient"] li,
[style*="background: linear-gradient"] li {
	color: rgba(255, 255, 255, 0.78) !important;
}
[style*="background:linear-gradient"] strong,
[style*="background: linear-gradient"] strong {
	color: #ffffff !important;
}
[style*="background:linear-gradient"] h2,
[style*="background: linear-gradient"] h2,
[style*="background:linear-gradient"] h3,
[style*="background: linear-gradient"] h3,
[style*="background:linear-gradient"] h4,
[style*="background: linear-gradient"] h4 {
	color: #ffffff !important;
}
[style*="background:linear-gradient"] a,
[style*="background: linear-gradient"] a {
	color: rgba(255, 255, 255, 0.9) !important;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   About Us & Inner-Page Sections
   ============================================================ */

/* Values grid on blue gradient bg */
.foz-values-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 32px;
}
@media (max-width: 768px) {
	.foz-values-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* Section images */
.foz-section-image {
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(15,36,66,0.12);
	border: 1px solid rgba(29,100,161,0.08);
}
