/* ============================================================
 * Ascensus Health — theme.css
 * Visual tokens lifted from gynonc.com.sg (Vamtam Health Center).
 * BEM only. Mobile-first. Breakpoints: 768 / 1024 / 1280.
 * ============================================================ */

/* ---------- Design tokens ---------- */
:root {
	--color-brand:       #50C4C3; /* primary teal */
	--color-brand-dark:  #257574; /* dark teal — h2, footer */
	--color-brand-deep:  #155352; /* deep teal — footer accent */
	--color-text:        #575b60; /* body text */
	--color-text-muted:  #87919a;
	--color-heading:     #000000; /* h1 */
	--color-heading-h2:  #257574; /* h2 dark teal */
	--color-bg:          #ffffff;
	--color-bg-alt:      #f5f5f5;
	--color-bg-topbar:   #efefef;
	--color-border:      #e5e5e5;

	--font-body:    'Open Sans', 'Droid Sans', Arial, sans-serif;
	--font-heading: Arial, 'Open Sans', sans-serif;

	--container: 1260px;
}

/* ---------- Google Fonts (Open Sans) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 13px;
	line-height: 1.6;
	font-weight: 300;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-brand);
	text-decoration: none;
	transition: color 0.2s;
}

a:hover,
a:focus-visible {
	color: var(--color-brand-dark);
	text-decoration: none;
}

button {
	font: inherit;
	cursor: pointer;
}

ul, ol {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0.6em 0 0.4em;
	line-height: 1.15;
	font-weight: 400;
	font-family: var(--font-heading);
	color: var(--color-heading);
}

h1 { font-size: 30px; }
h2 { font-size: 24px; color: var(--color-heading-h2); }
h3 { font-size: 18px; }
h4 { font-size: 17px; }

p {
	margin: 0 0 1em;
}

/* ---------- Accessibility ---------- */
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--color-brand-dark);
	color: #fff;
	padding: 0.75rem 1rem;
	z-index: 1000;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* ---------- Layout primitives ---------- */
.site-content {
	width: 100%;
	min-height: 50vh;
}

.site-content > .alignwide {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 1rem;
}

/* ---------- Header ---------- */
.site-header {
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	position: relative;
}

.site-header__container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 30px;
}

.site-header__top-bar {
	background: var(--color-brand-dark);
	color: #ffffff;
	font-size: 13px;
}

