/*
Theme Name:     Cambr
Theme URI:      https://www.cambr.com/
Description:    Astra child theme for Cambr — liquidity solutions for banks.
Author:         DeltaV Digital
Author URI:     https://deltavdigital.com/
Template:       astra
Version:        1.0.0
*/

/* =========================================
   Theme Resets
   ========================================= */
/* body {
	-webkit-font-smoothing: subpixel-antialiased !important;
} */


/* =========================================
   Design Tokens
   ========================================= */
:root {
	/* Primary */
	--cambr-deep-blue:    #003b77;
	--cambr-core-blue:    #488af3;
	--cambr-cool-blue:    #4353ff;
	--cambr-royal-blue:   #4264d1;
	--cambr-sky-blue:     #6ce2ff;
	--cambr-light-sky:    #d5e2fa;

	/* Neutrals */
	--cambr-black:        #1f1f1f;
	--cambr-grey-100:     #575757;
	--cambr-grey-70:      #8f8f8f;
	--cambr-grey-40:      #c7c7c7;
	--cambr-white:        #ffffff;

	/* Utility */
	--cambr-error:        #ea384c;
	--cambr-focus:        #0050bd;
	--cambr-link:         #0082f3;
}

/* =========================================
   Base Typography
   ========================================= */
body,
.so-panel,
.so-widget {
	font-family: 'Figtree', sans-serif;
}

/* =========================================
   Navigation — Hover Underline
   ========================================= */
.main-header-menu .menu-item > a {
	position: relative;
}

.main-header-menu .menu-item > a::after {
	content: '';
	position: absolute;
	bottom: 10px;
	left: 0;
	width: 0;
	height: 3px;
	background-color: #1f1f1f;
	transition: width 0.3s ease;
}

.main-header-menu .menu-item > a:hover::after {
	width: 100%;
}
.ast-sticky-active .main-header-menu > .menu-item.current-menu-item > .menu-link {
	line-height: 65px;;
}

/* =========================================
   Widget Reset — override Astra defaults
   ========================================= */
[class^="cambr-"] p,
[class*=" cambr-"] p {
	margin-bottom: 0;
}

/* =========================================
   SiteOrigin Row Spacing — tighten gaps
   ========================================= */

/* Remove bottom margin on rows that contain only a section label */
.panel-grid .widget_cambr-section-label:only-child {
	margin-bottom: 0 !important;
}

/* Rows containing section labels should have no bottom margin */
.panel-grid:has(.widget_cambr-section-label:only-child) {
	margin-bottom: 0 !important;
}

/* Also target via SiteOrigin's generated panel classes */
.so-panel.widget_cambr-section-label {
	margin-bottom: 0 !important;
}

/* =========================================
   Gravity Forms — Field Styling
   ========================================= */
