/**
 * Mellow Chic — theme styles
 * Tokens live in theme.json; this file carries the components patterns rely on.
 */

/* ---------------------------------------------------------- base */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--wp--preset--color--sunbeam); outline-offset: 2px; }

.mc-lang-th :is(h1, h2, h3, .mc-brand) {
	font-family: var(--wp--preset--font-family--thai-display);
	font-weight: 800;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap;
}

.mc-skip:focus {
	position: fixed; z-index: 999; inset: 12px auto auto 12px;
	background: var(--wp--preset--color--mango); color: #1B1004;
	padding: 12px 20px; border-radius: 999px; font-weight: 600;
}

/* ---------------------------------------------------------- typography helpers */
.is-style-mc-eyebrow {
	font-size: var(--wp--preset--font-size--tiny);
	letter-spacing: .22em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wp--preset--color--mango);
	margin-bottom: 14px;
}

.is-style-mc-lede {
	font-size: var(--wp--preset--font-size--lede);
	color: rgba(255, 244, 226, .62);
	max-width: 60ch;
}

.has-paper-background-color .is-style-mc-lede,
.has-white-background-color .is-style-mc-lede { color: var(--wp--preset--color--muted); }

.has-paper-background-color .is-style-mc-eyebrow,
.has-white-background-color .is-style-mc-eyebrow { color: #B85C00; }

/* ---------------------------------------------------------- buttons */
.mc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	border: 0; cursor: pointer; text-decoration: none;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600; font-size: 1rem;
	padding: 15px 28px; border-radius: 999px;
	transition: transform .18s, box-shadow .18s, background .18s;
}
.mc-btn--primary {
	background: var(--wp--preset--color--mango); color: #1B1004;
	box-shadow: var(--wp--preset--shadow--mango);
}
.mc-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(240,135,15,.5); }
.mc-btn--ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.mc-btn--line { background: #06C755; color: #fff; }
.mc-btn--sm { padding: 10px 18px; font-size: .88rem; }

.is-style-mc-ghost .wp-block-button__link {
	background: transparent;
	color: currentColor;
	border: 1.5px solid rgba(255, 244, 226, .34);
}
.is-style-mc-ghost .wp-block-button__link:hover { background: rgba(255, 244, 226, .1); }

/* ---------------------------------------------------------- header */
.mc-header {
	position: sticky; top: 0; z-index: 60;
	background: rgba(21, 14, 6, .94);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 244, 226, .12);
	transition: background .3s, border-color .3s;
}
.mc-has-hero .mc-header {
	position: fixed; inset: 0 0 auto;
	background: transparent; border-bottom-color: transparent; backdrop-filter: none;
}
.mc-has-hero .mc-header.is-solid {
	background: rgba(21, 14, 6, .94);
	backdrop-filter: blur(14px);
	border-bottom-color: rgba(255, 244, 226, .12);
}

.mc-header__in { display: flex; align-items: center; gap: 16px; min-height: 70px; }

.mc-brand {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 900; font-size: 1.3rem; letter-spacing: -.02em;
	text-decoration: none; white-space: nowrap;
}
.mc-brand i { color: var(--wp--preset--color--mango); font-style: normal; }

.mc-header nav { margin-left: auto; }
.mc-header .wp-block-navigation__container { gap: 26px; }
.mc-header .wp-block-navigation-item__content {
	font-size: .92rem; font-weight: 500;
	color: rgba(255, 244, 226, .62); text-decoration: none;
}
.mc-header .wp-block-navigation-item__content:hover,
.mc-header .current-menu-item .wp-block-navigation-item__content { color: var(--wp--preset--color--sunbeam); }

.mc-header__act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mc-header nav + .mc-header__act { margin-left: 22px; }

