/* ==========================================================================
   MiGi Cosmetic Clinic Blocks — Shared Utilities & Elements
   All CSS vars reference theme.json design tokens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared: Typography & Elements
   -------------------------------------------------------------------------- */

/* Gold uppercase label ('DM Sans') */
.mg-label {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--wp--preset--color--brand-gold);
}
.mg-label--xs {
	font-size: var(--wp--preset--font-size--x-small);
}
.mg-label--label-sm {
	font-size: var(--wp--preset--font-size--label-sm);
}
.mg-label--white {
	color: rgba(255, 255, 255, 0.9);
}
.mg-label--muted {
	color: rgba(61, 61, 56, 0.5);
}
.mg-label--emerald {
	color: var(--wp--preset--color--brand-dark);
	opacity: 0.6;
}
.mg-label--wide {
	letter-spacing: 3px;
}
.mg-label--no-spacing {
	letter-spacing: 0px;
}

/* Section heading (Cormorant Garamond) */
.mg-heading {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.8rem, 3.5vw, 2.8rem);
	font-weight: 400;
	line-height: 1.2;
	color: var(--wp--preset--color--brand-dark);
}
.mg-heading--white {
	color: #fff;
}
.mg-heading--italic {
	font-style: italic;
	font-weight: 300;
}
.mg-heading--lg {
	font-size: clamp(1.8rem, 4vw, 3rem);
}
.mg-heading--card {
	font-size: var(--wp--preset--font-size--body-lg);
	font-style: italic;
}
.mg-heading--room {
	font-size: clamp(1.5rem, 2.5vw, 2.2rem);
	font-style: italic;
}

/* Body paragraph */
.mg-body {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.8;
	color: var(--wp--preset--color--body);
	margin: 0;
}
.mg-body--white {
	color: rgba(255, 255, 255, 0.8);
}
.mg-body + .mg-body {
	margin-top: 1rem;
}

/* Prose: auto-wrapped paragraphs via wpautop() */
.mg-prose p {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.65;
	color: var(--wp--preset--color--body);
	margin: 0;
}
.mg-prose p + p {
	margin-top: 1rem;
}
.mg-prose--white p {
	color: rgba(255, 255, 255, 0.8);
}

/* Emerald button — base (solid emerald, hover gold) */
.mg-btn {
	display: inline-block;
	padding: 0.875rem 1.75rem;
	background: var(--wp--preset--color--brand-dark);
	color: #fff;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
}
.mg-btn:hover {
	background: var(--wp--preset--color--brand-gold);
	color: #fff;
}
.mg-btn:active {
	transform: scale(0.97);
}
.mg-btn--wide {
	padding-left: 2.5rem;
	padding-right: 2.5rem;
}

/* Outline variant (transparent, dark border, hover gold fill) */
.mg-btn--outline {
	background: transparent;
	border-color: var(--wp--preset--color--brand-dark);
	color: var(--wp--preset--color--brand-dark);
}
.mg-btn--outline:hover {
	background: var(--wp--preset--color--brand-gold);
	border-color: var(--wp--preset--color--brand-gold);
	color: var(--wp--preset--color--brand-dark);
}

/* Ghost variant (transparent, white border, hover gold) */
.mg-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}
.mg-btn--ghost:hover {
	background: transparent;
	border-color: var(--wp--preset--color--brand-gold);
	color: var(--wp--preset--color--brand-gold);
}

/* Gold variant (solid gold + dark text, hover dark + gold text) */
.mg-btn--gold {
	background: var(--wp--preset--color--brand-gold);
	border-color: var(--wp--preset--color--brand-gold);
	color: var(--wp--preset--color--brand-dark);
}
.mg-btn--gold:hover {
	background: var(--wp--preset--color--brand-dark);
	border-color: var(--wp--preset--color--brand-dark);
	color: var(--wp--preset--color--brand-gold);
}

/* Gold diamond divider */
.mg-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.mg-divider__line {
	height: 1px;
	width: 32px;
	background: var(--wp--preset--color--brand-gold);
}
.mg-divider__diamond {
	width: 6px;
	height: 6px;
	transform: rotate(45deg);
	border: 1px solid var(--wp--preset--color--brand-gold);
}

/* Small section heading — uppercase, negative tracking (design: mg-heading-sm) */
.mg-heading-sm {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2rem;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--brand-dark);
	margin: 0;
}
@media (min-width: 768px) {
	.mg-heading-sm {
		font-size: 2.5rem;
		letter-spacing: -0.04em;
	}
}
@media (min-width: 1024px) {
	.mg-heading-sm {
		font-size: 3rem;
		letter-spacing: -0.04em;
	}
}
.mg-heading-sm--white {
	color: var(--wp--preset--color--brand-cream);
}

/* Gold accent bar */
.mg-accent-bar {
	width: 48px;
	height: 1px;
	background: var(--wp--preset--color--brand-gold);
}

/* Shared section wrapper */
.mg-section {
	padding: 4rem 1.25rem;
}
@media (min-width: 768px) {
	.mg-section {
		padding: 6rem 2rem;
	}
}

