/* ============================================================
 * 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;
	padding-bottom: 45px;             /* live article has ~45px space above the footer */
}

.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 — 1:1 with live (gynonc.com.sg) ---------- */
.site-footer {
	background: var(--color-brand-dark);   /* #257574 */
	color: #ffffff;
	padding: 25px 0;                       /* live .footer-sidebars-wrapper padding */
	margin-top: 0;
	font: 15px/18px Arial, Helvetica, sans-serif;
}

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

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

.site-footer__container {
	max-width: 1260px;                     /* live row width */
	margin: 0 auto;
	padding: 0 30px;                       /* matches live 60px row padding split */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;                             /* live tagline margin-top equivalent */
	text-align: left;
}

.site-footer__logo-img {
	max-height: 107px;                     /* exact live logo height */
	width: auto;
	display: block;
}

.site-footer__tagline {
	font: 15px/18px Arial, Helvetica, sans-serif;
	color: #ffffff;
	margin: 0;
}

.site-footer__tagline p {
	margin: 0;
}

.site-footer__tagline a {
	color: #aaeaea;                        /* live link color in footer */
	text-decoration: underline;
}

.site-footer__social-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
}

.site-footer__social-label {
	color: #ffffff;
	font: 15px/18px Arial, Helvetica, sans-serif;
	margin: 0;
}

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

.site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--color-brand-deep);   /* #155352 deep teal circle */
	color: #aaeaea;
	font-size: 0;
	text-decoration: none;
	position: relative;
	transition: background 0.3s, color 0.3s;
}

.site-footer__social-link::before {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1;
	font-weight: 700;
	color: #aaeaea;                        /* live light-cyan icon color */
}

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

