/* Molo's Breakfast Tacos — layout and component styles.
 * Colors, fonts and buttons live in theme.json; this file covers what
 * theme.json can't: the status bar, photo boxes, forms, map and the
 * phone-only sticky order bar. Phone first, wider screens after. */

/* Sections sit edge to edge — no gaps between the colored bands. */
.wp-site-blocks > * { margin-block-start: 0; }
.molos-main > * { margin-block-start: 0; }

/* ---------- Live status bar ---------- */
.molos-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25rem 0.6rem;
	padding: 0.7rem 1rem;
	font-size: 0.9375rem;
	line-height: 1.35;
	text-align: center;
	color: var(--wp--preset--color--masa);
	background: var(--wp--preset--color--ink);
}
.molos-status.is-soldout { background: var(--wp--preset--color--chile); }
.molos-status.is-closed { background: var(--wp--preset--color--muted); }
.molos-status__dot {
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	background: #5BBF62;
	flex: none;
}
.molos-status.is-soldout .molos-status__dot { background: var(--wp--preset--color--masa); }
.molos-status.is-closed .molos-status__dot { background: var(--wp--preset--color--tan); }

/* ---------- Header ---------- */
.molos-wordmark p { margin: 0; line-height: 1; }
.molos-wordmark__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.9rem, 5vw, 2.5rem);
	letter-spacing: 0.04em;
}
.molos-wordmark__name a { color: var(--wp--preset--color--chile); text-decoration: none; }
.molos-wordmark__tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; }
.molos-header .wp-block-navigation a { color: var(--wp--preset--color--ink); text-decoration: none; }
.molos-header .wp-block-navigation a:hover { color: var(--wp--preset--color--chile); }
.molos-header .wp-block-navigation__responsive-container-open {
	width: 44px;
	height: 44px;
	justify-content: center;
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: 50%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
}

/* ---------- Shared bits ---------- */
.molos-eyebrow {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.molos-intro { max-width: 26rem; margin: 0; }
.wp-block-heading { margin-block: 0; }

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	color: var(--wp--preset--color--ink);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--masa);
}
.wp-element-button { min-height: 48px; }
:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--amber);
	outline-offset: 3px;
}

/* Photo boxes: placeholders until real photos go in. */
.molos-photo {
	min-height: 260px;
	padding: 1.5rem;
	border-radius: 24px;
	background: var(--wp--preset--color--tan);
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
	font-weight: 500;
}
.molos-photo--tall { min-height: 300px; }
.molos-photo--dark { border-radius: 0; background: var(--wp--preset--color--char); color: var(--wp--preset--color--tan); }
.molos-card { overflow: hidden; }
.molos-card--featured { padding: 0 !important; }
.molos-card .molos-photo--dark { min-height: 220px; }
.molos-item-head { gap: 1rem; }
.molos-item-head > * { margin: 0; }
.molos-price { font-weight: 700; font-size: 1.15rem; white-space: nowrap; }

/* Taco board list */
.molos-menu-row { padding: 0.65rem 0; border-top: 1px solid rgba(0,0,0,.08); }
.molos-menu-row > * { margin: 0; }
.molos-menu-row__name { font-size: 1.05rem; letter-spacing: .01em; }
.molos-menu-row__desc { margin-top: 0.15rem !important; }
.molos-barb-price { margin: 0; }

/* Barbacoa counter */
.molos-counter {
	padding: 1.1rem 1.4rem;
	border-radius: 16px;
	background: var(--wp--preset--color--char);
}
.molos-count { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; font-weight: 500; }
.molos-count__num {
	font-family: var(--wp--preset--font-family--display);
	font-size: 3.25rem;
	line-height: 1;
	color: var(--wp--preset--color--amber);
}
.molos-count.is-out {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
	color: var(--wp--preset--color--amber);
}

/* Hours */
.molos-hours p { margin: 0; }
.molos-hours__row { gap: 1rem; border-top: 1px solid var(--wp--preset--color--tan); padding-top: 0.6rem; }

