/*
 * Mally WP design layer — Extremity Academy aesthetic.
 *
 * All values come from CSS custom properties set in inc/custom-code.php
 * (sampled from extremityacademy.com: gold #d7af50, deep navy #1f3241,
 * near-black #191919, teal #6e9e9d, Neuton headings, Roboto body).
 * Every rule is scoped under html.mally-wp-theme or prefixed
 * .mally- so it overrides the Colibri parent cleanly.
 */

html.mally-wp-theme body {
	background: var(--mally-bg);
	color: var(--mally-text);
	font-family: var(--mally-font-body);
	font-size: var(--mally-base-size);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

/* ── Headings: Neuton serif, tight tracking, uppercase ───────────────── */
html.mally-wp-theme h1,
html.mally-wp-theme h2,
html.mally-wp-theme h3,
html.mally-wp-theme .h-heading,
html.mally-wp-theme .colibri-heading {
	font-family: var(--mally-font-heading);
	font-weight: var(--mally-heading-weight);
	color: var(--mally-black);
	letter-spacing: 0.01em;
	text-transform: var(--mally-uppercase);
	line-height: 1.15;
}

html.mally-wp-theme h1 { font-size: calc(var(--mally-base-size) * 2.9); }
html.mally-wp-theme h2 { font-size: calc(var(--mally-base-size) * 2.2); }
html.mally-wp-theme h3 { font-size: calc(var(--mally-base-size) * 1.5); }

/* ── Links & buttons: gold on navy, academy-style ────────────────────── */
html.mally-wp-theme a {
	color: var(--mally-navy);
	transition: color .2s ease;
}
html.mally-wp-theme a:hover { color: var(--mally-gold); }

html.mally-wp-theme a.btn,
html.mally-wp-theme button,
html.mally-wp-theme .h-btn,
html.mally-wp-theme .colibri-button a,
html.mally-wp-theme .wp-block-button__link {
	background: var(--mally-gold);
	color: var(--mally-navy);
	font-family: var(--mally-font-body);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	border: none;
	border-radius: 2px;
	padding: 14px 32px;
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
html.mally-wp-theme a.btn:hover,
html.mally-wp-theme button:hover,
html.mally-wp-theme .h-btn:hover,
html.mally-wp-theme .colibri-button a:hover,
html.mally-wp-theme .wp-block-button__link:hover {
	background: var(--mally-navy);
	color: #fff;
	box-shadow: 0 6px 18px rgba(31, 50, 65, .25);
	transform: translateY(-1px);
}

/* ── Header ───────────────────────────────────────────────────────────── */
html.mally-wp-theme .header,
html.mally-wp-theme .mally-header--dark .header,
html.mally-wp-theme nav.h-navigation-wrapper {
	background: var(--mally-navy);
}
html.mally-wp-theme .header a,
html.mally-wp-theme .h-navigation__item a,
html.mally-wp-theme .h-navigation .menu-item a {
	color: #fff;
	font-family: var(--mally-font-body);
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-size: .85rem;
}
html.mally-wp-theme .header a:hover,
html.mally-wp-theme .h-navigation__item a:hover {
	color: var(--mally-gold);
}
html.mally-wp-theme .header img,
html.mally-wp-theme .h-navigation img,
html.mally-wp-theme img.custom-logo {
	height: var(--mally-logo-height);
	width: auto;
}
html.mally-wp-theme .mally-header--light .header,
html.mally-wp-theme .mally-header--light nav.h-navigation-wrapper {
	background: #fff;
	box-shadow: 0 1px 0 var(--mally-light);
}
html.mally-wp-theme .mally-header--light .header a,
html.mally-wp-theme .mally-header--light .h-navigation__item a {
	color: var(--mally-navy);
}
html.mally-wp-theme .mally-header--transparent .header,
html.mally-wp-theme .mally-header--transparent nav.h-navigation-wrapper {
	background: transparent;
	position: absolute;
	z-index: 100;
}
html.mally-wp-theme .mally-header--sticky .header {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* ── Sections & containers ───────────────────────────────────────────── */
html.mally-wp-theme section,
html.mally-wp-theme .h-section {
	padding: 72px 0;
}
html.mally-wp-theme .mally-eyebrow {
	display: block;
	color: var(--mally-gold);
	font-family: var(--mally-font-body);
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	font-size: .78rem;
	margin-bottom: 12px;
}

/* ── Contact form styling ────────────────────────────────────────────── */
.mally-contact {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}
.mally-contact__heading {
	margin-bottom: 8px;
}
.mally-contact__intro {
	color: var(--mally-teal);
	margin-bottom: 24px;
}
.mally-contact input[type="text"],
.mally-contact input[type="email"],
.mally-contact input[type="tel"],
.mally-contact textarea {
	width: 100%;
	border: 1px solid var(--mally-light);
	border-radius: 2px;
	padding: 12px 14px;
	font-family: var(--mally-font-body);
	font-size: 1rem;
	background: #fff;
}
.mally-contact input:focus,
.mally-contact textarea:focus {
	border-color: var(--mally-gold);
	outline: none;
	box-shadow: 0 0 0 2px rgba(215, 175, 80, .25);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.mally-footer {
	margin-top: 0;
	padding: 48px 0 24px;
	background: #fff;
	border-top: 1px solid var(--mally-light);
	color: var(--mally-text);
}
.mally-footer--dark.mally-footer {
	background: var(--mally-navy);
	color: rgba(255, 255, 255, .82);
	border-top: none;
}
.mally-footer--dark.mally-footer a {
	color: #fff;
}
.mally-footer--dark.mally-footer a:hover {
	color: var(--mally-gold);
}
.mally-footer__inner {
	max-width: 1232px;
	margin: 0 auto;
	padding: 0 15px;
}
.mally-footer__columns {
	display: grid;
	grid-template-columns: repeat(var(--mally-footer-cols, 3), 1fr);
	gap: 32px;
}
.mally-footer__widget-title {
	font-family: var(--mally-font-heading);
	color: inherit;
	text-transform: var(--mally-uppercase);
	font-size: 1.05rem;
	margin: 0 0 12px;
}
.mally-footer__social {
	list-style: none;
	display: flex;
	gap: 20px;
	padding: 24px 0 0;
	margin: 0;
	font-weight: 500;
	letter-spacing: .05em;
	text-transform: uppercase;
	font-size: .8rem;
}
.mally-footer__cta {
	display: inline-block;
	margin-top: 24px;
}
.mally-footer__copyright {
	padding-top: 24px;
	font-size: .82rem;
	opacity: .7;
}

@media (max-width: 768px) {
	.mally-footer__columns { grid-template-columns: 1fr; }
	html.mally-wp-theme section,
	html.mally-wp-theme .h-section { padding: 48px 0; }
	html.mally-wp-theme h1 { font-size: calc(var(--mally-base-size) * 2.1); }
}

/* ── Brand lockup and menu CTA ───────────────────────────────────────── */
html.mally-wp-theme .mally-brand { gap: 12px; }
html.mally-wp-theme .mally-brand-lockup {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	color: #fff;
	line-height: 1.1;
	text-align: left;
}
html.mally-wp-theme .mally-brand-lockup__title {
	font-family: var(--mally-font-heading);
	font-size: 1.15rem;
	font-weight: 700;
}
html.mally-wp-theme .mally-brand-lockup__tagline {
	margin-top: 4px;
	color: var(--mally-gold);
	font-size: .7rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}
html.mally-wp-theme .mally-header--light .mally-brand-lockup { color: var(--mally-navy); }
html.mally-wp-theme .mally-menu-tagline span {
	color: var(--mally-gold);
	font-size: .75rem;
	letter-spacing: .08em;
}
html.mally-wp-theme .mally-menu-cta a {
	background: var(--mally-gold);
	color: var(--mally-navy) !important;
	padding: 10px 18px;
	border-radius: 2px;
	font-weight: 700;
}
html.mally-wp-theme .mally-menu-cta a:hover {
	background: #fff;
	color: var(--mally-navy) !important;
}

/* ── Colibri section buttons / WP core buttons ───────────────────────── */
html.mally-wp-theme .h-button,
html.mally-wp-theme .h-button__outer > a,
html.mally-wp-theme .wp-block-button__link,
html.mally-wp-theme .mally-widget__button {
	background: var(--mally-gold);
	color: var(--mally-navy) !important;
	font-family: var(--mally-font-body);
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	border: 0;
	border-radius: 2px;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
html.mally-wp-theme .h-button:hover,
html.mally-wp-theme .h-button__outer > a:hover,
html.mally-wp-theme .wp-block-button__link:hover,
html.mally-wp-theme .mally-widget__button:hover {
	background: var(--mally-navy);
	color: #fff !important;
	transform: translateY(-1px);
}

/* ── Colibri-built footer: retain builder content but apply brand theme ─ */
html.mally-wp-theme body.mally-footer--dark .footer,
html.mally-wp-theme body.mally-footer--dark .footer .page-footer {
	background-color: var(--mally-navy);
	color: rgba(255, 255, 255, .86);
}
html.mally-wp-theme body.mally-footer--dark .footer h1,
html.mally-wp-theme body.mally-footer--dark .footer h2,
html.mally-wp-theme body.mally-footer--dark .footer h3,
html.mally-wp-theme body.mally-footer--dark .footer h4,
html.mally-wp-theme body.mally-footer--dark .footer h5,
html.mally-wp-theme body.mally-footer--dark .footer a {
	color: #fff;
}
html.mally-wp-theme body.mally-footer--dark .footer a:hover { color: var(--mally-gold); }
html.mally-wp-theme body:not(.mally-footer--dark) .footer .page-footer {
	background-color: #fff;
	color: var(--mally-text);
}
html.mally-wp-theme .footer .page-footer h1,
html.mally-wp-theme .footer .page-footer h2,
html.mally-wp-theme .footer .page-footer h3,
html.mally-wp-theme .footer .page-footer h4,
html.mally-wp-theme .footer .page-footer h5 {
	font-family: var(--mally-font-heading);
	text-transform: var(--mally-uppercase);
}

/* ── Widgets, sidebars, and contact forms ────────────────────────────── */
html.mally-wp-theme .widget,
html.mally-wp-theme .mally-widget {
	margin-bottom: 1.5rem;
}
html.mally-wp-theme .mally-widget__title,
html.mally-wp-theme .mally-footer__widget-title,
html.mally-wp-theme .widgettitle {
	font-family: var(--mally-font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	text-transform: var(--mally-uppercase);
}
html.mally-wp-theme .mally-widget__button {
	display: inline-block;
	padding: 10px 18px;
	text-decoration: none;
}
html.mally-wp-theme .mally-widget-card,
html.mally-wp-theme .mally-cta-widget {
	padding: 22px;
	border-top: 3px solid var(--mally-gold);
	background: var(--mally-light);
}
html.mally-wp-theme .mally-social-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
html.mally-wp-theme .mally-contact input[type="text"],
html.mally-wp-theme .mally-contact input[type="email"],
html.mally-wp-theme .mally-contact input[type="tel"],
html.mally-wp-theme .mally-contact input[type="url"],
html.mally-wp-theme .mally-contact select,
html.mally-wp-theme .mally-contact textarea {
	box-sizing: border-box;
	margin: 0 0 12px;
}
html.mally-wp-theme .mally-contact input[type="submit"] {
	background: var(--mally-gold);
	color: var(--mally-navy);
	border: 0;
	border-radius: 2px;
	padding: 12px 24px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
}
html.mally-wp-theme .mally-footer {
	position: relative;
	z-index: 1;
}
html.mally-wp-theme .mally-footer__columns { align-items: start; }
html.mally-wp-theme .mally-footer__columns .mally-widget__title { color: inherit; }
html.mally-wp-theme .mally-footer__copyright a { text-decoration: underline; }

@media (max-width: 768px) {
	html.mally-wp-theme .mally-brand-lockup { display: none; }
	html.mally-wp-theme .mally-menu-tagline { display: none; }
	html.mally-wp-theme .mally-footer__social { flex-wrap: wrap; }
}
