/*
Theme Name: Sh-Hospital
Theme URI: https://github.com/kulangaraalwinjoy/wp-sh-hospital
Author: Alwin Joy
Author URI: mailto:kulangaraalwinjoy@gmail.com
Description: Highly customizable proprietary WordPress theme for Sh-Hospital, powered by ThemeFramework.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
License URI: https://github.com/kulangaraalwinjoy/wp-sh-hospital
Text Domain: sh-hospital
*/

/* -------------------------------------------------------------------------
 * 1. Hero Banner Safe Spacing (Guarantees zero overlap with top navigation)
 * ------------------------------------------------------------------------- */
.sh-hero-banner {
	padding-top: 105px !important;
	padding-bottom: 22px !important;
}

@media screen and (min-width: 640px) {
	.sh-hero-banner {
		padding-top: 115px !important;
		padding-bottom: 25px !important;
	}
}

@media screen and (min-width: 1024px) {
	.sh-hero-banner {
		padding-top: 125px !important;
		padding-bottom: 28px !important;
	}
}

/* Offset when WordPress Admin Bar is visible */
body.admin-bar .sh-hero-banner {
	padding-top: 137px !important;
}

@media screen and (min-width: 640px) {
	body.admin-bar .sh-hero-banner {
		padding-top: 147px !important;
	}
}

@media screen and (min-width: 1024px) {
	body.admin-bar .sh-hero-banner {
		padding-top: 157px !important;
	}
}

/* -------------------------------------------------------------------------
 * 2. Page Content Top Spacing When Header Banner is Disabled
 * ------------------------------------------------------------------------- */
.sh-no-header {
	padding-top: 140px !important;
}

@media screen and (min-width: 640px) {
	.sh-no-header {
		padding-top: 160px !important;
	}
}

body.admin-bar .sh-no-header {
	padding-top: 172px !important;
}

@media screen and (min-width: 640px) {
	body.admin-bar .sh-no-header {
		padding-top: 192px !important;
	}
}

/* -------------------------------------------------------------------------
 * 3. Hero Banner Layout (Side-by-Side on Mobile & Desktop matching Mockup)
 * ------------------------------------------------------------------------- */
.sh-hero-layout {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0.875rem;
	width: 100%;
}

@media screen and (min-width: 640px) {
	.sh-hero-layout {
		gap: 1.75rem;
	}
}

@media screen and (min-width: 1024px) {
	.sh-hero-layout {
		gap: 2.5rem;
	}
}

/* Hero Text Column */
.sh-hero-text-col {
	flex: 1 1 auto;
	min-width: 0; /* Prevents long titles or excerpts from breaking flex layout */
}

/* Hero Breadcrumb / Navigation */
.sh-hero-nav nav,
.sh-hero-nav > div {
	margin-bottom: 0.25rem !important;
	font-size: 0.6875rem !important; /* 11px */
	line-height: 1.3 !important;
}

@media screen and (min-width: 640px) {
	.sh-hero-nav nav,
	.sh-hero-nav > div {
		margin-bottom: 0.5rem !important;
		font-size: 0.75rem !important; /* 12px */
	}
}

.sh-hero-back-link {
	font-size: 0.6875rem;
}
@media screen and (min-width: 640px) {
	.sh-hero-back-link {
		font-size: 0.75rem;
	}
}

/* Hero Tagline */
.sh-hero-tagline {
	font-size: 0.6875rem; /* 11px */
	line-height: 1.25;
	letter-spacing: 0.08em;
	margin-bottom: 0.2rem;
}
@media screen and (min-width: 640px) {
	.sh-hero-tagline {
		font-size: 0.75rem;
		margin-bottom: 0.35rem;
	}
}

/* Hero Title */
.sh-hero-title {
	font-size: 1.15rem; /* ~18.5px on compact mobile */
	line-height: 1.25;
	margin-bottom: 0.35rem;
}
@media screen and (min-width: 380px) {
	.sh-hero-title {
		font-size: 1.25rem; /* ~20px */
	}
}
@media screen and (min-width: 480px) {
	.sh-hero-title {
		font-size: 1.45rem; /* ~23px */
	}
}
@media screen and (min-width: 640px) {
	.sh-hero-title {
		font-size: 1.75rem; /* ~28px */
		margin-bottom: 0.5rem;
	}
}
@media screen and (min-width: 1024px) {
	.sh-hero-title {
		font-size: 2.15rem; /* ~34px */
		line-height: 1.2;
		margin-bottom: 0.65rem;
	}
}

