@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ── */
:root {
	--primary: #5a68bb;
	--secondary: #58c6b6;
	--gradient: linear-gradient(135deg, #5a68bb 0%, #58c6b6 100%);
	--gradient-hover: linear-gradient(135deg, #4a58ab 0%, #48b6a6 100%);
}

/* ── Base Typography ── */
body {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	color: #1f2937;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
	font-family: 'Playfair Display', serif;
}

/* ── Gradient Utilities ── */
.bg-gradient-brand {
	background: var(--gradient);
}

.text-gradient {
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.border-gradient {
	border-image: var(--gradient) 1;
}

/* ── Buttons ── */
.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.75rem;
	background: var(--gradient);
	color: white;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 0.9375rem;
	border-radius: 9999px;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	letter-spacing: 0.01em;
}

.btn-primary:hover {
	background: var(--gradient-hover);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(90, 104, 187, 0.35);
}

.btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.75rem;
	background: transparent;
	color: var(--primary);
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 0.9375rem;
	border-radius: 9999px;
	border: 2px solid var(--primary);
	transition: all 0.3s ease;
	text-decoration: none;
	white-space: nowrap;
}

.btn-outline:hover {
	background: var(--gradient);
	color: white;
	border-color: transparent;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(90, 104, 187, 0.25);
}

.btn-white {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.75rem;
	background: white;
	color: var(--primary);
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.9375rem;
	border-radius: 9999px;
	border: none;
	transition: all 0.3s ease;
	text-decoration: none;
	white-space: nowrap;
}

.btn-white:hover {
	background: rgba(255, 255, 255, 0.9);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-white-outline {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.75rem;
	background: transparent;
	color: white;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 0.9375rem;
	border-radius: 9999px;
	border: 2px solid rgba(255, 255, 255, 0.7);
	transition: all 0.3s ease;
	text-decoration: none;
	white-space: nowrap;
}

.btn-white-outline:hover {
	background: white;
	color: var(--primary);
	border-color: white;
	transform: translateY(-2px);
}

/* ── Cards ── */
.card {
	background: white;
	border-radius: 1.25rem;
	overflow: hidden;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 48px rgba(90, 104, 187, 0.12);
}

/* ── Navigation ── */
.nav-link {
	position: relative;
	font-weight: 500;
	font-size: 0.9375rem;
	color: #374151;
	text-decoration: none;
	transition: color 0.2s ease;
	padding-bottom: 2px;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--gradient);
	border-radius: 2px;
	transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
	color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
	width: 100%;
}

/* ── Carousel ── */
.carousel-wrapper {
	position: relative;
	overflow: hidden;
}

.carousel-slide {
	position: absolute;
	inset: 0;
	transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 0;
	pointer-events: none;
}

.carousel-slide.active {
	opacity: 1;
	position: relative;
	pointer-events: auto;
}

/* ── Section titles ── */
.section-tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--primary);
	margin-bottom: 0.75rem;
}

/* ── Decorative Elements ── */
.gradient-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--gradient);
}

.gradient-line {
	height: 3px;
	width: 60px;
	background: var(--gradient);
	border-radius: 3px;
}

/* ── Service / Course icon boxes ── */
.icon-box {
	width: 64px;
	height: 64px;
	border-radius: 1rem;
	background: var(--gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	flex-shrink: 0;
}

.icon-box-sm {
	width: 48px;
	height: 48px;
	border-radius: 0.75rem;
	background: var(--gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	flex-shrink: 0;
}

/* ── Checklist ── */
.check-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.5rem;
	color: #374151;
	font-size: 0.9375rem;
}

.check-list li::before {
	content: '';
	width: 20px;
	height: 20px;
	background: var(--secondary);
	border-radius: 50%;
	flex-shrink: 0;
	margin-top: 1px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
	background-size: 12px;
	background-position: center;
	background-repeat: no-repeat;
}

/* ── Dropdown ── */
.dropdown-menu {
	display: none;
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%);
	background: white;
	border-radius: 1rem;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
	padding: 0.75rem;
	min-width: 240px;
	z-index: 100;
}

.dropdown-menu::before {
	content: '';
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
	width: 12px;
	height: 12px;
	background: white;
	transform: translateX(-50%) rotate(45deg);
	box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.04);
}

.dropdown-menu.is-open {
	display: block;
}

.dropdown-item {
	display: block;
	padding: 0.625rem 0.875rem;
	border-radius: 0.625rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
	transition: all 0.2s ease;
}

.dropdown-item:hover {
	background: #f5f6fe;
	color: var(--primary);
	padding-left: 1.125rem;
}

/* ── Hero bg pattern ── */
.hero-pattern {
	background-image:
		radial-gradient(
			circle at 20% 80%,
			rgba(255, 255, 255, 0.08) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 20%,
			rgba(255, 255, 255, 0.08) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 50% 50%,
			rgba(255, 255, 255, 0.04) 0%,
			transparent 70%
		);
}

/* ── Scroll reveal (JS toggled) ── */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.6s ease,
		transform 0.6s ease;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Mobile nav overlay ── */
#mobile-menu {
	transition:
		transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.35s ease;
}

#mobile-menu.closed {
	transform: translateY(-16px);
	opacity: 0;
	pointer-events: none;
}

/* ── Contact form ── */
.form-input {
	width: 100%;
	padding: 0.875rem 1rem;
	border: 2px solid #e5e7eb;
	border-radius: 0.75rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	color: #1f2937;
	background: white;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
	outline: none;
}

.form-input:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(90, 104, 187, 0.1);
}

.form-input::placeholder {
	color: #9ca3af;
}

textarea.form-input {
	resize: vertical;
	min-height: 140px;
}

/* ── Responsive images ── */
img {
	max-width: 100%;
	height: auto;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
	width: 6px;
}
::-webkit-scrollbar-track {
	background: #f9fafb;
}
::-webkit-scrollbar-thumb {
	background: var(--gradient);
	border-radius: 3px;
}