.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label {
	font-family: 'Inter', sans-serif !important;
	font-weight: 400 !important;
	font-size: 16px !important;
	line-height: 21px !important;
	color: #000000 !important;
	margin-bottom: 5px !important;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea {
	background-color: transparent !important;
	border: none !important;
	border-bottom: 1px solid #1f1f1f !important;
	border-radius: 0 !important;
	padding: 8px 0 !important;
	font-family: 'Figtree', sans-serif !important;
	font-size: 14px !important;
	line-height: 20px !important;
	color: #333333 !important;
	margin-bottom: 10px !important;
	box-shadow: none !important;
}

.gform_wrapper select {
	background-color: #f3f3f3 !important;
	border: 1px solid #cccccc !important;
	border-radius: 0 !important;
	padding: 8px 12px !important;
	font-family: 'Figtree', sans-serif !important;
	font-size: 14px !important;
	color: #333333 !important;
	line-height: normal !important;
	height: auto !important;
	margin-bottom: 10px !important;
	box-shadow: none !important;
}

.gform_wrapper .gfield {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/* =========================================
   Gravity Forms — Submit Button
   ========================================= */
.gform_wrapper .gform_footer {
	margin-top: 40px !important;
}

.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_page_footer input[type="submit"],
.gform_wrapper .gform_footer button[type="submit"],
.gform_wrapper .gform_page_footer button[type="submit"] {
	display: block !important;
	width: 100% !important;
	font-family: 'Inter', sans-serif !important;
	font-weight: 500 !important;
	font-size: 16px !important;
	letter-spacing: 1px !important;
	text-transform: capitalize !important;
	border-radius: 8px !important;
	border: none !important;
	background-color: var(--cambr-deep-blue) !important;
	color: var(--cambr-white) !important;
	padding: 20px 40px !important;
	line-height: 10px !important;
	cursor: pointer !important;
	transition: background-color 0.2s ease !important;
	box-sizing: border-box !important;
}

.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_page_footer input[type="submit"]:hover,
.gform_wrapper .gform_footer button[type="submit"]:hover,
.gform_wrapper .gform_page_footer button[type="submit"]:hover {
	background-color: #32343a !important;
}

.gform_wrapper .gform_footer input[type="submit"]:focus,
.gform_wrapper .gform_page_footer input[type="submit"]:focus,
.gform_wrapper .gform_footer button[type="submit"]:focus,
.gform_wrapper .gform_page_footer button[type="submit"]:focus {
	outline: 2px solid var(--cambr-focus) !important;
	outline-offset: 2px !important;
}

/* =========================================
   Background Position Utilities
   ========================================= */
.cambr-bg-bottom-left {
	background-position: bottom left !important;
}

.cambr-bg-half {
	background-size: 380px !important;
}

/* =========================================
   Scroll Animation Utilities
   ========================================= */
.cambr-slide-left,
.cambr-slide-right,
.cambr-slide-up {
	opacity: 0;
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.cambr-slide-left {
	transform: translateX(-60px);
}

.cambr-slide-right {
	transform: translateX(60px);
}

.cambr-slide-up {
	transform: translateY(60px);
}

.cambr-slide-left.cambr-visible,
.cambr-slide-right.cambr-visible,
.cambr-slide-up.cambr-visible {
	opacity: 1;
	transform: translate(0);
}

/* =========================================
   Image Edge Bleed Utilities
   ========================================= */

/* Pull image to the right edge of the viewport */
.cambr-bleed-right {
	position: relative;
	overflow: visible;
}

.cambr-bleed-right img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

/* Pull image to the left edge of the viewport */
.cambr-bleed-left {
	position: relative;
	overflow: visible;
}

.cambr-bleed-left img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

/* =========================================
   Blog Archive (home.php)
   ========================================= */

.cambr-blog-archive {
	max-width: 100%;
	padding: 60px 0 100px;
}

/* === Section Label Override === */

.cambr-blog-archive__label {
	padding: 80px 0 40px;
}

/* === Header === */

.cambr-blog-archive__header {
	text-align: left;
	margin-bottom: 64px;
}

.cambr-blog-archive__title {
	font-family: 'Figtree', sans-serif;
	font-weight: 400;
	font-size: 56px;
	line-height: 60px;
	color: #1f1f1f;
	margin: 0 0 16px;
}

.cambr-blog-archive__title-highlight {
	color: #488af3;
}

.cambr-blog-archive__subtitle {
	font-family: 'Figtree', sans-serif;
	font-weight: 400;
	font-size: 24px;
	line-height: 36px;
	color: #000000;
	max-width: 500px;
	margin: 0;
}

/* === Featured Post === */

.cambr-blog-archive__featured {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	text-decoration: none;
	color: inherit;
	margin-bottom: 0;
}

.cambr-blog-archive__featured-image {
	overflow: hidden;
	border-radius: 12px;
	aspect-ratio: 4 / 3;
}

.cambr-blog-archive__featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cambr-blog-archive__featured-content {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.cambr-blog-archive__featured-title {
	font-family: 'Figtree', sans-serif;
	font-weight: 500;
	font-size: 40px;
	line-height: 52px;
	color: #000000;
	margin: 20px 0 0;
}


/* === Body (List + Sidebar) === */

.cambr-blog-archive__body {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	grid-column-gap: 4rem;
	grid-row-gap: 4rem;
	justify-content: flex-start;
	align-items: flex-start;
	position: relative;
}

/* === Article List === */

.cambr-blog-archive__list {
	display: flex;
	flex-direction: column;
}

/* === Article Card === */

.cambr-blog-archive__card {
	display: flex;
	flex-direction: row-reverse;
	text-decoration: none;
	color: inherit;
	padding: 64px 0;
	position: relative;
}

.cambr-blog-archive__card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: #c7c7c7;
}

.cambr-blog-archive__card:first-child {
	padding-top: 0;
}

.cambr-blog-archive__card:first-child::before {
	display: none;
}

.cambr-blog-archive__card:last-child::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: #c7c7c7;
}

.cambr-blog-archive__card-image {
	flex: 0 0 280px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 12px;
	margin-left: 30px;
}

.cambr-blog-archive__card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cambr-blog-archive__card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* === Shared: Meta, Tag, Read Time === */

.cambr-blog-archive__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.cambr-blog-archive__tag {
	font-family: 'Figtree', sans-serif;
	font-weight: 400;
	font-size: 14px;
	padding: 4px 8px;
	border-radius: 4px;
	background: #ebf0f9;
	color: #003b77;
	line-height: 1.4;
}

.cambr-blog-archive__read-time {
	font-family: 'Figtree', sans-serif;
	font-weight: 400;
	font-size: 14px;
	color: #575757;
}

/* === Card Title === */

.cambr-blog-archive__card-title {
	font-family: 'Figtree', sans-serif;
	font-weight: 400;
	font-size: 24px;
	line-height: 36px;
	color: #000000;
	margin: 0 0 8px;
}


/* === Excerpt === */

.cambr-blog-archive__excerpt {
	font-family: 'Figtree', sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 27px;
	color: #000000;
	margin: 16px 0 24px;
}

.cambr-blog-archive__card .cambr-blog-archive__excerpt {
	font-size: 18px;
	line-height: 25px;
	color: #545e67;
	margin: 8px 0 16px;
}

/* === Read More Link === */

.cambr-blog-archive__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'Figtree', sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: #1f1f1f;
	text-transform: uppercase;
	letter-spacing: 0.32px;
	margin-top: 16px;
}

.cambr-blog-archive__link svg {
	width: 25px;
	height: 24px;
}

/* === Sidebar / Newsletter === */

.cambr-blog-archive__sidebar {
	position: sticky;
	top: 150px;
}

.cambr-blog-archive__newsletter {
	background: #ffffff;
	padding: 0;
}

.cambr-blog-archive__newsletter-title {
	font-family: 'Figtree', sans-serif !important;
	font-weight: 400 !important;
	font-size: 26px !important;
	line-height: 1.3 !important;
	color: #1f1f1f !important;
	margin: 0 0 32px !important;
}

.cambr-blog-archive__newsletter-highlight {
	color: #488af3;
}

.cambr-blog-archive__newsletter .gform_wrapper input[type="email"],
.cambr-blog-archive__newsletter .gform_wrapper input[type="text"] {
	font-size: 18px !important;
	padding: 12px 0 !important;
}

.cambr-blog-archive__newsletter .gform_wrapper .gform_footer {
	margin-top: 24px !important;
}

.cambr-blog-archive__newsletter .gform_wrapper .gform_footer input[type="submit"],
.cambr-blog-archive__newsletter .gform_wrapper .gform_footer button[type="submit"] {
	border-radius: 8px !important;
	font-size: 16px !important;
}

.cambr-blog-archive__newsletter-disclaimer {
	font-family: 'Figtree', sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: #8f8f8f;
	margin: 24px 0 0;
}

.cambr-blog-archive__newsletter-disclaimer a {
	color: #8f8f8f;
	text-decoration: underline;
}

/* === Empty State === */

.cambr-blog-archive__empty {
	text-align: center;
	font-family: 'Figtree', sans-serif;
	font-size: 16px;
	color: #8f8f8f;
}

/* === Pagination === */

.cambr-blog-archive__pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 60px;
}

