/**
 * Pocari SAB — main styles
 *
 * @package Pocari_SAB
 */

:root {
	--sab-blue: #0055b8;
	--sab-blue-dark: #003366;
	--sab-blue-mid: #2e7fd4;
	--sab-blue-light: #d4eef9;
	--sab-blue-hero: linear-gradient(180deg, #3d8fd4 0%, #0055b8 55%, #004a9f 100%);
	--sab-white: #ffffff;
	--sab-text: #1a1a1a;
	--sab-text-muted: #4a4a4a;
	--sab-navy: #0d47a1;
	--sab-orange: #f57c00;
	--sab-red: #d32f2f;
	--sab-radius: 12px;
	--sab-radius-lg: 20px;
	--sab-shadow: 0 8px 32px rgba(0, 53, 102, 0.12);
	--sab-container: min(1120px, calc(100% - 3rem));
	--sab-font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
	margin: 0;
	font-family: var(--sab-font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--sab-text);
	background: var(--sab-white);
}

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

a {
	color: var(--sab-blue);
}

a:hover {
	text-decoration-thickness: 2px;
}

.sab-container {
	width: var(--sab-container);
	margin-inline: auto;
}

/* Header */
.sab-header {
	background: var(--sab-white);
}

.sab-header__brand {
	padding: 1rem 0 0.75rem;
}

.sab-header__logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--sab-blue);
}

.sab-header__site-title {
	display: flex;
	flex-direction: column;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.04em;
	font-size: 0.75rem;
}

.sab-header__site-title-main {
	font-size: 0.85rem;
}

.sab-nav {
	background: var(--sab-blue);
}

.sab-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 2rem;
	list-style: none;
	margin: 0;
	padding: 0.85rem 0;
}

.sab-nav__list a {
	color: var(--sab-white);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}

.sab-nav__list a:hover,
.sab-nav__list .current-menu-item a {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Sections */
.sab-section {
	position: relative;
}

.sab-eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sab-blue-mid);
}

.sab-eyebrow--light {
	color: rgba(255, 255, 255, 0.9);
}

.sab-section__title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	line-height: 1.2;
	color: var(--sab-blue);
	font-weight: 700;
}

.sab-section__title--light {
	color: var(--sab-white);
}

/* Wave dividers */
.sab-wave {
	height: 48px;
	background-repeat: repeat-x;
	background-size: 1200px 48px;
	background-position: center bottom;
}

.sab-wave--bottom {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
}

.sab-wave--top {
	position: absolute;
	left: 0;
	right: 0;
	top: -1px;
	transform: rotate(180deg);
}

.sab-wave--white {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 24c150-24 300 24 450 0s300 24 450 0 300 24 450 0 300-24 450 0V48H0z'/%3E%3C/svg%3E");
}

.sab-heat .sab-wave--top,
.sab-resources .sab-wave--top {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath fill='%23d4eef9' d='M0 24c150-24 300 24 450 0s300 24 450 0 300 24 450 0 300-24 450 0V48H0z'/%3E%3C/svg%3E");
}

/* Hero */
.sab-hero {
	background: var(--sab-blue-hero);
	color: var(--sab-white);
	padding: 3.5rem 0 5rem;
}

.sab-hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: center;
}

.sab-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.15;
	font-weight: 700;
}

.sab-hero__lead {
	margin: 0;
	font-size: 1.05rem;
	opacity: 0.95;
	max-width: 36ch;
}

.sab-hero__media img {
	border-radius: var(--sab-radius-lg);
	box-shadow: var(--sab-shadow);
	object-fit: cover;
	width: 100%;
	min-height: 280px;
}

/* About */
.sab-about {
	padding: 4rem 0;
	background: var(--sab-white);
}

.sab-about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: center;
}

.sab-about__content p {
	color: var(--sab-text-muted);
	margin: 0 0 1rem;
}

