/* =================================================================
   Aerosports Telangana — Design System + Components
   ================================================================= */

/* ---------- 1. TOKENS ----------------------------------------- */
:root {
	/* Brand palette */
	--c-navy:       #0B2545;
	--c-navy-2:     #143764;
	--c-navy-3:     #1E4577;
	--c-gold:       #E8B43A;
	--c-gold-soft:  #F0CB6E;
	--c-gold-dark:  #C99622;
	--c-maroon:     #B91C2C;
	--c-cyan:       #22C2D6;
	--c-cream:      #FAF8F3;
	--c-cream-2:    #F2EDDF;
	--c-cream-3:    #E9E3D2;
	--c-ink:        #0E1116;
	--c-ink-2:      #232633;
	--c-muted:      #5A6175;
	--c-muted-2:    #828999;
	--c-hairline:   #E6E1D6;
	--c-hairline-2: #D8D2C2;
	--c-white:      #FFFFFF;

	/* Type */
	--ff-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--ff-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--fs-eyebrow:  0.78rem;
	--fs-body-sm:  0.875rem;
	--fs-body:     1rem;
	--fs-lede:     1.125rem;
	--fs-h6:       1rem;
	--fs-h5:       1.125rem;
	--fs-h4:       1.375rem;
	--fs-h3:       1.625rem;
	--fs-h2:       clamp(1.875rem, 1.3rem + 2vw, 3rem);
	--fs-h1:       clamp(2.5rem,  1.6rem + 3.6vw, 4.5rem);

	--lh-tight: 1.05;
	--lh-snug:  1.2;
	--lh-body:  1.6;
	--lh-loose: 1.75;

	/* Spacing */
	--s-1: 4px;
	--s-2: 8px;
	--s-3: 12px;
	--s-4: 16px;
	--s-5: 24px;
	--s-6: 32px;
	--s-7: 48px;
	--s-8: 64px;
	--s-9: 96px;
	--s-10: 128px;

	/* Radius */
	--r-xs: 4px;
	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 22px;
	--r-xl: 32px;
	--r-pill: 999px;

	/* Shadows */
	--shadow-card:  0 1px 0 rgba(11,37,69,0.05), 0 8px 24px -8px rgba(11,37,69,0.10);
	--shadow-pop:   0 1px 0 rgba(11,37,69,0.05), 0 18px 40px -12px rgba(11,37,69,0.20);
	--shadow-inset: inset 0 0 0 1px var(--c-hairline);

	/* Layout */
	--container:        1240px;
	--container-narrow: 980px;
	--container-pad:    clamp(20px, 4vw, 40px);

	/* Section rhythm */
	--section-y:    clamp(72px, 8vw, 128px);
	--section-y-sm: clamp(48px, 5vw, 80px);
}

/* ---------- 2. RESET / BASE ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--ff-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--c-ink);
	background: var(--c-cream);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background-color: var(--c-cream-2); }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--ff-display);
	font-weight: 700;
	line-height: var(--lh-tight);
	color: var(--c-navy);
	letter-spacing: -0.015em;
}
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); text-transform: uppercase; letter-spacing: 0.08em; }

p { margin: 0; }
p + p { margin-top: var(--s-4); }

a {
	color: var(--c-navy);
	text-decoration: none;
	text-underline-offset: 4px;
	text-decoration-thickness: 1.5px;
	transition: color .18s ease;
}
a:hover { color: var(--c-maroon); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; }

::selection { background: var(--c-navy); color: var(--c-gold); }

/* Accessibility helpers */
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px;
	overflow: hidden;
	white-space: nowrap;
}
.skip-link {
	position: absolute; top: -100px; left: 0;
	background: var(--c-navy); color: #fff;
	padding: var(--s-3) var(--s-5);
	z-index: 9999;
}
.skip-link:focus { top: 0; }

:focus-visible {
	outline: 2px solid var(--c-cyan);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- 3. LAYOUT UTILITIES ------------------------------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
	padding-block: var(--section-y);
	position: relative;
}
.section--sm { padding-block: var(--section-y-sm); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--dark { background: var(--c-navy); color: rgba(255,255,255,0.82); }

.section__head { max-width: 880px; margin-bottom: clamp(40px, 5vw, 80px); }
.section__head--center { margin-inline: auto; text-align: center; }

.section__title {
	font-size: var(--fs-h2);
	display: flex; flex-wrap: wrap;
	gap: 0 .35em;
	margin-block: var(--s-4) 0;
}
.section__title > span { display: inline-block; }
.section__title-accent {
	color: var(--c-maroon);
	font-weight: 700;
}
.section__title--inverse, .section__title--inverse > span { color: var(--c-white); }
.section__title--inverse .section__title-accent { color: var(--c-gold); }
.section__title--sm { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }

.section__lede {
	font-size: var(--fs-lede);
	line-height: 1.55;
	color: var(--c-muted);
	max-width: 64ch;
	margin-top: var(--s-5);
}
.section__lede--inverse { color: rgba(255,255,255,0.78); }

/* ---------- 4. EYEBROW ---------------------------------------- */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--s-3);
	font-family: var(--ff-display);
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	color: var(--c-maroon);
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.eyebrow::before {
	content: "";
	width: 28px; height: 2px;
	background: currentColor;
	border-radius: 2px;
}
.eyebrow--light { color: var(--c-gold); }

