/*
Theme Name: MuscleTech
Theme URI: https://muscletechfitnessclubandgym.com
Author: Din Alam
Description: Custom theme for MuscleTech Fitness Club & Gym, Gopalganj. One-page front page (hero, training, session times, trainers, visit + contact form) driven entirely from Appearance > Customize, plus standard blog/page templates.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: muscletech
Tags: one-column, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ------------------------------------------------------------------
   Tokens: chalk + iron, with competition bumper-plate colours used
   only on the barbell.
------------------------------------------------------------------- */
:root {
	--chalk: #eceef0;
	--chalk-2: #e1e4e8;
	--paper: #ffffff;
	--iron: #1e232b;
	--iron-2: #2a313b;
	--steel: #5b6573;
	--steel-light: #9aa3ae;
	--line: #cdd2d8;
	--plate-red: #c8102e;
	--plate-blue: #1f4e9c;
	--plate-yellow: #f2b705;
	--plate-green: #2e8b3e;
	--accent: var(--plate-red);
	--accent-dark: #a00d25;

	--font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
	--font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(64px, 9vw, 120px);
	--radius: 4px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
	margin: 0;
	background: var(--chalk);
	color: var(--iron);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--plate-blue); }
a:hover { color: var(--accent); }

:focus-visible {
	outline: 3px solid var(--plate-yellow);
	outline-offset: 3px;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: 0.005em;
	margin: 0 0 0.5em;
	text-transform: uppercase;
}
h2 { font-size: clamp(40px, 6vw, 72px); }
h3 { font-size: clamp(24px, 2.6vw, 32px); }
p { margin: 0 0 1em; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000;
	width: auto; height: auto; clip: auto;
	background: var(--paper); color: var(--iron);
	padding: 10px 16px;
}

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 26px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: var(--iron); color: var(--iron); background: transparent; }
.btn-ghost:hover { background: var(--iron); color: #fff; }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--iron); }

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(236, 238, 240, 0.94);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--iron); }
.brand:hover { color: var(--iron); }
.brand .custom-logo { max-height: 48px; width: auto; }
.brand-mark {
	display: grid;
	place-items: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--iron);
	box-shadow: inset 0 0 0 5px var(--plate-red);
}
.brand-mark::after {
	content: "";
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--chalk);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 28px;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}
.brand-sub { font-size: 12.5px; color: var(--steel); margin-top: 3px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
	display: block;
	padding: 10px 14px;
	color: var(--iron);
	text-decoration: none;
	font-weight: 600;
	font-size: 15.5px;
	border-radius: var(--radius);
}
.main-nav a:hover,
.main-nav .current-menu-item > a { background: var(--chalk-2); color: var(--iron); }
.main-nav .sub-menu { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { min-height: 44px; font-size: 18px; padding: 0 18px; }

.nav-toggle {
	display: none;
	width: 46px; height: 46px;
	border: 2px solid var(--iron);
	border-radius: var(--radius);
	background: transparent;
	cursor: pointer;
	padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	display: block;
	width: 20px; height: 2px;
	margin: 0 auto;
	background: var(--iron);
	position: relative;
	transition: transform .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.header-actions .btn { display: none; }
	.main-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--chalk);
		border-bottom: 1px solid var(--line);
		display: none;
	}
	.nav-open .main-nav { display: block; }
	.main-nav ul { flex-direction: column; padding: 8px var(--gutter) 20px; }
	.main-nav a { font-size: 18px; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.main-nav .menu-join { display: block; }
}
.main-nav .menu-join { display: none; }
.main-nav .menu-join a { color: var(--accent); }

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------- */
.hero {
	position: relative;
	padding-top: clamp(48px, 7vw, 96px);
	overflow: hidden;
}
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: end;
}
.hero-title {
	font-size: clamp(56px, 8.8vw, 132px);
	line-height: 0.86;
	margin: 0 0 28px;
	letter-spacing: -0.005em;
}
.hero-title span { display: block; }
.hero-text {
	font-size: clamp(18px, 1.6vw, 21px);
	max-width: 34em;
	color: var(--iron-2);
	margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-aside {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	margin-bottom: 8px;
}
.hero-photo {
	margin: -24px -24px 20px;
	aspect-ratio: 4 / 3;
	background: var(--iron) center / cover no-repeat;
	border-radius: var(--radius) var(--radius) 0 0;
}
.open-status {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 17px;
	margin-bottom: 4px;
}
.open-status .dot {
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--steel-light);
	flex: none;
}
.open-status.is-open .dot { background: var(--plate-green); box-shadow: 0 0 0 4px rgba(46, 139, 62, .18); }
.open-status.is-closed .dot { background: var(--plate-red); }
.open-detail { color: var(--steel); font-size: 15px; margin: 0 0 16px 22px; }
.hero-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hero-facts li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15.5px;
}
.hero-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-facts span { color: var(--steel); }
.hero-facts a, .hero-facts strong { color: var(--iron); font-weight: 600; text-decoration: none; text-align: right; }

