/* ==========================================================================
   HelloHiDear Infra — main stylesheet
   ========================================================================== */

:root {
	--hhd-indigo: #2A1B5E;
	--hhd-indigo-dark: #1B1140;
	--hhd-blue: #1E8FE1;
	--hhd-blue-dark: #156FB3;
	--hhd-ink: #1A1A2E;
	--hhd-muted: #6B6B7C;
	--hhd-border: #E3E1EC;
	--hhd-bg: #FAFAFD;
	--hhd-card: #FFFFFF;
	--hhd-success: #1E8F6B;
	--hhd-error: #C8443C;

	--hhd-font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;
	--hhd-font-body: 'Inter', 'Segoe UI', sans-serif;

	--hhd-container: 1140px;
	--hhd-radius: 14px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body {
	font-family: var(--hhd-font-body);
	color: var(--hhd-ink);
	background: var(--hhd-bg);
	line-height: 1.6;
	font-size: 17px;
}

h1, h2, h3, h4 {
	font-family: var(--hhd-font-heading);
	color: var(--hhd-indigo);
	line-height: 1.2;
	margin: 0 0 0.5em;
}

p {
	margin: 0 0 1em;
}

a {
	text-decoration: none;
}

.hhd-container {
	max-width: var(--hhd-container);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute;
	left: -9999px;
}

section {
	padding: 80px 0;
}

.hhd-section-title {
	font-size: clamp(28px, 4vw, 38px);
	text-align: center;
	max-width: 760px;
	margin: 0 auto 48px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.hhd-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--hhd-font-body);
	font-weight: 600;
	font-size: 16px;
	padding: 14px 26px;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hhd-btn--primary {
	background: var(--hhd-blue);
	color: #fff;
}

.hhd-btn--primary:hover {
	background: var(--hhd-blue-dark);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(30, 143, 225, 0.35);
}

.hhd-btn--outline {
	background: transparent;
	border-color: var(--hhd-border);
	color: var(--hhd-indigo);
}

.hhd-btn--outline:hover {
	border-color: var(--hhd-blue);
	color: var(--hhd-blue-dark);
}

.hhd-btn--text {
	background: transparent;
	color: var(--hhd-indigo);
	padding: 14px 4px;
}

.hhd-btn--lg {
	padding: 16px 32px;
	font-size: 17px;
}

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */

.hhd-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 250, 253, 0.9);
	border-bottom: 1px solid transparent;
	transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.hhd-header.is-scrolled {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(10px);
	box-shadow: 0 1px 0 var(--hhd-border);
}

.hhd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
}

.hhd-logo {
	display: flex;
	align-items: center;
}

.hhd-nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.hhd-nav__list {
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hhd-nav__list a {
	font-weight: 500;
	color: var(--hhd-ink);
}

.hhd-nav__list a:hover {
	color: var(--hhd-blue);
}

.hhd-nav__cta {
	padding: 10px 20px;
}

.hhd-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 8px;
}

.hhd-nav-toggle__bar {
	width: 24px;
	height: 2px;
	background: var(--hhd-indigo);
	display: block;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hhd-hero {
	position: relative;
	background: linear-gradient(135deg, var(--hhd-indigo-dark), var(--hhd-indigo));
	color: #fff;
	padding: 120px 0 100px;
	overflow: hidden;
}

.hhd-hero__scene {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hhd-hero__scene canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.hhd-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 760px;
	text-align: center;
}

.hhd-hero__headline {
	color: #fff;
	font-size: clamp(34px, 5.5vw, 56px);
	margin-bottom: 24px;
}

.hhd-hero__subhead {
	font-size: 19px;
	color: rgba(255, 255, 255, 0.85);
	max-width: 620px;
	margin: 0 auto 36px;
}

.hhd-hero__ctas {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.hhd-hero__ctas .hhd-btn--text {
	color: #fff;
}

/* --------------------------------------------------------------------------
   Stat strip
   -------------------------------------------------------------------------- */

.hhd-stat-strip {
	background: var(--hhd-card);
	padding: 56px 0;
	border-bottom: 1px solid var(--hhd-border);
}

.hhd-stat-strip__inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	text-align: center;
}

.hhd-stat__number {
	display: block;
	font-family: var(--hhd-font-heading);
	font-size: 44px;
	color: var(--hhd-blue);
	font-weight: 700;
}

.hhd-stat__label {
	color: var(--hhd-muted);
	font-size: 15px;
	margin: 4px 0 0;
}

/* --------------------------------------------------------------------------
   Segment cards
   -------------------------------------------------------------------------- */

.hhd-segments__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.hhd-segment-card {
	background: var(--hhd-card);
	border: 1px solid var(--hhd-border);
	border-radius: var(--hhd-radius);
	padding: 32px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hhd-segment-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(42, 27, 94, 0.12);
}

.hhd-segment-card__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 12px;
	font-weight: 600;
	color: var(--hhd-blue);
	margin-bottom: 8px;
}