/* ---------- 5. BUTTONS ---------------------------------------- */
.btn {
	--btn-bg:     var(--c-navy);
	--btn-fg:     #fff;
	--btn-border: var(--c-navy);

	display: inline-flex; align-items: center; gap: var(--s-3);
	padding: 14px 24px;
	font-family: var(--ff-display);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	line-height: 1;
	background: var(--btn-bg);
	color: var(--btn-fg);
	border: 1.5px solid var(--btn-border);
	border-radius: var(--r-pill);
	cursor: pointer;
	transition: transform .15s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
	text-decoration: none;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(11,37,69,0.35); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 10px 18px; font-size: 0.875rem; }
.btn--lg { padding: 17px 30px; font-size: 1.0625rem; }

.btn--primary {
	--btn-bg: var(--c-navy);
	--btn-fg: #fff;
	--btn-border: var(--c-navy);
}
.btn--primary:hover { --btn-bg: var(--c-navy-2); color: var(--c-gold); }

.btn--gold {
	--btn-bg: var(--c-gold);
	--btn-fg: var(--c-navy);
	--btn-border: var(--c-gold);
}
.btn--gold:hover { --btn-bg: var(--c-gold-soft); }

.btn--ghost {
	--btn-bg: transparent;
	--btn-fg: var(--c-navy);
	--btn-border: var(--c-navy);
}
.btn--ghost:hover { --btn-bg: var(--c-navy); --btn-fg: #fff; }

.btn--on-dark.btn--ghost {
	--btn-fg: #fff;
	--btn-border: rgba(255,255,255,0.55);
}
.btn--on-dark.btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--c-navy); --btn-border: #fff; }

.btn__icon { width: 18px; height: 18px; flex: none; }

/* ---------- 6. TOP BAR ---------------------------------------- */
.topbar {
	background: var(--c-navy);
	color: rgba(255,255,255,0.9);
	border-bottom: 1px solid rgba(232,180,58,0.3);
	font-size: 0.78rem;
}
.topbar__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--s-5);
	min-height: 56px;
	padding-block: 8px;
}
/* Wrap the TSAA crest + text in a uniform white pill, matching the ACI/FAI pills on the right */
.topbar__left {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #ffffff;
	border-radius: 999px;
	/* generous padding so the crest sits inside the pill curve — was 4 / 6 which let the corners poke out */
	padding: 7px 20px 7px 14px;
	box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 2px 6px rgba(0,0,0,0.18);
}
.topbar__crest { width: 28px; height: auto; flex: none; }
.topbar__text { display: flex; flex-direction: column; line-height: 1.2; }
.topbar__line--gov {
	font-family: var(--ff-display);
	font-weight: 600;
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--c-maroon);
}
.topbar__line--parent {
	font-family: var(--ff-body);
	font-weight: 600;
	font-size: 0.8rem;
	color: var(--c-navy);
	letter-spacing: 0.01em;
}

.topbar__right { display: flex; align-items: center; gap: var(--s-4); }
.topbar__assoc-label {
	font-family: var(--ff-display);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.55);
}
.topbar__assoc {
	display: inline-flex; align-items: center;
	padding: 4px 10px;
	background: rgba(255,255,255,0.96);
	border-radius: 8px;
	transition: transform .18s ease, background .18s ease;
}
.topbar__assoc:hover { transform: translateY(-1px); background: #fff; }
.topbar__assoc img { height: 28px; width: auto; }

@media (max-width: 880px) {
	.topbar__inner { flex-direction: column; align-items: flex-start; padding-block: 10px; gap: 8px; }
	.topbar__left, .topbar__right { width: 100%; justify-content: flex-start; }
	.topbar__assoc-label { display: none; }
}

/* ---------- 7. SITE HEADER + NAV ------------------------------ */
.site-wrap { background: var(--c-cream); }

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250,248,243,0.92);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--c-hairline);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-6);
	min-height: 84px;
	padding-block: 12px;
}

/* Logo lockup — clean SVG (gold Charminar fixed, plane/text follow currentColor) */
.at-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--c-navy);
	transition: transform .35s cubic-bezier(.4,.2,.2,1);
}
.at-logo--inverse { color: #ffffff; }
.at-logo:hover { transform: scale(1.03); }
.at-logo__svg {
	height: 52px;
	width: auto;
	display: block;
	user-select: none;
	overflow: visible;   /* prevent glyph clipping at the SVG bounds */
}
/* By default, show the full lockup and hide the mark-only variant. */
.at-logo__svg--mark { display: none; }
.site-footer .at-logo__svg { height: 64px; }
/* Footer always shows the full lockup (has the vertical room). */
.site-footer .at-logo__svg--mark { display: none !important; }
.site-footer .at-logo__svg--full { display: block !important; }

/* Nav */
.site-nav { display: flex; align-items: center; }
.site-nav__list {
	display: flex;
	align-items: center;
	gap: var(--s-5);
}
.site-nav__item { position: relative; }
/* Nav link styles — exclude .btn so the CTA button keeps its own styling */
.site-nav__list > li > a:not(.btn),
.site-nav__link:not(.btn) {
	font-family: var(--ff-display);
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--c-navy);
	padding: 8px 2px;
	display: inline-block;
	position: relative;
}
.site-nav__list > li > a:not(.btn)::after,
.site-nav__link:not(.btn)::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: 2px;
	height: 2px;
	background: var(--c-maroon);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s cubic-bezier(.4,.2,.2,1);
}
.site-nav__list > li > a:not(.btn):hover::after,
.site-nav__link:not(.btn):hover::after,
.site-nav__list > li.current-menu-item > a:not(.btn)::after { transform: scaleX(1); }

