/* ==========================================================================
   Cafe Zocalo — component.css
   Reusable UI chrome: header, navigation, buttons, footer, newsletter.
   Loaded on every page.
   ========================================================================== */

/* ── Buttons ───────────────────────────────────────────────────────────── */
.cz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.4px;
	padding: 11px 22px;
	border-radius: 30px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
	line-height: 1.2;
}

.cz-btn--lg {
	font-size: 14px;
	padding: 14px 30px;
}

/* Visible keyboard focus on every button — gold reads on cream, espresso and terracotta. */
.cz-btn:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 2px;
}

.cz-btn--primary {
	background: var(--terracotta);
	color: var(--pure-white);
	border-color: var(--terracotta);
}

.cz-btn--primary:hover,
.cz-btn--primary:focus {
	background: var(--terracotta-deep);
	border-color: var(--terracotta-deep);
	color: var(--pure-white);
}

/* Solid terracotta on dark/contrast sections */
.cz-btn--solid {
	background: var(--pure-white);
	color: var(--terracotta-deep);
	border-color: var(--pure-white);
}

.cz-btn--solid:hover,
.cz-btn--solid:focus {
	background: var(--surface-warm);
	color: var(--terracotta-deep);
}

/* Outline on light background */
.cz-btn--ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--ink);
}

.cz-btn--ghost:hover,
.cz-btn--ghost:focus{
	background: var(--ink);
	color: var(--pure-white);
}

/* Outline on dark background */
.cz-btn--ghost-light {
	background: transparent;
	color: var(--pure-white);
	border-color: rgba(255, 255, 255, 0.7);
}

.cz-btn--ghost-light:hover,
.cz-btn--ghost-light:focus {
	background: var(--pure-white);
	color: var(--terracotta-deep);
}

/* ── Announcement Bar (Coming Soon) ───────────────────────────────────── */
/* Sits above the header, not sticky — scrolls away as the (sticky) header
   below takes over at the top. */
.cz-announce-bar {
	background: var(--espresso);
	padding: 10px 0;
}

.cz-announce-bar__inner {
	max-width: var(--container-wide);
	margin: 0 auto;
	padding: 0 30px;
}

.cz-announce-bar__text {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--pure-white);
	text-align: center;
}

.cz-announce-bar__tag {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-mono);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--espresso);
	background: var(--gold);
	border-radius: 20px;
	padding: 3px 12px;
}

.cz-announce-bar__msg {
	color: rgba(255, 255, 255, 0.82);
}

.cz-announce-bar__label {
	color: var(--gold-light);
	font-weight: 700;
}

.cz-announce-bar__sep {
	margin: 0 2px;
	color: rgba(255, 255, 255, 0.4);
}

/* ── Header ────────────────────────────────────────────────────────────── */
/* Full-width sticky white bar. */
.cz-header {
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 2px 10px rgba(42, 31, 24, 0.06);
}

/* Logo (left) · Nav (centered) · Actions (right) — content kept to container width. */
.cz-header__inner {
	display: grid;
	grid-template-columns: 0.7fr auto 1fr;
	align-items: center;
	gap: 24px;
	max-width: var(--container-wide);
	margin: 0 auto;
	padding: 14px 30px;
}

.cz-header__brand {
	justify-self: start;
}

.cz-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.cz-logo__img {
	height: 68px;
	width: auto;
	display: block;
}

/* Navigation — centered column */
.cz-nav {
	justify-self: center;
}

.cz-nav__list {
	display: flex;
	align-items: center;
	gap: 26px;
}

.cz-nav__list li {
	position: relative;
}

.cz-nav__list a {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	color: var(--ink-mid);
}

.cz-nav__list a:hover {
	color: var(--terracotta);
}

/* Active / current menu item (WordPress adds these classes to the current page). */
.cz-nav__list .current-menu-item > a,
.cz-nav__list .current-menu-ancestor > a,
.cz-nav__list .current_page_item > a,
.cz-nav__list .current-menu-parent > a {
	color: var(--terracotta);
}

/* Underline indicator on the active top-level item (box-shadow keeps layout stable). */
/*.cz-nav__list > .current-menu-item > a,
.cz-nav__list > .current-menu-ancestor > a,
.cz-nav__list > .current_page_item > a,
.cz-nav__list > .current-menu-parent > a {
	box-shadow: inset 0 -2px 0 var(--terracotta);
}*/

