/* =============================================================================
   MOA Derma Lounge — theme.css
   ALL shared CSS lives here. Never put shared rules in pattern <style> blocks:
   patterns are not rendered when markup comes from post_content.
   ========================================================================== */

:root {
	--moa-brown: #7e5744;
	--moa-brown-deep: #764d38;
	--moa-brown-dark: #5c3a2a;
	--moa-cream: #fff8eb;
	--moa-cream-dim: #efe0cc;
	--moa-rule: rgba(255, 248, 235, 0.22);
	--moa-shell: min(1140px, 100% - 3rem);
	--moa-col: min(778px, 100% - 3rem);
}

/* -----------------------------------------------------------------------------
   Block-layout guard. Load-bearing: without these, core block margins fight the
   design CSS. Mirrors the .mc-structured guard on magnolia-cycles.
   -------------------------------------------------------------------------- */
.moa-structured :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure) {
	margin: 0;
}

.moa-structured > * + * {
	margin-block-start: 0;
}

/* -----------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
body {
	background: var(--moa-brown);
	color: var(--moa-cream);
	font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

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

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

.moa-skip {
	position: absolute;
	left: -9999px;
}

.moa-skip:focus {
	left: 1rem;
	top: 1rem;
	z-index: 999;
	background: var(--moa-cream);
	color: var(--moa-brown-deep);
	padding: 0.6rem 1rem;
	border-radius: 4px;
}

/* -----------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.moa-header {
	border-bottom: 1px solid var(--moa-rule);
	background: var(--moa-brown);
}

.moa-header__inner {
	width: var(--moa-shell);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1.25rem;
}

.moa-header__logo {
	display: block;
	flex: 0 0 auto;
	line-height: 0;
}

.moa-header__logo img {
	height: clamp(64px, 8vw, 104px);
	width: auto;
	display: block;
}

.moa-header__right {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	flex: 0 0 auto;
}

.moa-nav ul {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.moa-nav a {
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	padding-block: 0.35rem;
	border-bottom: 1px solid transparent;
	white-space: nowrap;
	transition: border-color 0.18s ease, opacity 0.18s ease;
}

.moa-nav a:hover,
.moa-nav a:focus-visible,
.moa-nav a[aria-current="page"] {
	border-bottom-color: var(--moa-cream);
}

.moa-social {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.moa-social a {
	width: 30px;
	height: 30px;
	border: 1px solid var(--moa-cream);
	border-radius: 50%;
	display: grid;
	place-items: center;
	transition: background 0.18s ease, color 0.18s ease;
}

.moa-social a:hover,
.moa-social a:focus-visible {
	background: var(--moa-cream);
	color: var(--moa-brown);
}

.moa-social svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
	display: block;
}

/* -----------------------------------------------------------------------------
   Pill buttons
   -------------------------------------------------------------------------- */
.pill-link {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.7rem 1.6rem;
	border-radius: 999px;
	border: 1px solid var(--moa-cream);
	color: var(--moa-cream);
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
	white-space: nowrap;
}

.pill-link:hover,
.pill-link:focus-visible {
	background: var(--moa-cream);
	color: var(--moa-brown);
}

.pill-link--solid {
	background: var(--moa-cream);
	color: var(--moa-brown);
}

.pill-link--solid:hover,
.pill-link--solid:focus-visible {
	background: transparent;
	color: var(--moa-cream);
}

/* On cream surfaces the pill inverts. */
.card-cream .pill-link,
.section--cream .pill-link {
	border-color: var(--moa-brown-deep);
	color: var(--moa-brown-deep);
}

.card-cream .pill-link:hover,
.card-cream .pill-link:focus-visible,
.section--cream .pill-link:hover,
.section--cream .pill-link:focus-visible {
	background: var(--moa-brown-deep);
	color: var(--moa-cream);
}

.card-cream .pill-link--solid,
.section--cream .pill-link--solid {
	background: var(--moa-brown-deep);
	color: var(--moa-cream);
}

.card-cream .pill-link--solid:hover,
.section--cream .pill-link--solid:hover {
	background: transparent;
	color: var(--moa-brown-deep);
}

