/**
 * AVS Theme - Main Stylesheet
 * Professional classic theme design system
 */

/* === RESET & BASE === */
:root {
	--color-primary: #B45309;
	--color-primary-dark: #92400E;
	--color-primary-light: #FFF7ED;
	--color-secondary: #1B2838;
	--color-accent: #2E7D32;
	--color-light: #FFF8F0;
	--color-surface: #F7F8FA;
	--color-white: #FFFFFF;
	--color-dark: #1A1A1A;
	--color-muted: #6B7280;
	--color-border: #E5E7EB;

	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-heading: 'Playfair Display', Georgia, serif;

	--shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
	--shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
	--shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
	--shadow-xl: 0 20px 50px rgba(0,0,0,0.12);

	--radius: 12px;
	--radius-sm: 8px;
	--radius-xs: 6px;

	--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--container: 1200px;
	--container-narrow: 800px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--color-dark);
	background: var(--color-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4, h5 {
	font-family: var(--font-heading);
	color: var(--color-secondary);
	line-height: 1.2;
	margin: 0 0 0.75rem;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow); }

.prose p { margin: 0 0 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--color-secondary); }

/* === HEADER === */
.site-header {
	background: var(--color-white);
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: var(--shadow-sm);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.site-logo-link { display: flex; align-items: center; }
.avs-logo { height: 50px; width: auto; }

.main-nav { display: flex; align-items: center; }

.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	flex-direction: column;
	gap: 5px;
}
.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-secondary);
	border-radius: 2px;
	transition: var(--transition);
}

.nav-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.25rem;
}

.nav-menu li a {
	display: block;
	padding: 0.5rem 0.9rem;
	color: var(--color-secondary);
	font-weight: 500;
	font-size: 0.95rem;
	border-radius: var(--radius-xs);
	transition: background var(--transition), color var(--transition);
}

.nav-menu li a:hover {
	background: var(--color-surface);
	color: var(--color-primary);
}

/* Last nav item = CTA button */
.nav-menu li:last-child a {
	background: var(--color-primary);
	color: var(--color-white) !important;
	font-weight: 600;
	padding: 0.5rem 1.25rem;
}
.nav-menu li:last-child a:hover {
	background: var(--color-primary-dark);
}

/* === HERO === */
.hero, .page-hero, .post-hero {
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.hero { min-height: 85vh; }
.page-hero, .post-hero { min-height: 35vh; padding: 5rem 0; }
.page-hero-sm { min-height: 25vh; padding: 4rem 0; }

.hero-overlay, .page-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(27,40,56,0.7) 0%, rgba(27,40,56,0.5) 100%);
	z-index: 0;
}

.hero-content, .page-hero-content {
	position: relative;
	z-index: 1;
}

.hero h1, .page-hero h1, .post-hero h1 {
	color: var(--color-white);
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	margin-bottom: 1rem;
	text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle, .page-hero-content > p, .post-hero .post-meta {
	color: rgba(255,255,255,0.9);
	font-size: clamp(1rem, 2vw, 1.25rem);
	max-width: 650px;
	margin: 0 auto 2rem;
}

.hero-buttons, .cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === BUTTONS === */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: var(--radius-sm);
	border: 2px solid transparent;
	cursor: pointer;
	transition: all var(--transition);
	text-decoration: none;
	line-height: 1.4;
}
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }

.btn-primary { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.footer-heading { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: var(--color-white); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(232,119,34,0.3); }

.btn-white { background: var(--color-white); color: var(--color-primary); border-color: var(--color-white); }
.btn-white:hover { background: var(--color-light); color: var(--color-primary-dark); }

.btn-outline-white { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.8); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: var(--color-white); border-color: var(--color-white); }