/* The barbell: the one loud element on the page. */
.barbell {
	margin-top: clamp(48px, 6vw, 80px);
	height: clamp(120px, 15vw, 200px);
	position: relative;
}
.barbell svg { width: 100%; height: 100%; display: block; }

@media (max-width: 860px) {
	.hero-grid { grid-template-columns: 1fr; align-items: start; }
}

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px 48px;
	align-items: end;
	margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--steel); max-width: 32em; font-size: 18px; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* Programs */
.programs { background: var(--paper); border-top: 1px solid var(--line); }
.program-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 2px solid var(--iron);
}
.program {
	padding: 32px 32px 36px 0;
	border-bottom: 1px solid var(--line);
}
.program:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
.program h3 { margin-bottom: 12px; }
.program p { color: var(--iron-2); margin: 0; max-width: 30em; }
.program-meta { margin-top: 14px; font-size: 14.5px; color: var(--steel); font-weight: 600; }
@media (max-width: 760px) {
	.program-list { grid-template-columns: 1fr; }
	.program, .program:nth-child(even) { padding: 28px 0; border-left: 0; }
}

/* Timetable */
.timetable { background: var(--iron); color: #fff; }
.timetable h2 { color: #fff; }
.timetable .section-head p { color: var(--steel-light); }
.day-tabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}
.day-tab {
	min-width: 64px;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #47505c;
	border-radius: var(--radius);
	background: transparent;
	color: #fff;
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 800;
	text-transform: uppercase;
	cursor: pointer;
}
.day-tab:hover { border-color: #fff; }
.day-tab[aria-selected="true"] { background: var(--plate-yellow); border-color: var(--plate-yellow); color: var(--iron); }
.day-tab .today-flag { font-family: var(--font-body); font-size: 11px; font-weight: 600; text-transform: none; margin-left: 6px; }

.class-table { width: 100%; border-collapse: collapse; }
.class-table th {
	text-align: left;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--steel-light);
	padding: 0 16px 12px 0;
	border-bottom: 1px solid #47505c;
}
.class-table td {
	padding: 18px 16px 18px 0;
	border-bottom: 1px solid #353d48;
	vertical-align: top;
}
.class-table .c-time { font-family: var(--font-display); font-size: 26px; font-weight: 800; width: 120px; white-space: nowrap; }
.class-table .c-name { font-weight: 700; font-size: 18px; }
.class-table .c-coach { color: var(--steel-light); }
.class-table .c-day { color: var(--steel-light); width: 70px; }
.js .class-table .c-day,
.js .class-table .h-day { display: none; }
.class-table.no-coach .c-coach,
.class-table.no-coach .h-coach { display: none; }
.timetable-empty { color: var(--steel-light); padding: 24px 0; }
.timetable-note { color: var(--steel-light); font-size: 15px; margin-top: 24px; }
@media (max-width: 600px) {
	.class-table thead { display: none; }
	.class-table tr { display: grid; grid-template-columns: 96px 1fr; border-bottom: 1px solid #353d48; padding: 14px 0; }
	.class-table td { border: 0; padding: 0 12px 0 0; }
	.class-table .c-time { grid-row: span 2; font-size: 22px; width: auto; }
	.class-table .c-coach { font-size: 15px; }
}

/* Coaches */
.coaches { background: var(--paper); border-top: 1px solid var(--line); }
.coach-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.coach-photo {
	aspect-ratio: 4 / 5;
	background: var(--chalk-2) center / cover no-repeat;
	border-radius: var(--radius);
	margin-bottom: 14px;
	display: grid;
	place-items: center;
	color: var(--steel-light);
	font-family: var(--font-display);
	font-size: 64px;
	font-weight: 900;
}
.coach h3 { margin: 0 0 4px; font-size: 26px; }
.coach p { margin: 0; color: var(--steel); font-size: 15.5px; }
@media (max-width: 960px) { .coach-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Visit + contact */
.visit { background: var(--chalk); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); }
.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.hours-table th, .hours-table td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 16.5px; }
.hours-table td { text-align: right; font-weight: 600; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--accent); }
.hours-table tr.is-today th::after { content: attr(data-today); font-size: 12.5px; font-weight: 600; margin-left: 8px; color: var(--steel); }
.contact-lines { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-lines li { padding: 6px 0; font-size: 17px; }
.contact-lines span { display: inline-block; width: 92px; color: var(--steel); }
.contact-lines a { color: var(--iron); font-weight: 600; }
.map-embed { aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--chalk-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(24px, 4vw, 40px);
}
.contact-card h3 { font-size: 40px; margin-bottom: 8px; }
.contact-card > p { color: var(--steel); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--iron);
	font: inherit;
	font-size: 16px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--iron); outline: none; box-shadow: 0 0 0 3px rgba(242, 183, 5, .45); }
