/**
 * The Opal Standard of Care™ Page Styles
 * Modern, Professional Design (Following Preceptor Program pattern)
 * 
 * @package CARE-INF
 * @since 1.0.0
 */

/* =====================================================
   CSS VARIABLES
   ===================================================== */

:root {
	--os-primary: #1a3a5f;
	--os-accent: #d4af37;
	--os-accent-dark: #b8942e;
	--os-text-dark: #1a3a5f;
	--os-text-light: #4b5563;
	--os-bg-light: #f9fafb;
	--os-border: #e5e7eb;
	--os-success: #10b981;
	--os-info: #3b82f6;
}

/* =====================================================
   PAGE WRAPPER
   ===================================================== */

.site-main.page-opal-standard-care {
	max-width: 100%;
	margin: 0;
	padding: 0;
	width: 100%;
}

/* =====================================================
   CONTAINERS
   ===================================================== */

.os-container {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 2rem;
	padding-right: 2rem;
}

.os-container--narrow {
	max-width: 900px;
}

.os-container--wide {
	max-width: 1300px;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.os-hero {
	background: linear-gradient(135deg, var(--os-primary) 0%, #2d5a8c 100%);
	color: #ffffff;
	padding: 10rem 0 9rem;
	position: relative;
	overflow: hidden;
	text-align: center;
	margin-top: -90px;
}

.os-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="heroGrid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(212,175,55,0.08)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23heroGrid)" /></svg>');
	opacity: 0.4;
	animation: gridPulse 20s ease-in-out infinite;
}

@keyframes gridPulse {
	0%, 100% { opacity: 0.4; }
	50% { opacity: 0.6; }
}

.os-hero__content {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin: 0 auto;
	animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.os-hero__eyebrow {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--os-accent);
	margin-bottom: 1rem;
	padding: 0.4rem 1rem;
	background: rgba(212, 175, 55, 0.15);
	border-radius: 30px;
	border: 1px solid rgba(212, 175, 55, 0.3);
}

.os-hero__title {
	font-family: var(--care-inf-heading-font, 'Merriweather', Georgia, serif);
	font-size: clamp(2.2rem, 5vw, 3.5rem);
	font-weight: 700;
	margin: 0 0 1.5rem;
	line-height: 1.2;
	color: #ffffff;
}

.os-hero__subtitle {
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 2rem;
	font-weight: 400;
}

.os-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	background: var(--os-accent);
	color: #ffffff;
	padding: 1rem 2.5rem;
	border-radius: 8px;
	font-size: 1.05rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.os-hero__cta:hover {
	background: var(--os-accent-dark);
	transform: translateY(-3px);
	box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
	color: #ffffff;
}

/* =====================================================
   WHAT IT IS SECTION
   ===================================================== */

.os-what-it-is {
	padding: 5rem 0;
	background: #ffffff;
}

.os-what-it-is__header {
	text-align: center;
	margin-bottom: 3.5rem;
}

.os-eyebrow {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--os-accent);
	margin-bottom: 0.75rem;
}

.os-section-heading {
	font-family: var(--care-inf-heading-font, 'Merriweather', Georgia, serif);
	font-size: clamp(1.8rem, 3.5vw, 2.5rem);
	font-weight: 700;
	color: var(--os-text-dark);
	margin: 0 0 1rem;
	line-height: 1.3;
}

.os-what-it-is__content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.os-what-it-is__image {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
	animation: fadeInUp 0.8s ease-out 0.2s both;
}

.os-what-it-is__image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.os-what-it-is__image:hover img {
	transform: scale(1.05);
}

.os-what-it-is__text {
	animation: fadeInUp 0.8s ease-out 0.3s both;
}

.os-what-it-is__text p {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--os-text-light);
	margin: 0 0 1.5rem;
}

.os-callout {
	background: linear-gradient(135deg, rgba(26, 58, 95, 0.05) 0%, rgba(212, 175, 55, 0.08) 100%);
	border-left: 4px solid var(--os-accent);
	padding: 1.75rem;
	border-radius: 8px;
	margin: 2rem 0;
}