.btn-whatsapp { background: #25D366; color: var(--color-white); border-color: #25D366; }
.btn-whatsapp:hover { background: #1ea952; border-color: #1ea952; color: var(--color-white); }
.btn-whatsapp svg { width: 18px; height: 18px; }

/* === SECTIONS === */
.section { padding: 5rem 0; }
.bg-light { background: var(--color-surface); }

.section-title {
	text-align: center;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	margin-bottom: 0.5rem;
	position: relative;
	padding-bottom: 1rem;
}
.section-title::after {
	content: '';
	display: block;
	width: 50px;
	height: 3px;
	background: var(--color-primary);
	margin: 0.75rem auto 0;
	border-radius: 2px;
}

.section-subtitle {
	text-align: center;
	color: var(--color-muted);
	font-size: 1.1rem;
	max-width: 600px;
	margin: 0 auto 2.5rem;
}

.section-cta { text-align: center; margin-top: 2.5rem; }

/* === CARDS === */
.card-grid {
	display: grid;
	gap: 1.5rem;
}
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }

.card {
	background: var(--color-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
}

.card-image { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.card:hover .card-image img { transform: scale(1.03); }

.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; color: var(--color-secondary); margin-bottom: 0.5rem; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--color-primary); }
.card-meta { color: var(--color-muted); font-size: 0.85rem; margin-bottom: 0.5rem; font-weight: 500; }
.card-date { color: var(--color-muted); font-size: 0.8rem; display: block; margin-bottom: 0.4rem; }
.card-excerpt { color: var(--color-muted); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.card-link { font-weight: 600; font-size: 0.9rem; margin-top: auto; padding-top: 0.5rem; }
.card-details { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.8rem; color: var(--color-muted); margin-bottom: 0.75rem; }

.card-badge {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.5rem;
}
.badge-open { background: #dcfce7; color: #166534; }
.badge-closing_soon { background: #fef3c7; color: #92400e; }
.badge-closed { background: #fee2e2; color: #991b1b; }

.card-simple {
	border: 1px solid var(--color-border);
	background: var(--color-white);
	border-radius: var(--radius);
	padding: 2rem;
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition), transform var(--transition);
}
.card-simple:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-simple h4 { color: var(--color-primary); margin-bottom: 0.5rem; font-family: var(--font-body); }
.card-simple p { color: var(--color-muted); font-size: 0.9rem; margin: 0; }

.card-center { text-align: center; }
.card-step {
	display: inline-flex;
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	background: var(--color-primary);
	color: var(--color-white);
	font-size: 1.25rem;
	font-weight: 800;
	border-radius: 50%;
	margin-bottom: 1rem;
}

.card-highlight {
	background: var(--color-primary);
	color: var(--color-white);
	display: flex;
	align-items: center;
}
.card-highlight .card-body { justify-content: center; }
.card-highlight .card-title { color: var(--color-white); }
.card-highlight p { color: rgba(255,255,255,0.85); }

/* === ACCREDITATIONS === */
.accreditations { padding: 2rem 0; background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.accreditations .container { text-align: center; }
.accreditations-label { text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; color: var(--color-muted); font-weight: 600; margin: 0 0 1rem; }
.accreditations-logos { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.accreditations-logos img { height: 50px; width: auto; opacity: 0.85; transition: opacity var(--transition); }
.accreditations-logos img:hover { opacity: 1; }

/* === STATS === */
.stats-section { padding: 4rem 0; background: var(--color-surface); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; text-align: center; }
.stat-number {
	display: block;
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	font-weight: 800;
	font-family: var(--font-heading);
	color: var(--color-primary);
	line-height: 1;
}
.stat-label { display: block; color: var(--color-muted); font-size: 0.95rem; margin-top: 0.5rem; }

/* === TESTIMONIALS === */
.testimonials-section { background: var(--color-surface); }
.testimonial-card {
	background: var(--color-white);
	border-radius: var(--radius);
	padding: 2rem;
	box-shadow: var(--shadow-sm);
	border-left: 4px solid var(--color-primary);
	display: flex;
	flex-direction: column;
	height: 100%;
}
.testimonial-card blockquote {
	margin: 0;
	font-style: italic;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--color-dark);
	flex: 1;
}
.testimonial-card cite {
	display: block;
	margin-top: 1rem;
	font-style: normal;
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--color-muted);
}
.testimonial-photo {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 1rem;
}

/* === PARTNERS === */
.partners-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1.25rem;
}
.partner-logo {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 70px;
	min-width: 140px;
	transition: transform var(--transition), box-shadow var(--transition);
}
.partner-logo:hover { transform: scale(1.05); box-shadow: var(--shadow-md); }
.partner-logo img { max-height: 50px; max-width: 120px; object-fit: contain; }

/* === CTA SECTION === */
.cta-section {
	background: var(--color-primary);
	padding: 5rem 0;
	text-align: center;
}
.cta-section h2 { color: var(--color-white); font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.75rem; }
.cta-section p { color: #ffffff; font-size: 1.1rem; margin: 0 auto 2rem; max-width: 550px; }

/* === GALLERY === */
.gallery-section { margin-bottom: 4rem; }
.gallery-section:last-child { margin-bottom: 0; }

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 0.75rem;
}
.gallery-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.gallery-item {
	border-radius: var(--radius-sm);
	overflow: hidden;
	aspect-ratio: 4/3;
	display: block;
}
.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition);
}
.gallery-item:hover img { transform: scale(1.05); }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { flex-shrink: 0; width: 24px; height: 24px; color: var(--color-primary); margin-top: 2px; }
.contact-icon svg { width: 20px; height: 20px; }
.map-embed { border-radius: var(--radius); overflow: hidden; }

/* === PROGRAM SINGLE === */
.program-layout { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; }
.program-info-card {
	background: var(--color-surface);
	border-radius: var(--radius);
	padding: 2rem;
	position: sticky;
	top: 100px;
	border: 1px solid var(--color-border);
}
.program-info-card h3 { font-family: var(--font-body); font-size: 1.1rem; margin-bottom: 1rem; }
.program-status { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; }
.program-details-list { margin: 0 0 1.5rem; }
.program-details-list dt { font-size: 0.8rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.75rem; }
.program-details-list dd { margin: 0.2rem 0 0; font-weight: 600; color: var(--color-secondary); }
.program-actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* === FOUNDER === */
.founder-block { display: grid; grid-template-columns: 1fr 250px; gap: 2.5rem; align-items: start; }
.founder-info h3 { color: var(--color-primary); margin-bottom: 0.25rem; }
.founder-title { color: var(--color-muted); font-style: italic; margin-bottom: 1rem; }
.founder-photo img { border-radius: var(--radius); width: 100%; }

/* === BLOG SINGLE === */
.post-meta { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.post-share { display: flex; align-items: center; gap: 0.75rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.post-share span { font-weight: 600; font-size: 0.9rem; }
.post-share a { color: var(--color-muted); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-surface); transition: background var(--transition), color var(--transition); }
.post-share a:hover { background: var(--color-primary); color: var(--color-white); }
.post-share a svg { width: 16px; height: 16px; }

/* === FOOTER === */
.site-footer { background: var(--color-secondary); color: rgba(255,255,255,0.85); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; }
.footer-logo { height: 45px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.6; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-icon {
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
	color: var(--color-white);
	transition: background var(--transition);
}
.social-icon:hover { background: var(--color-primary); color: var(--color-white); }
.social-icon svg { width: 16px; height: 16px; }

.site-footer h4 { color: var(--color-white); font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer ul li a, .site-footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.site-footer ul li a:hover, .site-footer a:hover { color: var(--color-white); }
.footer-address { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.7); }
.footer-menu { list-style: none; padding: 0; margin: 0; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding: 1.5rem 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--color-white); }

/* === WHATSAPP FLOAT === */
.whatsapp-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 56px;
	height: 56px;
	background: #25D366;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(37,211,102,0.4);
	z-index: 9999;
	transition: transform var(--transition), box-shadow var(--transition);
	color: var(--color-white);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.6); color: var(--color-white); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* === LIGHTBOX === */
.avs-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.avs-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}
.avs-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.9);
}
.avs-lightbox-content {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.avs-lightbox-content img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.avs-lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 2.5rem;
	cursor: pointer;
	line-height: 1;
	opacity: 0.7;
	transition: opacity 0.2s;
}
.avs-lightbox-close:hover { opacity: 1; }
.avs-lightbox-prev,
.avs-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.15);
	border: none;
	color: #fff;
	font-size: 2.5rem;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}