/* -----------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */
.moa-main {
	display: block;
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.moa-structured > .wp-block-group,
.moa-structured > section,
.moa-structured > figure {
	margin-inline: auto;
}

/* -----------------------------------------------------------------------------
   Cream card — the homepage welcome message, and any boxed copy.
   Mirrors the 778px square block on the Squarespace original.
   -------------------------------------------------------------------------- */
.card-cream {
	background: var(--moa-cream);
	color: var(--moa-brown-deep);
	width: var(--moa-col);
	margin-inline: auto;
	padding: clamp(2.5rem, 5vw, 4.25rem) clamp(1.75rem, 4vw, 3.5rem);
	text-align: center;
}

.card-cream p {
	margin-block: 0 1.35em;
}

.card-cream p:last-child {
	margin-block-end: 0;
}

.script-head {
	font-family: Sacramento, "Brush Script MT", cursive;
	font-size: clamp(2.75rem, 7vw, 4.25rem);
	line-height: 1.05;
	color: var(--moa-brown-deep);
	margin-block-end: 0.5em !important;
}

.script-sign {
	font-family: Sacramento, "Brush Script MT", cursive;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.25;
	text-align: left;
	color: var(--moa-brown-deep);
	margin-block-start: 1.5em !important;
}

/* -----------------------------------------------------------------------------
   Portrait / full-bleed-in-column figure
   -------------------------------------------------------------------------- */
.moa-figure {
	width: var(--moa-col);
	margin-inline: auto;
	margin-block-start: clamp(1.5rem, 3vw, 2.5rem) !important;
	line-height: 0;
}

.moa-figure img {
	width: 100%;
	display: block;
}

/* -----------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
	width: var(--moa-shell);
	margin-inline: auto;
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section--narrow {
	width: var(--moa-col);
}

.section--cream {
	background: var(--moa-cream);
	color: var(--moa-brown-deep);
	width: 100%;
	padding-inline: clamp(1.5rem, 5vw, 4rem);
}

.section--cream > * {
	max-width: 1140px;
	margin-inline: auto;
}

.page-hero {
	width: var(--moa-shell);
	margin-inline: auto;
	padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 2vw, 1.5rem);
	text-align: center;
}

.page-hero h1 {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 300;
	letter-spacing: 0.01em;
	line-height: 1.05;
}

.page-hero p {
	margin-block-start: 1rem !important;
	max-width: 46ch;
	margin-inline: auto;
	opacity: 0.9;
}

.section__label {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	opacity: 0.75;
	margin-block-end: 0.85rem !important;
}

.section__head {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(1.875rem, 4vw, 2.75rem);
	font-weight: 300;
	line-height: 1.15;
	margin-block-end: 0.6em !important;
}

.section p + p {
	margin-block-start: 1.1em !important;
}

.text-center {
	text-align: center;
}

/* -----------------------------------------------------------------------------
   Service / link card grid
   -------------------------------------------------------------------------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25rem;
	margin-block-start: 2rem !important;
}

.card {
	border: 1px solid var(--moa-rule);
	padding: 1.75rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.section--cream .card {
	border-color: rgba(118, 77, 56, 0.28);
}

.card:hover {
	border-color: var(--moa-cream);
	background: rgba(255, 248, 235, 0.05);
}

.section--cream .card:hover {
	border-color: var(--moa-brown-deep);
	background: rgba(118, 77, 56, 0.04);
}

.card h3 {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.2;
}

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

.card__meta {
	margin-block-start: auto !important;
	padding-block-start: 0.5rem;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.7;
}

/* Brand list on the Shop page */
.brand-list {
	list-style: none;
	margin: 2rem 0 0 !important;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 0.65rem 1.5rem;
}

.brand-list li {
	padding-block: 0.6rem;
	border-bottom: 1px solid var(--moa-rule);
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
}

.section--cream .brand-list li {
	border-bottom-color: rgba(118, 77, 56, 0.22);
}

/* Button row */
.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block-start: 2rem !important;
}

.button-row--center {
	justify-content: center;
}

/* -----------------------------------------------------------------------------
   Contact details / hours
   -------------------------------------------------------------------------- */
.detail-list {
	list-style: none;
	margin: 1.5rem 0 0 !important;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.detail-list li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	justify-content: space-between;
	padding-block: 0.55rem;
	border-bottom: 1px solid var(--moa-rule);
}

