/* ==========================================================================
   Fonts — licensed files go in assets/fonts (see README.txt there).
   ========================================================================== */

/*
 * Temporary: only the Bogart Trial ExtraLight (200) file is available, so it
 * stands in for every Bogart weight. When the licensed Light (300) and
 * Regular (400) files arrive, replace this block with one @font-face per weight.
 */
@font-face {
	font-family: "Bogart";
	src: url("../fonts/Bogart-Extralight-trial.ttf") format("truetype");
	font-weight: 200 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Aminute";
	src: url("../fonts/Aminute.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--vita-surface-primary: #d7d2cb;
	--vita-surface-brand: #83412c;
	--vita-text-primary: #25282a;
	--vita-text-invert: #d7d2cb;
	--vita-border-secondary: #25282a;
	--vita-border-invert: #d7d2cb;

	--vita-font-display: "Bogart", Georgia, "Times New Roman", serif;
	--vita-font-body: "Aminute", "Helvetica Neue", Arial, sans-serif;

	--vita-thin: 20px;
	--vita-medium: 50px;
	--vita-large: 120px;
	--vita-gutter: 20px;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--vita-surface-primary);
	color: var(--vita-text-primary);
	font-family: var(--vita-font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	display: block;
	max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
address {
	margin: 0;
	padding: 0;
}

address {
	font-style: normal;
}

ul {
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 4px;
}

abbr[title] {
	text-decoration: none;
}

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

/* ==========================================================================
   Type styles (Figma: H2, H3, H4, Body)
   ========================================================================== */

.vita-h2 {
	font-family: var(--vita-font-display);
	font-size: clamp(24px, 1.2rem + 1.1vw, 33px);
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.vita-h3 {
	font-family: var(--vita-font-display);
	font-size: clamp(18px, 1rem + 0.36vw, 22px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

/*
 * TEMPORARY weight correction — delete this block when the licensed Bogart
 * Light (300) and Regular (400) files are added (see assets/fonts/README.txt).
 * Only the ExtraLight (200) trial file is available, so a stroke thickens it
 * to match Figma's ink weight: measured 0.4px on 33px headings (Light) and
 * 0.65px on 22px service titles (Regular).
 */
.vita-h2 {
	-webkit-text-stroke: 0.012em currentColor;
}

.vita-h3 {
	-webkit-text-stroke: 0.03em currentColor;
}

.vita-body,
.vita-label,
.vita-underline {
	font-family: var(--vita-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.1em;
	font-feature-settings: "liga" 0;
	text-box: trim-both cap alphabetic;
}

.vita-label,
.vita-underline {
	text-transform: uppercase;
	white-space: nowrap;
}

/* inline-block, not flex: text-box trimming only applies to block containers. */
.vita-underline {
	position: relative;
	display: inline-block;
	padding-bottom: 5px;
	border-bottom: 1px solid currentColor;
	transition: opacity 0.2s ease;
}

/* Tap area of at least 44px without changing the layout. */
.vita-underline::after {
	content: "";
	position: absolute;
	inset: -14px -8px;
}

@media (hover: hover) {
	.vita-underline:hover {
		opacity: 0.7;
	}
}

.vita-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--vita-thin) var(--vita-medium);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.vita-hero {
	display: flex;
	padding-bottom: var(--vita-large);
}

.vita-hero__content {
	position: relative;
	display: flex;
	flex: 1 1 50%;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 80px;
	min-height: 782px;
	padding: clamp(40px, 4.15vw, 120px);
	overflow: hidden;
	background: var(--vita-surface-brand);
	color: var(--vita-text-invert);
	text-align: center;
}

.vita-hero__texture {
	position: absolute;
	top: 58.93%;
	left: -21.88%;
	width: 143.76%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	opacity: 0.1;
	pointer-events: none;
}

.vita-hero__brands,
.vita-hero__headline {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.vita-hero__brands {
	gap: 32px;
}

.vita-hero__headline {
	gap: 40px;
	width: 100%;
	max-width: 600px;
}

.vita-hero__maison {
	width: 170px;
	height: 55px;
	object-fit: cover;
}

.vita-hero__vita {
	position: relative;
	display: block;
	width: 139px;
	height: 55px;
}

.vita-hero__vita-word {
	position: absolute;
	top: 0;
	left: 0;
}

.vita-hero__vita-custom {
	width: 139px;
	height: 55px;
	object-fit: contain;
}

.vita-hero__vita-sub {
	position: absolute;
	bottom: 0;
	left: 30.6%;
}

.vita-hero__headline .vita-cta {
	justify-content: center;
}

.vita-hero__media {
	position: relative;
	flex: 1 1 50%;
	min-height: 782px;
}

.vita-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ==========================================================================
   Services
   ========================================================================== */

.vita-services {
	display: flex;
	flex-direction: column;
	gap: var(--vita-medium);
	padding: 0 var(--vita-gutter) var(--vita-large);
}

.vita-services__intro {
	display: flex;
	flex-direction: column;
	gap: var(--vita-thin);
}

.vita-services__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--vita-medium) 80px;
}

.vita-service {
	display: flex;
	flex-direction: column;
	gap: var(--vita-thin);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.vita-contact {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--vita-medium);
	padding: 0 var(--vita-gutter) var(--vita-large);
}

.vita-contact__details {
	display: flex;
	flex: 1 1 0;
	min-width: 340px;
	max-width: 534px;
	flex-direction: column;
	align-self: stretch;
	justify-content: space-between;
	gap: 100px;
	padding: var(--vita-medium) 0;
}

.vita-contact__info {
	display: flex;
	flex-direction: column;
	gap: var(--vita-medium);
}

.vita-contact__row,
.vita-contact__hours > div {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--vita-thin);
}

.vita-contact__value {
	text-align: right;
	white-space: nowrap;
}

.vita-contact__value a {
	position: relative;
}

/* Stacked links sit one line apart, so their tap areas grow only to 24px. */
.vita-contact__value a::after {
	content: "";
	position: absolute;
	inset: -3px -6px;
}

/* Touch screens: space the stacked phone and Instagram links apart so each gets a 30px tap area. */
@media (pointer: coarse) {
	p.vita-contact__value a {
		display: inline-block;
		padding: 6px 0;
	}

	p.vita-contact__value a::after {
		inset: 0 -6px;
	}
}

@media (hover: hover) {
	.vita-contact__value a:hover {
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}

/* Each day is trimmed to its cap height; the gap restores the 1.2 line spacing. */
.vita-contact__hours {
	display: flex;
	flex-direction: column;
	gap: calc(1.2em - 1cap);
}

.vita-contact__hours dt,
.vita-contact__hours dd {
	text-box: trim-both cap alphabetic;
}

.vita-contact__hours dd {
	text-align: right;
}

/* Mailing list: Gravity Forms markup (its own CSS is disabled, see inc/gravity-forms.php) */

.vita-subscribe {
	display: flex;
	flex-direction: column;
	gap: 19px;
}

.vita-subscribe .gform_wrapper form {
	position: relative;
	margin: 0;
}

.vita-subscribe .gform_fields {
	display: block;
	margin: 0;
	padding: 0;
}

.vita-subscribe .gfield {
	margin: 0;
	padding: 0;
	border: 0;
}

.vita-subscribe .gform_validation_container,
.vita-subscribe .gfield--type-honeypot,
.vita-subscribe .gform_hidden,
.vita-subscribe .gform_validation_errors {
	display: none !important;
}

.vita-subscribe .hidden_label .gfield_label,
.vita-subscribe .gfield_required {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* flow-root keeps the input's negative margins inside, so they cancel its 44px tap height. */
.vita-subscribe .ginput_container_email {
	display: flow-root;
	margin-top: -4px;
	padding: 0 32px 9px 0;
	border-bottom: 1px solid var(--vita-border-secondary);
}

.vita-subscribe .ginput_container_email:focus-within {
	padding-bottom: 8px;
	border-bottom-width: 2px;
}

.vita-subscribe .gfield_error .ginput_container_email {
	border-bottom-color: var(--vita-surface-brand);
}

.vita-subscribe input[type="email"] {
	display: block;
	width: 100%;
	/* 44px tall for touch; negative margins keep the 19.2px line in the layout. */
	height: 44px;
	margin: calc((19.2px - 44px) / 2) 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--vita-text-primary);
	font-family: var(--vita-font-body);
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.1em;
	font-feature-settings: "liga" 0;
	-webkit-appearance: none;
	appearance: none;
}

.vita-subscribe input[type="email"]::placeholder {
	color: var(--vita-text-primary);
	opacity: 0.5;
}

.vita-subscribe input[type="email"]:focus {
	outline: none;
}

.vita-subscribe .gform_footer {
	position: absolute;
	top: -1px;
	right: 0;
	display: flex;
	align-items: center;
	height: 19.2px;
	margin: 0;
	padding: 0;
}

.vita-gform__submit {
	position: relative;
	display: flex;
	padding: 6px 0 6px 6px;
	margin: -6px 0;
	border: 0;
	background: none;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.vita-gform__submit::after {
	content: "";
	position: absolute;
	inset: -12px -12px -12px -8px;
}

@media (hover: hover) {
	.vita-gform__submit:hover {
		transform: translateX(3px);
	}
}

.vita-subscribe .gform_ajax_spinner {
	position: absolute;
	right: 26px;
	width: 14px;
	height: 14px;
}

.vita-subscribe .validation_message,
.vita-subscribe .gfield_validation_message {
	margin-top: 8px;
	color: var(--vita-surface-brand);
	font-family: var(--vita-font-body);
	font-size: 13px;
	line-height: 1.2;
	letter-spacing: 0.05em;
}

.vita-subscribe:has(.gform_confirmation_message) .vita-subscribe__text {
	display: none;
}

.vita-subscribe .gform_confirmation_message {
	padding-bottom: 9px;
	border-bottom: 1px solid var(--vita-border-secondary);
	font-family: var(--vita-font-body);
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.1em;
	font-feature-settings: "liga" 0;
}

.vita-contact__media {
	position: relative;
	flex: 0 1 600px;
	min-width: 0;
	aspect-ratio: 600 / 680;
}

/* Absolutely positioned so the box keeps its aspect ratio instead of growing to the photo. */
.vita-contact__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.vita-services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 50px;
	}
}

@media (max-width: 900px) {
	.vita-hero {
		flex-direction: column;
		padding-bottom: 80px;
	}

	.vita-hero__content {
		min-height: 0;
		padding: 80px 24px;
	}

	/* Stacked: a landscape crop so the photo does not fill the whole screen. */
	.vita-hero__media {
		min-height: 0;
		aspect-ratio: 3 / 2;
	}

	.vita-services,
	.vita-contact {
		padding-bottom: 80px;
	}
}

@media (max-width: 800px) {
	.vita-contact {
		flex-direction: column;
		align-items: stretch;
	}

	.vita-contact__details {
		flex-basis: auto;
		min-width: 0;
		max-width: none;
		gap: 60px;
		padding: 0;
	}

	.vita-contact__media {
		flex-basis: auto;
		aspect-ratio: 4 / 3;
	}

	.vita-contact__media img {
		object-position: 50% 30%;
	}
}

@media (max-width: 640px) {
	:root {
		--vita-gutter: 16px;
	}

	.vita-hero__media,
	.vita-contact__media {
		aspect-ratio: 4 / 5;
	}

	.vita-services__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 40px;
	}

	.vita-contact__row {
		flex-direction: column;
		gap: 12px;
	}

	.vita-contact__row .vita-contact__value {
		text-align: left;
		white-space: normal;
	}
}

/* ==========================================================================
   Password page (Settings → Site Access)
   ========================================================================== */

.vita-gate {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: 80px 24px;
	overflow: hidden;
	background: var(--vita-surface-brand);
	color: var(--vita-text-invert);
	text-align: center;
}

.vita-gate__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 64px;
	width: 100%;
	max-width: 420px;
}

.vita-gate__text {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.vita-gate__form {
	width: 100%;
	text-align: left;
}

.vita-gate__field {
	display: flex;
	align-items: center;
	gap: var(--vita-thin);
	padding-bottom: 9px;
	border-bottom: 1px solid var(--vita-border-invert);
}

.vita-gate__field:focus-within {
	padding-bottom: 8px;
	border-bottom-width: 2px;
}

.vita-gate__field input {
	flex: 1;
	min-width: 0;
	height: 44px;
	margin: calc((19.2px - 44px) / 2) 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--vita-text-invert);
	text-box: none;
	-webkit-appearance: none;
	appearance: none;
}

.vita-gate__field input::placeholder {
	color: var(--vita-text-invert);
	opacity: 0.6;
}

.vita-gate__field input:focus {
	outline: none;
}

.vita-gate__field button {
	position: relative;
	display: flex;
	flex: none;
	padding: 6px 0 6px 6px;
	margin: -6px 0;
	border: 0;
	background: none;
	color: var(--vita-text-invert);
	cursor: pointer;
	transition: transform 0.2s ease;
}

.vita-gate__field button::after {
	content: "";
	position: absolute;
	inset: -12px -12px -12px -8px;
}

@media (hover: hover) {
	.vita-gate__field button:hover {
		transform: translateX(3px);
	}
}

.vita-gate__error {
	margin-top: 12px;
	font-family: var(--vita-font-body);
	font-size: 13px;
	line-height: 1.2;
	letter-spacing: 0.05em;
}