.hhd-segment-card__headline {
	font-size: 20px;
	margin-bottom: 12px;
}

.hhd-segment-card__body {
	color: var(--hhd-muted);
	font-size: 15px;
}

.hhd-segment-card__link {
	color: var(--hhd-indigo);
	font-weight: 600;
	font-size: 15px;
}

.hhd-segment-card__link:hover {
	color: var(--hhd-blue);
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.hhd-how {
	background: var(--hhd-card);
}

.hhd-how__steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hhd-how__step {
	border-top: 3px solid var(--hhd-blue);
	padding-top: 20px;
}

.hhd-how__step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--hhd-indigo);
	color: #fff;
	font-weight: 700;
	margin-bottom: 12px;
}

.hhd-how__step h3 {
	font-size: 18px;
}

.hhd-how__step p {
	color: var(--hhd-muted);
	font-size: 15px;
}

/* --------------------------------------------------------------------------
   Differentiator / comparison
   -------------------------------------------------------------------------- */

.hhd-differentiator__intro {
	max-width: 700px;
	margin: 0 auto 20px;
	text-align: center;
	color: var(--hhd-muted);
}

.hhd-compare {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 40px;
}

.hhd-compare__col {
	background: var(--hhd-card);
	border: 1px solid var(--hhd-border);
	border-radius: var(--hhd-radius);
	padding: 24px;
	text-align: center;
}

.hhd-compare__col h4 {
	font-size: 16px;
	margin-bottom: 16px;
}

.hhd-compare__col p {
	font-size: 14px;
	color: var(--hhd-muted);
	margin-bottom: 8px;
}

.hhd-compare__col--highlight {
	background: var(--hhd-indigo);
	border-color: var(--hhd-indigo);
}

.hhd-compare__col--highlight h4,
.hhd-compare__col--highlight p {
	color: #fff;
}

/* --------------------------------------------------------------------------
   Sample course teaser (home)
   -------------------------------------------------------------------------- */

.hhd-sample-teaser {
	background: var(--hhd-card);
}

.hhd-sample-teaser__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}

.hhd-sample-teaser__copy {
	flex: 1 1 420px;
}

.hhd-sample-teaser__copy .hhd-section-title {
	text-align: left;
	margin: 0 0 12px;
}