/* Hero Excerpt */
.sh-hero-excerpt {
	font-size: 0.72rem; /* ~11.5px on compact mobile */
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 0.5rem;
	max-width: 42rem;
}
@media screen and (min-width: 480px) {
	.sh-hero-excerpt {
		font-size: 0.78rem;
		line-height: 1.5;
	}
}
@media screen and (min-width: 640px) {
	.sh-hero-excerpt {
		font-size: 0.8125rem;
		line-height: 1.55;
		margin-bottom: 0.85rem;
	}
}
@media screen and (min-width: 1024px) {
	.sh-hero-excerpt {
		font-size: 0.875rem;
		line-height: 1.6;
		margin-bottom: 1rem;
	}
}

/* Hero Action Button */
.sh-hero-action {
	margin-top: 0.25rem;
}
.sh-hero-btn {
	padding: 0.35rem 0.85rem;
	font-size: 0.6875rem;
	line-height: 1.2;
}
@media screen and (min-width: 640px) {
	.sh-hero-btn {
		padding: 0.5rem 1.15rem;
		font-size: 0.75rem;
	}
}

/* Hero Image Column & Frame */
.sh-hero-image-col {
	flex: 0 0 auto;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.sh-hero-image-frame {
	position: relative;
	width: 115px; /* Compact side-by-side on mobile */
}
@media screen and (min-width: 380px) {
	.sh-hero-image-frame {
		width: 128px;
	}
}
@media screen and (min-width: 480px) {
	.sh-hero-image-frame {
		width: 148px;
	}
}
@media screen and (min-width: 640px) {
	.sh-hero-image-frame {
		width: 175px;
	}
}
@media screen and (min-width: 1024px) {
	.sh-hero-image-frame {
		width: 220px;
	}
}

/* Botanical Leaf Accents behind the card */
.sh-hero-leaf-accent-top {
	display: none;
	position: absolute;
	right: -0.75rem;
	top: -0.75rem;
	width: 5rem;
	height: 5rem;
	pointer-events: none;
	color: rgba(52, 211, 153, 0.2);
	z-index: 1;
}

.sh-hero-leaf-accent-bottom {
	display: none;
	position: absolute;
	left: -0.75rem;
	bottom: -0.75rem;
	width: 4rem;
	height: 4rem;
	pointer-events: none;
	color: rgba(96, 165, 250, 0.25);
	z-index: 1;
}

@media screen and (min-width: 640px) {
	.sh-hero-leaf-accent-top,
	.sh-hero-leaf-accent-bottom {
		display: block;
	}
}

/* Subtle Ambient Glow */
.sh-hero-ambient-glow {
	position: absolute;
	inset: -0.25rem;
	border-radius: 0.75rem;
	background-color: rgba(46, 125, 50, 0.25);
	filter: blur(6px);
	z-index: 1;
}

@media screen and (min-width: 640px) {
	.sh-hero-ambient-glow {
		inset: -0.5rem;
		border-radius: 1rem;
		filter: blur(12px);
	}
}

/* The Portrait Photo Frame */
.sh-hero-image-box {
	position: relative;
	z-index: 2;
	aspect-ratio: 4 / 5;
	border-radius: 0.75rem;
	overflow: hidden;
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 10px 22px -4px rgba(0, 0, 0, 0.35);
	background-color: rgba(10, 28, 62, 0.7);
}

@media screen and (min-width: 640px) {
	.sh-hero-image-box {
		border-radius: 1.25rem;
		border-width: 2px;
	}
}

.sh-hero-image-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

/* WordPress Page Builder Content Area */
.site-page-content {
	min-height: 350px;
	padding-top: 3.5rem;
	padding-bottom: 3.5rem;
}

@media screen and (min-width: 640px) {
	.site-page-content {
		padding-top: 4.5rem;
		padding-bottom: 4.5rem;
	}
}

@media screen and (min-width: 1024px) {
	.site-page-content {
		padding-top: 5rem;
		padding-bottom: 5rem;
	}
}

