/**
 * Got Ova — Coming Soon
 * Editorial-classical design system.
 *
 * Contents
 *   1. Fonts
 *   2. Tokens
 *   3. Reset & base
 *   4. Layout primitives
 *   5. Ornaments (rules, orbs, texture)
 *   6. Cards
 *   7. Sections
 *   8. Form
 *   9. Footer
 *  10. Motion & accessibility
 */

/* =========================================================================
 * 1. Fonts — self-hosted variable faces, latin subset. No CDN request.
 * ====================================================================== */

@font-face {
	font-family: 'Cormorant Garamond';
	src: url('../fonts/cormorant-garamond-var.woff2') format('woff2');
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Cormorant Garamond';
	src: url('../fonts/cormorant-garamond-var-italic.woff2') format('woff2');
	font-weight: 300 700;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-var.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* =========================================================================
 * 2. Tokens
 * ====================================================================== */

:root {
	--paper:        #FBF7F5;  /* warm ivory base */
	--blush:        #F3E3E8;  /* soft section wash */
	--rose:         #C48FA1;  /* primary dusty rose */
	--rose-deep:    #B87E92;  /* contact band top */
	--rose-deeper:  #A96B80;  /* contact band bottom (gradient) */
	--plum:         #5E3B48;  /* headings */
	--plum-grey:    #6B5763;  /* body text */
	--gold:         #C2A268;  /* hairlines / hover accent — use sparingly */
	--white:        #FFFFFF;
	--glass:        rgba(255, 255, 255, 0.55); /* frosted cards */
	--glass-border: rgba(255, 255, 255, 0.65);
	--shadow:       0 20px 60px -20px rgba(94, 59, 72, 0.25);

	/* Supplementary, all derived from the palette above.
	 * --rose-ink is the darkest rose that still clears AA (4.5:1) against
	 * ivory, so rose-coloured *text* uses it while rose fills use --rose.
	 * --plum-deep / --rose-shade are hover and gradient-terminal shades. */
	--rose-ink:     #9C5E74;
	--rose-shade:   #8E5468;
	--plum-deep:    #4C2F3A;
	--error:        #A33A50;
	--error-ink:    #7A2438;

	--glass-solid:  #FCF8F7;  /* fallback where backdrop-filter is unsupported */
	--hairline:     rgba(194, 162, 104, 0.45);

	--font-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
	--font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	--wrap:         1080px;
	--wrap-narrow:  780px;
	--radius:       20px;
	--radius-field: 12px;

	--section-y:    clamp(4rem, 10vw, 8rem);
	--gutter:       clamp(1.25rem, 5vw, 2.5rem);
}

/* =========================================================================
 * 3. Reset & base
 * ====================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--paper);
	color: var(--plum-grey);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden; /* orbs bleed past the viewport by design */
}

img,
svg {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	color: var(--plum);
	font-weight: 500;
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0 0 1.15em;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--rose-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--plum);
}

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
	border-radius: 4px;
}

/* =========================================================================
 * 4. Layout primitives
 * ====================================================================== */

.site {
	position: relative;
	isolation: isolate;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--narrow {
	max-width: var(--wrap-narrow);
}

.prose {
	max-width: 64ch;
	color: var(--plum-grey);
}

.prose--center {
	margin-inline: auto;
	text-align: center;
}

.prose--lead {
	font-size: 1.125rem;
}

.section-title {
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-align: center;
}

.section-title--light {
	color: var(--white);
}

/* =========================================================================
 * 5. Ornaments
 * ====================================================================== */

/* Gold hairline with a small oval at its centre — the recurring "ova" mark. */
.rule {
	position: relative;
	width: min(320px, 60%);
	height: 1px;
	margin: clamp(1.75rem, 4vw, 2.75rem) auto;
	border: 0;
	background: linear-gradient(90deg, transparent, var(--hairline) 25%, var(--hairline) 75%, transparent);
	overflow: visible;
}

.rule::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 7px;
	height: 11px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(194, 162, 104, 0.7);
}