/* Map */
.molos-map { height: 100%; min-height: 320px; border-radius: 24px; overflow: hidden; background: var(--wp--preset--color--tan); }
.molos-map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Forms (from the Molo's Tools plugin) ---------- */
.molos-form { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.molos-form p { margin: 0; }
.molos-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.molos-row > .molos-field { flex: 1 1 9rem; }
.molos-field { display: flex; flex-direction: column; gap: 0.35rem; }
.molos-field label { font-weight: 600; font-size: 0.9375rem; }
.molos-form input[type="text"],
.molos-form input[type="tel"],
.molos-form input[type="number"],
.molos-form input[type="date"],
.molos-form select,
.molos-form textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0.75rem 0.9rem;
	border: 2px solid var(--wp--preset--color--line);
	border-radius: 12px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 16px; /* 16px stops iPhones zooming in on tap. */
}
.molos-form textarea { min-height: 6rem; resize: vertical; }
.molos-form input:focus,
.molos-form select:focus,
.molos-form textarea:focus { border-color: var(--wp--preset--color--chile); }
.molos-actions .wp-element-button {
	width: 100%;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 1.125rem;
	padding: 1.05rem 1.5rem;
}
.molos-fineprint { font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.molos-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9375rem; }
.molos-consent input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; flex: none; accent-color: var(--wp--preset--color--ink); }
.molos-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.molos-notice {
	margin: 0 0 1rem;
	padding: 0.9rem 1.1rem;
	border-radius: 12px;
	background: var(--wp--preset--color--tan);
	color: var(--wp--preset--color--ink);
	font-weight: 500;
}
.molos-notice.is-success { background: #DDEFD9; color: #1E4620; }
.molos-notice.is-error { background: #F6D9D3; color: #7E2416; }

/* Text club form sits on red */
.molos-textclub .molos-form input[type="tel"] { border-color: var(--wp--preset--color--white); }
.molos-textclub .molos-field label { color: var(--wp--preset--color--white); }
.molos-textclub .molos-actions .wp-element-button { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--masa); }
.molos-textclub .molos-actions .wp-element-button:hover { background: #000; }

/* Footer */
.molos-footer p { margin: 0; }
.molos-footer a { color: var(--wp--preset--color--masa); }
.molos-footer__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
	line-height: 1;
	color: var(--wp--preset--color--masa);
}
.molos-footer__legal { margin-top: 2rem !important; padding-top: 1.25rem; border-top: 1px solid var(--wp--preset--color--char); }

/* ---------- Phones (under 782px, where WordPress stacks columns) ---------- */
@media (max-width: 781px) {
	.molos-hide-mobile { display: none !important; }

	.molos-mobile-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		margin: 0 !important;
		padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
		background: var(--wp--preset--color--masa);
		border-top: 1px solid var(--wp--preset--color--line);
		box-shadow: 0 -6px 20px rgba(30, 22, 18, 0.08);
	}
	.molos-mobile-bar__buttons { width: 100%; gap: 0.6rem; }
	.molos-mobile-bar__order { flex: 1 1 auto; }
	.molos-mobile-bar__order .wp-block-button__link { width: 100%; }
	body { padding-bottom: 5.5rem; }

	.wp-block-buttons > .wp-block-button { flex: 1 1 100%; }
	.wp-block-buttons > .wp-block-button > .wp-block-button__link { width: 100%; }
	.molos-mobile-bar__buttons > .wp-block-button { flex: 0 0 auto; }
	.molos-mobile-bar__buttons > .molos-mobile-bar__order { flex: 1 1 auto; }

	.molos-photo--tall { min-height: 220px; }
}

/* ---------- Tablets and up ---------- */
@media (min-width: 782px) {
	.molos-mobile-bar { display: none !important; }
	.molos-nav-order { display: none !important; }
	.molos-photo--tall { min-height: 460px; }
	.molos-map, .molos-map iframe { min-height: 440px; }
}
.molos-form-card .molos-form, .molos-form-card .molos-notice { margin-top: 0.75rem; }

/* ---------- Photos (v1.2) ---------- */
.molos-img { margin-inline: 0; margin-bottom: 0; }
.molos-img--rounded { margin-top: 0.75rem !important; }
.molos-img img { display: block; width: 100%; height: auto; }
.molos-img--hero img,
.molos-img--rounded img { border-radius: 24px; }
.molos-img--card img { border-radius: 0; }
.molos-card--featured .molos-img { margin: 0; }
/* On phones the tall hero photo crops to a shorter frame so the buttons stay close. */
@media (max-width: 781px) {
	.molos-img--hero img { aspect-ratio: 4 / 3 !important; object-position: 50% 32%; }
}
