/* =====================
   REHEMA ABILITY — CSS
   ===================== */

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

:root {
	--saffron: #f5a623;
	--teal: #1a6b6b;
	--teal-light: #e8f4f4;
	--teal-mid: #2a8a8a;
	--brown: #2c1a0e;
	--coral: #e8613a;
	--cream: #f5edd8;
	--offwhite: #fdfaf4;
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	font-family: "DM Sans", sans-serif;
	background: var(--offwhite);
	color: var(--brown);
	overflow-x: hidden;
	line-height: 1.6;
}

/* ========== NAV ========== */

nav {
	background: var(--offwhite);
	padding: 1.2rem 4rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid rgba(26, 107, 107, 0.12);
	position: sticky;
	top: 0;
	z-index: 100;
	transition:
		transform 0.35s ease,
		box-shadow 0.35s ease;
}

nav.nav-hidden {
	transform: translateY(-100%);
}

nav.nav-scrolled {
	box-shadow: 0 2px 16px rgba(44, 26, 14, 0.08);
}

.logo {
	font-family: "Fraunces", serif;
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--teal);
	letter-spacing: -0.02em;
}

.logo span {
	color: var(--coral);
}

.nav-links {
	display: flex;
	gap: 2rem;
	list-style: none;
}

.nav-links a {
	text-decoration: none;
	color: var(--brown);
	font-size: 0.9rem;
	font-weight: 400;
	opacity: 0.8;
	transition:
		opacity 0.2s,
		color 0.2s;
}

.nav-links a:hover {
	opacity: 1;
	color: var(--teal);
}

.nav-cta {
	background: var(--teal);
	color: white;
	padding: 0.6rem 1.4rem;
	border-radius: 100px;
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s;
}

.nav-cta:hover {
	background: var(--teal-mid);
}

/* ========== HERO ========== */

.hero {
	min-height: 90vh;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	padding: 5rem 4rem;
	gap: 4rem;
	background: var(--offwhite);
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	right: -200px;
	top: -200px;
	width: 700px;
	height: 700px;
	border-radius: 50%;
	background: var(--cream);
	opacity: 0.6;
	z-index: 0;
}

.hero-text {
	position: relative;
	z-index: 1;
}

.hero-tag {
	display: inline-block;
	background: var(--cream);
	color: var(--teal);
	font-size: 0.8rem;
	font-weight: 500;
	padding: 0.4rem 1rem;
	border-radius: 100px;
	margin-bottom: 1.5rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hero h1 {
	font-family: "Fraunces", serif;
	font-size: 3.8rem;
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--brown);
	margin-bottom: 1.5rem;
}

.hero h1 em {
	font-style: italic;
	color: var(--teal);
}

.hero h1 .accent {
	color: var(--coral);
}

.hero-sub {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--brown);
	opacity: 0.75;
	margin-bottom: 2.5rem;
	max-width: 480px;
}

.hero-actions {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.btn-primary {
	background: var(--saffron);
	color: var(--brown);
	padding: 0.9rem 2rem;
	border-radius: 100px;
	font-weight: 500;
	text-decoration: none;
	font-size: 0.95rem;
	transition: transform 0.2s;
	display: inline-block;
}

.btn-primary:hover {
	transform: translateY(-2px);
}

.btn-ghost {
	color: var(--teal);
	font-size: 0.9rem;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.btn-ghost::after {
	content: "→";
	transition: transform 0.2s;
}

.btn-ghost:hover::after {
	transform: translateX(4px);
}

/* ========== HERO VISUAL ========== */

/* ========== HERO VISUAL — FLOATING PHOTOS ========== */

.hero-visual {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.photo-float-stage {
	position: relative;
	width: 420px;
	height: 480px;
}

.float-card {
	position: absolute;
	border-radius: 20px;
	overflow: hidden;
	will-change: transform;
	transition:
		filter 1s ease,
		opacity 1s ease,
		box-shadow 1s ease;
}

.float-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	user-select: none;
}

.float-card.depth-back {
	filter: grayscale(100%) blur(2px);
	opacity: 0.38;
	box-shadow: none;
	z-index: 1;
}

.float-card.depth-mid {
	filter: grayscale(50%);
	opacity: 0.65;
	box-shadow: 0 8px 24px rgba(44, 26, 14, 0.1);
	z-index: 2;
}

.float-card.depth-front {
	filter: grayscale(0%) blur(0px);
	opacity: 1;
	box-shadow: 0 20px 48px rgba(44, 26, 14, 0.22);
	z-index: 3;
}

.float-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 2rem 1rem 0.9rem;
	background: linear-gradient(
		to top,
		rgba(44, 26, 14, 0.75) 0%,
		transparent 100%
	);
	color: white;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}

.float-card.depth-front .float-caption {
	opacity: 1;
}

.float-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: white;
	text-align: center;
	padding: 1rem;
	line-height: 1.4;
}

