/* =========================================================
   FitNorms — main stylesheet
   ========================================================= */

:root {
	--fn-accent: #4d7c0f;
	--fn-accent-dark: #3c6112;
	--fn-dark: #0f1c2e;
	--fn-text: #222831;
	--fn-muted: #6b7280;
	--fn-bg: #f5f6f8;
	--fn-white: #ffffff;
	--fn-border: #e5e7eb;
	--fn-radius: 10px;
	--fn-shadow: 0 2px 10px rgba(15, 28, 46, 0.06);
	--fn-font-heading: 'Poppins', sans-serif;
	--fn-font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--fn-font-body);
	color: var(--fn-text);
	background: var(--fn-bg);
	line-height: 1.6;
	font-size: 16px;
}

img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
	font-family: var(--fn-font-heading);
	font-weight: 700;
	margin: 0 0 .5em;
	color: var(--fn-dark);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.btn {
	display: inline-block;
	padding: 13px 28px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .03em;
	text-transform: uppercase;
	border: 2px solid transparent;
	transition: all .2s ease;
}
.btn-primary { background: var(--fn-accent); color: #fff; }
.btn-primary:hover { background: var(--fn-accent-dark); }
.btn-outline { background: transparent; border-color: var(--fn-accent); color: var(--fn-accent); }
.btn-outline:hover { background: var(--fn-accent); color: #fff; }

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 24px;
}
.section-head h2 { font-size: 24px; margin: 0; }
.section-head .view-all { font-size: 14px; font-weight: 600; color: var(--fn-accent); white-space: nowrap; }

/* ---------- Top bar / header ---------- */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--fn-border);
	position: sticky;
	top: 0;
	z-index: 100;
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding .custom-logo-link img { max-height: 42px; width: auto; }
.site-title { font-family: var(--fn-font-heading); font-size: 22px; font-weight: 800; color: var(--fn-dark); margin: 0; display:flex; align-items:center; gap:8px;}
.site-title .brand-icon { color: var(--fn-accent); }
.site-description { font-size: 11px; color: var(--fn-muted); margin: 0; }

.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu li a {
	font-size: 15px;
	font-weight: 500;
	color: var(--fn-text);
	padding: 6px 0;
	position: relative;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item > a { color: var(--fn-accent); }
.nav-menu li.menu-item-has-children { position: relative; }
.nav-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	background: #fff;
	box-shadow: var(--fn-shadow);
	border-radius: var(--fn-radius);
	min-width: 200px;
	padding: 8px 0;
	border: 1px solid var(--fn-border);
}
.nav-menu .menu-item-has-children:hover .sub-menu { display: block; }
.nav-menu .sub-menu li a { display: block; padding: 8px 18px; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-search-toggle, .mobile-nav-toggle {
	background: none; border: none; font-size: 18px; color: var(--fn-dark);
	display: flex; align-items:center; justify-content:center; width:36px; height:36px;
}
.mobile-nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
	background: #fff;
	padding: 56px 0 40px;
}
.hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.hero-title {
	font-size: 46px;
	line-height: 1.15;
	margin-bottom: 18px;
}
.hero-title .accent { color: var(--fn-accent); display:block; }
.hero-subtitle { color: var(--fn-muted); font-size: 16px; max-width: 480px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media img { border-radius: 16px; width: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- Trust strip ---------- */
.trust-strip {
	background: var(--fn-bg);
	border-top: 1px solid var(--fn-border);
	border-bottom: 1px solid var(--fn-border);
	padding: 26px 0;
}
.trust-strip .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon {
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--fn-accent); color: #fff;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px;
}
.trust-item strong { display: block; font-size: 15px; color: var(--fn-dark); }
.trust-item span { font-size: 13px; color: var(--fn-muted); }

/* ---------- Featured categories ---------- */
.featured-categories { padding: 56px 0 16px; }
.featured-categories h2 { text-align: center; font-size: 26px; margin-bottom: 32px; }
.category-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
.category-card {
	background: #fff;
	border: 1px solid var(--fn-border);
	border-radius: var(--fn-radius);
	padding: 26px 18px;
	text-align: center;
	transition: transform .2s ease, box-shadow .2s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--fn-shadow); }
.category-icon {
	width: 46px; height: 46px; border-radius: 10px;
	background: rgba(77,124,15,.1); color: var(--fn-accent);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 14px; font-size: 20px;
}
.category-card h3 { font-size: 15px; margin-bottom: 4px; }
.category-card p { font-size: 12.5px; color: var(--fn-muted); margin: 0; }