.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: 13px; }
.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 (.copyrights on live) ----------
 * Same teal as main footer (#257574), 5px 30px padding, 13px/14 Arial. */
.site-footer__bottom-bar {
	background: var(--color-brand-dark);   /* #257574 — SAME as main footer */
	color: #ffffff;
	font: 13px/14px Arial, Helvetica, sans-serif;
	padding: 5px 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__bottom-container {
	max-width: 1260px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
	padding: 15.6px 0;                     /* live <p> margin 15.6px 0 */
}

@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 & Events cards align with the page-banner (both 1140px on live). */
.news-archive__container {
	max-width: 1140px;
	padding-inline: 0;
}

@media (max-width: 1180px) {
	.news-archive__container {
		padding-inline: 1rem;
	}
}

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

/* News & Events cards — matched 1:1 to live gynonc.com.sg:
 * borderless, image on top, Droid Sans 13px/20px grey (#575b60),
 * bold title, "By Dr. Cindy Pang" byline, teal "Details" link, 5 per row. */
.news-archive__grid {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
	display: grid;
	gap: 30px 20px;
	grid-template-columns: 1fr;
}

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

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

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

.news-archive__article {
	background: none;
	border: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.news-archive__thumb {
	display: block;
	margin-bottom: 5px;
}

.news-archive__image {
	width: 100%;
	aspect-ratio: 178 / 109;
	height: auto;
	object-fit: cover;
	display: block;
}

/* Branded-logo fallback: show the whole logo (letterboxed) on a light panel
 * instead of cropping it. */
.news-archive__image--logo {
	object-fit: contain;
	background: #f4f6f6;
	padding: 14px;
	box-sizing: border-box;
}

.news-archive__body {
	padding: 0;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	font-family: "Droid Sans", Arial, Helvetica, sans-serif;
}

.news-archive__date {
	margin: 0;
	font-size: 13px;
	line-height: 20px;
	color: #575b60;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
}

.news-archive__post-title {
	margin: 0;
	font-size: 13px;
	line-height: 20px;
	color: #575b60;
	font-weight: 700;
	font-family: inherit;
}

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

.news-archive__byline,
.news-archive__location {
	margin: 0;
	font-size: 13px;
	line-height: 20px;
	color: #575b60;
	font-weight: 400;
}

.news-archive__more {
	margin: 8px 0 0;
	display: inline-block;
	font-weight: 400;
	font-size: 13px;
	color: #50c4c3;
	width: fit-content;
	text-decoration: none;
}

.news-archive__more:hover,
.news-archive__more:focus-visible {
	color: #257574;
	text-decoration: underline;
	background: none;
}

/* ---------- 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: 0;
	padding: 0;
	background: transparent;
	text-align: center;
}

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

/* ============================================================ *
 * Contact section typography — matched 1:1 to live gynonc.com.sg:
 * Droid Sans 13px / 20px, grey #575b60, centered; teal links;
 * small bold headings (not large teal); filled bright-teal Send pill.
 * ============================================================ */
.contact-columns .contact-info,
.contact-columns .cta-banner {
	font-family: "Droid Sans", Arial, Helvetica, sans-serif;
	text-align: center;
}

/* Headings — live renders these as small bold grey text, centered */
.contact-columns .contact-info__heading,
.contact-columns .cta-banner__heading,
.contact-columns .contact-form__heading {
	font-family: "Droid Sans", Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 20px;
	font-weight: 700;
	color: #575b60;
	text-align: center;
	margin: 16px 0;
}

/* Address, lead + body copy */
.contact-columns .contact-info__address,
.contact-columns .cta-banner__body,
.contact-columns .contact-form__lead {
	font-size: 13px;
	line-height: 20px;
	color: #575b60;
	text-align: center;
	font-style: normal;
	margin: 16px 0;
}

/* Tel / WhatsApp / Fax / Email + hours → centered "Label: value" lines */
.contact-columns .contact-info__list,
.contact-columns .contact-info__hours-list {
	margin: 16px 0;
}
.contact-columns .contact-info__row,
.contact-columns .contact-info__hours-row {
	display: block;
	border: 0;
	padding: 2px 0;
	text-align: center;
	font-size: 13px;
	line-height: 20px;
	gap: 0;
}
.contact-columns .contact-info__row dt,
.contact-columns .contact-info__hours-row dt {
	display: inline;
	flex: none;
	font-size: 13px;
	font-weight: 400;
	color: #575b60;
}
.contact-columns .contact-info__row dt::after,
.contact-columns .contact-info__hours-row dt::after {
	content: ": ";
}
.contact-columns .contact-info__row dd,
.contact-columns .contact-info__hours-row dd {
	display: inline;
	margin: 0;
	font-size: 13px;
	color: #575b60;
}
.contact-columns .contact-info__row a,
.contact-columns .contact-info__hours-row a {
	color: #50c4c3;
}
.contact-columns .contact-info__hours-title {
	font-size: 13px;
	font-weight: 700;
	color: #575b60;
	text-align: center;
	margin: 16px 0 4px;
}

/* "Visit Ascensus Health" → plain teal link (live shows an inline "Main Page" link) */
.contact-columns .cta-banner__button {
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	border-radius: 0;
	color: #50c4c3;
	font-size: 13px;
	font-weight: 400;
}
.contact-columns .cta-banner__button:hover,
.contact-columns .cta-banner__button:focus-visible {
	background: none;
	color: #257574;
	text-decoration: underline;
}

/* Form column — fields left-aligned, labels 13px grey, 13px inputs,
 * Send = filled bright-teal pill with white text (live). */
.contact-columns .contact-form {
	font-family: "Droid Sans", Arial, Helvetica, sans-serif;
	text-align: left;
}
.contact-columns .contact-form__header {
	text-align: center;
}
.contact-columns .contact-form label {
	font-size: 13px;
	color: #575b60;
	font-weight: 400;
}
.contact-columns .contact-form input[type="text"],
.contact-columns .contact-form input[type="email"],
.contact-columns .contact-form input[type="tel"],
.contact-columns .contact-form textarea {
	font-size: 13px;
	border: 1px solid #dadade;
	border-radius: 0;
	padding: 12px;
}
.contact-columns .contact-form input[type="submit"],
.contact-columns .contact-form button[type="submit"] {
	background: #43dcdb;
	color: #fff;
	border: 0;
	border-radius: 21px;
	padding: 8px 24px;
	font-size: 14px;
	cursor: pointer;
}
.contact-columns .contact-form input[type="submit"]:hover,
.contact-columns .contact-form button[type="submit"]:hover {
	background: #2fc9c8;
	color: #fff;
}

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

/* /for-patients/ — "Back to Patient Information" link after the FAQ accordion.
 * Matches live's inspected computed styles: link rgb(80,194,194) #50c2c2,
 * Droid Sans 13px/20px, underlined, left-aligned, ~30px push spacer above. */
.gtk-back-link {
	max-width: 1140px;
	margin: 30px auto 15px;
	padding: 0;
	text-align: left;
	font-family: "Droid Sans", Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 20px;
}
.gtk-back-link a {
	color: #50c2c2;
	text-decoration: underline;
}