.sab-about__media img {
	border-radius: var(--sab-radius-lg);
	box-shadow: var(--sab-shadow);
	object-fit: cover;
	width: 100%;
	min-height: 260px;
}

/* Heat illness */
.sab-heat {
	background: var(--sab-blue-light);
	padding: 4.5rem 0 4rem;
	color: var(--sab-blue-dark);
}

.sab-heat__header {
	text-align: center;
	max-width: 42rem;
	margin-bottom: 2.5rem;
}

.sab-heat__intro {
	margin: 0 auto 1.5rem;
	color: var(--sab-blue-dark);
	opacity: 0.9;
}

.sab-heat__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.75rem;
}

.sab-heat-column {
	display: flex;
	flex-direction: column;
}

.sab-heat-tab {
	border-radius: var(--sab-radius) var(--sab-radius) 0 0;
	padding: 0.75rem 0.5rem 1rem;
	color: var(--sab-white);
	font-weight: 700;
	font-size: 0.72rem;
	line-height: 1.2;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
}

.sab-heat-tab--navy { background: var(--sab-navy); }
.sab-heat-tab--blue { background: var(--sab-blue-mid); }
.sab-heat-tab--orange { background: var(--sab-orange); }
.sab-heat-tab--red { background: var(--sab-red); }

.sab-heat-tab__icon {
	width: 28px;
	height: 36px;
	background: rgba(255, 255, 255, 0.85);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Ccircle cx='12' cy='6' r='5'/%3E%3Cpath d='M4 30c2-10 14-10 16 0z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Ccircle cx='12' cy='6' r='5'/%3E%3Cpath d='M4 30c2-10 14-10 16 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sab-heat-card {
	background: var(--sab-white);
	border-radius: 0 0 var(--sab-radius) var(--sab-radius);
	box-shadow: var(--sab-shadow);
	overflow: hidden;
	flex: 1;
	margin-top: -2px;
}

.sab-heat-card__banner {
	height: 100px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 0.5rem;
}

.sab-heat-card__banner.sab-heat-tab--navy { background: var(--sab-navy); }
.sab-heat-card__banner.sab-heat-tab--blue { background: var(--sab-blue-mid); }
.sab-heat-card__banner.sab-heat-tab--orange { background: var(--sab-orange); }
.sab-heat-card__banner.sab-heat-tab--red { background: var(--sab-red); }

.sab-heat-card__figure {
	width: 40px;
	height: 52px;
	background: rgba(255, 255, 255, 0.9);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Ccircle cx='12' cy='6' r='5'/%3E%3Cpath d='M4 30c2-10 14-10 16 0z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Ccircle cx='12' cy='6' r='5'/%3E%3Cpath d='M4 30c2-10 14-10 16 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sab-heat-card__body {
	padding: 1rem 1.1rem 1.25rem;
}

.sab-heat-card__body h3 {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	color: var(--sab-blue);
}

.sab-heat-card__body p {
	margin: 0;
	font-size: 0.88rem;
	color: var(--sab-text-muted);
	line-height: 1.5;
}

/* Buttons */
.sab-btn {
	display: inline-block;
	padding: 0.65rem 1.35rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.sab-btn--primary {
	background: var(--sab-blue);
	color: var(--sab-white);
}

.sab-btn--primary:hover {
	background: var(--sab-blue-dark);
	color: var(--sab-white);
}

.sab-btn--outline-light {
	background: transparent;
	color: var(--sab-white);
	border-color: var(--sab-white);
}

.sab-btn--outline-light:hover {
	background: var(--sab-white);
	color: var(--sab-blue);
}

/* Members */
.sab-members {
	padding: 4rem 0;
	background: var(--sab-white);
}

.sab-members__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem 1.75rem;
	margin-top: 2rem;
}

.sab-member-card {
	background: var(--sab-white);
	border-radius: var(--sab-radius-lg);
	box-shadow: var(--sab-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.sab-member-card__media {
	position: relative;
	background: var(--sab-blue-light);
	min-height: 220px;
}

.sab-member-card__photo {
	width: 100%;
	height: 280px;
	object-fit: cover;
	object-position: top center;
}

.sab-member-card__photo--placeholder {
	background: linear-gradient(180deg, #a8d4f0 0%, #6eb5e8 100%);
	height: 280px;
}

.sab-member-card__wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 32px;
	background: var(--sab-white);
	clip-path: ellipse(55% 100% at 50% 100%);
}

.sab-member-card__media--partner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	background: var(--sab-blue-light);
}

.sab-member-card__partner-logo {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--sab-blue);
	letter-spacing: 0.02em;
}

.sab-member-card__body {
	padding: 1.25rem 1.5rem 1.5rem;
	background: linear-gradient(180deg, #eef7fc 0%, #f8fcff 100%);
	flex: 1;
}

.sab-member-card__name {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
	color: var(--sab-blue);
	font-weight: 700;
}

.sab-member-card__credentials {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	color: var(--sab-blue-mid);
	font-weight: 600;
}

.sab-member-card__bio {
	font-size: 0.92rem;
	color: var(--sab-text-muted);
}

.sab-member-card__bio p {
	margin: 0;
}

/* Resources */
.sab-resources {
	background: linear-gradient(180deg, var(--sab-blue-light) 0%, #b8dff5 100%);
	padding: 4.5rem 0 4rem;
}

.sab-resources__header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.sab-resources__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.sab-resource-card {
	background: var(--sab-white);
	border-radius: var(--sab-radius-lg);
	padding: 1.5rem;
	box-shadow: var(--sab-shadow);
	display: flex;
	flex-direction: column;
	min-height: 220px;
}

.sab-resource-card__tag {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sab-blue-mid);
}

.sab-resource-card__title {
	margin: 0 0 auto;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--sab-text);
	font-weight: 600;
	padding-bottom: 1rem;
}

.sab-resource-card__btn {
	align-self: flex-start;
	margin-top: 1rem;
}

/* Footer */
.sab-footer {
	background: var(--sab-blue-dark);
	color: var(--sab-white);
	padding: 3rem 0 0;
}

.sab-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 2rem;
	padding-bottom: 2rem;
}

.sab-footer__heading {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	font-weight: 700;
}

.sab-footer__about {
	margin: 1rem 0 0;
	font-size: 0.9rem;
	line-height: 1.6;
	opacity: 0.9;
	max-width: 28ch;
}

.sab-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sab-footer__links a {
	color: var(--sab-white);
	text-decoration: none;
	font-size: 0.92rem;
}

.sab-footer__links a:hover {
	text-decoration: underline;
}

.sab-footer__links li + li {
	margin-top: 0.5rem;
}

.sab-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding: 1rem 0 1.5rem;
	font-size: 0.8rem;
	opacity: 0.75;
}

.sab-footer__legal p {
	margin: 0 0 1rem;
}

.sab-footer__legal p:last-child {
	margin-bottom: 0;
}

.sab-footer__disclaimer-title {
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
	font-weight: 700;
}

/* Page / editor body */
.sab-body__editor {
	padding-bottom: 3rem;
}

.sab-page-header {
	padding: 2.5rem 0 1rem;
}

.sab-page-header__title {
	margin: 0;
	color: var(--sab-blue);
	font-size: 2rem;
}

/* Responsive */
@media (max-width: 960px) {
	.sab-hero__grid,
	.sab-about__grid {
		grid-template-columns: 1fr;
	}

	.sab-heat__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sab-members__grid {
		grid-template-columns: 1fr;
	}

	.sab-resources__grid {
		grid-template-columns: 1fr;
	}

	.sab-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.sab-heat__grid {
		grid-template-columns: 1fr;
	}

	.sab-nav__list {
		gap: 0.5rem 1rem;
	}

	.sab-footer__grid {
		grid-template-columns: 1fr;
	}
}
