/* ===== fonts.css ===== */
/**
 * ASAS Child — Self-hosted fonts.
 * Playfair Display (heading) + Montserrat (body), subset latin sahaja.
 * Fail woff2 disimpan dalam assets/fonts/ — tiada request ke Google.
 */

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/montserrat-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url("../fonts/playfair-display-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ===== tokens.css ===== */
/**
 * ASAS Child — Design tokens.
 * Warna diselaraskan dengan member-portal.css supaya konsisten.
 */

:root {
	/* Warna utama */
	--asas-navy: #0f2a4a;
	--asas-navy-2: #16375e;
	--asas-navy-dark: #0a1f38;
	--asas-gold: #c9a227;
	--asas-gold-dark: #a8861c;
	--asas-gold-light: #e3c766;
	--asas-maroon: #7a1f2b;
	--asas-cream: #f7f4ec;

	/* Teks & garis */
	--asas-ink: #1f2933;
	--asas-muted: #6b7280;
	--asas-line: #e5e7eb;
	--asas-white: #ffffff;

	/* Bentuk */
	--asas-radius: 12px;
	--asas-radius-sm: 8px;
	--asas-shadow: 0 4px 18px rgba(15, 42, 74, 0.08);
	--asas-shadow-lg: 0 12px 40px rgba(10, 31, 56, 0.18);

	/* Typography */
	--asas-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
	--asas-font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	/* Layout */
	--asas-container: 1200px;
	--asas-gutter: 24px;
	--asas-header-h: 88px;
}

/* ------------------------------------------------------------------ */
/* Typography asas                                                     */
/* ------------------------------------------------------------------ */

.asas-h1,
.asas-h2,
.asas-h3 {
	font-family: var(--asas-font-heading);
	color: var(--asas-navy);
	line-height: 1.2;
	margin: 0;
}

.asas-h1 {
	font-weight: 700;
	font-size: clamp(2rem, 4vw, 3.25rem);
}

.asas-h2 {
	font-weight: 600;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.asas-h3 {
	font-weight: 600;
	font-size: 1.25rem;
}

.asas-body {
	font-family: var(--asas-font-body);
	font-weight: 400;
	color: var(--asas-ink);
	line-height: 1.65;
}

.asas-eyebrow {
	font-family: var(--asas-font-body);
	font-weight: 500;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--asas-gold);
}

/* ------------------------------------------------------------------ */
/* Butang                                                              */
/* ------------------------------------------------------------------ */

.asas-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--asas-font-body);
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1;
	padding: 14px 24px;
	border-radius: var(--asas-radius-sm);
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.asas-btn--gold {
	background: var(--asas-gold);
	color: var(--asas-navy-dark);
}

.asas-btn--gold:hover,
.asas-btn--gold:focus {
	background: var(--asas-gold-light);
	color: var(--asas-navy-dark);
}

.asas-btn--outline {
	background: transparent;
	color: var(--asas-gold);
	border-color: var(--asas-gold);
}

.asas-btn--outline:hover,
.asas-btn--outline:focus {
	background: var(--asas-gold);
	color: var(--asas-navy-dark);
}

/* ------------------------------------------------------------------ */
/* Container                                                           */
/* ------------------------------------------------------------------ */

.asas-container {
	width: 100%;
	max-width: var(--asas-container);
	margin-inline: auto;
	padding-inline: var(--asas-gutter);
}

/* Aksesibiliti */
.asas-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}


/* ===== header.css ===== */
/**
 * ASAS Child — Header.
 */

.asas-header {
	position: relative;
	z-index: 100;
	background: var(--asas-navy-dark);
	color: var(--asas-white);
}

.asas-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: var(--asas-header-h);
}

/* ------------------------------------------------------------------ */
/* Brand                                                               */
/* ------------------------------------------------------------------ */

.asas-header__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--asas-white);
	flex-shrink: 0;
}

.asas-header__logo {
	width: 56px;
	height: 56px;
	object-fit: contain;
	display: block;
}