/* Active item inside a dropdown gets a soft highlight instead. */
.cz-nav__list .sub-menu .current-menu-item > a {
	background: var(--surface-warm);
	color: var(--terracotta-deep);
}

/* Dropdown caret on top-level parent items (those with a sub-menu).
   Uses the Font Awesome 6 "chevron-down" glyph. */
.cz-nav__list > .menu-item-has-children > a::after {
	content: '\f078';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	display: inline-block;
	margin-left: 7px;
	font-size: 11px;
	line-height: 1;
	color: var(--ink-soft);
	transition: transform 0.2s ease, color 0.2s ease;
}

.cz-nav__list > .menu-item-has-children:hover > a::after {
	transform: rotate(180deg);
	color: var(--terracotta);
}

/* Keep dropdown items clean — strip pseudo carets and any arrow icon/span/svg
   the theme (e.g. Astra) injects INSIDE the sub-menu. */
.cz-nav .sub-menu .menu-item > a::before,
.cz-nav .sub-menu .menu-item > a::after,
.cz-nav .sub-menu .menu-item::before,
.cz-nav .sub-menu .menu-item::after {
	content: none !important;
	display: none !important;
}

.cz-nav .ast-menu-toggle,
.cz-nav .sub-arrow,
.cz-nav .ast-arrow-svg,
.cz-nav .dropdown-menu-toggle,
.cz-nav svg,
.cz-nav a > svg,
.cz-nav a > i,
.cz-nav [class*="arrow"] {
	display: none !important;
}

.cz-nav .sub-menu .menu-item {
	list-style: none !important;
}

.cz-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 12px 30px rgba(42, 31, 24, 0.12);
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.2s ease;
	z-index: 200;
}

.cz-nav__list li:hover > .sub-menu,
.cz-nav__list li:focus-within > .sub-menu,
.cz-nav__list .sub-menu.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.cz-nav__list .sub-menu a {
	display: block;
	padding: 9px 14px;
	border-radius: 6px;
	font-size: 13.5px;
	color: var(--ink-mid);
}

.cz-nav__list .sub-menu a:hover {
	background: var(--surface-warm);
	color: var(--terracotta-deep);
}

/* Header actions */
.cz-header__actions {
	display: flex;
	align-items: center;
	justify-self: end;
	gap: 16px;
	white-space: nowrap;
}

.cz-header__phone {
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 700;
	color: var(--terracotta-deep);
}

.cz-header__phone:hover {
	color: var(--terracotta);
}

/* Mobile nav toggle */
.cz-nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	position: relative;
	-webkit-tap-highlight-color: transparent;
}

.cz-nav-toggle:hover,
.cz-nav-toggle:focus,
.cz-nav-toggle:focus-visible,
.cz-nav-toggle:active {
	background: transparent;
	border: 1px solid var(--line);
	outline: none;
}

.cz-nav-toggle__bar,
.cz-nav-toggle__bar::before,
.cz-nav-toggle__bar::after {
	content: '';
	position: absolute;
	left: 50%;
	width: 20px;
	height: 2px;
	background: var(--ink);
	transform: translateX(-50%);
	transition: all 0.25s ease;
}

.cz-nav-toggle__bar { top: 50%; transform: translate(-50%, -50%); }
.cz-nav-toggle__bar::before { top: -6px; }
.cz-nav-toggle__bar::after { top: 6px; }

.cz-nav-toggle[aria-expanded="true"] .cz-nav-toggle__bar { background: transparent; }
.cz-nav-toggle[aria-expanded="true"] .cz-nav-toggle__bar::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.cz-nav-toggle[aria-expanded="true"] .cz-nav-toggle__bar::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.cz-footer {
	background: var(--espresso);
	color: var(--ink-light);
	margin-top: 0;
}

.cz-footer__inner {
	max-width: var(--container-wide);
	margin: 0 auto;
	padding: 56px 24px 28px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
}

.cz-footer__heading {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 600;
	font-style: italic;
	color: var(--gold-light);
	margin-bottom: 14px;
}

.cz-footer__logo {
	display: inline-block;
	line-height: 0;
	margin-bottom: 16px;
}

.cz-footer__logo img {
	height: 64px;
	width: auto;
}

.cz-footer__blurb {
	font-size: 13px;
	color: #C4B4A0;
	line-height: 1.8;
	margin-bottom: 12px;
}

.cz-footer__accent a {
	color: var(--terracotta);
	font-family: var(--font-mono);
	font-weight: 700;
}