.site-nav__toggle {
	display: none;
	background: transparent;
	border: 1.5px solid var(--c-navy);
	border-radius: 8px;
	width: 44px; height: 44px;
	flex-direction: column;
	gap: 5px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.site-nav__toggle-bar {
	width: 20px; height: 2px;
	background: var(--c-navy);
	border-radius: 2px;
	transition: transform .25s ease, opacity .15s ease;
}
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(2) { opacity: 0; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
	.at-logo__svg { height: 46px; }
	.site-footer .at-logo__svg { height: 60px; }
	.site-nav__toggle { display: flex; }
}
/* Below 640px the wordmark is too small to read — swap to the mark-only SVG */
@media (max-width: 640px) {
	.at-logo .at-logo__svg--full { display: none; }
	.at-logo .at-logo__svg--mark { display: block; height: 44px; }
}
@media (max-width: 980px) {
	.site-nav__list {
		position: absolute;
		top: calc(100% + 1px); left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		background: var(--c-cream);
		padding: 16px var(--container-pad) 32px;
		border-bottom: 1px solid var(--c-hairline);
		gap: 8px;
		max-height: 0;
		overflow: hidden;
		transition: max-height .35s ease, padding .25s ease;
	}
	.site-nav__list.is-open { max-height: 80vh; padding-block: 16px 32px; }
	.site-nav__link, .site-nav__list > li > a {
		display: block;
		padding: 12px 4px;
		border-bottom: 1px solid var(--c-hairline);
	}
	.site-nav__link::after, .site-nav__list > li > a::after { display: none; }
	.site-nav__item--cta { margin-top: 8px; }
	.site-nav__item--cta a { display: inline-flex; }
}

/* ---------- 8. FOOTER ----------------------------------------- */
.site-footer {
	margin-top: var(--section-y-sm);
	background: var(--c-navy);
	color: rgba(255,255,255,0.78);
	padding-block: clamp(56px, 6vw, 88px) 28px;
	background-image:
		radial-gradient(900px 600px at 0% -10%, rgba(232,180,58,0.06), transparent 60%),
		radial-gradient(800px 500px at 110% 110%, rgba(34,194,214,0.05), transparent 60%);
}
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: var(--s-7);
	padding-bottom: var(--s-7);
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer__about {
	margin-top: var(--s-5);
	font-size: 0.95rem;
	line-height: 1.6;
	color: rgba(255,255,255,0.65);
	max-width: 38ch;
}
.site-footer__title {
	font-family: var(--ff-display);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--c-gold);
	margin-bottom: var(--s-5);
}
.site-footer__list li + li { margin-top: 10px; }
.site-footer__list a {
	color: rgba(255,255,255,0.78);
	font-size: 0.95rem;
}
.site-footer__list a:hover { color: var(--c-gold); }

.site-footer__address {
	font-style: normal;
	font-size: 0.95rem;
	line-height: 1.7;
	color: rgba(255,255,255,0.75);
	margin-bottom: var(--s-4);
}
.site-footer__address span { display: block; }
.site-footer__email {
	display: inline-block;
	color: var(--c-gold);
	font-weight: 500;
	margin-bottom: var(--s-3);
	font-size: 0.95rem;
	border-bottom: 1px dashed rgba(232,180,58,0.5);
	padding-bottom: 2px;
}
.site-footer__email:hover { color: var(--c-gold-soft); }
.site-footer__hours {
	display: block;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.55);
}

.site-footer__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--s-5);
	padding-top: 28px;
	font-size: 0.8rem;
	color: rgba(255,255,255,0.5);
	flex-wrap: wrap;
}

@media (max-width: 880px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
@media (max-width: 520px) {
	.site-footer__grid { grid-template-columns: 1fr; }
	.site-footer__bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- 9. REUSABLE CARDS / GENERIC ----------------------- */
.post-list { display: grid; gap: var(--s-6); margin-top: var(--s-6); }
.post-card { padding: var(--s-6); background: #fff; border: 1px solid var(--c-hairline); border-radius: var(--r-md); }
.post-card__title { margin-bottom: var(--s-3); }

/* ---------- 10. SCROLL REVEAL --------------------------------- */
.reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .8s ease, transform .8s cubic-bezier(.2,.6,.2,1);
}
.reveal.is-in {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
}
