/**
 * Safety, Care & Trust page styles.
 * Enqueued only when template templates/page-safety.php is used.
 *
 * @package Caterpillar_Care
 */

/* ==========================================================================
   Section: safety-hero
   ========================================================================== */

.safety-hero {
	position: relative;
	display: flex;
	align-items: center;
}

.safety-hero__bg {
	position: absolute;
	inset: 0;
	background-color: #8b7355;
	background-image: var(--safety-hero-bg, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.safety-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(120, 80, 50, 0.72) 0%, rgba(90, 60, 40, 0.65) 45%, rgba(180, 140, 90, 0.45) 100%);
	pointer-events: none;
}

.safety-hero__shape {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	opacity: 0.26;
}

.safety-hero__shape--1 {
	width: 90px;
	height: 90px;
	background: #fff;
	top: 20%;
	right: 10%;
	animation: safety-hero-float 8s ease-in-out infinite;
}

.safety-hero__shape--2 {
	width: 55px;
	height: 55px;
	background: #f5e6c8;
	bottom: 28%;
	left: 8%;
	animation: safety-hero-float 6s ease-in-out infinite 1s;
}

.safety-hero__shape--3 {
	width: 45px;
	height: 45px;
	background: rgba(255, 255, 255, 0.85);
	top: 52%;
	right: 14%;
	animation: safety-hero-float 7s ease-in-out infinite 0.5s;
}

@keyframes safety-hero-float {
	0%, 100% { transform: translate(0, 0); }
	33% { transform: translate(10px, -10px); }
	66% { transform: translate(-6px, 6px); }
}

.safety-hero__container {
	z-index: 2;
}

.safety-hero__title {
	font-family: var(--cc-font-heading);
	font-weight: 700;
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1.2;
	color: #fff;
	margin-bottom: var(--cc-space-sm);
	letter-spacing: 0.02em;
}

.safety-hero__subheadline {
	font-family: var(--cc-font-heading);
	font-weight: 600;
	font-size: clamp(1.1rem, 2.5vw, 1.4rem);
	color: rgba(255, 255, 255, 0.96);
	margin-bottom: var(--cc-space);
	letter-spacing: 0.02em;
}

.safety-hero__body {
	font-family: var(--cc-font-body);
	font-size: clamp(1rem, 2vw, 1.125rem);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.93);
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 0;
}

.safety-hero__wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23fefdfb' d='M0 80V50c80-15 160 15 240 15s160-30 240-30 160 15 240 15 160-30 240-30 160 15 240 15 160-30 240-30v50H0z'/%3E%3C/svg%3E") no-repeat bottom center;
	background-size: 100% 100px;
	pointer-events: none;
	z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
	.safety-hero__shape {
		animation: none;
	}
}

/* ==========================================================================
   Section: safety-promise-section
   ========================================================================== */

.safety-promise-section {
	background: linear-gradient(180deg, #fefdfb 0%, #f8faf5 50%, rgba(232, 245, 233, 0.35) 100%);
}

.safety-promise-section__heading {
	font-family: var(--cc-font-heading);
	font-weight: 700;
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	color: var(--cc-primary);
	margin-bottom: var(--cc-space);
	letter-spacing: 0.02em;
	line-height: 1.25;
}

.safety-promise-section__content {
	font-family: var(--cc-font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--cc-text);
}

.safety-promise-section__content p {
	margin-bottom: var(--cc-space);
}

.safety-promise-section__content p:last-child {
	margin-bottom: 0;
}

.safety-promise-section__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--cc-space);
}

.safety-promise-section__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: var(--cc-space-lg);
	background: #fff;
	border-radius: var(--cc-radius-2xl);
	box-shadow: var(--cc-shadow-soft);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.safety-promise-section__item:hover {
	transform: translateY(-4px);
	box-shadow: var(--cc-shadow-soft-lg);
}

.safety-promise-section__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	font-size: 1.35rem;
	margin-bottom: var(--cc-space-sm);
}