.cz-footer__address,
.cz-footer__hours {
	font-size: 13px;
	color: #C4B4A0;
	margin-top: 6px;
}

.cz-footer__hours a { color: #C4B4A0; }
.cz-footer__hours a:hover { color: var(--gold-light); }

.cz-footer__list li {
	margin-bottom: 9px;
}

.cz-footer__list a {
	font-size: 13px;
	color: #C4B4A0;
}

.cz-footer__list a:hover {
	color: var(--gold-light);
}

.cz-footer__divider {
	grid-column: 1 / -1;
	height: 1px;
	background: var(--charcoal-light);
	margin: 8px 0 4px;
}

.cz-footer__bottom {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--ink-light);
	letter-spacing: 0.5px;
}

/* Policy links menu in the footer bottom bar. */
.cz-footer__policy {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cz-footer__policy li {
	list-style: none;
}

.cz-footer__policy a {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.5px;
	color: var(--ink-light);
}

.cz-footer__policy a:hover {
	color: var(--gold-light);
}

/* ── Newsletter (used in footer-adjacent CTAs) ─────────────────────────── */
.cz-newsletter {
	max-width: 460px;
	margin: 28px auto 0;
}

.cz-newsletter__label {
	display: block;
	font-family: var(--font-display);
	font-size: 17px;
	font-style: italic;
	margin-bottom: 12px;
}

.cz-newsletter__micro {
	font-size: 12px;
	margin-top: 10px;
	opacity: 0.85;
}

/* ── GHL form placeholder ──────────────────────────────────────────────── */
/* Marks where a GoHighLevel form embed should be pasted. Remove the wrapper
   when the real embed goes in. */
.cz-form-placeholder {
	border: 2px dashed var(--gold);
	border-radius: var(--radius-lg);
	background: var(--surface);
	padding: 44px 28px;
	margin-bottom: 28px;
}

.cz-form-placeholder__tag {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--terracotta-deep);
	background: var(--terracotta-dim);
	padding: 5px 12px;
	border-radius: 4px;
	margin-bottom: 14px;
}

.cz-form-placeholder p {
	font-size: 14px;
	line-height: 1.7;
	color: var(--ink-soft);
	max-width: 52ch;
	margin: 0 auto;
}

/* ── Responsive: header + footer ───────────────────────────────────────── */
@media (max-width: 1280px) {
	.cz-header__inner {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 16px;
	}

	.cz-header__brand {
		order: 1;
	}

	.cz-header__actions {
		display: none;
	}

	.cz-nav-toggle {
		display: block;
		order: 2;
		margin-left: auto;
	}

	.cz-nav {
		order: 4;
		flex-basis: 100%;
		display: none;
	}

	.cz-nav.is-open {
		display: block;
	}

	.cz-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		border-top: 1px solid var(--line);
		padding-top: 8px;
	}

	.cz-nav__list > li > a {
		display: block;
		padding: 12px 4px;
		border-bottom: 1px solid var(--line);
	}

	.cz-nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		background: transparent;
		margin: 0;
		padding: 0;
		display: none;
	}

	.cz-nav__list .sub-menu.is-open {
		display: flex;
	}

	.cz-nav__list .sub-menu a {
		color: var(--ink-mid);
	}

	.cz-nav__list .sub-menu a:hover {
		color: var(--terracotta);
	}
}

@media (max-width: 768px) {
	.cz-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.cz-footer__col--brand {
		grid-column: 1 / -1;
	}
}

/* ── 404 — Page Not Found ─────────────────────────────────────────────── */
.cz-404 {
	padding: 100px 0;
	background: var(--surface-warm);
	text-align: center;
}

.cz-404__inner {
	max-width: 620px;
}

.cz-404__code {
	font-family: var(--font-mono);
	font-size: 96px;
	font-weight: 700;
	line-height: 1;
	color: rgba(199, 93, 62, 1);
	margin-bottom: 8px;
}

.cz-404__body {
	font-size: 17px;
	line-height: 1.8;
	color: var(--ink-mid);
	max-width: 48ch;
	margin: 0 auto 32px;
}

.cz-404__actions {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.cz-404__phone {
	font-size: 14.5px;
	color: var(--ink-light);
}

.cz-404__phone a {
	color: var(--terracotta-deep);
	font-weight: 600;
}

@media (max-width: 520px) {
	.cz-header__phone {
		display: none;
	}

	.cz-404 {
		padding: 64px 0;
	}

	.cz-404__code {
		font-size: 72px;
	}
}