.avs-lightbox-prev:hover,
.avs-lightbox-next:hover { background: rgba(255,255,255,0.3); }
.avs-lightbox-prev { left: -70px; }
.avs-lightbox-next { right: -70px; }

@media (max-width: 768px) {
	.avs-lightbox-prev { left: 10px; }
	.avs-lightbox-next { right: 10px; }
	.avs-lightbox-close { top: 10px; right: 10px; }
}

/* === PAGINATION === */
.pagination { margin-top: 3rem; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 0.5rem; }
.pagination a, .pagination span { padding: 0.5rem 1rem; border-radius: var(--radius-xs); font-size: 0.9rem; }
.pagination a { background: var(--color-surface); color: var(--color-secondary); }
.pagination a:hover { background: var(--color-primary); color: var(--color-white); }
.pagination .current { background: var(--color-primary); color: var(--color-white); font-weight: 600; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
	.program-layout { grid-template-columns: 1fr; }
	.program-info-card { position: static; }
	.contact-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	.nav-toggle { display: flex; }
	.nav-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--color-white);
		flex-direction: column;
		padding: 1rem;
		box-shadow: var(--shadow-lg);
		border-top: 1px solid var(--color-border);
	}
	.nav-menu.is-active { display: flex; }
	.nav-menu li a { padding: 0.75rem 1rem; width: 100%; }
	.nav-menu li:last-child a { text-align: center; margin-top: 0.5rem; }

	.hero { min-height: 70vh; }
	.section { padding: 3.5rem 0; }
	.card-grid-3 { grid-template-columns: 1fr; }
	.founder-block { grid-template-columns: 1fr; }
	.founder-photo { order: -1; }
	.founder-photo img { max-width: 200px; }
	.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
	.footer-bottom-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }

	.whatsapp-float { bottom: 16px; right: 16px; width: 48px; height: 48px; }
	.whatsapp-float svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
	.hero-buttons { flex-direction: column; align-items: center; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
