/* Custom styles for ADECRA + CEDIM */

/* Custom color palette */
:root {
	--primary-cyan: #009fe3;
	--primary-cyan-hover: #007eb0;
	--primary-cyan-light: #e6f7ff;
	--gray-dark: #374151;
	--gray-medium: #6b7280;
	--gray-light: #f3f4f6;
}

/* Smooth scrolling */
html {
	scroll-behavior: smooth;
}

/* Custom button styles */
.btn-primary {
	background-color: var(--primary-cyan);
	color: white;
	padding: 0.75rem 1.5rem;
	font-weight: 500;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.btn-primary:hover {
	background-color: var(--primary-cyan-hover);
	transform: translateY(-1px);
}

.btn-secondary {
	background-color: var(--gray-dark);
	color: white;
	padding: 0.75rem 1.5rem;
	font-weight: 500;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.btn-secondary:hover {
	background-color: var(--gray-medium);
}

.btn-outline {
	background-color: transparent;
	color: var(--primary-cyan);
	border: 2px solid var(--primary-cyan);
	padding: 0.75rem 1.5rem;
	font-weight: 500;
	transition: all 0.3s ease;
	cursor: pointer;
}

.btn-outline:hover {
	background-color: var(--primary-cyan);
	color: white;
}

.btn-outline-secondary {
	background-color: transparent;
	border: 2px solid var(--gray-medium);
	padding: 0.75rem 1.5rem;
	font-weight: 500;
	transition: all 0.3s ease;
	cursor: pointer;
	color: var(--gray-medium);
}

.btn-outline-secondary:hover {
	background-color: var(--gray-medium);
	color: white;
}

.border-primary {
	border-color: var(--primary-cyan);
}

/* Card styles */
.card {
	background: white;
	border-radius: 1rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	overflow: hidden;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

/* Stats counter styles */
.stat-number {
	font-size: 3rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.bg-21202 {
	background: url("../images/21202.jpg");
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.stat-label {
	font-size: 0.875rem;
	color: #fff;
	font-weight: 500;
}

/* Hero section styles */
.hero-gradient {
	background: linear-gradient(135deg, var(--primary-cyan) 0%, #0ea5e9 100%);
}

/* Service icon styles */
.service-icon {
	width: 4rem;
	height: 4rem;
	background-color: var(--primary-cyan-light);
	border-radius: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

.service-icon i {
	font-size: 1.5rem;
	color: var(--primary-cyan);
}

/* Testimonial styles */
.testimonial-card {
	background: white;
	border-radius: 1rem;
	padding: 2rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	position: relative;
}

.testimonial-card::before {
	content: '"';
	position: absolute;
	top: -1rem;
	left: 2rem;
	font-size: 4rem;
	color: var(--primary-cyan);
	font-family: serif;
}

/* Alliance logos */
.alliance-logo {
	height: 3rem;
	width: auto;
	opacity: 0.7;
	transition: opacity 0.3s ease;
	filter: grayscale(100%);
}

.alliance-logo:hover {
	opacity: 1;
	filter: grayscale(0%);
}

/* News card styles */
.news-card {
	background: white;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.news-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.news-image {
	width: 100%;
	height: 12rem;
	object-fit: cover;
}

/* Banner styles */
#cfw-banner {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 1rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@supports not (aspect-ratio: 1 / 1) {
	#cfw-banner {
		min-height: 300px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cfw-slide {
		transition: none !important;
	}
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.stat-number {
		font-size: 2rem;
	}

	.hero-gradient {
		padding: 3rem 0;
	}

	.service-icon {
		width: 3rem;
		height: 3rem;
	}

	.service-icon i {
		font-size: 1.25rem;
	}
}

/* Animation classes */
.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.6s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Loading animation */
.loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Dropdown menu improvements */
.dropdown-menu {
	background: white;
	border-radius: 0.75rem;
	box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
	border: 1px solid #e5e7eb;
}

/* Custom scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
	background: var(--primary-cyan);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--primary-cyan-hover);
}

#cfw-banner {
	width: 100%;
	height: 400px;
	max-height: 50vh;
	position: relative;
	overflow: hidden;
	background: #f8f9fa;
}

/* Responsive banner heights */
@media (max-width: 768px) {
	#cfw-banner {
		height: 250px;
		max-height: 40vh;
	}
}

@media (min-width: 1200px) {
	#cfw-banner {
		height: 100%;
		max-height: 60vh;
	}
}

.cfw-carousel {
	width: 100% !important;
	height: 100% !important;
	position: relative !important;
}

.cfw-slide {
	width: 100% !important;
	height: 100% !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	transition: opacity 0.5s ease-in-out !important;
}

.cfw-slide img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

.cfw-slide.active {
	opacity: 1 !important;
	z-index: 2 !important;
}

.cfw-slide:not(.active) {
	opacity: 0 !important;
	z-index: 1 !important;
}

/* Line clamp utilities */
.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.line-clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Associates map styles */
.associates-section {
	position: relative;
}

.associates-layout {
	display: grid;
	gap: clamp(2rem, 3vw, 3rem);
}

@media (min-width: 1024px) {
	.associates-layout {
		grid-template-columns: minmax(0, 820px) minmax(0, 1fr);
		align-items: start;
	}
}

.associates-left {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.associates-map-card {
	background: #ffffff;
	border: 1px solid rgba(148, 180, 209, 0.35);
	border-radius: 28px;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
	padding: clamp(1.5rem, 3vw, 2.4rem);
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.associates-map-hint {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: #4b5563;
}

.associates-map-hint-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 9999px;
	background: var(--primary-cyan);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.85rem;
	box-shadow: 0 10px 24px rgba(27, 163, 216, 0.32);
}

.associates-map {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: #f2f6fb;
	border-radius: 20px;
}

.associates-map svg,
.associates-map img {
	width: 100%;
	/* max-width: 360px; */
	height: auto;
}

.associates-map svg #features path {
	fill: #d1d8df;
	stroke: #ffffff;
	stroke-width: 1.2;
	transition:
		fill 0.2s ease,
		transform 0.2s ease;
	cursor: pointer;
}

.associates-map svg #features path:hover {
	fill: #bbc5cd;
}

.associates-map svg #features path.is-active {
	fill: var(--primary-cyan);
}

.associates-right {
	display: flex;
	flex-direction: column;
	gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.associates-accordion {
	display: grid;
	gap: clamp(0.75rem, 1.2vw, 1rem);
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media (min-width: 1024px) {
	.associates-accordion {
		grid-template-columns: repeat(2, minmax(220px, 1fr));
	}
}

.associates-accordion-item {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	transition: grid-column 0.25s ease;
}

.associates-accordion-item.is-expanded {
	grid-column: 1 / -1;
}

.associates-button {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.65rem;
	padding: 0.8rem 1.6rem;
	border-radius: 9999px;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.012em;
	color: #ffffff;
	background: var(--primary-cyan);
	border: 1px solid transparent;
	box-shadow: 0 14px 28px rgba(27, 163, 216, 0.18);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		opacity 0.2s ease,
		background-color 0.2s ease;
}

.associates-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 18px 34px rgba(27, 163, 216, 0.24);
}

.associates-button.is-dimmed {
	opacity: 0.7;
}

.associates-button.is-active {
	box-shadow: 0 22px 42px rgba(27, 163, 216, 0.3);
}

.associates-button:focus-visible {
	outline: 3px solid rgba(27, 163, 216, 0.4);
	outline-offset: 2px;
}

.associates-accordion-panel {
	background: #ffffff;
	border: 1px solid rgba(148, 180, 209, 0.25);
	border-radius: 22px;
	padding: clamp(1.35rem, 2.2vw, 2rem);
	box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.associates-panel {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
}

.associates-panel-header {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.associates-panel-badge {
	align-self: flex-start;
	padding: 0.35rem 0.85rem;
	border-radius: 9999px;
	background: rgba(27, 163, 216, 0.15);
	color: var(--primary-cyan);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.associates-panel-title {
	font-size: clamp(1.4rem, 2.1vw, 1.75rem);
	font-weight: 700;
	color: #0f172a;
}

.associates-panel-subtitle {
	font-size: 0.9rem;
	color: #5d6a7c;
	max-width: 32rem;
}

.associates-details-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	font-size: 0.9rem;
	color: #334155;
}

.associates-details-list li {
	display: flex;
	gap: 0.65rem;
	line-height: 1.5;
}

.associates-details-dot {
	margin-top: 0.42rem;
	height: 0.55rem;
	width: 0.55rem;
	border-radius: 9999px;
	background: var(--primary-cyan);
	flex-shrink: 0;
	box-shadow: 0 0 0 4px rgba(27, 163, 216, 0.15);
}

@media (max-width: 767px) {
	.associates-layout {
		gap: 2.25rem;
	}

	.associates-map-card {
		border-radius: 22px;
	}

	.associates-accordion {
		grid-template-columns: 1fr;
	}
}