.float-placeholder .ph-icon {
	font-size: 1.8rem;
	margin-bottom: 0.3rem;
}
.float-placeholder .ph-label {
	font-style: italic;
	opacity: 0.85;
}
.float-placeholder .ph-file {
	font-size: 0.65rem;
	opacity: 0.5;
	font-family: monospace;
	margin-top: 0.3rem;
}

/* ========== REALITY ========== */

.reality {
	padding: 6rem 4rem;
	background: var(--teal);
	color: white;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5rem;
	align-items: center;
}

.reality-text h2 {
	font-family: "Fraunces", serif;
	font-size: 2.8rem;
	font-weight: 300;
	line-height: 1.15;
	margin-bottom: 1.5rem;
}

.reality-text h2 em {
	font-style: italic;
	color: var(--saffron);
}

.reality-text p {
	font-size: 1.05rem;
	line-height: 1.8;
	opacity: 0.85;
	margin-bottom: 1rem;
}

.reality-stats {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

.reality-stat {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 16px;
	padding: 2rem;
}

.stat-number {
	font-family: "Fraunces", serif;
	font-size: 4rem;
	font-weight: 300;
	color: var(--saffron);
	line-height: 1;
}

.stat-label {
	font-size: 0.95rem;
	opacity: 0.75;
	margin-top: 0.5rem;
	line-height: 1.5;
}

.stat-divider {
	width: 40px;
	height: 2px;
	background: var(--saffron);
	margin: 1rem 0;
}

/* ========== LIFELINE ========== */

.lifeline {
	padding: 6rem 4rem;
	background: var(--offwhite);
}

.lifeline-header {
	max-width: 640px;
	margin: 0 auto 4rem;
	text-align: center;
}

.tag {
	display: inline-block;
	background: var(--cream);
	color: var(--coral);
	font-size: 0.8rem;
	font-weight: 500;
	padding: 0.4rem 1rem;
	border-radius: 100px;
	margin-bottom: 1.2rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.lifeline-header h2 {
	font-family: "Fraunces", serif;
	font-size: 2.8rem;
	font-weight: 300;
	line-height: 1.15;
	color: var(--brown);
}

.lifeline-header h2 em {
	font-style: italic;
	color: var(--teal);
}

.lifeline-header p {
	margin-top: 1rem;
	font-size: 1.05rem;
	line-height: 1.7;
	opacity: 0.75;
}

.program-card {
	background: var(--cream);
	border-radius: 24px;
	padding: 2.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.program-visual {
	background: var(--teal);
	border-radius: 16px;
	height: 480px;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.program-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
	display: block;
}

/* Show fallback only when image fails to load */
.program-photo-fallback {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	color: white;
	text-align: center;
	padding: 2rem;
	font-size: 0.88rem;
	opacity: 0.75;
	position: absolute;
	inset: 0;
}

.program-photo-fallback span {
	font-size: 2.5rem;
}
.program-photo-fallback small {
	font-size: 0.72rem;
	opacity: 0.55;
	font-family: monospace;
	display: block;
	margin-top: 0.3rem;
}
.program-visual.photo-placeholder .program-photo {
	display: none;
}
.program-visual.photo-placeholder .program-photo-fallback {
	display: flex;
}

.program-text h3 {
	font-family: "Fraunces", serif;
	font-size: 1.8rem;
	font-weight: 400;
	color: var(--brown);
	margin-bottom: 1rem;
}

.program-text p {
	font-size: 0.95rem;
	line-height: 1.75;
	opacity: 0.8;
	margin-bottom: 1rem;
}

.pill-row {
	margin-top: 0.5rem;
}

.pill {
	display: inline-block;
	background: white;
	color: var(--teal);
	padding: 0.3rem 0.8rem;
	border-radius: 100px;
	font-size: 0.8rem;
	font-weight: 500;
	margin: 0.2rem;
}

/* ========== SUPPORTS ========== */

.supports {
	padding: 6rem 4rem;
	background: var(--cream);
}

.supports h2 {
	font-family: "Fraunces", serif;
	font-size: 2.2rem;
	font-weight: 300;
	color: var(--brown);
	text-align: center;
	margin-bottom: 3rem;
}

.supports-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.support-card {
	background: var(--offwhite);
	border-radius: 20px;
	padding: 2rem 1.5rem;
	transition: transform 0.2s;
}

.support-card:hover {
	transform: translateY(-4px);
}

.support-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	margin-bottom: 1.2rem;
}

.support-icon.s1 {
	background: rgba(26, 107, 107, 0.12);
}
.support-icon.s2 {
	background: rgba(232, 97, 58, 0.12);
}
.support-icon.s3 {
	background: rgba(245, 166, 35, 0.2);
}
.support-icon.s4 {
	background: rgba(26, 107, 107, 0.08);
}

.support-card h4 {
	font-family: "Fraunces", serif;
	font-size: 1.1rem;
	font-weight: 400;
	color: var(--brown);
	margin-bottom: 0.6rem;
}

.support-card p {
	font-size: 0.88rem;
	line-height: 1.65;
	opacity: 0.72;
}

/* ========== WHO WE ARE ========== */

.who {
	padding: 6rem 4rem;
	background: var(--offwhite);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5rem;
	align-items: center;
}

.who-text h2 {
	font-family: "Fraunces", serif;
	font-size: 2.8rem;
	font-weight: 300;
	line-height: 1.15;
	color: var(--brown);
	margin-bottom: 1.5rem;
	margin-top: 1rem;
}

.who-text h2 em {
	font-style: italic;
	color: var(--teal);
}

.who-text p {
	font-size: 1rem;
	line-height: 1.8;
	opacity: 0.78;
	margin-bottom: 1rem;
}

.expertise-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.exp-tag {
	background: var(--teal-light);
	color: var(--teal);
	padding: 0.4rem 0.9rem;
	border-radius: 100px;
	font-size: 0.82rem;
	font-weight: 500;
}

.who-visual {
	background: var(--cream);
	border-radius: 24px;
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

.journey-title {
	font-family: "Fraunces", serif;
	font-size: 1rem;
	font-style: italic;
	color: var(--teal);
	margin-bottom: 0.4rem;
}

.journey-item {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.journey-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--saffron);
	margin-top: 5px;
	flex-shrink: 0;
}

.journey-dot.future {
	background: transparent;
	border: 2px solid var(--teal);
}

.journey-text strong {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--brown);
	display: block;
	margin-bottom: 0.2rem;
}

.journey-text span {
	font-size: 0.83rem;
	opacity: 0.7;
	line-height: 1.5;
}

.journey-line {
	width: 2px;
	height: 24px;
	background: rgba(26, 107, 107, 0.2);
	margin-left: 4px;
}

/* ========== CONTACT ========== */

.contact {
	padding: 6rem 4rem;
	background: var(--teal);
	color: white;
	text-align: center;
}

.contact h2 {
	font-family: "Fraunces", serif;
	font-size: 2.8rem;
	font-weight: 300;
	line-height: 1.2;
	margin-bottom: 1rem;
}

.contact h2 em {
	font-style: italic;
	color: var(--saffron);
}

.contact > p {
	font-size: 1.05rem;
	opacity: 0.8;
	margin-bottom: 2.5rem;
}

.contact-form {
	max-width: 520px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact-form input,
.contact-form textarea {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: white;
	padding: 0.9rem 1.2rem;
	border-radius: 12px;
	font-family: "DM Sans", sans-serif;
	font-size: 0.95rem;
	outline: none;
	width: 100%;
	transition: border 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
	border-color: var(--saffron);
}

.contact-form textarea {
	height: 120px;
	resize: none;
}

.contact-form button {
	background: var(--saffron);
	color: var(--brown);
	border: none;
	padding: 1rem;
	border-radius: 100px;
	font-family: "DM Sans", sans-serif;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: transform 0.2s;
}

.contact-form button:hover {
	transform: translateY(-2px);
}

.contact-email {
	margin-top: 1.5rem;
	font-size: 0.9rem;
	opacity: 0.65;
}

.contact-email a {
	color: var(--saffron);
	text-decoration: none;
}

/* ========== FOOTER ========== */

footer {
	background: var(--brown);
	color: white;
	padding: 2rem 4rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-right: 5rem;
}

.footer-logo {
	font-family: "Fraunces", serif;
	font-size: 1.1rem;
	color: white;
	opacity: 0.8;
}

.footer-note {
	font-size: 0.8rem;
	opacity: 0.45;
}

.footer-note a {
	font-family: "Syne", sans-serif;
	font-weight: 500;
	color: white;
	text-decoration: none;
	opacity: 0.95;
	transition: opacity 0.2s;
	letter-spacing: 0.08em;
}

.footer-note a:hover {
	opacity: 0.8;
}
/* ========== HAMBURGER MENU ========== */

.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.4rem;
	z-index: 200;
}

.hamburger span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--teal);
	border-radius: 2px;
	transition:
		transform 0.3s ease,
		opacity 0.3s ease;
	transform-origin: center;
}