.rule--tight {
	margin-block: 1.25rem 1.75rem;
}

.rule--light {
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55) 25%, rgba(255, 255, 255, 0.55) 75%, transparent);
}

.rule--light::after {
	background: rgba(255, 255, 255, 0.8);
}

/* Floating ovals. Soft radial gradients rather than blur() filters: same
 * diffusion, far cheaper to composite. */
.orbs {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

/* Three-stop falloff rather than two: a single stop leaves a faint visible arc
 * where the alpha reaches zero, which reads as a stain rather than light. */
.orb {
	position: absolute;
	display: block;
	border-radius: 50%;
	background: radial-gradient(
		closest-side,
		rgba(196, 143, 161, 0.34),
		rgba(196, 143, 161, 0.13) 46%,
		rgba(196, 143, 161, 0) 82%
	);
	will-change: transform;
}

.orb--a {
	width: 60rem;
	height: 42rem;
	top: -20rem;
	left: -20rem;
	animation: gotova-drift 22s ease-in-out infinite;
}

.orb--b {
	width: 40rem;
	height: 30rem;
	top: -4rem;
	right: -16rem;
	background: radial-gradient(
		closest-side,
		rgba(243, 227, 232, 0.85),
		rgba(243, 227, 232, 0.3) 48%,
		rgba(243, 227, 232, 0) 82%
	);
	animation: gotova-drift 27s ease-in-out infinite reverse;
}

.orb--c {
	width: 38rem;
	height: 26rem;
	bottom: -13rem;
	right: 4%;
	background: radial-gradient(
		closest-side,
		rgba(196, 143, 161, 0.1),
		rgba(196, 143, 161, 0.035) 48%,
		rgba(196, 143, 161, 0) 82%
	);
	animation: gotova-drift 32s ease-in-out infinite;
}

.orb--d {
	width: 44rem;
	height: 32rem;
	top: -12rem;
	right: -16rem;
	background: radial-gradient(
		closest-side,
		rgba(255, 255, 255, 0.2),
		rgba(255, 255, 255, 0.07) 48%,
		rgba(255, 255, 255, 0) 82%
	);
	animation: gotova-drift 26s ease-in-out infinite;
}

.orb--e {
	width: 36rem;
	height: 26rem;
	bottom: -12rem;
	left: -14rem;
	background: radial-gradient(
		closest-side,
		rgba(255, 255, 255, 0.16),
		rgba(255, 255, 255, 0.05) 48%,
		rgba(255, 255, 255, 0) 82%
	);
	animation: gotova-drift 30s ease-in-out infinite reverse;
}

@keyframes gotova-drift {
	0%,
	100% {
		transform: translate3d(0, 0, 0) rotate(0deg);
	}
	50% {
		transform: translate3d(0, -2.5rem, 0) rotate(6deg);
	}
}

/* Paper grain over the whole page. Inert, and light enough not to touch
 * legibility — it just takes the flatness off the ivory. */
.site::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 9;
	pointer-events: none;
	opacity: 0.03;
	background-image: url('../img/noise.svg');
	background-size: 180px 180px;
}

/* =========================================================================
 * 6. Cards
 * ====================================================================== */

.card {
	position: relative;
	z-index: 1;
	background: var(--glass);
	/* A light wash off the top edge so the panel catches the light rather than
	 * sitting flat — this is what makes it read as glass on a pale ground. */
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 48%);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.75);
	padding: clamp(1.75rem, 5vw, 3.25rem);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

/* Solid fallback: without backdrop-filter, a 55%-white panel over a gradient
 * reads muddy and drops text contrast. */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
	.card {
		background: var(--glass-solid);
	}

	.contact__card {
		background: #F6ECEF;
	}
}

/* =========================================================================
 * 7. Sections
 * ====================================================================== */

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

.hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(5rem, 14vw, 9rem) clamp(4rem, 10vw, 7rem);
	display: flex;
	align-items: center;
	min-height: min(86vh, 840px);
	background:
		radial-gradient(88% 62% at 18% -6%, rgba(196, 143, 161, 0.38), rgba(196, 143, 161, 0) 62%),
		radial-gradient(72% 52% at 84% 6%, rgba(243, 227, 232, 0.9), rgba(243, 227, 232, 0) 66%),
		linear-gradient(180deg, #F7E9EE 0%, var(--paper) 62%);
}