.cambr-blog-archive__pagination a,
.cambr-blog-archive__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	border: 1px solid #c7c7c7;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 14px;
	color: #1f1f1f;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cambr-blog-archive__pagination a:hover {
	border-color: #8f8f8f;
}

.cambr-blog-archive__pagination .current {
	background: #1f1f1f;
	color: #ffffff;
	border-color: #1f1f1f;
}

/* === Responsive === */

@media (max-width: 991px) {
	.cambr-blog-archive__featured {
		grid-template-columns: 1fr;
	}

	.cambr-blog-archive__featured-image {
		margin-bottom: 0;
	}

	.cambr-blog-archive__featured-title {
		font-size: 28px;
		line-height: 36px;
	}

	.cambr-blog-archive__body {
		grid-template-columns: 1fr;
	}

	.cambr-blog-archive__sidebar {
		position: static;
	}
}

@media (max-width: 767px) {
	.cambr-blog-archive {
		padding: 40px 16px 60px;
	}

	.cambr-blog-archive__title {
		font-size: 36px;
		line-height: 1.2;
	}

	.cambr-blog-archive__subtitle {
		font-size: 18px;
		line-height: 1.5;
	}

	.cambr-blog-archive__card {
		flex-direction: column;
	}

	.cambr-blog-archive__card-image,
	.cambr-blog-archive__featured-image {
		aspect-ratio: 1.5 / 1;
	}

	.cambr-blog-archive__card-image {
		flex: none;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
		margin-bottom: 32px;
	}
}

/* Footer Styles */

.site-above-footer-wrap a {
	font-weight: 600;
}
.site-above-footer-wrap .widget-title {
	margin-bottom: 5px;
}
/* Footer 5-column grid: center column ~35%, others share remainder */
.ast-builder-grid-row-5-equal .site-above-footer-inner-wrap.ast-builder-grid-row {
	grid-template-columns: 1fr 1fr 3fr 1fr 1fr;
}

@media (max-width: 780px) {
	.ast-builder-grid-row-5-equal .site-above-footer-inner-wrap.ast-builder-grid-row {
		grid-template-columns: 1fr;
		row-gap: 32px;
	}
}