/*
Primary color: #d6a551
Secondary colors: #f4dee0, #f7e0e1
- Smooth hover transitions
- Clean modern style
- Use Flexbox and Grid properly
- Add subtle hover animations
- Modern clean UI style
- Add styling for language switcher: Small toggle button in header (EN | ES)
*/

:root {
	--primary: #d6a551;
	--primary-dark: #b6842d;
	--secondary: #f4dee0;
	--secondary-soft: #f7e0e1;
	--text: #1f2933;
	--muted: #5f6c78;
	--bg: #ffffff;
	--bg-alt: #faf7f4;
	--radius-lg: 24px;
	--radius-md: 14px;
	--shadow: 0 18px 40px rgba(31, 41, 51, 0.12);
	--shadow-soft: 0 12px 24px rgba(31, 41, 51, 0.08);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: "Poppins", sans-serif;
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
}

h1,
h2,
h3,
h4 {
	font-family: "Cormorant Garamond", serif;
	line-height: 1.2;
}

h1 {
	font-size: clamp(2.4rem, 4.6vw, 3.4rem);
	line-height: 1.15;
}

h2 {
	font-size: clamp(1.9rem, 3.6vw, 2.6rem);
	line-height: 1.18;
}

h3 {
	font-size: clamp(1.3rem, 2.4vw, 1.8rem);
	line-height: 1.2;
}

h4 {
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	line-height: 1.25;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

.container {
	width: min(1120px, 92%);
	margin: 0 auto;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--primary);
	color: #fff;
	padding: 8px 16px;
	border-radius: 8px;
	z-index: 999;
}

.skip-link:focus {
	left: 16px;
	top: 16px;
}

.site-header {
	position: sticky;
	top: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	z-index: 10;
}

.header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	gap: 16px;
	min-height: 96px;
	position: relative;
}

.logo {
	display: flex;
	align-items: center;
	height: 100%;
}

.logo img {
	height: 96px;
	width: auto;
	object-fit: contain;
}

.main-nav {
	display: none;
	gap: 20px;
	font-size: 0.95rem;
	color: var(--muted);
}

.nav-toggle-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.nav-toggle {
	border: none;
	background: #fff;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	box-shadow: var(--shadow-soft);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	padding: 10px 8px 8px;
}

.nav-label {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--muted);
	line-height: 1;
	margin: 0;
}

@media (min-width: 768px) {
	.nav-label {
		display: none;
	}
}

.nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--text);
	border-radius: 999px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle:hover,