.site-header__top-bar a { color: #ffffff; }
.site-header__top-bar-label { color: #ffffff; }

.site-header__top-bar .site-header__container {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.5rem;
	padding-block: 0.5rem;
}

.site-header__top-bar-label {
	font-weight: 400;
}

.site-header__emergency-icon {
	color: #ffffff;
	font-size: 14px;
	line-height: 1;
	margin-right: 0.25rem;
}

.site-header__emergency-phone {
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
}

.site-header__emergency-phone strong { font-weight: 700; }

.site-header__emergency-phone:hover,
.site-header__emergency-phone:focus-visible {
	color: var(--color-brand);
}

.site-header__group-banner {
	background: var(--color-brand-deep);
	color: #ffffff;
	font-size: 13px;
	padding: 0.5rem 1rem;
	text-align: center;
}

.site-header__group-banner a {
	color: var(--color-brand);
	text-decoration: underline;
}

.site-header__group-banner a:hover,
.site-header__group-banner a:focus-visible {
	color: #ffffff;
}

@media (min-width: 1024px) {
	.site-header__group-banner {
		position: absolute;
		top: 36px;            /* sits just below the top bar */
		right: 0;
		margin: 0;
		padding: 0.65rem 1.5rem;
		text-align: center;
		width: auto;
		min-width: 320px;
		z-index: 30;
	}
	.site-header__group-banner .site-header__container {
		padding: 0;
		max-width: none;
	}
}

.site-header__main .site-header__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.5rem;
}

.site-header__brand {
	flex: 0 0 auto;
}

.site-header__logo-img {
	max-height: 92px;
	width: auto;
	display: block;
}

.site-header__menu-toggle {
	background: transparent;
	border: 0;
	padding: 12px;                  /* yields ~48x48 hit target with the 24x24 icon */
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.site-header__menu-icon,
.site-header__menu-icon::before,
.site-header__menu-icon::after {
	width: 24px;
	height: 2px;
	background: var(--color-brand);
	display: block;
}

.site-header__menu-icon {
	position: relative;
}

.site-header__menu-icon::before,
.site-header__menu-icon::after {
	content: '';
	position: absolute;
	left: 0;
}

.site-header__menu-icon::before { top: -7px; }
.site-header__menu-icon::after  { top:  7px; }

.site-header__nav {
	display: none;
}

.site-header__nav--open {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border-top: 1px solid var(--color-border);
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	z-index: 99;
}

.site-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.site-header__menu li {
	position: relative;
}

.site-header__menu a {
	display: block;
	padding: 0.5rem 0.6rem;
	color: var(--color-brand);
	font-weight: 400;
	font-size: 16px;
	font-family: var(--font-body);
	transition: color 0.2s;
}

.site-header__menu a:hover,
.site-header__menu a:focus-visible {
	color: var(--color-brand-dark);
}

.site-header__menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
}

.site-header__menu .sub-menu a {
	padding: 0.4rem 1.5rem;
	font-size: 14px;
	color: var(--color-text);
	font-weight: 400;
}

@media (min-width: 1024px) {
	.site-header__menu-toggle {
		display: none;
	}
	.site-header__nav,
	.site-header__nav--open {
		display: block;
		position: static;
		background: transparent;
		border-top: 0;
		box-shadow: none;
	}
	.site-header__menu {
		flex-direction: row;
		gap: 0;
	}
	.site-header__menu > li > a {
		padding: 0.3rem 0.7rem;
	}
	.site-header__menu .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 220px;
		background: #fff;
		border: 1px solid var(--color-border);
		box-shadow: 0 4px 12px rgba(0,0,0,0.06);
		display: none;
		z-index: 50;
	}
	.site-header__menu li:hover > .sub-menu,
	.site-header__menu li:focus-within > .sub-menu {
		display: block;
	}
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--color-brand-dark);
	color: #ffffff;
	padding: 3rem 1rem 2rem;
	margin-top: 0;
	font-family: var(--font-body);
}

.site-footer a {
	color: #ffffff;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--color-brand);
}

.site-footer__container {
	max-width: var(--container);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	text-align: left;
}

.site-footer__logo-img {
	max-height: 80px;
	width: auto;
}

.site-footer__tagline {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.92);
}

.site-footer__tagline p {
	margin: 0;
}

.site-footer__tagline a {
	text-decoration: underline;
}

.site-footer__social-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.site-footer__social-label {
	color: #ffffff;
	font-size: 13px;
}

.site-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.5rem;
}

.site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--color-brand-deep);
	color: #fff;
	font-size: 0;
	position: relative;
}

.site-footer__social-link::before {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}

.site-footer__social-link:hover {
	background: var(--color-brand);
}

.site-footer__social-link--facebook::before  { content: 'f'; }
.site-footer__social-link--instagram::before { content: 'i'; }
.site-footer__social-link--linkedin::before  { content: 'in'; font-size: 0.8rem; }
.site-footer__social-link--youtube::before   { content: 'Y'; }
.site-footer__social-link--twitter::before   { content: 'X'; }
.site-footer__social-link--tiktok::before    { content: 't'; }

/* ---------- Footer bottom bar ---------- */
.site-footer__bottom-bar {
	background: var(--color-brand-deep);
	color: #ffffff;
	font-size: 13px;
	padding: 0.85rem 1rem;
}

.site-footer__bottom-container {
	max-width: var(--container);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: flex-start;
}

@media (min-width: 768px) {
	.site-footer__bottom-container {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 1rem;
	}
}

.site-footer__emergency {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #ffffff;
}