.hhd-sample-teaser__links {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Social proof
   -------------------------------------------------------------------------- */

.hhd-logo-strip {
	display: flex;
	justify-content: center;
	gap: 32px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}

.hhd-logo-strip__slot {
	width: 140px;
	height: 48px;
	background: var(--hhd-border);
	border-radius: 8px;
}

.hhd-testimonial {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
	font-size: 19px;
	color: var(--hhd-ink);
}

.hhd-testimonial footer {
	margin-top: 16px;
	font-size: 14px;
	color: var(--hhd-muted);
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.hhd-cta {
	background: linear-gradient(135deg, var(--hhd-indigo), var(--hhd-blue-dark));
	color: #fff;
}

.hhd-cta__inner {
	text-align: center;
	max-width: 640px;
}

.hhd-cta__heading {
	color: #fff;
	font-size: clamp(26px, 4vw, 34px);
}

.hhd-cta__subhead {
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.hhd-footer {
	background: var(--hhd-indigo-dark);
	color: rgba(255, 255, 255, 0.7);
	padding: 56px 0 32px;
}

.hhd-footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 24px;
}

.hhd-footer__logo svg text {
	fill: #fff !important;
}

.hhd-footer__tagline {
	font-size: 14px;
	margin-top: 12px;
}

.hhd-footer__list {
	display: flex;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hhd-footer__list a {
	color: rgba(255, 255, 255, 0.7);
}

.hhd-footer__list a:hover {
	color: #fff;
}

.hhd-footer__copy {
	width: 100%;
	font-size: 13px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 24px;
	margin: 16px 0 0;
}

/* --------------------------------------------------------------------------
   Page header (Sample Course / Contact / Blog / 404)
   -------------------------------------------------------------------------- */

.hhd-page-header {
	padding: 100px 0 56px;
	text-align: center;
	background: var(--hhd-card);
}

.hhd-page-header__title {
	font-size: clamp(30px, 5vw, 44px);
}

.hhd-page-header__subhead {
	max-width: 620px;
	margin: 0 auto;
	color: var(--hhd-muted);
	font-size: 18px;
}

.hhd-page-header--404 {
	padding-bottom: 100px;
}

.hhd-page-header--404 .hhd-btn {
	margin-top: 16px;
}

/* --------------------------------------------------------------------------
   Sample Course page: tabs + timeline
   -------------------------------------------------------------------------- */

.hhd-tabs {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}

.hhd-tabs__btn {
	background: var(--hhd-card);
	border: 1px solid var(--hhd-border);
	border-radius: 999px;
	padding: 10px 22px;
	font-weight: 600;
	font-family: var(--hhd-font-body);
	color: var(--hhd-muted);
	cursor: pointer;
}

.hhd-tabs__btn.is-active {
	background: var(--hhd-indigo);
	border-color: var(--hhd-indigo);
	color: #fff;
}

.hhd-tab-panel {
	display: none;
}

.hhd-tab-panel.is-active {
	display: block;
}

.hhd-sample-course__intro {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 48px;
}

.hhd-sample-course__audience {
	color: var(--hhd-blue);
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hhd-admin-notice {
	background: #FFF7E6;
	border: 1px solid #F0C36D;
	color: #6B4E0E;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	max-width: 700px;
	margin: 0 auto 24px;
}

.hhd-timeline {
	list-style: none;
	margin: 0 0 56px;
	padding: 0;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	border-left: 2px solid var(--hhd-border);
}

.hhd-timeline__item {
	position: relative;
	padding: 0 0 32px 32px;
}

.hhd-timeline__item::before {
	content: '';
	position: absolute;
	left: -7px;
	top: 4px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--hhd-blue);
}

.hhd-timeline__day {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--hhd-blue);
	margin-bottom: 6px;
}

.hhd-timeline__subject {
	font-size: 19px;
	margin-bottom: 6px;
}

.hhd-timeline__preview {
	color: var(--hhd-muted);
	margin: 0;
}

.hhd-sample-course__signup {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
	background: var(--hhd-card);
	border: 1px solid var(--hhd-border);
	border-radius: var(--hhd-radius);
	padding: 40px;
}

/* --------------------------------------------------------------------------
   Forms (contact + EECE signup share this look)
   -------------------------------------------------------------------------- */

.hhd-form,
.eece-form-wrap {
	max-width: 560px;
	margin: 0 auto;
	background: var(--hhd-card);
	border: 1px solid var(--hhd-border);
	border-radius: var(--hhd-radius);
	padding: 40px;
}

.hhd-field,
.eece-field {
	margin-bottom: 20px;
	text-align: left;
}

.hhd-field label,
.eece-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
}

.hhd-field input,
.hhd-field select,
.hhd-field textarea,
.eece-field input,
.eece-field select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--hhd-border);
	border-radius: 8px;
	font-family: var(--hhd-font-body);
	font-size: 15px;
	background: #fff;
}

.hhd-req {
	color: var(--hhd-error);
}

.hhd-hp,
.eece-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.hhd-notice,
.eece-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
}

.hhd-notice--success,
.eece-notice-success {
	background: #E8F7F0;
	color: var(--hhd-success);
}

.hhd-notice--error,
.eece-notice-error {
	background: #FBEAE8;
	color: var(--hhd-error);
}

.hhd-form__trust {
	font-size: 13px;
	color: var(--hhd-muted);
	text-align: center;
	margin: 0;
}

.hhd-contact__inner {
	max-width: 700px;
}

/* --------------------------------------------------------------------------
   Blog listing + single post
   -------------------------------------------------------------------------- */