.asas-header__brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.asas-header__brand-name {
	font-family: var(--asas-font-heading);
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: 0.02em;
	color: var(--asas-white);
}

.asas-header__brand-tagline {
	font-family: var(--asas-font-body);
	font-weight: 500;
	font-size: 0.6875rem;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------------------------------ */
/* Navigation                                                          */
/* ------------------------------------------------------------------ */

.asas-nav {
	margin-inline-start: auto;
}

.asas-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.asas-nav__list > li {
	position: relative;
}

.asas-nav__list > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	font-family: var(--asas-font-body);
	font-weight: 500;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.86);
	text-decoration: none;
	border-radius: var(--asas-radius-sm);
	transition: color 0.2s ease, background-color 0.2s ease;
}

.asas-nav__list > li > a:hover,
.asas-nav__list > li > a:focus {
	color: var(--asas-white);
	background: rgba(255, 255, 255, 0.06);
}

.asas-nav__list > li.current-menu-item > a,
.asas-nav__list > li.current-menu-ancestor > a {
	color: var(--asas-white);
	box-shadow: inset 0 -2px 0 var(--asas-gold);
	border-radius: 0;
}

/* Indikator dropdown */
.asas-nav__list > li.menu-item-has-children > a::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s ease;
}

.asas-nav__list > li.menu-item-has-children:hover > a::after {
	transform: rotate(225deg) translateY(-2px);
}

/* Submenu */
.asas-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 220px;
	list-style: none;
	margin: 0;
	padding: 8px;
	background: var(--asas-white);
	border-radius: var(--asas-radius-sm);
	box-shadow: var(--asas-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

/* Jambatan halimunan: tutup jurang 8px supaya submenu tak hilang semasa hover turun */
.asas-nav__list > li.menu-item-has-children::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 12px;
}

.asas-nav__list > li:hover > .sub-menu,
.asas-nav__list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.asas-nav__list .sub-menu a {
	display: block;
	padding: 10px 14px;
	font-family: var(--asas-font-body);
	font-weight: 500;
	font-size: 0.875rem;
	color: var(--asas-ink);
	text-decoration: none;
	border-radius: 6px;
}

.asas-nav__list .sub-menu a:hover,
.asas-nav__list .sub-menu a:focus {
	background: var(--asas-cream);
	color: var(--asas-navy);
}

/* ------------------------------------------------------------------ */
/* Actions                                                             */
/* ------------------------------------------------------------------ */

.asas-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.asas-header__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.86);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.asas-header__icon-btn:hover,
.asas-header__icon-btn:focus {
	background: rgba(255, 255, 255, 0.08);
	color: var(--asas-white);
}

.asas-header__cta {
	padding: 11px 20px;
	font-size: 0.8125rem;
}

/* Burger */
.asas-header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0 9px;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.asas-header__burger span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--asas-white);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.asas-header__burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.asas-header__burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.asas-header__burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------------------------------------------ */
/* Search panel                                                        */
/* ------------------------------------------------------------------ */

.asas-search-panel {
	background: var(--asas-navy);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 16px 0;
}

.asas-search-form {
	display: flex;
	gap: 10px;
	max-width: 720px;
	margin-inline: auto;
}

.asas-search-form__input {
	flex: 1;
	padding: 13px 16px;
	font-family: var(--asas-font-body);
	font-size: 0.9375rem;
	color: var(--asas-ink);
	background: var(--asas-white);
	border: 1px solid transparent;
	border-radius: var(--asas-radius-sm);
}

.asas-search-form__input:focus {
	outline: 2px solid var(--asas-gold);
	outline-offset: 1px;
}