/* Constrained inner container using the theme wideSize setting. */
.mg-container {
	max-width: var(--wp--style--global--wide-size, 87.5rem);
	margin: 0 auto;
}

/* Two-column grid */
.mg-grid-2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}
@media (min-width: 768px) {
	.mg-grid-2 {
		grid-template-columns: 1fr 1fr;
		gap: 5rem;
	}
}

/* Image with overflow hidden */
.mg-img-wrap {
	overflow: hidden;
}
.mg-img-wrap img {
	width: 100%;
	height: 100%;
	display: block;
}

/* Spacing helpers */
.mg-mt-1  { margin-top: 1rem; }
.mg-mt-15 { margin-top: 1.5rem; }
.mg-mt-2  { margin-top: 2rem; }
.mg-mt-25 { margin-top: 2.5rem; }
.mg-mt-4  { margin-top: 4rem; }
.mg-mt-5  { margin-top: 5rem; }
.mg-mb-15 { margin-bottom: 1.5rem; }
.mg-text-center { text-align: center; }

.site-main {
	padding-top: 72px;
	margin: 0;
	min-height: 70vh;
}
@media (min-width: 1024px) {
	.site-main {
		padding-top: 88px;
	}
}

/* --------------------------------------------------------------------------
   Editor: full-width blocks in post editor
   -------------------------------------------------------------------------- */
.editor-styles-wrapper .alignfull {
	max-width: none !important;
	width: 100vw;
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
}

/* --------------------------------------------------------------------------
   Layout resets
   -------------------------------------------------------------------------- */
:root :where(.is-layout-flow) > *,
:root :where(.is-layout-constrained) > * {
	margin-block-start: 0 !important;
}
.mg-content-page.is-layout-constrained > * {
	margin-block-start: 1.5rem !important;
}
.mg-content-page.is-layout-constrained > :first-child {
	margin-block-start: 0 !important;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0 !important;
}

/* --------------------------------------------------------------------------
   Text Page (Privacy, Terms, etc.)
   -------------------------------------------------------------------------- */
.text-page__updated {
	font-size: 0.75rem;
	font-weight: 500;
	font-family: var(--wp--preset--font-family--body);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--wp--preset--color--brand-gold);
	margin-bottom: 0;
}
.text-page__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 400;
	color: var(--wp--preset--color--ink);
	text-transform: uppercase;
	letter-spacing: -0.025em;
	line-height: 1.25;
	margin-top: 0.75rem;
	margin-bottom: 2.5rem;
}

.text-page__content p,
.text-page__content li {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	line-height: 1.625;
	color: var(--wp--preset--color--muted-fg);
}
.text-page__content p {
	margin-bottom: 1.25rem;
}
.text-page__content h2 {
	font-size: 1rem;
	font-weight: 500;
	color: var(--wp--preset--color--ink);
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
}
.text-page__content h3 {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--wp--preset--color--ink);
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}
.text-page__content ul,
.text-page__content ol {
	padding-left: 1.5rem;
	margin-bottom: 1.25rem;
}
.text-page__content li {
	margin-bottom: 0.4rem;
}
.text-page__content a {
	color: var(--wp--preset--color--brand-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.text-page__content a:hover {
	color: var(--wp--preset--color--brand-gold);
}
@media (min-width: 768px) {
	.text-page__content p,
	.text-page__content li {
		font-size: 0.9375rem;
	}
}

/* --------------------------------------------------------------------------
   Booking Form (shared between hero-carousel and book-cta)
   -------------------------------------------------------------------------- */
.booking-form {
	display: flex;
	flex-direction: column;
	border: 1px solid;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.booking-form--dark {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.1);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
.booking-form--light {
	border-color: rgba(31, 30, 28, 0.1);
	background: #fff;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.booking-form--light .booking-form__label {
	color: var(--wp--preset--color--body);
}
.booking-form--light .booking-form__input {
	color: var(--wp--preset--color--ink);
	color-scheme: light;
}
.booking-form--light .booking-form__field {
	border-right-color: rgba(31, 30, 28, 0.1);
}
@media (min-width: 640px) {
	.booking-form {
		flex-direction: row;
		align-items: center;
	}
}
.booking-form__field {
	display: flex;
	flex-direction: column;
	padding: 1rem 1.5rem;
}
@media (min-width: 640px) {
	.booking-form__field {
		border-right: 1px solid rgba(255, 255, 255, 0.15);
	}
}
.booking-form__label {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--label-sm);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: rgba(255, 255, 255, 0.5);
}
.booking-form__input {
	margin-top: 4px;
	width: 150px;
	border: none;
	background: transparent;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	color: #fff;
	color-scheme: dark;
	outline: none;
}

.booking-form__input option {
	color: var(--wp--preset--color--body);
}

.booking-form__submit {
	padding: 1rem 2.5rem;
	background: var(--wp--preset--color--brand-dark);
	color: #fff;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	border: none;
	cursor: pointer;
	transition: background 0.3s ease;
}
@media (min-width: 640px) {
	.booking-form__submit {
		align-self: stretch;
	}
}
.booking-form__submit:hover {
	background: var(--wp--preset--color--brand-gold);
}
