/*
Theme Name: Rude Academy
Theme URI: https://rudeacademy.com
Author: Rude Academy
Author URI: https://rudeacademy.com
Description: Custom WordPress theme for Rude Academy — Jamaica's premier MMA, Brazilian Jiu-Jitsu, and striking gym. Built from the original brand design with Elementor Pro Theme Builder support (header / footer / single / archive locations) and 9 dedicated custom widgets (hero, programs, schedule, kids/values, about, principles, cta, header, footer).
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rude-academy
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, elementor
*/

/* =========================================================
   GLOBAL TOKENS — kept identical to source index.html
   ========================================================= */

:root {
	--ink:    #0A0A0A;
	--bone:   #FAFAF8;
	--gold:   #E8B500;
	--muted:  #6B6B6B;
	--line:   #E5E5E2;
	--line-dark: rgba(255,255,255,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
	background: var(--bone);
	color: var(--ink);
	font-family: "DM Sans", system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ---------- TYPE UTILITIES ---------- */
.display {
	font-family: "Archivo Black", Impact, sans-serif;
	letter-spacing: -0.01em;
	line-height: 1;
	text-transform: uppercase;
}

.eyebrow {
	font-family: "DM Sans", sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--muted);
}

/* ---------- BUTTONS (used by hero, cta, fallback header) ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 100px;
	transition: all 0.15s;
}
.btn--primary { background: var(--ink); color: var(--bone); }
.btn--primary:hover { background: var(--gold); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); }

/* ---------- SECTION FRAME (used by every body widget) ---------- */
.section {
	padding: 120px 0;
	border-bottom: 1px solid var(--line);
}

.section__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	margin-bottom: 64px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--line);
}

.section__title {
	font-size: clamp(40px, 6vw, 80px);
	max-width: 800px;
}
.section__eyebrow {
	margin-bottom: 16px;
	display: block;
}
.section__meta {
	font-size: 14px;
	color: var(--muted);
	font-weight: 500;
	white-space: nowrap;
}

@media (max-width: 720px) {
	.section { padding: 80px 0; }
	.section__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 48px; }
}

/* ---------- NAV (used by fallback header AND Elementor header template) ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bone); border-bottom: 1px solid var(--line); }
.nav__inner { max-width: 1200px; margin: 0 auto; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: "Archivo Black", sans-serif; font-size: 15px; letter-spacing: 0.03em; }
.nav__brand img { width: 36px; height: 36px; border-radius: 3px; }
.nav__menu { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: flex-end; }
.nav__links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.nav__links a { color: var(--muted); transition: color 0.15s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { padding: 10px 20px; background: var(--ink); color: var(--bone); font-size: 13px; font-weight: 600; border-radius: 100px; transition: background 0.15s; white-space: nowrap; }
.nav__cta:hover { background: #333; }

/* Hamburger button — hidden on desktop */
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 0; padding: 0; cursor: pointer; gap: 5px; flex-direction: column; -webkit-tap-highlight-color: transparent; }
.nav__toggle-bar { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }

/* Mobile (≤760px): show hamburger, hide menu by default, drawer when open */
@media (max-width: 760px) {
	.nav__inner { padding: 14px 20px; gap: 12px; }
	.nav__toggle { display: inline-flex; }
	.nav__menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		justify-content: flex-start;
		align-items: stretch;
		gap: 0;
		padding: 12px 20px 24px;
		background: var(--bone);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 32px rgba(10,10,10,0.06);
	}
	.nav.is-open .nav__menu { display: flex; }
	.nav.is-open .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav.is-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
	.nav.is-open .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.nav__links { flex-direction: column; gap: 0; }
	.nav__links a { display: block; padding: 14px 4px; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
	.nav__links a:last-child { border-bottom: none; }
	.nav__cta { margin-top: 16px; align-self: flex-start; padding: 14px 24px; font-size: 14px; }
}

/* ---------- FOOTER (used by fallback footer AND Elementor footer template) ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 40px 0; border-top: 1px solid var(--line-dark); font-size: 13px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px 32px; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--bone); font-family: "Archivo Black", sans-serif; font-size: 13px; letter-spacing: 0.05em; }
.footer__brand img { width: 28px; height: 28px; border-radius: 2px; }
.footer__socials { display: flex; gap: 20px; }
.footer__socials a { transition: color 0.15s; }
.footer__socials a:hover { color: var(--gold); }
.footer__contact { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__contact-item { display: flex; flex-direction: column; gap: 4px; }
.footer__contact-label { text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.42); font-size: 11px; font-weight: 600; }
.footer__contact-value { color: var(--bone); font-size: 13px; font-weight: 500; }
a.footer__contact-value:hover { color: var(--gold); }
.footer__copyright { color: rgba(255,255,255,0.55); font-size: 13px; }
@media (max-width: 720px) {
	.footer__inner { justify-content: flex-start; }
	.footer__contact { gap: 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}