.section--cream .detail-list li {
	border-bottom-color: rgba(118, 77, 56, 0.22);
}

.detail-list dt,
.detail-list .label {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.75;
}

/* -----------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.moa-footer {
	border-top: 1px solid var(--moa-rule);
	background: var(--moa-brown);
	color: var(--moa-cream);
	margin-block-start: clamp(2rem, 5vw, 4rem);
}

.moa-footer__inner {
	width: var(--moa-shell);
	margin-inline: auto;
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.moa-footer h2 {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.375rem;
	font-weight: 400;
	margin-block-end: 0.75rem;
}

.moa-footer p,
.moa-footer li {
	font-size: 0.9375rem;
	line-height: 1.7;
}

.moa-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.moa-footer a:hover,
.moa-footer a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.moa-footer__hours span {
	opacity: 0.8;
}

.moa-footer__bottom {
	border-top: 1px solid var(--moa-rule);
}

.moa-footer__bottom div {
	width: var(--moa-shell);
	margin-inline: auto;
	padding-block: 1.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	opacity: 0.75;
}

/* -----------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.moa-header__inner {
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem;
		padding-block: 1rem;
	}

	.moa-header__logo img {
		height: 62px;
	}

	.moa-header__right {
		width: 100%;
		justify-content: center;
		gap: 1.25rem;
	}

	.moa-nav ul {
		gap: 1.25rem;
	}
}

@media (max-width: 480px) {
	:root {
		--moa-shell: min(1140px, 100% - 2rem);
		--moa-col: min(778px, 100% - 2rem);
	}

	.moa-nav a {
		font-size: 0.75rem;
	}

	.moa-header__right {
		flex-wrap: wrap;
		gap: 0.85rem;
	}

	.detail-list li {
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}

/* -----------------------------------------------------------------------------
   Contact form
   Lives on a cream section, so controls are drawn in the deep brown.
   -------------------------------------------------------------------------- */
.moa-form {
	margin-block-start: 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	text-align: left;
}

.moa-form__row {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	margin: 0 !important;
}

.moa-form label {
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: .8;
}

.moa-form input[type="text"],
.moa-form input[type="email"],
.moa-form textarea {
	font: inherit;
	font-size: 1rem;
	color: inherit;
	background: transparent;
	border: 1px solid var(--moa-rule);
	border-radius: 2px;
	padding: .7rem .85rem;
	width: 100%;
	transition: border-color .18s ease;
}

.section--cream .moa-form input[type="text"],
.section--cream .moa-form input[type="email"],
.section--cream .moa-form textarea,
.card-cream .moa-form input[type="text"],
.card-cream .moa-form input[type="email"],
.card-cream .moa-form textarea {
	border-color: rgba(118, 77, 56, .35);
}

.moa-form input:focus,
.moa-form textarea:focus {
	outline: 2px solid currentColor;
	outline-offset: 1px;
	border-color: transparent;
}

.moa-form textarea {
	resize: vertical;
	min-height: 8rem;
	line-height: 1.6;
}

/* Honeypot — hidden from people, still reachable by bots. */
.moa-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.moa-form__check {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	margin: 0 !important;
}

.moa-form__check input {
	width: 1.1rem;
	height: 1.1rem;
	margin-top: .15rem;
	flex: 0 0 auto;
	accent-color: var(--moa-cream);
	cursor: pointer;
}

.section--cream .moa-form__check input {
	accent-color: var(--moa-brown-deep);
}

/* The consent label is a sentence, not a field label — reset the caps styling. */
.moa-form__check label {
	font-size: .875rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	opacity: .9;
	line-height: 1.55;
	cursor: pointer;
}

.moa-form__actions {
	margin: .35rem 0 0 !important;
}

.moa-form button.pill-link {
	font-family: inherit;
	cursor: pointer;
	background: var(--moa-cream);
	color: var(--moa-brown);
}

.section--cream .moa-form button.pill-link,
.card-cream .moa-form button.pill-link {
	background: var(--moa-brown-deep);
	color: var(--moa-cream);
}

.moa-form__notice {
	border: 1px solid currentColor;
	border-radius: 2px;
	padding: .9rem 1.1rem;
	font-size: .9375rem;
	line-height: 1.6;
}

.moa-form__notice--ok {
	margin-block-start: 1.75rem;
}
