/**
 * Sri Vasavi Design System Base & Variables
 *
 * Defines design tokens, CSS variables, resets, and typography fallbacks.
 *
 * @package SVCC
 */

/* 1. Google Fonts are loaded dynamically in enqueue.php */

/* 2. Color System & Design Tokens */
:root {
	/* Fonts Stack */
	--font-display: 'Marcellus', Georgia, serif;
	--font-body: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	--font-mono: var(--font-body);

	/* Transitions */
	--transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-fade: opacity 0.3s ease;

	/* Master / Home Palette */
	--master-bg: #FFFFFF;
	--master-surface: #FFFFFF;
	--master-text: #312d2a;
	--master-gold: #b62a2e;
	--master-blue: #b16543;
	--master-hairline: #E5E5E5;

	/* SVCC Palette */
	--svcc-bg: #FFFFFF;
	--svcc-surface: #f6f0ee;
	--svcc-surface-raised: #FFFFFF;
	--svcc-text: #312d2a;
	--svcc-gold: #b62a2e;
	--svcc-gold-deep: #b63235;
	--svcc-green: #498245;
	--svcc-vermilion: #b26542;

	/* Residency Palette */
	--regency-bg: #f5f8fc;
	--regency-surface: #FFFFFF;
	--regency-text: #1A2F56;
	--regency-blue-light: #009CDE;
	--regency-blue-mid: #0077C8;
	--regency-blue-deep: #0033A0;
	--regency-navy-deep: #00205B;
}

/* 3. Theme Routing Logic via CSS Custom Properties */
body.theme-home {
	--bg: var(--master-bg);
	--surface: var(--master-surface);
	--text: var(--master-text);
	--accent: var(--master-gold);
	--accent-secondary: var(--master-blue);
	--border: var(--master-hairline);
	color-scheme: light;
}

body.theme-svcc {
	--bg: var(--svcc-bg);
	--surface: var(--svcc-surface);
	--text: var(--svcc-text);
	--accent: var(--svcc-gold);
	--accent-secondary: var(--svcc-green);
	--border: var(--master-hairline);
	color-scheme: light;
}

body.theme-residency {
	--bg: #FFFFFF;
	--surface: var(--regency-surface);
	--text: var(--regency-text);
	--accent: var(--regency-blue-mid);
	--accent-secondary: var(--regency-blue-light);
	--accent-deep: var(--regency-blue-deep);
	--navy-deep: var(--regency-navy-deep);
	--border: #E1E8F0;
	color-scheme: light;
}

/* 4. Global Reset */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
	transition: background-color 0.5s ease, color 0.5s ease;
}

/* Typography Resets */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
	font-weight: 400;
	line-height: 1.25;
	color: inherit;
}

.display-font {
	font-family: var(--font-display);
}

.font-mono {
	font-family: var(--font-mono);
}

a {
	color: inherit;
	text-decoration: none;
	transition: var(--transition-smooth);
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* Layout wrappers */
.content-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Decorative Separators */
.section-header-centered {
	text-align: center;
	margin-bottom: 48px;
}

/* Reusable Section Header Styles */
.section-header {
	display: flex;
	flex-direction: column;
	margin-bottom: 50px;
}

.section-header-centered {
	align-items: center;
	text-align: center;
}

.section-header-left {
	align-items: flex-start;
	text-align: left;
}

.section-subtitle {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 10px;
	font-weight: 600;
	color: #666666;
	display: inline-block;
	font-family: var(--font-mono);
}

.section-title {
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 2.8vw, 1.9rem);
	color: #D6202C !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px;
	font-weight: 400;
	margin: 0;
	line-height: 1.25;
}



/* Accessibility: Screen Reader Text and Skip Links */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #ffffff;
	border-radius: 4px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #b62a2e;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px;
	position: absolute;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal-on-scroll {
	opacity: 0;
	transform: translateY(25px);
	transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
	will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
	opacity: 1;
	transform: translateY(0);
}

/* ==========================================================================
   Parallax Background Animations
   ========================================================================== */
.parallax-section {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #a25833 0%, #763b1d 50%, #542710 100%);
	z-index: 1;
}

.parallax-bg {
	position: absolute;
	top: -20%;
	left: 0;
	width: 100%;
	height: 140%;
	background-size: cover;
	background-position: center;
	z-index: -1;
	will-change: transform;
	transform: translate3d(0, 0, 0);
}

.parallax-bg::after {
	content: none;
	display: none;
	background: none;
}

.parallax-section .content-wrapper {
	position: relative;
	z-index: 2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* Hero Page Subtitle Badge */
.about-hero-subtitle {
	font-size: 11px !important;
	letter-spacing: 2px !important;
	color: #FFFFFF !important;
	display: inline-block !important;
	margin-bottom: 16px !important;
	font-weight: 700 !important;
	border: 1px solid rgba(255, 255, 255, 0.45) !important;
	border-radius: 20px !important;
	padding: 5px 14px !important;
	text-transform: uppercase !important;
}

/* Universal SVG Vector Arrow Icon Styles */
.sv-arrow-icon,
.icon-arrow-right,
.icon-arrow-down {
	display: inline-block;
	vertical-align: middle;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.button:hover .sv-arrow-icon,
.button:hover .icon-arrow-right,
a:hover .sv-arrow-icon,
a:hover .icon-arrow-right {
	transform: translateX(4px);
}

.hall-specs-jump-link:hover .sv-arrow-icon,
.hall-specs-jump-link:hover .icon-arrow-down {
	transform: translateY(3px);
}

.acc-chevron-icon {
	width: 16px !important;
	height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;
	flex-shrink: 0;
}