.site-footer__emergency-label { color: #ffffff; }

.site-footer__emergency-icon {
	color: var(--color-brand);
	font-size: 14px;
	line-height: 1;
}

.site-footer__emergency-phone {
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
}

.site-footer__copyright {
	color: #ffffff;
}

.site-footer__copyright a {
	color: #ffffff;
	text-decoration: underline;
}

@media (min-width: 768px) {
	.site-footer__copyright { text-align: right; }
}

/* ---------- Back-to-top button ---------- */
.site-back-to-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--color-brand);
	color: #ffffff;
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s, transform 0.25s, background 0.2s;
	z-index: 90;
}

.site-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.site-back-to-top:hover,
.site-back-to-top:focus-visible {
	background: var(--color-brand-dark);
}

.site-back-to-top__icon { line-height: 1; }

/* ---------- Archive default ---------- */
.archive,
.news-archive,
.error-404 {
	padding-block: 3rem;
}

.archive__container,
.news-archive__container,
.error-404__container {
	max-width: var(--container);
	margin: 0 auto;
	padding-inline: 1rem;
}

.news-archive__title,
.archive__title,
.error-404__title {
	color: var(--color-heading-h2);
	font-size: 30px;
	font-weight: 400;
}

.news-archive__grid {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.news-archive__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.news-archive__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 1280px) {
	.news-archive__grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

.news-archive__body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.news-archive__date {
	margin: 0 0 0.5rem;
	font-size: 12px;
	color: var(--color-brand);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
}

.news-archive__location {
	margin: 0 0 0.75rem;
	font-size: 12px;
	color: var(--color-text);
	line-height: 1.5;
}

.news-archive__article {
	background: #fff;
	border: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.news-archive__image {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.news-archive__post-title {
	font-size: 14px;
	margin: 0 0 0.5rem;
	color: var(--color-heading-h2);
	font-weight: 400;
	line-height: 1.4;
}

.news-archive__post-title a { color: inherit; }

.news-archive__excerpt {
	margin: 0 0 1rem;
	font-size: 12px;
	color: var(--color-text);
}

.news-archive__more {
	margin: auto 0 0;
	display: inline-block;
	font-weight: 400;
	font-size: 12px;
	color: var(--color-brand);
	width: fit-content;
}

.news-archive__more:hover,
.news-archive__more:focus-visible {
	color: var(--color-brand-dark);
	text-decoration: underline;
}

.news-archive__more:hover,
.news-archive__more:focus-visible {
	background: var(--color-brand);
	color: #fff;
}

/* ---------- Search form ---------- */
.search-form {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.search-form__input {
	flex: 1;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 0;
	font-size: 13px;
	font-family: var(--font-body);
}

.search-form__submit {
	padding: 0.5rem 1.25rem;
	background: var(--color-brand);
	color: #fff;
	border: 0;
	font-weight: 400;
	border-radius: 24px;
}

.search-form__submit:hover,
.search-form__submit:focus-visible {
	background: var(--color-brand-dark);
}

/* ---------- Contact columns wrapper (page #7992)
 * Live structure: 2-col grid-3-5 + grid-2-5 (60/40).
 * Strip the full-width padding of nested blocks so they sit flush in columns. */
.contact-columns {
	max-width: var(--container, 1260px);
	margin: 0 auto;
	padding: 30px 1rem;
	gap: 30px;
}

.contact-columns .contact-info,
.contact-columns .cta-banner,
.contact-columns .contact-form {
	padding: 0;
	background: transparent;
}

.contact-columns .contact-info__container,
.contact-columns .cta-banner__container,
.contact-columns .contact-form__container {
	max-width: none;
	padding: 0;
}

.contact-columns .cta-banner {
	margin-top: 1.5rem;
	padding: 1.25rem;
	background: var(--color-bg-alt);
}

.contact-columns .cta-banner__container {
	padding: 0;
}

@media (max-width: 1023px) {
	.contact-columns .wp-block-column[style] {
		flex-basis: 100% !important;
	}
}