.os-callout p {
	font-size: 1.1rem;
	color: var(--os-text-dark);
	font-weight: 500;
	margin: 0;
	line-height: 1.6;
}

/* =====================================================
   QUARTERLY RHYTHM SECTION
   ===================================================== */

.os-rhythm {
	padding: 5rem 0;
	background: var(--os-bg-light);
}

.os-rhythm__header {
	text-align: center;
	margin-bottom: 3.5rem;
}

.os-rhythm__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
}

.os-rhythm-card {
	background: #ffffff;
	border: 1px solid var(--os-border);
	border-radius: 12px;
	padding: 2.5rem 2rem;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	text-align: center;
	animation: fadeInUp 0.8s ease-out both;
}

.os-rhythm-card:nth-child(1) { animation-delay: 0.1s; }
.os-rhythm-card:nth-child(2) { animation-delay: 0.15s; }
.os-rhythm-card:nth-child(3) { animation-delay: 0.2s; }
.os-rhythm-card:nth-child(4) { animation-delay: 0.25s; }
.os-rhythm-card:nth-child(5) { animation-delay: 0.3s; }
.os-rhythm-card:nth-child(6) { animation-delay: 0.35s; }

.os-rhythm-card:hover {
	border-color: var(--os-accent);
	background: #ffffff;
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(26, 58, 95, 0.1);
}

.os-rhythm-card__icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--os-accent) 0%, var(--os-accent-dark) 100%);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
	transition: transform 0.3s ease;
}

.os-rhythm-card__icon svg {
	width: 28px;
	height: 28px;
	color: #ffffff;
	stroke: currentColor;
	fill: none;
}

.os-rhythm-card:hover .os-rhythm-card__icon {
	transform: scale(1.1) rotate(5deg);
}

.os-rhythm-card__title {
	font-family: var(--care-inf-heading-font, 'Merriweather', Georgia, serif);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--os-text-dark);
	margin: 0 0 1rem;
	line-height: 1.4;
}

.os-rhythm-card__desc {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--os-text-light);
	margin: 0;
}

/* =====================================================
   PARTICIPATION SECTION
   ===================================================== */

.os-participation {
	padding: 5rem 0;
	background: #ffffff;
}

.os-participation__header {
	text-align: center;
	margin-bottom: 3.5rem;
}

.os-participation__content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

.os-participation__column p {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--os-text-light);
	margin: 0 0 1.5rem;
}

.os-participation__column h3 {
	font-family: var(--care-inf-heading-font, 'Merriweather', Georgia, serif);
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--os-text-dark);
	margin: 0 0 1.5rem;
	line-height: 1.4;
}

.os-participation__list {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0;
}

.os-participation__list li {
	padding-left: 2rem;
	position: relative;
	margin-bottom: 1rem;
	color: var(--os-text-light);
	line-height: 1.6;
}

.os-participation__list li:before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--os-accent);
	font-weight: bold;
	font-size: 1.2rem;
}

.os-note-block {
	background: linear-gradient(135deg, rgba(26, 58, 95, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
	border-left: 3px solid var(--os-accent);
	padding: 1rem 1.5rem;
	border-radius: 8px;
	margin: 1rem 0;
	font-size: 0.95rem;
	color: var(--os-text-dark);
	line-height: 1.5;
}

.os-note-block strong {
	color: var(--os-text-dark);
	font-weight: 700;
}

/* =====================================================
   IMPACT SECTION
   ===================================================== */

.os-impact {
	padding: 5rem 0;
	background: linear-gradient(135deg, var(--os-primary) 0%, #2d5a8c 100%);
	color: #ffffff;
	position: relative;
	overflow: hidden;
}

.os-impact::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="impactGrid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(212,175,55,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23impactGrid)" /></svg>');
	opacity: 0.3;
}

.os-impact__content {
	position: relative;
	z-index: 1;
}

.os-impact__header {
	text-align: center;
	margin-bottom: 3rem;
}

.os-impact__text {
	max-width: 800px;
	margin: 0 auto 2rem;
	font-size: 1.05rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.95);
}

.os-impact__callout {
	background: rgba(255, 255, 255, 0.1);
	border-left: 4px solid var(--os-accent);
	padding: 2rem;
	border-radius: 8px;
	max-width: 700px;
	margin: 0 auto 2.5rem;
	backdrop-filter: blur(10px);
}

.os-impact__callout p {
	font-size: 1.2rem;
	color: #ffffff;
	font-weight: 500;
	margin: 0;
	line-height: 1.6;
}

.os-impact__ctas {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
	flex-wrap: wrap;
	animation: fadeInUp 0.8s ease-out 0.3s both;
}

.os-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 2.5rem;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid transparent;
}