.hhd-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-bottom: 48px;
}

.hhd-post-card {
	background: var(--hhd-card);
	border: 1px solid var(--hhd-border);
	border-radius: var(--hhd-radius);
	overflow: hidden;
}

.hhd-post-card__media img,
.hhd-post-card__media-fallback {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	background: linear-gradient(135deg, var(--hhd-indigo), var(--hhd-blue));
}

.hhd-post-card__body {
	padding: 24px;
}

.hhd-post-card__date {
	font-size: 13px;
	color: var(--hhd-muted);
	margin-bottom: 8px;
}

.hhd-post-card__title {
	font-size: 19px;
	margin-bottom: 10px;
}

.hhd-post-card__title a {
	color: var(--hhd-indigo);
}

.hhd-post-card__excerpt {
	font-size: 14px;
	color: var(--hhd-muted);
}

.hhd-post-card__link {
	font-weight: 600;
	font-size: 14px;
	color: var(--hhd-blue);
}

.hhd-blog__empty {
	text-align: center;
	color: var(--hhd-muted);
	padding: 60px 0;
}

.hhd-single__header {
	text-align: center;
	padding-bottom: 24px;
}

.hhd-single__meta {
	color: var(--hhd-muted);
	font-size: 14px;
}

.hhd-single__title {
	font-size: clamp(28px, 4vw, 40px);
	max-width: 760px;
	margin: 0 auto;
}

.hhd-single__media img {
	border-radius: var(--hhd-radius);
	margin-bottom: 32px;
}

.hhd-single__content {
	max-width: 700px;
	font-size: 17px;
}

.hhd-single__content img {
	border-radius: 10px;
}

.hhd-single__back {
	max-width: 700px;
	margin-bottom: 40px;
}

.hhd-single__back a {
	font-weight: 600;
	color: var(--hhd-indigo);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.page-numbers {
	display: inline-flex;
	gap: 8px;
	padding: 0;
	margin: 0 auto;
	list-style: none;
	justify-content: center;
}

.hhd-blog .page-numbers {
	display: flex;
}

a.page-numbers,
span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	border-radius: 8px;
	border: 1px solid var(--hhd-border);
	color: var(--hhd-ink);
	font-size: 14px;
}

span.page-numbers.current {
	background: var(--hhd-indigo);
	color: #fff;
	border-color: var(--hhd-indigo);
}

/* --------------------------------------------------------------------------
   Animation helpers
   -------------------------------------------------------------------------- */

.hhd-reveal,
.hhd-anim-in {
	opacity: 1;
}

/* JS adds .hhd-anim-ready once GSAP has taken over the initial state, so
   non-JS / pre-paint visitors never see a flash of hidden content. */
.js-anim .hhd-reveal,
.js-anim .hhd-anim-in {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.js-anim .hhd-reveal,
	.js-anim .hhd-anim-in {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.hhd-segments__grid,
	.hhd-how__steps,
	.hhd-compare,
	.hhd-blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hhd-stat-strip__inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 768px) {
	.hhd-nav {
		position: fixed;
		top: 70px;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		align-items: flex-start;
		padding: 24px;
		border-bottom: 1px solid var(--hhd-border);
		transform: translateY(-12px);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease, transform 0.2s ease;
	}

	.hhd-nav.is-open {
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
	}

	.hhd-nav__list {
		flex-direction: column;
		gap: 16px;
	}

	.hhd-nav-toggle {
		display: flex;
	}

	.hhd-segments__grid,
	.hhd-how__steps,
	.hhd-compare,
	.hhd-blog__grid {
		grid-template-columns: 1fr;
	}

	.hhd-sample-teaser__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	section {
		padding: 56px 0;
	}

	.hhd-hero {
		padding: 100px 0 64px;
	}

	.hhd-hero__scene {
		display: none;
	}

	.hhd-hero--no-scene-gradient {
		background: linear-gradient(135deg, var(--hhd-indigo-dark), var(--hhd-blue-dark));
	}
}

@media (max-width: 480px) {
	.hhd-form,
	.eece-form-wrap,
	.hhd-sample-course__signup {
		padding: 28px 20px;
	}

	.hhd-hero__ctas {
		flex-direction: column;
	}
}