.hp-field { position: absolute; left: -9999px; }
.form-notice { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600; }
.form-notice.ok { background: #e3f1e5; color: #1d5e28; }
.form-notice.err { background: #f9e1e5; color: #8a0b20; }
.form-small { font-size: 13.5px; color: var(--steel); margin: 12px 0 0; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* Join band */
.join-band { background: var(--accent); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.join-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.join-band h2 { color: #fff; margin: 0; font-size: clamp(40px, 6vw, 80px); max-width: 12em; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */
.site-footer { background: var(--iron); color: var(--steel-light); padding: 64px 0 28px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-mark { background: var(--chalk); }
.site-footer .brand-mark::after { background: var(--iron); }
.site-footer .brand-sub { color: var(--steel-light); }
.site-footer h4 { color: #fff; font-size: 22px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #e6e9ed; text-decoration: none; }
.site-footer a:hover { color: var(--plate-yellow); }
.footer-about { margin-top: 18px; max-width: 26em; }
.footer-bottom { border-top: 1px solid #353d48; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Blog / pages
------------------------------------------------------------------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); border-bottom: 2px solid var(--iron); }
.page-hero h1 { font-size: clamp(48px, 8vw, 104px); margin: 0; }
.page-hero p { color: var(--steel); margin: 16px 0 0; }
.content-area { padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.entry-content { max-width: 720px; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2 { font-size: clamp(32px, 4vw, 48px); margin-top: 1.4em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote { margin-left: 0; padding-left: 20px; border-left: 4px solid var(--accent); font-size: 1.1em; }
.alignwide { max-width: 1100px; }
.alignfull { max-width: none; }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card-img { aspect-ratio: 16 / 10; background: var(--chalk-2) center / cover no-repeat; }
.post-card-body { padding: 22px; }
.post-card h2 { font-size: 30px; margin-bottom: 8px; }
.post-card h2 a { color: var(--iron); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-meta { font-size: 14px; color: var(--steel); margin-bottom: 10px; }
.pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--iron); background: var(--paper); }
.pagination .current { background: var(--iron); color: #fff; border-color: var(--iron); }
@media (max-width: 960px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-list { grid-template-columns: 1fr; } }

.comments-area { max-width: 720px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.comment-list { padding-left: 0; list-style: none; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; }
.comment-form .submit { background: var(--accent); color: #fff; border: 0; padding: 14px 24px; border-radius: var(--radius); font-weight: 700; cursor: pointer; }

.search-form { display: flex; gap: 8px; max-width: 480px; }
.search-form input[type="search"] { flex: 1; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; }
.search-form button { min-height: 50px; padding: 0 20px; background: var(--iron); color: #fff; border: 0; border-radius: var(--radius); font-weight: 700; cursor: pointer; }

/* Fixes: long emails must wrap; hidden rows stay hidden at every breakpoint. */
.hero-facts a, .hero-facts strong, .contact-lines a, .site-footer a { overflow-wrap: anywhere; min-width: 0; }
.class-table tr[hidden], [hidden] { display: none !important; }
html, body { overflow-x: clip; }

/* ==================================================================
   v1.2 additions
=================================================================== */
:root { --whatsapp: #1f9d55; --whatsapp-dark: #17803f; }

.btn .icon { width: 20px; height: 20px; flex: none; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; }

/* Announcement + top bar */
.announce { background: var(--plate-yellow); color: var(--iron); font-weight: 600; font-size: 15px; }
.announce-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.announce p { margin: 0; padding: 10px 0; }
.announce-close { flex: none; width: 36px; height: 36px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--iron); border-radius: var(--radius); }
.announce-close:hover { background: rgba(0,0,0,.08); }

.topbar { background: var(--iron); color: #d5dae0; font-size: 14px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.topbar li { display: flex; align-items: center; gap: 7px; }
.topbar .icon { width: 16px; height: 16px; color: var(--plate-yellow); }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.topbar a:hover { color: var(--plate-yellow); }
@media (max-width: 760px) { .topbar .topbar-address, .topbar .topbar-links li:not(:first-child) { display: none; } .topbar ul { gap: 14px; } .topbar-inner { gap: 12px; font-size: 13px; } }
@media (max-width: 420px) { .topbar-links { display: none; } }

/* Header polish */
.site-header { transition: box-shadow .2s ease, background-color .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 18px -12px rgba(30, 35, 43, .45); background: rgba(255,255,255,.96); }
.main-nav a.is-active { color: var(--accent); }
.main-nav a.is-active::after { content: ""; display: block; height: 2px; background: var(--accent); margin-top: 3px; }
@media (max-width: 960px) { .main-nav a.is-active::after { display: none; } }
.header-actions .btn-primary { background: var(--whatsapp); }
.header-actions .btn-primary:hover { background: var(--whatsapp-dark); }

/* Hero with photo */
.hero-has-photo { padding-bottom: clamp(48px, 6vw, 80px); }
.hero-has-photo .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; row-gap: 0; }
.hero-has-photo .hero-copy { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.hero-has-photo .hero-photo {
	grid-column: 2; grid-row: 1;
	margin: 0; aspect-ratio: 4 / 3.4;
	border-radius: var(--radius);
	background-color: var(--iron);
}
.hero-has-photo .hero-aside { grid-column: 2; grid-row: 2; margin: -64px 24px 0 -48px; position: relative; box-shadow: 0 18px 40px -24px rgba(30, 35, 43, .55); }
.hero-has-photo .hero-title { font-size: clamp(52px, 7vw, 112px); }
@media (max-width: 860px) {
	.hero-has-photo .hero-grid { grid-template-columns: 1fr; }
	.hero-has-photo .hero-copy, .hero-has-photo .hero-photo, .hero-has-photo .hero-aside { grid-column: 1; grid-row: auto; }
	.hero-has-photo .hero-photo { margin-top: 8px; }
	.hero-has-photo .hero-aside { margin: -40px 16px 0; }
}

/* Stats band */
.stats { background: var(--iron); color: #fff; padding: clamp(32px, 4vw, 48px) 0; }
.stat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-list li { padding: 4px 24px; border-left: 1px solid #3a424e; display: flex; flex-direction: column; gap: 6px; }
.stat-list li:first-child { border-left: 0; padding-left: 0; }
.stat-list strong { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 5vw, 64px); line-height: .9; color: var(--plate-yellow); text-transform: uppercase; }
.stat-list span { color: #c8ced6; font-size: 15.5px; line-height: 1.35; max-width: 16em; }
@media (max-width: 760px) {
	.stat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
	.stat-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* Program icons */
.program-icon {
	display: inline-grid; place-items: center;
	width: 52px; height: 52px; margin-bottom: 18px;
	border-radius: 50%;
	background: var(--chalk); color: var(--accent);
}
.program-icon .icon { width: 26px; height: 26px; }
.program-meta { color: var(--plate-green); }

/* BMI */
.bmi { background: var(--chalk); }
.bmi-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.bmi-lead { color: var(--steel); font-size: 18px; max-width: 30em; margin-bottom: 28px; }
.bmi-scale { width: 100%; max-width: 440px; border-collapse: collapse; margin-bottom: 16px; }
.bmi-scale th, .bmi-scale td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 16px; }
.bmi-scale td { text-align: right; color: var(--steel); font-variant-numeric: tabular-nums; }
.bmi-scale th { font-weight: 600; position: relative; padding-left: 26px; }
.bmi-scale th::before { content: ""; position: absolute; left: 6px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; }
.bmi-scale [data-bmi-band="under"] th::before { background: var(--plate-blue); }
.bmi-scale [data-bmi-band="normal"] th::before { background: var(--plate-green); }
.bmi-scale [data-bmi-band="over"] th::before { background: var(--plate-yellow); }
.bmi-scale [data-bmi-band="obese"] th::before { background: var(--plate-red); }
.bmi-scale tr.is-current { background: var(--paper); }
.bmi-scale tr.is-current th, .bmi-scale tr.is-current td { color: var(--iron); font-weight: 700; }
.bmi-note { font-size: 14px; color: var(--steel); max-width: 34em; }

.bmi-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px); }
.unit-switch { border: 0; padding: 0; margin: 0 0 20px; display: inline-flex; background: var(--chalk); border-radius: var(--radius); padding: 4px; gap: 4px; }
.unit-switch label { position: relative; cursor: pointer; }
.unit-switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.unit-switch span { display: block; padding: 9px 14px; border-radius: 3px; font-weight: 600; font-size: 15px; color: var(--steel); }
.unit-switch input:checked + span { background: var(--paper); color: var(--iron); box-shadow: 0 1px 2px rgba(30,35,43,.15); }
.unit-switch input:focus-visible + span { outline: 3px solid var(--plate-yellow); }

.bmi-result { border-top: 1px solid var(--line); margin: 8px 0 22px; padding-top: 20px; }
.bmi-number { display: flex; align-items: baseline; gap: 8px; }
.bmi-number span { font-family: var(--font-display); font-weight: 900; font-size: 72px; line-height: .9; font-variant-numeric: tabular-nums; }
.bmi-number small { font-weight: 700; color: var(--steel); }
.bmi-result p { margin: 6px 0 14px; font-weight: 600; min-height: 1.6em; }
.bmi-card[data-band="under"] .bmi-result p { color: var(--plate-blue); }
.bmi-card[data-band="normal"] .bmi-result p { color: var(--plate-green); }
.bmi-card[data-band="over"] .bmi-result p { color: #8a6a00; }
.bmi-card[data-band="obese"] .bmi-result p { color: var(--plate-red); }
/* Bar spans BMI 15-40: under 0-14%, normal 14-40%, over 40-60%, obese 60-100%. */
.bmi-bar { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--plate-blue) 0 14%, var(--plate-green) 14% 40%, var(--plate-yellow) 40% 60%, var(--plate-red) 60% 100%); }
.bmi-bar span { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; background: var(--iron); border-radius: 2px; box-shadow: 0 0 0 2px #fff; transition: left .25s ease; }
.bmi-card .btn-primary { background: var(--whatsapp); }
.bmi-card .btn-primary:hover { background: var(--whatsapp-dark); }
@media (max-width: 860px) { .bmi-grid { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { background: var(--paper); border-top: 1px solid var(--line); }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-grid.count-1 { grid-template-columns: 1fr; }
.gallery-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-grid.count-4, .gallery-grid.count-5, .gallery-grid.count-7, .gallery-grid.count-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-grid.count-5 li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid.count-7 li:first-child { grid-column: span 2; }
.gallery-grid a { display: block; height: 100%; overflow: hidden; border-radius: var(--radius); background: var(--chalk-2); }
.gallery-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery-grid.count-7 li:first-child img { aspect-ratio: auto; }
.gallery-grid a:hover img { transform: scale(1.03); }
@media (max-width: 760px) {
	.gallery-grid, .gallery-grid[class*="count-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery-grid[class*="count-"] li:first-child { grid-column: auto; grid-row: auto; }
	.gallery-grid.count-1 li:first-child, .gallery-grid.count-3 li:first-child, .gallery-grid.count-5 li:first-child, .gallery-grid.count-7 li:first-child { grid-column: span 2; }
	.gallery-grid.count-1 { grid-template-columns: 1fr; }
}

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 18, 23, .94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { color: #c8ced6; font-size: 14px; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb-next { right: 12px; top: 50%; margin-top: -24px; }
.lb-open { overflow: hidden; }
@media (max-width: 600px) { .lightbox { padding: 64px 8px; } .lb-prev, .lb-next { top: auto; bottom: 12px; margin: 0; } }

/* FAQ */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.section-head-stack h2 { margin-bottom: 16px; }
.section-head-stack p { color: var(--steel); font-size: 18px; max-width: 26em; }
.faq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.faq-list { border-top: 2px solid var(--iron); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; align-items: center; gap: 24px;
	padding: 22px 0; font-weight: 700; font-size: 18.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: ""; flex: none; width: 14px; height: 14px;
	background: linear-gradient(var(--iron), var(--iron)) center / 14px 2.5px no-repeat, linear-gradient(var(--iron), var(--iron)) center / 2.5px 14px no-repeat;
	transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-answer { padding: 0 40px 22px 0; color: var(--iron-2); }
.faq-answer p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Visit: hours block + contact actions */
.hours-block { display: flex; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--plate-green); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 28px; }
.hours-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--chalk); color: var(--plate-green); flex: none; }
.hours-icon .icon { width: 26px; height: 26px; }
.hours-days { margin: 0; color: var(--steel); font-weight: 600; }
.hours-time { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 4vw, 44px); line-height: 1; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 28px; }
.contact-actions .btn, .faq-actions .btn { min-height: 46px; font-size: 18px; padding: 0 18px; }

.footer-strong { color: #fff; font-weight: 600; }

/* Floating WhatsApp + mobile action bar */
.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 90;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 0 20px 0 16px; height: 56px; border-radius: 28px;
	background: var(--whatsapp); color: #fff; text-decoration: none; font-weight: 700;
	box-shadow: 0 10px 24px -10px rgba(23, 128, 63, .8);
}
.wa-float:hover { background: var(--whatsapp-dark); color: #fff; }
.wa-float .icon { width: 26px; height: 26px; }
.mobile-actions { display: none; }
@media (max-width: 760px) {
	.wa-float { display: none; }
	.mobile-actions {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		display: flex; background: var(--paper); border-top: 1px solid var(--line);
		box-shadow: 0 -6px 18px -12px rgba(30,35,43,.4);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.mobile-actions a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; color: var(--iron); text-decoration: none; font-size: 13px; font-weight: 700; }
	.mobile-actions a + a { border-left: 1px solid var(--line); }
	.mobile-actions a.is-primary { background: var(--whatsapp); color: #fff; border-left-color: var(--whatsapp); }
	.mobile-actions .icon { width: 22px; height: 22px; }
	body:has(.mobile-actions) .site-footer { padding-bottom: 92px; }
}
.btn-wa { background: var(--whatsapp); }
.btn-wa:hover { background: var(--whatsapp-dark); }
@media (max-width: 420px) { .hours-time { font-size: 30px; } .hours-block { padding: 18px; gap: 14px; } }

/* FAQ groups */
.faq-list { border-top: 0; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group-title { font-size: 26px; margin: 0; padding-bottom: 12px; border-bottom: 2px solid var(--iron); }
.faq-list > .faq-group:only-child { border-top: 2px solid var(--iron); }
.faq-grid > .section-head-stack { position: sticky; top: 110px; }
@media (max-width: 860px) { .faq-grid > .section-head-stack { position: static; } }