.hero__inner {
	position: relative;
	z-index: 1;
	text-align: center;
}

.hero__title {
	font-size: clamp(2.75rem, 6vw, 5rem);
	line-height: 1.04;
	letter-spacing: -0.025em;
	font-weight: 500;
}

.hero__subtitle {
	margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
	max-width: 34ch;
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(1.35rem, 2.6vw, 1.85rem);
	line-height: 1.4;
	color: var(--rose-ink);
}

/* --- Statistic ---------------------------------------------------------- */

.stat {
	position: relative;
	padding-block: var(--section-y);
	background: var(--paper);
}

.stat__card {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(1.75rem, 5vw, 3.5rem);
	align-items: center;
}

.stat__figure {
	text-align: center;
}

.stat__number {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(4rem, 10vw, 8rem);
	line-height: 0.92;
	letter-spacing: -0.03em;
	color: var(--rose-ink);
	/* Cormorant defaults to old-style figures, where "1" reads as a small-cap I
	 * and "9" drops below the baseline. Lining figures keep "1 in 9" legible. */
	font-variant-numeric: lining-nums;
	font-feature-settings: 'lnum' 1;
}

.stat__number em {
	font-style: normal;
}

.stat__caption {
	margin: 1rem 0 0;
	text-wrap: balance;
	font-size: 0.9375rem;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--plum);
	font-weight: 500;
}

.stat__body {
	max-width: none;
	padding-inline-start: clamp(1.75rem, 5vw, 3.5rem);
	border-inline-start: 1px solid var(--hairline);
}

@media (max-width: 760px) {
	.stat__card {
		grid-template-columns: 1fr;
	}

	.stat__body {
		padding-inline-start: 0;
		padding-block-start: 2rem;
		border-inline-start: 0;
		border-block-start: 1px solid var(--hairline);
	}
}

/* --- Vision ------------------------------------------------------------- */

.vision {
	position: relative;
	padding-block: var(--section-y);
	background: linear-gradient(180deg, var(--paper) 0%, var(--blush) 100%);
}

.vision__card {
	text-align: center;
}

/* --- Contact ------------------------------------------------------------ */

.contact {
	position: relative;
	overflow: hidden;
	padding-block: var(--section-y);
	color: var(--white);
	background: linear-gradient(
		180deg,
		var(--blush) 0%,
		var(--rose-deep) 17%,
		var(--rose-deeper) 62%,
		var(--rose-shade) 100%
	);
}

.contact__inner {
	position: relative;
	z-index: 1;
}

/* Only display-size type sits directly on the rose gradient; everything at
 * body size lives on the glass card, which keeps every pairing above AA.
 * White on --rose-deeper is ~4.3:1, so this line is set at 24px — WCAG
 * "large text", where the threshold drops to 3:1. */
.contact__email {
	margin: 0 0 clamp(2.25rem, 5vw, 3rem);
	text-align: center;
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: 1.4;
	font-weight: 500;
	color: var(--white);
}

.contact__email-label {
	font-style: italic;
	font-weight: 400;
	margin-inline-end: 0.4rem;
	color: rgba(255, 255, 255, 0.92);
}

.contact__email a {
	color: var(--white);
	text-decoration-color: rgba(255, 255, 255, 0.5);
}

.contact__email a:hover {
	color: var(--white);
	text-decoration-color: var(--white);
}

.contact__card {
	background-color: rgba(255, 255, 255, 0.82);
	border-color: rgba(255, 255, 255, 0.85);
}

/* =========================================================================
 * 8. Form
 * ====================================================================== */

.form {
	display: grid;
	gap: 1.25rem;
}

.field {
	display: grid;
	gap: 0.4rem;
}

.field__label {
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--plum);
}