.safety-promise-section__item:nth-child(1) .safety-promise-section__icon { background: rgba(124, 179, 66, 0.2); color: var(--cc-primary); }
.safety-promise-section__item:nth-child(2) .safety-promise-section__icon { background: rgba(33, 150, 243, 0.2); color: #1976d2; }
.safety-promise-section__item:nth-child(3) .safety-promise-section__icon { background: rgba(255, 152, 0, 0.2); color: #e65100; }
.safety-promise-section__item:nth-child(4) .safety-promise-section__icon { background: rgba(156, 39, 176, 0.15); color: #7b1fa2; }

.safety-promise-section__label {
	font-family: var(--cc-font-heading);
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--cc-text);
}

@media (max-width: 575.98px) {
	.safety-promise-section__grid {
		gap: var(--cc-space-sm);
	}
	.safety-promise-section__item {
		padding: var(--cc-space);
	}
	.safety-promise-section__icon {
		width: 3rem;
		height: 3rem;
		font-size: 1.15rem;
	}
}

/* ==========================================================================
   Section: safety-cctv
   ========================================================================== */

.safety-cctv {
	background: linear-gradient(180deg, #f8faf5 0%, #fefdfb 100%);
}

.safety-cctv__card {
	background: #fff;
	border-radius: var(--cc-radius-2xl);
	box-shadow: var(--cc-shadow-soft);
	padding: var(--cc-space-lg);
	text-align: center;
}

.safety-cctv__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: rgba(33, 150, 243, 0.18);
	color: #1976d2;
	font-size: 1.5rem;
	margin-bottom: var(--cc-space);
}

.safety-cctv__heading {
	font-family: var(--cc-font-heading);
	font-weight: 700;
	font-size: clamp(1.35rem, 2.5vw, 1.65rem);
	color: var(--cc-primary);
	margin-bottom: var(--cc-space-sm);
	letter-spacing: 0.02em;
	line-height: 1.25;
}

.safety-cctv__body {
	font-family: var(--cc-font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--cc-text);
	margin: 0;
}

/* ==========================================================================
   Section: first-aid-staff
   ========================================================================== */

.first-aid-staff {
	background: #fff;
}

.first-aid-staff__card {
	background: #fff;
	border-radius: var(--cc-radius-2xl);
	box-shadow: var(--cc-shadow-soft);
	padding: var(--cc-space-lg);
	text-align: center;
}

.first-aid-staff__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: rgba(76, 175, 80, 0.18);
	color: #2e7d32;
	font-size: 1.5rem;
	margin-bottom: var(--cc-space);
}

.first-aid-staff__heading {
	font-family: var(--cc-font-heading);
	font-weight: 700;
	font-size: clamp(1.35rem, 2.5vw, 1.65rem);
	color: var(--cc-primary);
	margin-bottom: var(--cc-space-sm);
	letter-spacing: 0.02em;
	line-height: 1.25;
}

.first-aid-staff__body {
	font-family: var(--cc-font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--cc-text);
	margin-bottom: var(--cc-space-sm);
}

.first-aid-staff__body:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Section: female-team-section
   ========================================================================== */

.female-team-section {
	background: linear-gradient(180deg, #fefdfb 0%, #f8faf5 50%, rgba(232, 245, 233, 0.3) 100%);
}

.female-team-section__heading {
	font-family: var(--cc-font-heading);
	font-weight: 700;
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	color: var(--cc-primary);
	margin-bottom: var(--cc-space);
	letter-spacing: 0.02em;
	line-height: 1.25;
}

.female-team-section__content {
	font-family: var(--cc-font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--cc-text);
}

.female-team-section__content p {
	margin-bottom: var(--cc-space);
}

.female-team-section__content p:last-child {
	margin-bottom: 0;
}

.female-team-section__collage {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--cc-space-sm);
}

.female-team-section__collage-item {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
	border-radius: var(--cc-radius-xl);
	background-color: rgba(232, 245, 233, 0.5);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.female-team-section__collage-item--has-img {
	background-image: none !important;
}

.female-team-section__collage-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.female-team-section__collage-item--1 { background-image: var(--female-team-collage-1, none); }
.female-team-section__collage-item--2 { background-image: var(--female-team-collage-2, none); }
.female-team-section__collage-item--3 { background-image: var(--female-team-collage-3, none); }
.female-team-section__collage-item--4 { background-image: var(--female-team-collage-4, none); }

@media (max-width: 575.98px) {
	.female-team-section__collage {
		gap: var(--cc-space-xs);
	}
}

/* ==========================================================================
   Section: child-protection-protocols
   ========================================================================== */

.child-protection-protocols {
	background: linear-gradient(180deg, #f8faf5 0%, #fefdfb 50%, rgba(232, 245, 233, 0.35) 100%);
}

.child-protection-protocols__heading {
	font-family: var(--cc-font-heading);
	font-weight: 700;
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	color: var(--cc-primary);
	margin-bottom: var(--cc-space-lg);
	letter-spacing: 0.02em;
	line-height: 1.25;
	text-align: center;
}

.child-protection-protocols__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--cc-space);
}

.child-protection-protocols__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: var(--cc-space-lg);
	background: #fff;
	border-radius: var(--cc-radius-2xl);
	box-shadow: var(--cc-shadow-soft);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.child-protection-protocols__card:hover {
	transform: translateY(-6px);
	box-shadow: var(--cc-shadow-soft-lg);
}

.child-protection-protocols__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	font-size: 1.35rem;
	margin-bottom: var(--cc-space-sm);
}