.nav-toggle:focus {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.main-nav a {
	transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus {
	color: var(--primary-dark);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.lang-toggle {
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: #fff;
	color: var(--text);
	font-size: 0.9rem;
	padding: 8px 12px;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 84px;
	justify-content: space-between;
}

.lang-toggle:hover,
.lang-toggle:focus {
	border-color: var(--primary);
	color: var(--primary-dark);
}

.lang-dropdown {
	position: relative;
}

.lang-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	background: #fff;
	border-radius: 12px;
	box-shadow: var(--shadow-soft);
	padding: 8px;
	display: grid;
	gap: 6px;
	min-width: 160px;
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 20;
}

.lang-dropdown.open .lang-menu {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.lang-option {
	border: none;
	background: transparent;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.95rem;
	color: var(--text);
	transition: background 0.2s ease;
}

.lang-option:hover,
.lang-option:focus {
	background: var(--bg-alt);
}

.flag {
	font-size: 1.1rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 600;
	border: 1px solid transparent;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary {
	background: var(--primary);
	color: #fff;
	box-shadow: 0 10px 25px rgba(214, 165, 81, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
	background: var(--primary-dark);
	transform: translateY(-2px);
}

.btn.is-loading {
	position: relative;
	pointer-events: none;
	opacity: 0.92;
	padding-right: 44px;
}

.btn.is-loading::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
	to {
		transform: rotate(360deg);
	}
}

.btn-secondary {
	border-color: rgba(0, 0, 0, 0.1);
	background: #fff;
	color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus {
	border-color: var(--primary);
	color: var(--primary-dark);
	transform: translateY(-2px);
}

/* Form controls */
.form-wrap {
	background: #fff;
	padding: clamp(24px, 4vw, 40px);
	border-radius: 26px;
	box-shadow: var(--shadow-soft);
	max-width: 900px;
	margin: 0 auto;
}

.contact-form {
	display: grid;
	gap: 18px;
}

.form-row {
	display: grid;
	gap: 12px;
}

.form-control {
	width: 100%;
	padding: 15px 18px;
	border-radius: 20px;
	border: 1px solid rgba(31,33,51,0.12);
	font-size: 1rem;
	line-height: 1.45;
	color: var(--text);
	background: #fff;
	transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.form-control::placeholder {
	color: #7a8794;
}

textarea.form-control {
	min-height: 140px;
	resize: vertical;
}

input[type="file"].form-control {
	padding: 12px 14px;
	border-radius: 18px;
	background: #fcfcfc;
}

.form-control:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(214,165,81,0.14);
}

.form-control-error,
.form-control-error:focus {
	border-color: #dc2626 !important;
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14) !important;
}

.form-grid-2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

@media (min-width: 768px) {
	.form-grid-2 { grid-template-columns: 1fr 1fr; }
}

.form-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: flex-start;
}

.form-note { color: var(--muted); font-size: 0.95rem; }

.hero {
	padding: 72px 0 56px;
	background: var(--bg-alt);
}

.hero-grid {
	display: grid;
	gap: 40px;
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 0.75rem;
	color: var(--primary)!important;
	font-weight: 600;
	margin-bottom: 12px;
}

.hero-copy h1 {
	margin-bottom: 20px;
	font-size: clamp(2rem, 3.8vw, 2.9rem);
	line-height: 1.12;
}

.lead {
	color: var(--muted);
	font-size: 1.05rem;
	margin-bottom: 28px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 32px;
}

.hero-highlights {
	display: grid;
	gap: 16px;
}

.highlight {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.highlight i {
	color: var(--primary-dark);
	background: #fff;
	border-radius: 12px;
	padding: 12px;
	box-shadow: var(--shadow-soft);
}

.highlight span {
	color: var(--muted);
	font-size: 0.95rem;
}

.hero-image {
	position: relative;
}

.hero-image img {
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.floating-card {
	position: absolute;
	bottom: 16px;
	left: 16px;
	background: #fff;
	padding: 16px 18px;
	border-radius: 0 26px 0 26px;
	box-shadow: var(--shadow-soft);
	max-width: 220px;
}

.floating-card p {
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.floating-card i {
	color: var(--primary) !important;
	flex: 0 0 auto;
}

.floating-card span {
	color: var(--muted);
	font-size: 0.9rem;
}

.stats {
	padding: 32px 0;
}

.stats-grid {
	display: grid;
	gap: 24px;
	text-align: left;
}

.stat-card {
	background: #fff;
	padding: 20px 22px;
	border-radius: var(--radius-md);
	display: grid;
	gap: 10px;
	align-content: start;
	justify-items: center;
	text-align: center;
}

.stat-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--primary);
	display: grid;
	place-items: center;
}

.stat-icon i {
	color: #fff;
	font-size: 1.1rem;
}

.stats-grid h3 {
	font-size: 1.5rem;
}

.stats-grid p {
	color: var(--muted);
}

.section {
	padding: 72px 0;
}

/* Reduce space above the Core Values section to bring it closer to Mission/Vision */
section#values {
    padding-top: 36px;
}

.section-alt {
	background: var(--bg-alt);
}

.section-header {
	max-width: 640px;
	margin-bottom: 40px;
}

body.contact-page .section-header,
body.career-page .section-header {
	margin: 0 auto 40px;
	text-align: center;
}

.section-header h2 {
	margin-bottom: 12px;
}

.programs-title {
	font-size: clamp(1.6rem, 2.4vw, 2rem);
	line-height: 1.22;
}

.section-header p {
	color: var(--muted);
}

.service-grid,
.program-grid,
.story-track {
	display: grid;
	gap: 24px;
}

.services-2 {
	margin-top: 48px;
}

.cta-banner {
	position: relative;
	padding: 80px 0;
	color: #fff;
	background: url("../images/cta-bg.png") center/cover no-repeat;
	overflow: hidden;
}

.cta-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(62, 45, 20, 0.72);
}

.cta-banner-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.cta-banner h2 {
	color: #fff;
	text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.cta-banner p {
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	max-width: 640px;
}

.cta-banner .btn {
	background: #fff;
	color: var(--primary-dark);
}

.cta-banner .btn:hover,
.cta-banner .btn:focus {
	background: #fdf2df;
	color: var(--primary-dark);
}

.service-card,
.story-card,
.program-card {
	background: #fff;
	padding: 24px;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-soft);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card h3 {
	font-size: 1.25rem;
	line-height: 1.25;
}
.service-card:hover,
.story-card:hover,
.program-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.service-card {
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.service-media img {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.services-1 .service-media,
.services-2 .service-media {
	background: linear-gradient(135deg, rgba(214, 165, 81, 0.16), rgba(244, 222, 224, 0.6));
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.services-1 .service-icon,
.services-2 .service-icon {
	width: 120px;
	height: 120px;
}

.services-1 .icon-primary,
.services-2 .icon-primary {
	fill: var(--primary);
}

.services-1 .icon-secondary,
.services-2 .icon-secondary {
	fill: var(--secondary);
}

.services-1 .icon-stroke,
.services-2 .icon-stroke {
	stroke: var(--primary-dark);
	stroke-width: 4;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.service-body {
	padding: 20px 22px 24px;
}

.service-body h3 {
	margin-bottom: 10px;
}

.service-card p,
.program-card p,
.story-card p {
	color: var(--muted);
}

.story-slider {
	position: relative;
}

.story-track {
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	overflow-x: auto;
	padding: 6px 6px 14px;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
}

.story-track::-webkit-scrollbar {
	height: 8px;
}

.story-track::-webkit-scrollbar-thumb {
	background: rgba(31, 41, 51, 0.2);
	border-radius: 999px;
}

.story-card {
	scroll-snap-align: start;
	text-align: center;
}

.story-slider .slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: var(--primary-dark);
	box-shadow: var(--shadow-soft);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.story-slider .slider-btn:hover,
.story-slider .slider-btn:focus {
	background: var(--primary);
	color: #fff;
	transform: translateY(-50%) scale(1.05);
	box-shadow: var(--shadow);
}

.story-slider .slider-prev {
	left: -12px;
}

.story-slider .slider-next {
	right: -12px;
}

.program-grid {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	align-items: stretch;
}

.program-card {
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

.program-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--secondary);
	color: var(--primary-dark);
	display: grid;
	place-items: center;
	margin-bottom: 12px;
	font-size: 1.1rem;
}


.split {
	display: grid;
	gap: 32px;
	align-items: center;
}

/* Core values cards layout */
.values-grid {
	display: grid;
	gap: 20px;
	align-items: start;
	grid-auto-flow: row;
}

.value-card {
	background: #fff;
	padding: 22px;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-soft);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.value-card i {
	width: 64px;
	height: 64px;
	display: grid;
	place-items: center;
	background: var(--primary);
	color: #fff;
	border-radius: 999px;
	font-size: 1.25rem;
	box-shadow: var(--shadow-soft);
	transition: transform 0.28s ease;
}

/* subtle hover: lift the card and slightly scale the icon */
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.value-card:hover i {
    transform: scale(1.08);
}

.value-card h3 {
	margin: 0;
}

.value-card p {
	color: var(--muted);
	margin: 0;
}

.split-media img {
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.checklist {
	list-style: none;
	margin-top: 20px;
	display: grid;
	gap: 12px;
	color: var(--muted);
}

.checklist li {
	position: relative;
	padding-left: 28px;
}

.checklist li::before {
	content: "\f058";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	color: var(--primary-dark);
	position: absolute;
	left: 0;
	top: 2px;
}

.program-grid article h3 {
	margin-bottom: 8px;
}

.story-card strong {
	display: block;
	margin-top: 16px;
}

.story-card span {
	color: var(--muted);
	font-size: 0.9rem;
}

.cta {
	background: linear-gradient(135deg, #fff8ec 0%, #fdeced 100%);
}

.cta-content {
	display: grid;
	gap: 24px;
	align-items: center;
}

.cta-card {
	background: #fff;
	padding: 28px;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
	display: grid;
	gap: 12px;
}

.cta-card p {
	display: flex;
	gap: 10px;
	align-items: center;
	color: var(--muted);
}

.contact-phone {
	font-weight: 700;
	color: var(--text);
}

.cta-card i {
	color: var(--primary-dark);
}

.site-footer {
	background: #111827;
	color: #e5e7eb;
	padding: 64px 0 24px;
}

.footer-grid {
	display: grid;
	gap: 28px;
}

.footer-grid img {
	height: 96px;
	margin-bottom: 16px;
}

.footer-grid p,
.footer-grid li {
	color: #cbd5e1;
	font-size: 0.95rem;
}

.footer-grid ul {
	list-style: none;
	display: grid;
	gap: 8px;
}

.footer-grid a:hover,
.footer-grid a:focus {
	color: var(--primary);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 32px;
	padding-top: 18px;
	text-align: center;
	color: #94a3b8;
	font-size: 0.85rem;
}

.footer-phone {
	margin-top: 8px;
	font-weight: 700;
	color: #fff;
}

.scroll-controls {
	position: fixed;
	right: 20px;
	bottom: 20px;
	display: grid;
	gap: 10px;
	z-index: 20;
}

.scroll-btn {
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: var(--primary-dark);
	box-shadow: var(--shadow-soft);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.scroll-btn:hover,
.scroll-btn:focus {
	background: var(--primary);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

@media (min-width: 768px) {
	.nav-toggle {
		display: none;
	}

	.main-nav {
		display: flex;
	}

	.hero-grid {
		grid-template-columns: repeat(2, 1fr);
		align-items: center;
	}

	.stats-grid {
		grid-template-columns: repeat(3, 1fr);
		text-align: center;
	}

	.service-grid,
	.program-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.split {
		grid-template-columns: repeat(2, 1fr);
	}

	.cta-content {
		grid-template-columns: 1.2fr 0.8fr;
	}

	/* Spread values horizontally on wider screens */
	.values-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.hero-copy h1 {
		font-size: clamp(2.2rem, 7vw, 2.55rem);
		font-weight: 700;
	}

	.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-radius: 16px;
		box-shadow: var(--shadow);
		display: grid;
		gap: 12px;
		padding: 18px 20px;
		margin-top: 12px;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		pointer-events: none;
		transition: max-height 0.35s ease, opacity 0.35s ease;
	}

	.main-nav.open {
		max-height: 360px;
		opacity: 1;
		pointer-events: auto;
	}

	.main-nav a {
		padding: 8px 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	}

	.main-nav a:last-child {
		border-bottom: none;
	}

	.header-actions {
		margin-left: auto;
	}

	.request-btn {
		display: none;
	}

	.story-slider .slider-btn {
		width: 40px;
		height: 40px;
	}

	.story-slider .slider-prev {
		left: 6px;
	}

	.story-slider .slider-next {
		right: 6px;
	}


	.cta-banner-content {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 400px) {
	.hero-actions {
		gap: 8px;
	}

	.hero-actions .btn {
		padding: 10px 16px;
		font-size: 0.9rem;
	}
}

@media (min-width: 1024px) {
	.service-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	body.career-page #requirements .staff-benefits-card {
		grid-column: span 2;
	}

	.program-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.story-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