.mc-lang { display: flex; border: 1.5px solid rgba(255, 244, 226, .28); border-radius: 999px; overflow: hidden; flex: none; }
.mc-lang__btn {
	padding: 7px 13px; font-size: .8rem; font-weight: 600;
	color: rgba(255, 244, 226, .62); text-decoration: none;
}
.mc-lang__btn[aria-pressed="true"] { background: var(--wp--preset--color--mango); color: #1B1004; }

/* ---------------------------------------------------------- hero */
.mc-hero {
	position: relative;
	min-height: 100svh;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding-top: 120px;
	overflow: hidden;
}
.mc-hero__bg { position: absolute; inset: 0; z-index: 0; }
.mc-hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: mc-drift 26s ease-in-out infinite alternate; }
@keyframes mc-drift { to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.mc-hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background: var(--wp--preset--gradient--glow), var(--wp--preset--gradient--veil);
}
.mc-hero__in { position: relative; z-index: 2; padding-bottom: 36px; }
.mc-hero h1 { font-size: var(--wp--preset--font-size--mega); margin-bottom: .18em; text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.mc-hero h1 em { display: block; font-style: italic; font-weight: 700; color: var(--wp--preset--color--mango); }
.mc-hero__tag {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic; font-weight: 700;
	font-size: clamp(1.3rem, 4.4vw, 2.1rem);
	margin-bottom: .5em;
}

.mc-place {
	display: inline-flex; align-items: center; gap: 9px;
	border: 1px solid rgba(255, 244, 226, .34); border-radius: 999px;
	padding: 7px 16px; margin-bottom: 22px;
	font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
}
.mc-place b { width: 6px; height: 6px; border-radius: 50%; background: var(--wp--preset--color--sunbeam); box-shadow: 0 0 10px var(--wp--preset--color--sunbeam); }

/* ---------------------------------------------------------- tonight strip (signature) */
.mc-tonight {
	position: relative; z-index: 2;
	border-top: 1px solid rgba(255, 244, 226, .16);
	background: linear-gradient(180deg, rgba(240,135,15,.14), rgba(21,14,6,.7));
	backdrop-filter: blur(8px);
}
.mc-tonight__in {
	width: 100%; max-width: var(--wp--style--global--wide-size);
	margin-inline: auto; padding: 16px 20px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px;
}
.mc-tonight p { margin: 0; }
.mc-tonight__stat, .mc-tonight__music { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.mc-tonight__music { color: var(--wp--preset--color--sunbeam); }
.mc-tonight__cta { margin-left: auto; }

.mc-dot {
	width: 9px; height: 9px; border-radius: 50%; flex: none;
	background: #3CD070; box-shadow: 0 0 0 0 rgba(60,208,112,.6);
	animation: mc-pulse 2.4s infinite;
}
.mc-dot.is-shut { background: #8A7761; animation: none; box-shadow: none; }
@keyframes mc-pulse { 70% { box-shadow: 0 0 0 11px rgba(60,208,112,0); } 100% { box-shadow: 0 0 0 0 rgba(60,208,112,0); } }

/* ---------------------------------------------------------- string lights divider */
.is-style-mc-lights {
	height: 26px; opacity: .85;
	background-repeat: repeat-x; background-size: 64px 26px;
	background-image:
		radial-gradient(circle at 32px 17px, var(--wp--preset--color--sunbeam) 0 3px, transparent 4px),
		linear-gradient(to bottom, transparent 10px, rgba(255,200,69,.34) 10px 11px, transparent 11px);
}

/* ---------------------------------------------------------- cards */
.is-style-mc-card {
	background: var(--wp--preset--color--ember);
	border: 1px solid rgba(255, 244, 226, .1);
	border-radius: 18px; padding: 26px;
	transition: transform .2s, border-color .2s;
	height: 100%;
}
.is-style-mc-card:hover { transform: translateY(-4px); border-color: rgba(240, 135, 15, .5); }
.is-style-mc-card p { font-size: .94rem; color: rgba(255, 244, 226, .62); }

.has-paper-background-color .is-style-mc-card,
.has-paper-background-color .is-style-mc-card:hover {
	background: #fff; border-color: rgba(42, 27, 12, .1); color: var(--wp--preset--color--ink);
	box-shadow: var(--wp--preset--shadow--soft);
}
.has-paper-background-color .is-style-mc-card p { color: var(--wp--preset--color--muted); }

.is-style-mc-shot img {
	border-radius: 18px;
	box-shadow: var(--wp--preset--shadow--lift);
	width: 100%; object-fit: cover;
}

/* ---------------------------------------------------------- page header */
.mc-pagehead {
	padding: 150px 0 clamp(46px, 8vw, 80px);
	border-bottom: 1px solid rgba(255, 244, 226, .12);
	background:
		radial-gradient(90% 120% at 12% 0%, rgba(240,135,15,.2), transparent 60%),
		var(--wp--preset--color--night);
}
.mc-pagehead h1 { margin-bottom: .2em; }

/* ---------------------------------------------------------- gallery */
.mc-gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .mc-gal { grid-template-columns: repeat(4, 1fr); } }
.mc-gal img {
	aspect-ratio: 1; object-fit: cover; border-radius: 12px; width: 100%;
	transition: transform .3s, filter .3s;
}
.mc-gal img:hover { transform: scale(1.03); filter: brightness(1.08); }

/* ---------------------------------------------------------- info cards / visit page */
.mc-info {
	background: #fff; color: var(--wp--preset--color--ink);
	border: 1px solid rgba(42, 27, 12, .1); border-radius: 18px;
	padding: 24px; display: flex; gap: 16px;
}
.mc-info h3 { margin: 0 0 6px; }
.mc-info p { margin: 0; font-size: .94rem; color: var(--wp--preset--color--muted); }
.mc-info__ic { font-size: 1.4rem; line-height: 1.2; }

.mc-map { border-radius: 18px; overflow: hidden; border: 1px solid rgba(42, 27, 12, .1); min-height: 340px; }
.mc-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------------------------------------------------------- footer */
.mc-footer { background: #0D0803; padding: 64px 0 30px; font-size: .92rem; }
.mc-footer h4 { font-family: var(--wp--preset--font-family--display); font-size: 1rem; font-weight: 700; margin: 0 0 12px; }
.mc-footer p, .mc-footer li { color: rgba(255, 244, 226, .62); margin: 0 0 6px; }
.mc-footer a { text-decoration: none; }
.mc-socials { display: flex; gap: 10px; margin-top: 16px; }
.mc-socials a {
	width: 42px; height: 42px; border-radius: 50%;
	display: grid; place-items: center; text-decoration: none;
	background: rgba(255, 244, 226, .1); border: 1px solid rgba(255, 244, 226, .16);
	font-weight: 700; font-size: .9rem;
}
.mc-colophon {
	border-top: 1px solid rgba(255, 244, 226, .1);
	margin-top: 44px; padding-top: 22px;
	display: flex; flex-wrap: wrap; gap: 10px;
	color: rgba(255, 244, 226, .4); font-size: .82rem;
}
.mc-colophon span:last-child { margin-left: auto; }

/* ---------------------------------------------------------- forms (shared with Core plugin) */
.mc-field label {
	font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
	font-weight: 700; color: var(--wp--preset--color--muted);
	display: block; margin-bottom: 7px;
}
.mc-field input, .mc-field select, .mc-field textarea {
	width: 100%;
	font-family: var(--wp--preset--font-family--body); font-size: 1rem;
	color: var(--wp--preset--color--ink); background: #fff;
	border: 1.5px solid rgba(42, 27, 12, .16); border-radius: 12px;
	padding: 14px 16px;
}
.mc-field textarea { min-height: 96px; resize: vertical; }
.mc-field :is(input, select, textarea):focus {
	outline: 2px solid var(--wp--preset--color--mango); outline-offset: 1px; border-color: transparent;
}

/* ---------------------------------------------------------- scroll reveal */
.mc-rv { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.mc-rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.mc-rv { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}