/* ------------------------------------------------------------------ */
/* Mobile                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.asas-header__inner {
		gap: 16px;
	}

	.asas-header__burger {
		display: flex;
	}

	.asas-header__cta {
		display: none;
	}

	.asas-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin: 0;
		background: var(--asas-navy-dark);
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		box-shadow: var(--asas-shadow-lg);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.28s ease;
	}

	.asas-nav.is-open {
		max-height: 80vh;
		overflow-y: auto;
	}

	.asas-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 0 16px;
	}

	.asas-nav__list > li > a {
		padding: 14px 24px;
		border-radius: 0;
		font-size: 0.9375rem;
	}

	.asas-nav__list > li.current-menu-item > a {
		box-shadow: inset 3px 0 0 var(--asas-gold);
	}

	.asas-nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: rgba(255, 255, 255, 0.04);
		border-radius: 0;
		padding: 0;
		display: none;
	}

	/* Buang jambatan hover pada mobile */
	.asas-nav__list > li.menu-item-has-children::after {
		display: none;
	}

	.asas-nav__list > li.is-open > .sub-menu {
		display: block;
	}

	.asas-nav__list .sub-menu a {
		color: rgba(255, 255, 255, 0.78);
		padding: 12px 24px 12px 40px;
		border-radius: 0;
	}

	.asas-nav__list .sub-menu a:hover,
	.asas-nav__list .sub-menu a:focus {
		background: rgba(255, 255, 255, 0.06);
		color: var(--asas-white);
	}
}

@media (max-width: 600px) {
	.asas-header__brand-tagline {
		display: none;
	}

	.asas-header__logo {
		width: 44px;
		height: 44px;
	}

	.asas-header__brand-name {
		font-size: 1.25rem;
	}

	.asas-search-form {
		flex-direction: column;
	}
}


/* ===== footer.css ===== */
/**
 * ASAS Child — Footer.
 */

.asas-footer {
	position: relative;
	overflow: hidden;
	background: var(--asas-navy-dark);
	color: rgba(255, 255, 255, 0.78);
	font-family: var(--asas-font-body);
}

/* Latar bangunan SAS (opacity rendah) */
.asas-footer__bg {
	position: absolute;
	inset: 0;
	background-image: url("https://www.asas.com.my/wp-content/uploads/2019/10/asas-logo-color.png");
	background-repeat: no-repeat;
	background-position: right -40px bottom -20px;
	background-size: 420px auto;
	opacity: 0.05;
	pointer-events: none;
}

.asas-footer__inner {
	position: relative;
	z-index: 1;
	padding-block: 64px 0;
}

.asas-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1fr;
	gap: 40px;
	padding-bottom: 48px;
}

/* ------------------------------------------------------------------ */
/* Brand                                                               */
/* ------------------------------------------------------------------ */

.asas-footer__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--asas-white);
}

.asas-footer__logo {
	width: 56px;
	height: 56px;
	object-fit: contain;
	display: block;
}

.asas-footer__brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.asas-footer__brand-name {
	font-family: var(--asas-font-heading);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--asas-white);
}

.asas-footer__brand-tagline {
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------------------------------ */
/* Kolum                                                               */
/* ------------------------------------------------------------------ */

.asas-footer__title {
	font-family: var(--asas-font-body);
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--asas-white);
	margin: 0 0 18px;
}

.asas-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.asas-footer__list a {
	font-size: 0.875rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color 0.2s ease;
}

.asas-footer__list a:hover,
.asas-footer__list a:focus {
	color: var(--asas-gold);
}

/* Hubungi */
.asas-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.72);
}

.asas-footer__contact svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--asas-gold);
}

/* Sosial */
.asas-footer__socials {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 10px;
}

.asas-footer__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: var(--asas-white);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.asas-footer__social:hover,
.asas-footer__social:focus {
	background: var(--asas-gold);
	color: var(--asas-navy-dark);
}

/* ------------------------------------------------------------------ */
/* Bottom bar                                                          */
/* ------------------------------------------------------------------ */

.asas-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-block: 22px;
	text-align: center;
}

.asas-footer__copyright {
	margin: 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.55);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.asas-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.asas-footer__col--brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.asas-footer__inner {
		padding-block: 48px 0;
	}

	.asas-footer__grid {
		grid-template-columns: 1fr;
		gap: 28px;
		padding-bottom: 36px;
	}
}