.child-protection-protocols__card:nth-child(1) .child-protection-protocols__icon { background: rgba(124, 179, 66, 0.2); color: var(--cc-primary); }
.child-protection-protocols__card:nth-child(2) .child-protection-protocols__icon { background: rgba(33, 150, 243, 0.2); color: #1976d2; }
.child-protection-protocols__card:nth-child(3) .child-protection-protocols__icon { background: rgba(255, 152, 0, 0.2); color: #e65100; }
.child-protection-protocols__card:nth-child(4) .child-protection-protocols__icon { background: rgba(76, 175, 80, 0.2); color: #2e7d32; }

.child-protection-protocols__label {
	font-family: var(--cc-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--cc-text);
}

@media (max-width: 767.98px) {
	.child-protection-protocols__grid {
		grid-template-columns: 1fr;
		gap: var(--cc-space-sm);
	}
}

/* ==========================================================================
   Section: hygiene-standards
   ========================================================================== */

.hygiene-standards {
	background: #fff;
}

.hygiene-standards__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: 360px;
	border-radius: var(--cc-radius-2xl);
	overflow: hidden;
	background-color: rgba(232, 245, 233, 0.5);
	background-image: var(--hygiene-standards-image, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hygiene-standards__image--has-img {
	position: relative;
	background-image: none;
	background-color: rgba(232, 245, 233, 0.35);
	padding: 0;
}

.hygiene-standards__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hygiene-standards__image-placeholder {
	font-family: var(--cc-font-body);
	font-size: 0.9375rem;
	color: var(--cc-text);
	opacity: 0.7;
}

.hygiene-standards__card {
	background: #fff;
	border-radius: var(--cc-radius-2xl);
	box-shadow: var(--cc-shadow-soft);
	padding: var(--cc-space-lg);
}

.hygiene-standards__card--solo {
	text-align: center;
}

.hygiene-standards__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: rgba(76, 175, 80, 0.2);
	color: var(--cc-primary);
	font-size: 1.5rem;
	margin-bottom: var(--cc-space);
}

.hygiene-standards__heading {
	font-family: var(--cc-font-heading);
	font-weight: 700;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	color: var(--cc-primary);
	margin-bottom: var(--cc-space);
	letter-spacing: 0.02em;
	line-height: 1.25;
}

.hygiene-standards__body {
	font-family: var(--cc-font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--cc-text);
	margin-bottom: var(--cc-space);
}

.hygiene-standards__body:last-child {
	margin-bottom: 0;
}

@media (max-width: 991.98px) {
	.hygiene-standards__image {
		max-height: 280px;
	}

	.huskur-infirmary__image {
		max-height: 280px;
	}
}

/* ==========================================================================
   Section: huskur-infirmary
   ========================================================================== */

.huskur-infirmary {
	background: linear-gradient(180deg, #f8faf5 0%, #fefdfb 50%, rgba(232, 245, 233, 0.35) 100%);
}

.huskur-infirmary__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: 360px;
	border-radius: var(--cc-radius-2xl);
	overflow: hidden;
	background-color: rgba(232, 245, 233, 0.4);
	position: relative;
}

.huskur-infirmary__image--has-img {
	background-color: rgba(232, 245, 233, 0.25);
}

.huskur-infirmary__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.huskur-infirmary__card {
	background: #fff;
	border-radius: var(--cc-radius-2xl);
	box-shadow: var(--cc-shadow-soft);
	padding: var(--cc-space-lg);
	text-align: center;
}

.huskur-infirmary__card--with-image {
	text-align: left;
}

.huskur-infirmary__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: rgba(124, 179, 66, 0.2);
	color: var(--cc-primary);
	font-size: 1.5rem;
	margin-bottom: var(--cc-space);
}

.huskur-infirmary__heading {
	font-family: var(--cc-font-heading);
	font-weight: 700;
	font-size: clamp(1.35rem, 2.5vw, 1.65rem);
	color: var(--cc-primary);
	margin-bottom: var(--cc-space-sm);
	letter-spacing: 0.02em;
	line-height: 1.25;
}

.huskur-infirmary__body {
	font-family: var(--cc-font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--cc-text);
	margin-bottom: var(--cc-space-sm);
}

.huskur-infirmary__body:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Section: parent-communication
   ========================================================================== */

.parent-communication {
	background: linear-gradient(180deg, #fefdfb 0%, #f8faf5 50%, rgba(232, 245, 233, 0.35) 100%);
}

.parent-communication__icons {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--cc-space);
}

.parent-communication__icon-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: var(--cc-space-lg);
	background: #fff;
	border-radius: var(--cc-radius-2xl);
	box-shadow: var(--cc-shadow-soft);
}

.parent-communication__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	font-size: 1.35rem;
	margin-bottom: var(--cc-space-sm);
}