.hamburger.open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
	opacity: 0;
}
.hamburger.open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(44, 26, 14, 0.35);
	z-index: 98;
	backdrop-filter: blur(2px);
}

.nav-overlay.visible {
	display: block;
}

.nav-cta-mobile {
	display: none;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
	nav {
		padding: 1.2rem 2rem;
	}
	.hero {
		padding: 4rem 2rem;
		grid-template-columns: 1fr;
		min-height: auto;
		gap: 3rem;
	}
	.hero::before {
		display: none;
	}
	.hero-visual {
		justify-content: center;
	}
	.photo-float-stage {
		width: 360px;
		height: 420px;
	}
	.reality {
		padding: 4rem 2rem;
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	.lifeline {
		padding: 4rem 2rem;
	}
	.program-card {
		grid-template-columns: 1fr;
	}
	.program-visual {
		height: 220px;
	}
	.supports {
		padding: 4rem 2rem;
	}
	.supports-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.who {
		padding: 4rem 2rem;
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	.contact {
		padding: 4rem 2rem;
	}
	footer {
		padding: 2rem;
		flex-direction: column;
		gap: 0.5rem;
		text-align: center;
	}
	.footer-note {
		font-size: 0.8rem;
		opacity: 0.45;
	}
	.footer-note a {
		font-family: "Syne", sans-serif;
		font-weight: 500;
		color: white;
		text-decoration: none;
		opacity: 0.95;
		transition: opacity 0.2s;
		letter-spacing: 0.08em;
	}
}

@media (max-width: 768px) {
	/* Show hamburger, hide desktop nav */
	.hamburger {
		display: flex;
	}
	.nav-cta-desktop {
		display: none;
	}
	.nav-cta-mobile {
		display: block;
	}

	.nav-links {
		position: fixed;
		top: 0;
		right: -100%;
		width: 75%;
		max-width: 300px;
		height: 100vh;
		background: var(--offwhite);
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		overflow-x: hidden;
		gap: 0;
		padding: 5rem 2.5rem 3rem;
		z-index: 99;
		transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
		box-shadow: -8px 0 32px rgba(44, 26, 14, 0.1);
	}

	.nav-links.open {
		right: 0;
	}

	.nav-links li {
		width: 100%;
		border-bottom: 1px solid rgba(26, 107, 107, 0.1);
	}
	.nav-links li:first-child {
		border-top: 1px solid rgba(26, 107, 107, 0.1);
	}

	.nav-links a {
		display: block;
		padding: 1.1rem 0;
		font-size: 1.05rem;
		opacity: 1;
		color: var(--brown);
	}

	.nav-cta-mobile {
		border-bottom: none !important;
	}
	.nav-cta-mobile .nav-cta {
		display: inline-block;
		margin-top: 2rem;
		background: var(--teal);
		color: white;
		padding: 0.75rem 1.6rem;
	}
}

@media (max-width: 640px) {
	nav {
		padding: 1rem 1.5rem;
	}
	.hero {
		padding: 3rem 1.5rem;
	}
	.hero h1 {
		font-size: 2.6rem;
	}
	.hero-sub {
		font-size: 1rem;
	}
	.photo-float-stage {
		width: 100%;
		max-width: 320px;
		height: 360px;
	}
	.hero-visual {
		width: 100%;
	}
	.supports-grid {
		grid-template-columns: 1fr;
	}
	.reality-text h2,
	.lifeline-header h2,
	.who-text h2,
	.contact h2 {
		font-size: 2rem;
	}
	.stat-number {
		font-size: 3rem;
	}
	.contact-form {
		padding: 0 0.5rem;
	}
	.lifeline {
		padding: 3rem 1.5rem;
	}
	.supports {
		padding: 3rem 1.5rem;
	}
	.who {
		padding: 3rem 1.5rem;
	}
	.reality {
		padding: 3rem 1.5rem;
	}
	.contact {
		padding: 3rem 1.5rem;
	}
	.program-card {
		padding: 1.5rem;
		gap: 1.5rem;
	}
	.who-visual {
		padding: 1.5rem;
	}
}

/* ========== WHATSAPP FAB ========== */

.whatsapp-fab {
	position: fixed;
	bottom: 1.8rem;
	right: 1.8rem;
	width: 56px;
	height: 56px;
	background: #25d366;
	color: white;
	border-radius: 50%;
	display: flex;
	display: none;
	/*remove display none to show whatsapp button; also in svg down below*/
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
	z-index: 200;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
	text-decoration: none;
}

.whatsapp-fab:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab svg {
	display: none;
	width: 28px;
	height: 28px;
}

/* Hide FAB when mobile menu is open so they don't overlap */
body.menu-open .whatsapp-fab {
	display: none;
}

/* ========== HERO TABLET SINGLE-COLUMN FIX ========== */
/* When layout collapses, let the photo stage overlap the text slightly
   so they feel connected rather than just stacked */

@media (max-width: 1024px) {
	.hero {
		padding-bottom: 0;
	}

	.hero-visual {
		margin-top: -2rem;
		/* Fade the bottom edge into the next section */
		-webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
		mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
	}

	.photo-float-stage {
		width: 100%;
		max-width: 480px;
		height: 340px;
	}
}