.os-cta-btn--primary {
	background: var(--os-accent);
	color: var(--os-text-dark);
	border-color: var(--os-accent);
}

.os-cta-btn--primary:hover {
	background: var(--os-accent-dark);
	border-color: var(--os-accent-dark);
	transform: translateY(-3px);
	box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.os-cta-btn--outline {
	background: transparent;
	color: #ffffff;
	border-color: #ffffff;
}

.os-cta-btn--outline:hover {
	background: #ffffff;
	color: var(--os-text-dark);
	border-color: #ffffff;
	transform: translateY(-3px);
}

/* =====================================================
   NOMINATION SECTION
   ===================================================== */

.os-nomination {
	padding: 5rem 0;
	background: #ffffff;
}

.os-nomination__header {
	text-align: center;
	margin-bottom: 3rem;
}

.os-nomination__intro {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 3rem;
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--os-text-light);
}

.os-nomination__intro p {
	margin: 0 0 1rem;
}

.os-nomination__intro strong {
	color: var(--os-text-dark);
	font-size: 1.1rem;
}

.os-form {
	background: var(--os-bg-light);
	max-width: 700px;
	margin: 0 auto;
	padding: 2.5rem;
	border-radius: 12px;
	border: 1px solid var(--os-border);
	animation: fadeInUp 0.8s ease-out 0.2s both;
}

.os-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.os-form__group {
	display: flex;
	flex-direction: column;
}