.parent-communication__icon-card:nth-child(1) .parent-communication__icon { background: rgba(37, 211, 102, 0.2); color: #25d366; }
.parent-communication__icon-card:nth-child(2) .parent-communication__icon { background: rgba(33, 150, 243, 0.2); color: #1976d2; }
.parent-communication__icon-card:nth-child(3) .parent-communication__icon { background: rgba(124, 179, 66, 0.2); color: var(--cc-primary); }
.parent-communication__icon-card:nth-child(4) .parent-communication__icon { background: rgba(255, 152, 0, 0.2); color: #e65100; }

.parent-communication__icon-label {
	font-family: var(--cc-font-heading);
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--cc-text);
}

.parent-communication__card {
	background: #fff;
	border-radius: var(--cc-radius-2xl);
	box-shadow: var(--cc-shadow-soft);
	padding: var(--cc-space-lg);
}

.parent-communication__heading {
	font-family: var(--cc-font-heading);
	font-weight: 700;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	color: var(--cc-primary);
	margin-bottom: var(--cc-space);
	letter-spacing: 0.02em;
	line-height: 1.25;
}

.parent-communication__body {
	font-family: var(--cc-font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--cc-text);
	margin-bottom: var(--cc-space);
}

.parent-communication__list-intro {
	font-family: var(--cc-font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--cc-text);
	margin-bottom: var(--cc-space-xs);
}

.parent-communication__list {
	font-family: var(--cc-font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--cc-text);
	margin: 0;
	padding-left: 1.25rem;
}

.parent-communication__list li {
	margin-bottom: var(--cc-space-xs);
}

.parent-communication__list li:last-child {
	margin-bottom: 0;
}

@media (max-width: 575.98px) {
	.parent-communication__icons {
		gap: var(--cc-space-sm);
	}
	.parent-communication__icon-card {
		padding: var(--cc-space);
	}
}

/* ==========================================================================
   Section: safety-final-cta
   ========================================================================== */

.safety-final-cta {
	position: relative;
	background: linear-gradient(180deg, #f5f9f2 0%, #fefdfb 50%, rgba(232, 245, 233, 0.4) 100%);
	overflow: hidden;
}

.safety-final-cta__shape {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	opacity: 0.28;
}

.safety-final-cta__shape--1 {
	width: 80px;
	height: 80px;
	background: var(--cc-leaf);
	top: 18%;
	left: 6%;
	animation: safety-final-cta-float 8s ease-in-out infinite;
}

.safety-final-cta__shape--2 {
	width: 50px;
	height: 50px;
	background: var(--cc-yellow);
	bottom: 22%;
	right: 8%;
	animation: safety-final-cta-float 6s ease-in-out infinite 1s;
}

.safety-final-cta__shape--3 {
	width: 40px;
	height: 40px;
	background: var(--cc-primary);
	top: 50%;
	right: 12%;
	animation: safety-final-cta-float 7s ease-in-out infinite 0.5s;
}

@keyframes safety-final-cta-float {
	0%, 100% { transform: translate(0, 0); }
	33% { transform: translate(8px, -10px); }
	66% { transform: translate(-6px, 6px); }
}

.safety-final-cta__heading {
	font-family: var(--cc-font-heading);
	font-weight: 700;
	font-size: clamp(1.5rem, 3vw, 1.875rem);
	color: var(--cc-primary);
	margin-bottom: var(--cc-space);
	letter-spacing: 0.02em;
	position: relative;
	z-index: 1;
}

.safety-final-cta__text {
	font-family: var(--cc-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--cc-text);
	margin-bottom: var(--cc-space-lg);
	position: relative;
	z-index: 1;
}

.safety-final-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--cc-space-sm);
	position: relative;
	z-index: 1;
}

.safety-final-cta__btn {
	font-family: var(--cc-font-heading);
	font-weight: 700;
	padding: 0.8rem 1.75rem;
	border-radius: var(--cc-radius-full);
	font-size: 1rem;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.safety-final-cta__btn--primary {
	background: var(--cc-primary);
	color: #fff;
	border: none;
}

.safety-final-cta__btn--primary:hover {
	background: var(--cc-primary-dark);
	color: #fff;
}

.safety-final-cta__btn--outline {
	background: transparent;
	color: var(--cc-primary);
	border: 2px solid var(--cc-primary);
}

.safety-final-cta__btn--outline:hover {
	background: var(--cc-primary);
	color: #fff;
}

.safety-final-cta__btn.safety-final-cta__btn--bounce {
	animation: safety-final-cta-btn-bounce 0.6s ease;
}

@keyframes safety-final-cta-btn-bounce {
	0%, 100% { transform: scale(1); }
	30% { transform: scale(1.08); }
	50% { transform: scale(0.96); }
	70% { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
	.safety-final-cta__shape {
		animation: none;
	}
	.safety-final-cta__btn.safety-final-cta__btn--bounce {
		animation: none;
	}
}