/* ---------- Latest articles + sidebar layout ---------- */
.content-layout {
	padding: 56px 0;
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 32px;
	align-items: start;
}
.latest-articles .article-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.article-card {
	background: #fff;
	border: 1px solid var(--fn-border);
	border-radius: var(--fn-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.article-card .card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.article-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.article-badge {
	position: absolute; top: 12px; left: 12px;
	background: var(--fn-accent); color: #fff;
	font-size: 10.5px; font-weight: 700; text-transform: uppercase;
	padding: 4px 10px; border-radius: 4px; letter-spacing: .04em;
}
.article-card .card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.article-card h3 { font-size: 15.5px; line-height: 1.35; margin-bottom: 8px; }
.article-card h3 a:hover { color: var(--fn-accent); }
.article-card p { font-size: 13px; color: var(--fn-muted); margin: 0 0 12px; flex: 1; }
.article-meta { font-size: 12px; color: var(--fn-muted); display: flex; align-items: center; gap: 6px; }

/* Beginner's corner / Workout programs / Nutrition hub 3-col link lists */
.hub-columns {
	margin-top: 28px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.hub-card {
	background: #fff;
	border: 1px solid var(--fn-border);
	border-radius: var(--fn-radius);
	padding: 20px;
}
.hub-card h4 { font-size: 15px; margin-bottom: 10px; }
.hub-card ul li a {
	display: flex; align-items: center; justify-content: space-between;
	padding: 9px 0; border-top: 1px solid var(--fn-border);
	font-size: 13.5px;
}
.hub-card ul li:first-child a { border-top: none; }
.hub-card ul li a span.hub-desc { display: block; font-size: 11.5px; color: var(--fn-muted); font-weight: 400; }
.hub-card ul li a .hub-arrow { color: var(--fn-accent); }
.hub-card ul li a:hover { color: var(--fn-accent); }

/* ---------- Sidebar ---------- */
.sidebar .widget {
	background: #fff;
	border: 1px solid var(--fn-border);
	border-radius: var(--fn-radius);
	padding: 20px;
	margin-bottom: 24px;
}
.search-form-widget { display: flex; gap: 8px; }
.search-form-widget input[type=search] {
	flex: 1; padding: 10px 12px; border: 1px solid var(--fn-border); border-radius: 6px; font-size: 13.5px;
}
.search-form-widget button {
	background: var(--fn-accent); color: #fff; border: none; padding: 10px 16px; border-radius: 6px; font-weight: 600; font-size: 13px;
}
.widget-title, .popular-posts-title { font-size: 16px; margin-bottom: 14px; }
.popular-post-item { display: flex; gap: 12px; margin-bottom: 14px; }
.popular-post-item:last-child { margin-bottom: 0; }
.popular-post-item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.popular-post-item h5 { font-size: 13px; margin: 0 0 4px; line-height: 1.3; }
.popular-post-item h5 a:hover { color: var(--fn-accent); }
.popular-post-item span { font-size: 11.5px; color: var(--fn-muted); }

.newsletter-widget {
	background: var(--fn-accent);
	color: #fff;
	border: none;
}
.newsletter-widget h3 { color: #fff; }
.newsletter-widget p { font-size: 13.5px; opacity: .92; margin-bottom: 16px; }
.newsletter-widget input {
	width: 100%; padding: 11px 14px; margin-bottom: 10px; border-radius: 6px; border: none; font-size: 13.5px;
}
.newsletter-widget button {
	width: 100%; padding: 12px; background: var(--fn-dark); color: #fff; border: none;
	border-radius: 6px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em;
}
.newsletter-widget button:hover { opacity: .92; }

/* ---------- Calculators ---------- */
.calculators { padding: 8px 0 56px; }
.calculator-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}
.calculator-card {
	background: #fff; border: 1px solid var(--fn-border); border-radius: var(--fn-radius);
	padding: 20px 14px; text-align: center; font-size: 13.5px; font-weight: 600;
	display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.calculator-card .calc-icon { font-size: 22px; color: var(--fn-accent); }
.calculator-card:hover { border-color: var(--fn-accent); }

/* ---------- Equipment reviews ---------- */
.equipment-reviews { padding: 0 0 56px; }
.equipment-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
}
.equipment-card {
	background: #fff; border: 1px solid var(--fn-border); border-radius: var(--fn-radius);
	padding: 16px; text-align: center;
}
.equipment-card img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 12px; background: #f0f1f3; }
.equipment-card h4 { font-size: 14px; margin-bottom: 6px; }
.equipment-rating { color: #f5a623; font-size: 13px; margin-bottom: 8px; }
.equipment-rating span { color: var(--fn-muted); margin-left: 4px; }
.equipment-card a.read-review { font-size: 12.5px; font-weight: 700; color: var(--fn-accent); }

/* ---------- Success stories ---------- */
.success-stories { padding: 0 0 56px; }
.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.testimonial-card {
	background: #fff; border: 1px solid var(--fn-border); border-radius: var(--fn-radius);
	padding: 22px; display: flex; gap: 14px;
}
.testimonial-avatar {
	width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--fn-accent);
}
.testimonial-card p { font-size: 13.5px; color: var(--fn-text); margin: 0 0 10px; font-style: italic; }
.testimonial-card strong { display: block; font-size: 13.5px; color: var(--fn-dark); }
.testimonial-card span { font-size: 12px; color: var(--fn-accent); }

/* ---------- FAQ ---------- */
.faq-section { padding: 0 0 56px; }
.faq-item {
	background: #fff; border: 1px solid var(--fn-border); border-radius: 8px;
	margin-bottom: 10px; overflow: hidden;
}
.faq-question {
	width: 100%; background: none; border: none; text-align: left;
	padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
	font-size: 14.5px; font-weight: 600; color: var(--fn-dark);
}
.faq-question .faq-toggle-icon { color: var(--fn-accent); font-size: 18px; transition: transform .2s ease; }
.faq-item.active .faq-toggle-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 20px; }
.faq-answer-inner { padding-bottom: 16px; font-size: 13.5px; color: var(--fn-muted); }
.faq-item.active .faq-answer { max-height: 300px; }

/* ---------- From the blog ---------- */
.from-blog { padding: 0 0 56px; }
.blog-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
	background: var(--fn-accent);
	background-image: linear-gradient(120deg, var(--fn-accent), var(--fn-accent-dark));
	padding: 40px 0;
}
.cta-banner .container {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.cta-banner h2 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,.9); margin: 0; font-size: 14.5px; }
.cta-banner .btn-outline { background: #fff; color: var(--fn-accent); border-color: #fff; }
.cta-banner .btn-outline:hover { background: transparent; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--fn-dark); color: rgba(255,255,255,.75); padding: 56px 0 0; }
.footer-columns {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
	gap: 28px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .site-title { color: #fff; }
.footer-brand p { font-size: 13.5px; margin: 14px 0 18px; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
	width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08);
	display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.footer-social a:hover { background: var(--fn-accent); }
.footer-widget-title, .footer-columns h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-columns ul li { margin-bottom: 10px; }
.footer-columns ul li a { font-size: 13.5px; color: rgba(255,255,255,.65); }
.footer-columns ul li a:hover { color: #fff; }
.footer-contact li { font-size: 13.5px; margin-bottom: 12px; display: flex; gap: 8px; color: rgba(255,255,255,.65); }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ---------- Misc / accessibility ---------- */
.skip-link {
	position: absolute; left: -999px; top: auto;
	background: var(--fn-accent); color: #fff; padding: 10px 18px; z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }
.screen-reader-text { border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%); height:1px; margin:-1px; overflow:hidden; padding:0; position:absolute; width:1px; word-wrap:normal; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.hero-inner { grid-template-columns: 1fr; }
	.category-grid { grid-template-columns: repeat(3, 1fr); }
	.article-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
	.content-layout { grid-template-columns: 1fr; }
	.hub-columns { grid-template-columns: 1fr; }
	.calculator-grid { grid-template-columns: repeat(3, 1fr); }
	.equipment-grid { grid-template-columns: repeat(3, 1fr); }
	.testimonial-grid { grid-template-columns: 1fr; }
	.footer-columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	.nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 12px 24px; border-bottom: 1px solid var(--fn-border); gap: 4px; }
	.nav-menu.is-open { display: flex; }
	.nav-menu .sub-menu { position: static; box-shadow: none; border: none; padding-left: 14px; }
	.mobile-nav-toggle { display: flex; }
	.hero-title { font-size: 32px; }
	.category-grid { grid-template-columns: repeat(2, 1fr); }
	.article-grid, .blog-grid { grid-template-columns: 1fr; }
	.calculator-grid { grid-template-columns: repeat(2, 1fr); }
	.equipment-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-columns { grid-template-columns: 1fr; }
	.cta-banner .container { flex-direction: column; text-align: center; }
}