.os-form__label {
	font-weight: 600;
	color: var(--os-text-dark);
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.os-form__label .required {
	color: #ef4444;
	margin-left: 0.25rem;
}

.os-form__input,
.os-form__select,
.os-form__textarea {
	padding: 0.75rem 1rem;
	border: 1px solid var(--os-border);
	border-radius: 8px;
	font-size: 0.95rem;
	font-family: inherit;
	transition: all 0.3s ease;
	background: #ffffff;
}

.os-form__input:focus,
.os-form__select:focus,
.os-form__textarea:focus {
	outline: none;
	border-color: var(--os-accent);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.os-form__textarea {
	resize: vertical;
	min-height: 120px;
	font-family: inherit;
}

.os-form__helper {
	font-size: 0.85rem;
	color: var(--os-text-light);
	margin-top: 0.5rem;
	font-style: italic;
}

.os-form__actions {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--os-border);
}

.os-form__submit {
	background: var(--os-accent);
	color: var(--os-text-dark);
	padding: 1rem 2.5rem;
	border-radius: 8px;
	border: none;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.os-form__submit:hover {
	background: var(--os-accent-dark);
	transform: translateY(-3px);
	box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* =====================================================
   FAQ SECTION
   ===================================================== */

.os-faq {
	padding: 5rem 0;
	background: var(--os-bg-light);
}

.os-faq__header {
	text-align: center;
	margin-bottom: 3.5rem;
}

.os-faq__list {
	max-width: 800px;
	margin: 0 auto;
	display: grid;
	gap: 1rem;
}

.os-faq__item {
	background: #ffffff;
	border: 1px solid var(--os-border);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	animation: fadeInUp 0.8s ease-out both;
}

.os-faq__item:nth-child(1) { animation-delay: 0.1s; }
.os-faq__item:nth-child(2) { animation-delay: 0.15s; }
.os-faq__item:nth-child(3) { animation-delay: 0.2s; }
.os-faq__item:nth-child(4) { animation-delay: 0.25s; }

.os-faq__item:hover {
	border-color: var(--os-accent);
	box-shadow: 0 10px 30px rgba(26, 58, 95, 0.1);
}

.os-faq__question {
	width: 100%;
	padding: 1.5rem;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	color: var(--os-text-dark);
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: left;
	transition: all 0.3s ease;
}

.os-faq__question:hover {
	background: rgba(212, 175, 55, 0.03);
}

.os-faq__icon {
	flex-shrink: 0;
	margin-left: 1rem;
	color: var(--os-accent);
	width: 24px;
	height: 24px;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.os-faq__item[open] .os-faq__icon {
	transform: rotate(180deg);
}

.os-faq__answer {
	padding: 0 1.5rem 1.5rem;
	color: var(--os-text-light);
	font-size: 0.95rem;
	line-height: 1.6;
	border-top: 1px solid var(--os-border);
}

.os-faq__answer p {
	margin: 0;
}

/* =====================================================
   SECTION DIVIDER
   ===================================================== */

.os-section-divider {
	border: none;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--os-border) 20%, var(--os-border) 80%, transparent);
	margin: 0;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 900px) {
	.os-what-it-is__content,
	.os-participation__content {
		grid-template-columns: 1fr;
	}

	.os-rhythm__grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	}

	.os-form__row {
		grid-template-columns: 1fr;
	}

	.os-impact__ctas {
		flex-direction: column;
	}

	.os-cta-btn {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 768px) {
	.os-hero {
		padding: 6rem 1.5rem 5rem;
		margin-top: -80px;
	}

	.os-hero__title {
		font-size: clamp(1.75rem, 4vw, 2.25rem);
	}

	.os-hero__subtitle {
		font-size: clamp(1rem, 2vw, 1.15rem);
	}

	.os-section-heading {
		font-size: clamp(1.5rem, 3vw, 2rem) !important;
	}

	.os-rhythm-card,
	.os-benefit-card {
		padding: 1.75rem 1.5rem;
	}

	.os-form {
		padding: 1.75rem;
	}

	.os-impact {
		padding: 3.5rem 1.5rem;
	}
}

@media (max-width: 600px) {
	.os-hero {
		padding: 4rem 1rem 3rem;
		margin-top: -60px;
	}

	.os-hero__title {
		font-size: 1.5rem;
		margin-bottom: 1rem;
	}

	.os-hero__subtitle {
		font-size: 1rem;
		margin-bottom: 1.5rem;
	}

	.os-hero__cta {
		padding: 0.875rem 1.5rem;
		font-size: 0.9rem;
	}

	.os-rhythm__grid {
		grid-template-columns: 1fr;
	}

	.os-rhythm-card {
		padding: 1.5rem 1.25rem;
	}

	.os-rhythm-card__icon {
		width: 50px;
		height: 50px;
	}

	.os-rhythm-card__title {
		font-size: 1.1rem;
	}

	.os-cta-btn {
		padding: 0.875rem 1.5rem;
		font-size: 0.9rem;
	}

	.os-form {
		padding: 1.5rem;
	}

	.os-form__row {
		gap: 1rem;
		margin-bottom: 1rem;
	}

	.os-section-heading {
		font-size: 1.3rem !important;
	}

	.os-participation__column h3 {
		font-size: 1.15rem;
	}

	.os-participation__column p {
		font-size: 0.95rem;
	}

	.os-faq__item {
		border-radius: 8px;
	}

	.os-faq__question {
		padding: 1.25rem;
		font-size: 0.95rem;
	}

	.os-faq__answer {
		padding: 0 1.25rem 1.25rem;
		font-size: 0.9rem;
	}
}
