/*
Theme Name: MAUD
Theme URI: https://bookmaud.com
Author: MABLE
Author URI: https://mable.co
Description: Block theme for bookmaud.com, the booking software for studios, spas, bathhouses and wellness venues.
Version: 2.4.3
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maud
*/

/* =========================================================
   MAUD v2: photo-led homepage
   One typeface: Graphik (Regular 400 only), with Inter as
   the fallback until the licensed Graphik web fonts are in
   assets/fonts/. Italic words in headings (Cmd+I in the editor)
   show as Medium weight, not italic.
   ========================================================= */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

h1 em, h2 em, h3 em, .maud-serif {
	font-family: inherit;
	font-style: normal; font-weight: 400; letter-spacing: inherit;
}
.maud-muted { color: var(--wp--preset--color--muted); }
.maud-label { font-size: 13px !important; font-weight: 400; color: var(--wp--preset--color--bronze); margin: 0; }
.maud-center { text-align: center; }
.maud-center > * { margin-left: auto !important; margin-right: auto !important; }

/* ---------- Floating header ---------- */
.maud-header-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 100; pointer-events: none; }
.maud-header {
	max-width: 1360px; margin: 0 auto; padding: 20px 40px; box-sizing: border-box;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.maud-header > * { pointer-events: auto; margin: 0 !important; }
.maud-pill {
	background: rgba(255,255,255,0.72); border: 1px solid rgba(31,28,24,0.08);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-radius: 999px; color: var(--wp--preset--color--ink);
}
.maud-header .wp-block-site-title { padding: 9px 18px; font-family: var(--wp--preset--font-family--maud); font-size: 22px; font-weight: 400; line-height: 1; }
.maud-header .wp-block-site-title a { text-decoration: none; color: inherit; }
.maud-nav { display: flex; align-items: center; gap: 4px; padding: 5px; }
.maud-nav .wp-block-navigation { font-size: 13px; font-weight: 400; gap: 0; }
.maud-nav .wp-block-navigation a { text-decoration: none; padding: 9px 16px; color: #4A443D; }
.maud-nav .wp-block-buttons { margin: 0; }
.maud-nav .wp-block-button__link { padding: 9px 18px; font-size: 13px; }
.maud-login { padding: 10px 18px; font-size: 13px; font-weight: 400; }
.maud-login a { text-decoration: none; color: inherit; }
body:not(.home) .maud-page-main { padding-top: 140px; }

/* ---------- Hero ---------- */
.maud-hero.wp-block-cover { min-height: 880px; padding: 0 24px 200px; align-items: flex-end; text-align: center; }
.maud-hero .wp-block-cover__inner-container { max-width: 980px; margin: 0 auto; }
.maud-hero .wp-block-cover__inner-container > * + * { margin-block-start: 24px; }
.maud-hero h1 { font-size: clamp(48px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.03em; margin: 0; color: #fff; }
.maud-hero .maud-lead { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.82); max-width: 600px; margin-left: auto; margin-right: auto; }
.maud-hero .maud-small { font-size: 13px; color: rgba(255,255,255,0.7); }
.maud-hero .wp-block-buttons { justify-content: center; }
.maud-btn-light .wp-block-button__link { background: #fff; color: var(--wp--preset--color--ink); }
.maud-btn-light .wp-block-button__link:hover { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--ink); }
.maud-photo-note { font-size: 11px !important; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

/* ---------- White panel rising over the hero ---------- */
.maud-panel {
	position: relative; z-index: 2; margin-top: -48px !important;
	border-radius: 40px 40px 0 0; background: linear-gradient(180deg, #FFFFFF 0%, #F8F5F1 100%);
}
.maud-section { max-width: 1240px; margin: 0 auto !important; padding: 140px 40px 0; box-sizing: border-box; }
.maud-section--first { padding-top: 120px; }
.maud-heading-block { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 56px; }
.maud-heading-block > * { margin: 0 !important; max-width: 820px; }
.maud-heading-block p.maud-intro { font-size: 16px; line-height: 1.6; color: var(--wp--preset--color--muted); max-width: 640px; }

.maud-grid { display: grid; gap: 40px; }
.maud-grid > * { margin: 0 !important; }
.maud-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.maud-grid--4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.maud-grid--5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }

.maud-line-item { padding-top: 20px; border-top: 1px solid var(--wp--preset--color--line); }
.maud-line-item h3 { font-size: 17px; font-weight: 400; letter-spacing: 0; margin: 0; }
.maud-line-item p { font-size: 15px; line-height: 1.6; color: var(--wp--preset--color--muted); margin: 10px 0 0; }
.maud-closing { font-size: 17px !important; font-weight: 400; text-align: center; margin-top: 56px !important; }

/* ---------- Sticky phone with features either side ---------- */
.maud-how.wp-block-columns { gap: 48px; align-items: flex-start; padding-bottom: 20px; }
.maud-how > .wp-block-column { display: flex; flex-direction: column; gap: 360px; }
.maud-how .maud-how-left { padding-top: 140px; }
.maud-how .maud-how-right { padding-top: 400px; }
.maud-how .maud-how-phone { position: sticky; top: 110px; align-items: center; }
.maud-feature { max-width: 340px; }
.maud-feature > * + * { margin-block-start: 14px; }
.maud-feature h3 { line-height: 1.05; margin: 0; }
.maud-feature p { font-size: 15px; line-height: 1.6; color: var(--wp--preset--color--muted); margin: 0; }

.maud-phone { width: 300px; height: 620px; border-radius: 48px; background: var(--wp--preset--color--ink); padding: 10px; box-sizing: border-box; box-shadow: 0 40px 80px rgba(31,28,24,0.18); margin: 0 auto; }
.maud-phone__screen { width: 100%; height: 100%; border-radius: 39px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.maud-phone__top { background: var(--wp--preset--color--ink); color: #fff; padding: 40px 20px 18px; display: flex; justify-content: space-between; align-items: flex-end; }
.maud-phone__day { font-size: 26px; font-weight: 400; }
.maud-phone__date { font-size: 11px; color: rgba(255,255,255,0.6); text-align: right; line-height: 1.4; }
.maud-phone__days { display: flex; gap: 6px; padding: 14px 16px 6px; font-size: 11px; }
.maud-phone__days span { flex: 1; text-align: center; padding: 6px 0; border-radius: 10px; background: var(--wp--preset--color--stone); color: #4A443D; }
.maud-phone__days span.is-on { background: var(--wp--preset--color--ink); color: #fff; }
.maud-phone__list { padding: 6px 16px; flex: 1; }
.maud-phone__row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #F0EBE4; }
.maud-phone__time { font-size: 12px; color: var(--wp--preset--color--muted); width: 38px; }
.maud-phone__name { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 400; line-height: 1.3; }
.maud-phone__name small { font-size: 11px; color: var(--wp--preset--color--muted); font-weight: 400; }
.maud-phone__spaces { font-size: 11px; padding: 4px 8px; border-radius: 999px; background: var(--wp--preset--color--stone); color: #6E5535; white-space: nowrap; }
.maud-phone__foot { padding: 16px; }
.maud-phone__btn { height: 44px; border-radius: 999px; background: var(--wp--preset--color--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 400; }
.maud-phone__by { text-align: center; font-size: 10px; color: var(--wp--preset--color--muted); margin-top: 10px; }

/* ---------- Card rail ---------- */
.maud-rail-head { max-width: 1360px; margin: 0 auto !important; padding: 140px 40px 40px; box-sizing: border-box; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.maud-rail-head h2 { margin: 0; max-width: 680px; font-size: clamp(34px, 4vw, 52px); }
.maud-rail-arrows { display: flex; gap: 8px; }
.maud-rail-arrows button { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--wp--preset--color--line); background: #fff; color: var(--wp--preset--color--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.maud-rail-arrows button:hover { background: var(--wp--preset--color--stone); }
.maud-rail {
	display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding: 0 max(40px, calc((100vw - 1280px) / 2)) 40px; box-sizing: border-box; scroll-padding-left: max(40px, calc((100vw - 1280px) / 2));
}
.maud-rail::-webkit-scrollbar { display: none; }
.maud-rail > * { margin: 0 !important; }
.maud-card {
	flex: 0 0 440px; min-height: 520px; border-radius: 28px; padding: 32px !important; box-sizing: border-box;
	scroll-snap-align: start; box-shadow: 0 20px 50px rgba(31,28,24,0.07); overflow: hidden;
}
.maud-card.wp-block-cover { align-items: flex-start; }
.maud-card .wp-block-cover__inner-container { width: 100%; color: #fff; }
.maud-card--plain { background: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.maud-card h3 { font-size: 26px; letter-spacing: -0.015em; margin: 0; }
.maud-card p { font-size: 15px; line-height: 1.55; max-width: 330px; margin: 10px 0 0; }
.maud-card--plain p { color: var(--wp--preset--color--muted); }
.maud-card.wp-block-cover p { color: rgba(255,255,255,0.78); }
.maud-card .maud-photo-note { margin-top: 300px; }
.maud-card--plain .maud-photo-note { color: var(--wp--preset--color--muted); margin-top: 0; }

/* ---------- Dark promises card ---------- */
.maud-dark-wrap { padding: 100px 16px 0; }
.maud-dark {
	max-width: 1408px; margin: 0 auto !important; border-radius: 40px; background: #0E0E0E;
	color: var(--wp--preset--color--cream); padding: 120px 40px; box-sizing: border-box;
}
.maud-dark > * { max-width: 1100px; margin-left: auto !important; margin-right: auto !important; }
.maud-dark h2, .maud-dark h3 { color: var(--wp--preset--color--cream); }
.maud-dark .maud-label { color: var(--wp--preset--color--sand); }
.maud-dark .maud-line-item { border-top-color: var(--wp--preset--color--night-line); }
.maud-dark .maud-line-item p { color: var(--wp--preset--color--mist); font-size: 14px; }

/* ---------- Switching ---------- */
.maud-step { min-height: 260px; border-radius: 24px; background: #fff; padding: 28px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; box-shadow: 0 16px 40px rgba(31,28,24,0.06); }
.maud-step > * { margin: 0 !important; }
.maud-step .maud-num { font-family: var(--wp--preset--font-family--maud); font-size: 40px !important; letter-spacing: -0.03em; line-height: 1; color: var(--wp--preset--color--bronze); }
.maud-step h3 { font-size: 18px; font-weight: 400; letter-spacing: 0; }
.maud-step p { font-size: 14px; line-height: 1.6; color: var(--wp--preset--color--muted); margin-top: 8px !important; }
.maud-quote.wp-block-quote { max-width: 820px; margin: 96px auto 0 !important; border: 0; padding: 0; text-align: center; }
.maud-quote p { font-family: var(--wp--preset--font-family--maud); font-style: normal; font-size: 30px; line-height: 1.3; letter-spacing: -0.02em; }
.maud-quote cite { display: block; margin-top: 20px; font-size: 14px; font-style: normal; color: var(--wp--preset--color--muted); }

/* ---------- Pricing ---------- */
.maud-price-card { max-width: 520px; margin: 0 auto !important; border-radius: 32px; background: #fff; padding: 44px; box-sizing: border-box; box-shadow: 0 30px 70px rgba(31,28,24,0.09); }
.maud-price-card > * + * { margin-block-start: 24px; }
.maud-price { font-size: 72px !important; font-weight: 400; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.maud-price span { font-size: 15px; letter-spacing: 0; color: var(--wp--preset--color--muted); margin-left: 10px; }
.maud-ticks { list-style: none; padding: 0; margin-top: 24px; }
.maud-ticks li { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid #F0EBE4; font-size: 15px; }
.maud-ticks li::before { content: ""; flex: 0 0 16px; height: 16px; background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C6D45' stroke-width='1.8'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.maud-price-card .wp-block-button, .maud-price-card .wp-block-button__link { width: 100%; text-align: center; }

/* ---------- FAQ ---------- */
.maud-faq { max-width: 720px; margin: 0 auto !important; border-top: 1px solid var(--wp--preset--color--line); padding-bottom: 160px; }
.maud-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 0; margin: 0 !important; }
.maud-faq summary { list-style: none; cursor: pointer; min-height: 64px; padding: 18px 0; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; font-weight: 400; }
.maud-faq summary::-webkit-details-marker { display: none; }
.maud-faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--wp--preset--color--muted); line-height: 1; }
.maud-faq details[open] summary::after { content: "×"; }
.maud-faq details p { margin: 0; padding: 0 40px 22px 0; font-size: 15px; line-height: 1.65; color: var(--wp--preset--color--muted); }

/* ---------- Footer: closing photo ---------- */
.maud-footer.wp-block-cover { min-height: 820px; padding: 200px 40px 48px; align-items: stretch; }
.maud-footer .wp-block-cover__inner-container { display: flex; flex-direction: column; justify-content: space-between; gap: 120px; color: #fff; }
.maud-footer-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.maud-footer-cta > * { margin: 0 !important; }
.maud-footer-cta h2 { color: #fff; font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -0.03em; max-width: 900px; }
.maud-footer-cta p { font-size: 17px; color: rgba(255,255,255,0.8); }
.maud-footer-cols { max-width: 1280px; width: 100%; margin: 0 auto !important; font-size: 14px; gap: 32px; }
.maud-footer-cols > * > * { margin: 0 0 10px !important; }
.maud-footer-cols .wp-block-site-title { font-family: var(--wp--preset--font-family--maud); font-size: 24px; font-weight: 400; line-height: 1; }
.maud-footer-cols .wp-block-site-title a, .maud-footer-cols a { color: #fff; text-decoration: none; }
.maud-footer-cols p { color: rgba(255,255,255,0.75); }
.maud-footer-cols .maud-col-title { font-family: var(--wp--preset--font-family--maud); font-size: 15px; font-weight: 400; color: #fff; }

/* ---------- Phone width ---------- */
@media (max-width: 781px) {
	.maud-header { padding: 14px 16px; }
	.maud-nav .wp-block-navigation, .maud-login { display: none; }
	.maud-hero.wp-block-cover { min-height: 720px; padding-bottom: 120px; }
	.maud-section { padding: 88px 24px 0; }
	.maud-how > .wp-block-column { gap: 48px; padding-top: 0 !important; }
	.maud-how .maud-how-phone { position: static; order: -1; }
	.maud-rail-head { padding: 88px 24px 32px; }
	.maud-rail { padding: 0 24px 32px; scroll-padding-left: 24px; }
	.maud-card { flex-basis: 82vw; min-height: 440px; }
	.maud-card .maud-photo-note { margin-top: 220px; }
	.maud-dark { padding: 80px 24px; border-radius: 28px; }
	.maud-price-card { padding: 32px; }
	.maud-footer.wp-block-cover { padding: 140px 24px 40px; }
}

/* Logo in the header: the MAUD wordmark, white over photos, ink over light sections */
.maud-header .wp-block-site-title.maud-logo { padding: 0; }
.maud-header .maud-logo a {
	display: block; width: 102px; height: 26px; overflow: hidden; text-indent: -9999px;
	background: url("https://bookmaud.app/assets/brand/maud-white.png") no-repeat left center / contain;
}
body.maud-over-light .maud-header .maud-logo a { background-image: url("https://bookmaud.app/assets/brand/maud-black.png"); }
body:not(.home) .maud-header .maud-logo a { background-image: url("https://bookmaud.app/assets/brand/maud-black.png"); }
.maud-footer-cols .wp-block-site-title a {
	display: block; width: 133px; height: 34px; overflow: hidden; text-indent: -9999px;
	background: url("https://bookmaud.app/assets/brand/maud-white.png") no-repeat left center / contain;
}

/* Feature-card figures: build-in animation (classes added by maud.js) */
.mv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.maud-viz.mv-anim { opacity: 0; transform: translateY(32px) scale(.97); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.maud-viz.mv-anim > *, .maud-viz.mv-anim .mv-stat { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--mv-i, 0) * 110ms + 180ms); }
.maud-viz.mv-anim > .mv-stats { opacity: 1; transform: none; }
.maud-viz.mv-anim .mv-ch { opacity: 0; transition: opacity .05s linear; transition-delay: calc(var(--mv-i, 0) * 110ms + 260ms + var(--mv-k, 0) * 26ms); }
.maud-viz.mv-anim .mv-num { font-variant-numeric: tabular-nums; }
.maud-viz.mv-anim .mv-chip, .maud-viz.mv-anim .mv-ok { display: inline-block; opacity: 0; transform: scale(.6); transition: opacity .4s ease, transform .55s cubic-bezier(.34,1.56,.64,1); transition-delay: calc(var(--mv-i, 0) * 110ms + 520ms); }
.maud-viz.mv-anim .mv-bars i { transform: scaleY(0); transform-origin: bottom; transition: transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--mv-i, 0) * 110ms + 220ms + var(--mv-k, 0) * 60ms); }
.maud-viz.mv-anim .mv-btn { transform: translateY(12px) scale(.96); }
.maud-viz.mv-anim.is-in, .maud-viz.mv-anim.is-in > *, .maud-viz.mv-anim.is-in .mv-stat, .maud-viz.mv-anim.is-in .mv-btn,
.maud-viz.mv-anim.is-in .mv-chip, .maud-viz.mv-anim.is-in .mv-ok, .maud-viz.mv-anim.is-in .mv-bars i { opacity: 1; transform: none; }
.maud-viz.mv-anim.is-in .mv-ch { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .maud-viz.mv-anim, .maud-viz.mv-anim * { opacity: 1 !important; transform: none !important; transition: none !important; } }
