/* Maison Élégance — porcelain, sage and brass. Colours and fonts come from
   theme.json (Appearance › Editor › Styles); this file draws the shapes. */

:root {
	--me-ink: var(--wp--preset--color--contrast, #1E2826);
	--me-paper: var(--wp--preset--color--base, #F7F7F4);
	--me-mist: var(--wp--preset--color--tertiary, #EEF1EC);
	--me-sage: var(--wp--preset--color--accent, #2F5D54);
	--me-sage-deep: var(--wp--preset--color--accent-deep, #23463F);
	--me-sage-light: var(--wp--preset--color--sage-light, #DCE7E1);
	--me-brass: var(--wp--preset--color--secondary, #B08D57);
	--me-muted: var(--wp--preset--color--muted, #5E6B68);
	--me-line: var(--wp--preset--color--line, #DDE3DE);
	--me-display: var(--wp--preset--font-family--display, serif);
	--me-mirror: 999px 999px 14px 14px;
	--me-header: 76px;
	/* The booking pages (salon plugin) take the theme's colours. */
	--wo-appt-accent: var(--me-sage);
	--wo-appt-soft: var(--me-sage-light);
	--wo-appt-ink: var(--me-ink);
	--wo-appt-mist: var(--me-mist);
	--wo-appt-line: var(--me-line);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--me-sage-light); color: var(--me-ink); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--me-brass); outline-offset: 3px; border-radius: 4px; }
img { height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Type helpers ---------- */
.me-script { font-family: var(--me-display); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.65rem); color: var(--me-brass); margin: 0 0 .35rem; line-height: 1.2; }
.me-spaced { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--me-muted); margin: .35rem 0 0; }
.me-kicker { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--me-brass); margin: 0 0 .6rem; }
.me-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; max-width: 34rem; }
.me-h { margin-top: 0; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.me-small { font-size: .85rem; color: var(--me-muted); }
.me-empty { padding: 1rem 1.25rem; border: 1px dashed var(--me-brass); border-radius: 10px; color: var(--me-muted); font-size: .9rem; }
.me-link { color: var(--me-sage); text-decoration: none; font-weight: 500; letter-spacing: .02em; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .25s ease; }
.me-link:hover, .me-link:focus { background-size: 40% 1px; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--me-sage); border: 1px solid currentColor; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover, .wp-block-button.is-style-outline > .wp-block-button__link:focus { background: var(--me-sage); color: #fff; border-color: var(--me-sage); }
.me-btn-light > .wp-block-button__link, .wp-block-button.is-style-outline.me-btn-light > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .7); }
.wp-block-button.is-style-outline.me-btn-light > .wp-block-button__link:hover { background: #fff; color: var(--me-ink); border-color: #fff; }
.me-btn-brass > .wp-block-button__link { background: var(--me-brass); color: var(--me-ink); }
.me-btn-brass > .wp-block-button__link:hover, .me-btn-brass > .wp-block-button__link:focus { background: #C9A96F; color: var(--me-ink); }
.me-btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; background: var(--me-sage); color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; }
.me-btn:hover, .me-btn:focus { background: var(--me-sage-deep); color: #fff; }
.me-btn--ghost { background: transparent; color: var(--me-sage); box-shadow: inset 0 0 0 1px currentColor; }
.me-btn--ghost:hover, .me-btn--ghost:focus { background: var(--me-mist); color: var(--me-sage-deep); }

/* ---------- Demo bar ---------- */
.me-demo-bar { background: var(--me-sage-deep); color: #E8EFEB; font-size: .8rem; text-align: center; padding: .45rem 1rem; }

/* ---------- Header ---------- */
.me-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--me-paper) 94%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s ease, background .2s ease; }
.admin-bar .me-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .me-header { top: 0; } }
.me-header.is-scrolled { border-bottom-color: var(--me-line); background: var(--me-paper); }
.me-header__in { min-height: var(--me-header); gap: 1.5rem; }
.me-brand { gap: .75rem; flex-shrink: 0; }
.me-mark { display: inline-flex; color: var(--me-ink); line-height: 0; }
.me-mark svg { width: 34px; height: 44px; }
.me-mark--logo img { max-height: 44px; width: auto; }
.me-brand__name, .me-brand__name a { font-family: var(--me-display); font-size: 1.45rem; color: var(--me-ink); text-decoration: none; margin: 0; letter-spacing: .01em; white-space: nowrap; }
.me-nav { font-size: .92rem; letter-spacing: .06em; }
.me-nav a { text-decoration: none; color: var(--me-ink); }
.me-nav .wp-block-navigation-item__content { padding: .3rem 0; background: linear-gradient(var(--me-brass), var(--me-brass)) 50% 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.me-nav .wp-block-navigation-item__content:hover, .me-nav [aria-current] { background-size: 100% 1px; }
.me-nav .wp-block-navigation__container { gap: clamp(1rem, 2.4vw, 2.2rem); }
.me-header__end { gap: .9rem; }
.me-header__book .wp-block-button__link { padding: .65rem 1.2rem; font-size: .88rem; }
.me-panel-btn { width: 44px; height: 44px; border: 1px solid var(--me-line); border-radius: 50%; background: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; color: var(--me-ink); }
.me-panel-btn:hover { border-color: var(--me-brass); }
.me-panel-btn__lines { display: grid; gap: 5px; width: 18px; }
.me-panel-btn__lines span { display: block; height: 1.5px; background: currentColor; }
.me-panel-btn__lines span:last-child { width: 60%; margin-left: auto; }
@media (max-width: 900px) {
	.me-header .wp-block-buttons.me-header__book { display: none; }
	.me-brand__name, .me-brand__name a { font-size: 1.2rem; }
}

/* ---------- Opening (split screen) ---------- */
.me-hero { margin-top: 0 !important; }
.me-hero__cols { margin: 0 !important; gap: 0 !important; min-height: calc(100vh - var(--me-header) - 32px); }
.me-hero__text { box-sizing: border-box; min-width: 0; padding: clamp(2.5rem, 6vw, 6rem) clamp(1.5rem, 6vw, 6.5rem) !important; }
.me-hero__title { font-size: var(--wp--preset--font-size--display); line-height: 1.02; letter-spacing: -.02em; margin: .4rem 0 0; max-width: 12ch; }
.me-hero .me-lead { margin-top: 1.6rem; }
.me-hero__btns { margin-top: 2rem; gap: .75rem; }
.me-hero__media { position: relative; overflow: hidden; background: var(--me-sage-light); }
.me-hero__img, .me-hero__img img { margin: 0; width: 100%; height: 100%; }
.me-hero__img img { object-fit: cover; position: absolute; inset: 0; }
@media (max-width: 781px) {
	.me-hero__cols { flex-direction: column-reverse; min-height: 0; }
	.wp-block-columns.me-hero__cols > .wp-block-column.me-hero__media { flex: 0 0 58vh !important; height: 58vh; }
	.wp-block-columns.me-hero__cols > .wp-block-column.me-hero__text { flex: 0 0 auto !important; padding-top: 2.25rem !important; }
	.me-hero__title { font-size: 2.6rem; }
}
/* One entrance, on load only. */
.me-js .me-hero__text > * { animation: me-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.me-js .me-hero__text > *:nth-child(2) { animation-delay: .08s; }
.me-js .me-hero__text > *:nth-child(3) { animation-delay: .16s; }
.me-js .me-hero__text > *:nth-child(n+4) { animation-delay: .26s; }
.me-js .me-hero__img img { animation: me-settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes me-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes me-settle { from { transform: scale(1.06); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .me-js .me-hero__text > *, .me-js .me-hero__img img { animation: none; } }

/* Live next free time */
.me-next { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 1.75rem 0 0; padding: .55rem 1rem .55rem .85rem; border: 1px solid var(--me-line); border-radius: 999px; background: #fff; font-size: .9rem; color: var(--me-ink); }
.me-next__dot { width: 8px; height: 8px; border-radius: 50%; background: #3C8C6E; box-shadow: 0 0 0 0 rgba(60, 140, 110, .5); animation: me-pulse 2.4s ease-out infinite; }
.me-next__label { color: var(--me-muted); }
.me-next__time { color: var(--me-sage); font-weight: 600; text-decoration: none; }
.me-next__time:hover { text-decoration: underline; }
@keyframes me-pulse { 70% { box-shadow: 0 0 0 8px rgba(60, 140, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 140, 110, 0); } }
@media (prefers-reduced-motion: reduce) { .me-next__dot { animation: none; } }

/* ---------- Sections ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.me-section { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.wp-site-blocks > main > .wp-block-post-content > * + *, .me-content--wide > * { margin-block-start: 0; }

/* Three tiles: light, dark, light */
.me-tiles { margin-top: 0 !important; }
.me-tiles__cols { margin: 0 !important; gap: 0 !important; }
.me-tile { box-sizing: border-box; min-width: 0; min-height: clamp(320px, 38vw, 460px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 3rem 2rem !important; background: #fff; border-right: 1px solid var(--me-line); }
.me-tile:last-child { border-right: 0; }
.me-tile.is-dark { background: var(--me-ink); color: var(--me-paper); border-color: var(--me-ink); }
.me-tile.is-dark .me-tile__title { color: #fff; }
.me-tile.is-dark .me-spaced { color: #B9C4C0; }
.me-tile.is-dark .me-link { color: #E5D3B0; }
.me-tile__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0; }
.me-tile__link { margin-top: 1.6rem; }
@media (max-width: 781px) { .me-tile { border-right: 0; border-bottom: 1px solid var(--me-line); } }

/* Mirror (arched) images */
.is-style-mirror img, .is-style-mirror .wp-block-cover__image-background { border-radius: var(--me-mirror); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.wp-block-cover.is-style-mirror { border-radius: var(--me-mirror); overflow: hidden; }
.me-framed { position: relative; margin: 0 1rem 1rem 0 !important; }
.me-framed::after { content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; border: 1px solid var(--me-brass); border-radius: var(--me-mirror); pointer-events: none; z-index: -1; }
.me-split { gap: clamp(2rem, 6vw, 6rem) !important; }

/* Price list */
.me-prices { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.me-prices__item { padding: 1rem 0; border-bottom: 1px solid var(--me-line); }
.me-prices__item:first-child { border-top: 1px solid var(--me-line); }
.me-prices__line { display: flex; align-items: baseline; gap: .75rem; }
.me-prices__name { font-family: var(--me-display); font-size: 1.3rem; }
.me-prices__dots { flex: 1; border-bottom: 1px dotted color-mix(in srgb, var(--me-brass) 70%, transparent); transform: translateY(-.3em); min-width: 1rem; }
.me-prices__price { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.me-prices__meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .2rem; font-size: .88rem; color: var(--me-muted); }
.me-prices__book { color: var(--me-sage); font-weight: 600; text-decoration: none; white-space: nowrap; opacity: .85; }
.me-prices__book::after { content: " →"; }
.me-prices__item:hover .me-prices__book, .me-prices__book:focus { opacity: 1; text-decoration: underline; }

/* Story over a photo */
.me-story .wp-block-cover__inner-container { color: #fff; }
.me-story .me-story__title { color: #fff; font-size: var(--wp--preset--font-size--xx-large); }
.me-story .me-script { color: #D9C29A; }
.me-story .me-lead { margin-left: auto; margin-right: auto; color: #E9EEEB; }

/* Team */
.me-team { gap: clamp(1.5rem, 4vw, 3.5rem) !important; }
.me-person { text-align: center; }
.me-person .wp-block-image { margin-bottom: 1.25rem; }
.me-person__name { margin: 0; font-size: 1.6rem; }
.me-person__bio { font-size: .95rem; color: var(--me-muted); max-width: 22rem; margin: .8rem auto 0; }
.me-person__book { margin-top: .9rem; }

/* Mosaic gallery */
.me-mosaic.wp-block-gallery { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 18vw, 260px); gap: 14px !important; }
.me-mosaic.wp-block-gallery > .wp-block-image { width: auto !important; margin: 0 !important; }
.me-mosaic.wp-block-gallery > .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 6px; }
.me-mosaic > .wp-block-image:nth-child(1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 781px) { .me-mosaic.wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; } .me-mosaic > .wp-block-image:nth-child(1) { grid-column: span 2; grid-row: span 1; } }

/* Hours and address (dark) */
.me-visit .me-h { color: #fff; }
.me-visit .me-script { color: #D9C29A; }
.me-visit a { color: #E5D3B0; }
.me-visit .me-next { background: transparent; border-color: rgba(255, 255, 255, .25); color: #EEF3F0; }
.me-visit .me-next__label { color: #B9C8C2; }
.me-visit .me-next__time { color: #fff; }
.me-visit__cols { gap: clamp(2rem, 6vw, 5rem) !important; }
.me-hours__now { font-size: .92rem; font-weight: 500; margin: 0 0 .8rem; min-height: 1.4em; }
.me-hours__now.is-open::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3C8C6E; margin-right: .5rem; vertical-align: .1em; }
.me-hours__list { margin: 0; }
.me-hours__row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); font-size: .95rem; }
.me-hours__row dt { font-weight: 500; }
.me-hours__row dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.me-hours__row.is-closed dd { opacity: .6; }
.me-hours__row.is-today dt, .me-hours__row.is-today dd { color: var(--me-brass); }
.me-visit .me-hours__row.is-today dt, .me-visit .me-hours__row.is-today dd, .me-footer .me-hours__row.is-today dt, .me-footer .me-hours__row.is-today dd { color: #E5D3B0; }
.me-hours__note { font-size: .85rem; margin: .8rem 0 0; opacity: .85; }
.me-contact p { margin: 0 0 1rem; line-height: 1.6; }
.me-contact__addr { font-family: var(--me-display); font-size: 1.4rem; }
.me-contact__addr .me-link { font-family: var(--wp--preset--font-family--body); font-size: .9rem; }
.me-contact__phone a { font-size: 1.15rem; text-decoration: none; }

/* Journal */
.me-journal { padding: var(--wp--preset--spacing--60) clamp(1.25rem, 4vw, 3rem); }
.me-journal__in { max-width: 1180px; margin: 0 auto; }
.me-head--center { text-align: center; }
.me-journal__h { margin: 0 0 2.5rem; }
.me-journal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
@media (max-width: 900px) { .me-journal__grid { grid-template-columns: 1fr; } }
.me-journal__link { display: block; color: inherit; text-decoration: none; }
.me-journal__media { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: var(--me-mist); }
.me-journal__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.me-journal__link:hover .me-journal__img { transform: scale(1.03); }
.me-journal__body { display: block; padding-top: 1.1rem; }
.me-journal__meta { display: block; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--me-muted); }
.me-journal__title { display: block; font-family: var(--me-display); font-size: 1.45rem; line-height: 1.2; margin: .45rem 0; }
.me-journal__excerpt { display: block; color: var(--me-muted); font-size: .95rem; }
.me-journal__more { display: inline-block; margin-top: .8rem; color: var(--me-sage); font-weight: 600; font-size: .9rem; }
.me-journal__all { text-align: center; margin-top: 2.5rem; }
.me-link-arrow { color: var(--me-sage); font-weight: 600; text-decoration: none; }
/* Journal page and archive cards (query loop) */
.me-journal--page { padding-top: 1rem; padding-bottom: var(--wp--preset--spacing--60); }
.me-journal__card .wp-block-post-featured-image img { border-radius: 6px; }
.me-journal__card .me-journal__title a { text-decoration: none; color: var(--me-ink); font-size: 1.45rem; }

/* Pages and posts */
.me-main { min-height: 50vh; }
.me-pagehead { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--40); }
.me-pagehead .wp-block-post-title, .me-pagehead h1 { font-size: var(--wp--preset--font-size--xx-large); }
.me-postdate { color: var(--me-muted); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.me-postimage img { border-radius: 8px; max-height: 70vh; object-fit: cover; }
.me-content { padding-bottom: var(--wp--preset--spacing--50); }
.me-content > p { font-size: 1.08rem; line-height: 1.8; }
.me-postfoot { margin-top: 2rem; padding: var(--wp--preset--spacing--50) 1.5rem var(--wp--preset--spacing--60); background: var(--me-mist); text-align: center; }
.me-postfoot__title { margin: 0 0 1.5rem; }
.me-404 { text-align: center; }

/* Locations */
.me-locations__cols { gap: 1.5rem !important; }
.me-location { padding: 1.75rem; background: #fff; border: 1px solid var(--me-line); border-radius: 14px; }
.me-location h3 { margin-top: 0; }

/* ---------- Footer ---------- */
.me-footer { padding-top: var(--wp--preset--spacing--60); padding-bottom: 2rem; margin-top: 0 !important; font-size: .95rem; }
.me-footer .me-mark { color: #fff; }
.me-footer .me-brand__name { color: #fff; }
.me-footer a { color: #E5D3B0; }
.me-footer .me-kicker { color: #CDB48A; }
.me-footer__cols { gap: clamp(1.5rem, 4vw, 3.5rem) !important; }
.me-footer__about { color: #C9D3CF; max-width: 22rem; }
.me-footer__links { list-style: none; padding: 0; margin: 0; }
.me-footer__links li { margin: 0 0 .55rem; }
.me-footer__links a { text-decoration: none; }
.me-footer__links a:hover { text-decoration: underline; }
.me-footer__legal { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: #9DABA6; }
.me-footer .me-contact__addr { font-size: 1.15rem; }

/* ---------- Side panel ---------- */
.me-panel { position: fixed; inset: 0; z-index: 1000; }
.me-panel[hidden] { display: none; }
.me-panel__shade { position: absolute; inset: 0; background: rgba(20, 28, 26, .45); animation: me-fade .25s ease both; }
.me-panel__box { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); overflow-y: auto; background: var(--me-paper); padding: 2rem 2rem 2.5rem; box-shadow: -20px 0 50px -30px rgba(0, 0, 0, .5); animation: me-slide .35s cubic-bezier(.2, .7, .2, 1) both; }
.me-panel__x { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border: 1px solid var(--me-line); border-radius: 50%; background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--me-ink); }
.me-panel__brand { display: flex; align-items: center; gap: .75rem; margin: .25rem 0 2rem; }
.me-panel__name { font-family: var(--me-display); font-size: 1.4rem; margin: 0; }
.me-panel .me-kicker { margin-top: 1.75rem; }
.me-panel .me-contact__addr { font-size: 1.15rem; }
.me-panel__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
body.me-panel-open { overflow: hidden; }
@keyframes me-fade { from { opacity: 0; } }
@keyframes me-slide { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .me-panel__shade, .me-panel__box { animation: none; } }

/* ---------- Phone bar ---------- */
.me-bar { display: none; }
@media (max-width: 781px) {
	.me-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--me-paper); border-top: 1px solid var(--me-line); padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom)); gap: .5rem; }
	.me-bar a { flex: 1; text-align: center; padding: .75rem .5rem; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--me-sage); box-shadow: inset 0 0 0 1px var(--me-line); }
	.me-bar a.me-bar__book { flex: 1.6; background: var(--me-sage); color: #fff; box-shadow: none; }
	body { padding-bottom: 70px; }
}

/* ---------- Booking pages (salon plugin) ---------- */
.wo-appt, .wo-client { font-family: var(--wp--preset--font-family--body); }
.wo-appt h2, .wo-appt h3, .wo-client h2 { font-family: var(--me-display); font-weight: 400; }

@media (max-width: 600px) {
	.me-prices__dots { display: none; }
	.me-prices__line { justify-content: space-between; align-items: flex-start; }
	.me-prices__name { font-size: 1.15rem; }
	.me-section { padding-top: 3.25rem !important; padding-bottom: 3.25rem !important; }
}
@media (max-width: 781px) { .me-panel-btn { display: none; } }
.me-content > p + p { margin-top: 1.1em; }