.field__input {
	width: 100%;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--plum);
	padding: 0.85rem 1rem;
	border: 1px solid rgba(94, 59, 72, 0.18);
	border-radius: var(--radius-field);
	background: rgba(255, 255, 255, 0.85);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
}

.field__input::placeholder {
	color: rgba(107, 87, 99, 0.6);
}

.field__input:hover {
	border-color: rgba(94, 59, 72, 0.3);
}

.field__input:focus {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
	border-color: var(--rose);
	background: var(--white);
}

.field__input--textarea {
	min-height: 8.5rem;
	resize: vertical;
}

.field--invalid .field__input {
	border-color: var(--error);
	background: rgba(255, 250, 251, 0.95);
}

.field__error {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--error-ink);
}

.field__error:empty {
	display: none;
}

/* Select: native arrow removed, replaced with a plum chevron so it matches
 * the text inputs across browsers. */
.field__select {
	position: relative;
}

.field__select .field__input {
	padding-inline-end: 2.75rem;
	cursor: pointer;
}

.field__select::after {
	content: '';
	position: absolute;
	right: 1.05rem;
	top: 50%;
	width: 0.6rem;
	height: 0.6rem;
	margin-top: -0.4rem;
	border-right: 1.5px solid var(--plum);
	border-bottom: 1.5px solid var(--plum);
	transform: rotate(45deg);
	pointer-events: none;
}

.field__select .field__input:invalid,
.field__select .field__input option[value=''] {
	color: rgba(107, 87, 99, 0.75);
}

.form__actions {
	margin-top: 0.75rem;
	display: flex;
	justify-content: center;
}

.button {
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--white);
	background: var(--plum);
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 1rem 2.5rem;
	cursor: pointer;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.button:hover {
	background: var(--plum-deep);
	box-shadow: 0 0 0 3px rgba(194, 162, 104, 0.35);
	transform: translateY(-1px);
}

.button:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.button[disabled] {
	opacity: 0.6;
	cursor: default;
	transform: none;
	box-shadow: none;
}

.banner {
	margin-bottom: 1.5rem;
	padding: 0.95rem 1.15rem;
	border-radius: 14px;
	border-left: 3px solid var(--gold);
	background: rgba(255, 255, 255, 0.92);
	color: var(--plum);
	font-size: 0.9875rem;
	line-height: 1.6;
}

.banner--error {
	border-left-color: var(--error);
	color: var(--error-ink);
}

.form__status:empty {
	display: none;
}

.form__status {
	margin-top: 1.25rem;
	padding: 0.95rem 1.15rem;
	border-radius: 14px;
	border-left: 3px solid var(--gold);
	background: rgba(255, 255, 255, 0.92);
	color: var(--plum);
	font-size: 0.9875rem;
	line-height: 1.6;
	text-align: left;
}

.form__status--error {
	border-left-color: var(--error);
	color: var(--error-ink);
}

/* Honeypot: off-screen rather than display:none, because some bots skip
 * fields that are not rendered. */
.honeypot {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* =========================================================================
 * 9. Footer
 * ====================================================================== */

.site-footer {
	position: relative;
	padding-block: clamp(2.5rem, 6vw, 3.5rem);
	background: var(--paper);
	text-align: center;
}

.site-footer__mark {
	margin: 0 0 0.35rem;
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--plum);
}

.site-footer__legal {
	margin: 0;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	color: var(--plum-grey);
}

/* =========================================================================
 * 10. Motion & accessibility
 * ====================================================================== */

/* Scroll reveal. Hidden by default and switched on by assets/js/form.js;
 * header.php carries a <noscript> override so a JS-less visitor sees
 * everything immediately with no flash. */
[data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

[data-reveal][data-reveal-delay='1'] { transition-delay: 0.09s; }
[data-reveal][data-reveal-delay='2'] { transition-delay: 0.18s; }
[data-reveal][data-reveal-delay='3'] { transition-delay: 0.27s; }

[data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	background: var(--white);
	color: var(--plum);
	font-size: 0.9rem;
	box-shadow: var(--shadow);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	[data-reveal] {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
