/*
Theme Name: Athletic Lift
Theme URI: https://athleticlift.com/
Author: Athletic Lift
Author URI: https://athleticlift.com/about/
Description: Custom theme for athleticlift.com.
Version: 1.0.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: athleticlift
*/

:root {
	--al-bg: #fffdf9;
	--al-panel: #f6f1e8;
	--al-ink: #1a1a1a;
	--al-ink-2: #52525b;
	--al-ink-3: #71717a;
	--al-line: rgba(26, 26, 26, .1);
	--al-orange: #c2410c;
	--al-orange-2: #ea580c;
	--al-mint: #10b981;
	--al-mint-2: #059669;
	--al-teal: #14b8a6;
	--al-honey: #fbbf24;
	--al-night: #1c1c1e;
	--al-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
	--al-r: 14px;
	--al-wide: 1180px;
	--al-text: 1.125rem;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--al-bg); color: var(--al-ink); font: 400 var(--al-text)/1.75 var(--al-sans); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--al-orange); text-decoration: none; }
a:hover { color: var(--al-orange-2); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--al-sans); font-weight: 750; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
p, ul, ol { margin: 0 0 1.25em; }
ul, ol { padding-left: 1.4em; }
::selection { background: rgba(234, 88, 12, .2); }
.al-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.al-skip { position: absolute; left: -999px; top: 8px; background: var(--al-night); color: #fff; padding: 8px 14px; z-index: 99; }
.al-skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--al-orange); outline-offset: 2px; }

/* Inputs and buttons */
input[type="search"], input[type="text"], input[type="email"], input[type="url"], textarea {
	font: inherit; font-size: 1rem; padding: 11px 14px; color: var(--al-ink);
	background: #fff; border: 1.5px solid var(--al-line); border-radius: 10px; width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--al-orange); box-shadow: 0 0 0 3px rgba(234, 88, 12, .12); }
.wp-block-button__link, a.button, button, input[type="submit"] {
	display: inline-block; font: 650 .875rem/1 var(--al-sans); letter-spacing: .05em; text-transform: uppercase;
	color: #fff; background: var(--al-orange); border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer;
}
.wp-block-button__link:hover, a.button:hover, button:hover, input[type="submit"]:hover { background: var(--al-orange-2); color: #fff; text-decoration: none; }

/* Header */
.al-masthead { background: var(--al-bg); border-bottom: 1px solid var(--al-line); position: relative; z-index: 20; }
.al-masthead::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--al-mint) 0 18%, var(--al-orange) 18% 100%); }
.al-masthead-in { max-width: var(--al-wide); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.al-brand { flex: 0 0 auto; }
.al-brand img { display: block; width: auto; max-height: 52px; }
.al-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.al-menu, .al-menu ul { list-style: none; margin: 0; padding: 0; }
.al-menu { display: flex; gap: 4px; }
.al-menu > li { position: relative; }
.al-menu a { display: block; padding: 10px 12px; color: var(--al-ink); font-size: .9rem; font-weight: 600; letter-spacing: .03em; }
.al-menu a:hover, .al-menu .current-menu-item > a, .al-menu .current-menu-parent > a { color: var(--al-orange); text-decoration: none; }
.al-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.al-menu .sub-menu { position: absolute; left: 0; top: 100%; min-width: 220px; padding: 8px; background: var(--al-bg); border: 1px solid var(--al-line); border-radius: var(--al-r); box-shadow: 0 12px 30px rgba(26, 26, 26, .1); opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s ease; }
.al-menu li:hover > .sub-menu, .al-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.al-menu .sub-menu a { padding: 8px 12px; border-radius: 8px; font-weight: 500; letter-spacing: 0; }
.al-menu .sub-menu a:hover { background: var(--al-panel); }
.al-nav-search { width: 200px; }
.al-nav-search input { padding: 8px 14px; border-radius: 999px; background: var(--al-panel); border-color: transparent; font-size: .9rem; }
.al-navbtn { display: none; margin-left: auto; background: none; color: var(--al-ink); padding: 10px; border-radius: 8px; letter-spacing: .06em; }
.al-navbtn:hover { background: var(--al-panel); color: var(--al-ink); }
.al-navbtn-bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: 8px; }
.al-navbtn-bars::before, .al-navbtn-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.al-navbtn-bars::before { top: -6px; }
.al-navbtn-bars::after { top: 6px; }

/* Layout */
.al-wrap { max-width: var(--al-wide); margin: 0 auto; padding: 40px 24px 64px; }
.al-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
.al-main { min-width: 0; }
.al-main-page { max-width: 820px; margin: 0 auto; }
.al-main-home { max-width: none; }

/* Breadcrumbs (Rank Math) */
.al-crumbs { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--al-ink-3); margin: 0 0 14px; }
.al-crumbs p { margin: 0; }
.al-crumbs a { color: var(--al-ink-2); }
.al-crumbs .separator { margin: 0 6px; color: var(--al-ink-3); }

/* Post */
.entry-title, .page-title { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.3rem); margin: 0 0 18px; }
.al-post-head { margin-bottom: 4px; }
.al-byline { display: flex; align-items: center; gap: 12px; margin: 4px 0 20px; }
.al-byline-img { border-radius: 50%; }
.al-byline p { margin: 0; line-height: 1.35; }
.al-byline-name { font-size: .9rem; color: var(--al-ink-2); }
.al-byline-name a { color: var(--al-ink); font-weight: 700; }
.al-byline-date { font-size: .8rem; color: var(--al-ink-3); }
.affiliate-disclosure { margin: 16px 0 28px; padding: 12px 18px; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .3); border-left: 4px solid var(--al-honey); border-radius: 10px; font-size: .95rem; color: var(--al-ink-2); }
.affiliate-disclosure strong { color: var(--al-ink); }

.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > * { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.15rem); margin: 2.6em 0 .7em; padding-top: 1.1em; border-top: 3px solid var(--al-orange); position: relative; }
.entry-content h2::before { content: ""; position: absolute; top: -3px; left: 0; width: 80px; height: 3px; background: var(--al-mint); }
.entry-content h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); margin: 1.8em 0 .5em; }
.entry-content h4 { font-size: 1.15rem; margin: 1.5em 0 .5em; }
.al-post .entry-content > p:first-of-type { font-size: 1.2rem; color: var(--al-ink-2); }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: var(--al-r); }
.entry-content figure { margin: 0 0 1.6em; }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--al-ink-3); margin-top: 8px; font-style: italic; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 1rem; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--al-line); text-align: left; }
.entry-content th { background: var(--al-night); color: #fff; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
blockquote { margin: 2em 0; padding: 20px 28px; background: rgba(16, 185, 129, .05); border-left: 4px solid var(--al-mint); border-radius: 10px; font-size: 1.15rem; font-style: italic; color: var(--al-ink-2); }
blockquote p:last-child { margin-bottom: 0; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Content components already used in posts */
.al-card { background: #fff; border: 1.5px solid var(--al-line); border-radius: var(--al-r); padding: 24px; }
.al-callout { margin: 2em 0; padding: 22px; background: rgba(26, 26, 26, .02); border: 1.5px solid var(--al-line); border-left-width: 4px; border-radius: var(--al-r); }
.al-callout--tip { border-left-color: var(--al-mint); background: rgba(16, 185, 129, .04); }
.al-callout--warn { border-left-color: var(--al-orange); background: rgba(234, 88, 12, .04); }
.al-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.al-chip { font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: rgba(16, 185, 129, .08); color: var(--al-mint-2); border: 1px solid rgba(16, 185, 129, .2); border-radius: 999px; padding: 6px 12px; }
.responsive-table-web1, .custom-table-border1 { width: 100%; margin: 2em 0; border-collapse: separate; border-spacing: 0; border-radius: 10px; overflow: hidden; }
.responsive-table-web1 tr:nth-child(even), .custom-table-border1 tr:nth-child(even) { background: rgba(26, 26, 26, .02); }

/* Email signup block inside posts */
.hv-signup { max-width: 680px; margin: 28px auto; border-radius: 10px; padding: 30px 28px 32px; text-align: center; opacity: 0; }
.hv-signup[data-hv="ready"] { opacity: 1; transition: opacity .2s ease; }
.entry-content .hv-signup .hv-title { font-size: 24px; font-weight: 800; line-height: 1.2; margin: 0 0 8px; }
.entry-content .hv-signup .hv-sub { font-size: 16px; line-height: 1.45; margin: 0 auto 16px; max-width: 520px; }
.wpcf7 .hv-signup * { margin-top: 0; margin-bottom: 0; }
.wpcf7 .hv-signup p, .wpcf7 .hv-signup label { margin: 0; line-height: 0; display: block; }
.wpcf7 .hv-signup input[type="email"] { display: block; max-width: 420px; margin: 0 auto 12px; padding: 15px 18px; font-size: 16px; line-height: normal; border: 1px solid #ddd3c6; border-radius: 6px; }
.wpcf7 .hv-signup input.wpcf7-submit { display: block; margin: 0 auto; padding: 14px 36px; font-size: 15px; line-height: normal; font-weight: 700; border-radius: 6px; }
.wpcf7 .hv-signup .wpcf7-spinner { display: block; margin: 10px auto 0; }
.wpcf7 .wpcf7-response-output { line-height: 1.4; font-size: 14px; text-align: center; }
.hv-signup--v1 { background: #fff3ec; border: 1px solid #ffd9c4; }
.entry-content .hv-signup--v1 .hv-title { color: var(--al-night); }
.entry-content .hv-signup--v1 .hv-sub { color: #555; }
.hv-signup--v2 { background: linear-gradient(135deg, #ff7b45, #e85a25); }
.entry-content .hv-signup--v2 .hv-title, .entry-content .hv-signup--v2 .hv-sub { color: #fff; }
.wpcf7 .hv-signup--v2 input[type="email"] { border-color: transparent; }
.wpcf7 .hv-signup--v2 input.wpcf7-submit { background: var(--al-night); }

/* Post footer, related, comments */
.al-post-foot { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--al-line); font-size: .95rem; }
.al-post-cats span { color: var(--al-ink-3); margin-right: 4px; }
.al-section-h { font-size: 1.5rem; margin: 0 0 20px; }
.al-related { margin-top: 56px; padding-top: 32px; border-top: 3px solid var(--al-ink); }
.al-comments { margin-top: 48px; }

/* Cards and grids */
.al-grid { display: grid; gap: 28px; }
.al-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.al-card-item { display: flex; flex-direction: column; }
.al-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--al-r); background: var(--al-panel); margin-bottom: 14px; }
.al-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.al-card-item:hover .al-card-media img { transform: scale(1.03); }
.al-eyebrow { display: block; margin: 0 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--al-mint-2); }
.al-eyebrow a { color: inherit; }
.al-card-title { font-size: 1.2rem; line-height: 1.25; margin: 0 0 8px; }
.al-card-title a { color: var(--al-ink); }
.al-card-title a:hover { color: var(--al-orange); text-decoration: none; }
.al-card-ex { font-size: .95rem; line-height: 1.55; color: var(--al-ink-2); margin: 0; }

/* Archive headers */
.al-list-head { max-width: 820px; margin: 0 0 40px; }
.al-list-head .page-title { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 3px solid var(--al-orange); position: relative; }
.al-list-head .page-title::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 80px; height: 3px; background: var(--al-mint); }
.al-list-desc { color: var(--al-ink-2); font-size: 1.05rem; }
.al-subcats { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.al-subcats a { display: block; padding: 7px 14px; border: 1.5px solid var(--al-line); border-radius: 999px; color: var(--al-ink); font-size: .9rem; font-weight: 600; }
.al-subcats a:hover { border-color: var(--al-orange); color: var(--al-orange); text-decoration: none; }
.al-pager { margin-top: 48px; }
.al-pager .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.al-pager .page-numbers { display: inline-block; min-width: 42px; padding: 8px 14px; text-align: center; border: 1.5px solid var(--al-line); border-radius: 999px; color: var(--al-ink); font-weight: 600; font-size: .95rem; }
.al-pager .page-numbers.current, .al-pager a.page-numbers:hover { background: var(--al-night); border-color: var(--al-night); color: #fff; text-decoration: none; }
.al-empty { max-width: 560px; }
.al-author-head { display: flex; gap: 28px; align-items: flex-start; max-width: 860px; margin: 0 0 48px; }
.al-author-img { border-radius: 50%; flex: 0 0 auto; }
.al-author-bio { color: var(--al-ink-2); }

/* Sidebar */
.al-side { position: relative; }
.al-side-block { margin-bottom: 32px; }
.al-side-h { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--al-ink-3); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--al-line); }
.al-side-list { list-style: none; padding: 0; margin: 0; }
.al-side-list li { margin: 0 0 14px; }
.al-side-list a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; color: var(--al-ink); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.al-side-list a:hover { color: var(--al-orange); text-decoration: none; }
.al-side-list img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; display: block; }
.al-side-more { font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.al-search { display: flex; gap: 8px; }
.al-search button { padding: 11px 16px; flex: 0 0 auto; }

/* Footer */
.al-foot { background: var(--al-night); color: #c9c9cc; font-size: .95rem; }
.al-foot-in { max-width: 1100px; margin: 0 auto; padding: 56px 24px 28px; }
.al-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.al-foot-logo img { display: block; width: 180px; height: auto; margin-bottom: 14px; }
.al-foot-tag { max-width: 340px; line-height: 1.6; }
.al-foot-social a { color: #fff; margin-right: 16px; font-weight: 600; }
.al-foot-h { color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.al-foot-links { list-style: none; padding: 0; margin: 0; }
.al-foot-links li { margin: 0 0 8px; }
.al-foot-links a { color: #c9c9cc; }
.al-foot-links a:hover, .al-foot-social a:hover { color: var(--al-teal); }
.al-foot-copy { margin: 20px 0 0; font-size: .85rem; color: #8e8e93; }

/* Responsive */
@media (max-width: 1080px) {
	.al-nav-search { display: none; }
}
@media (max-width: 980px) {
	.al-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.al-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.al-navbtn { display: inline-flex; align-items: center; }
	.al-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px; background: var(--al-bg); border-bottom: 1px solid var(--al-line); box-shadow: 0 16px 30px rgba(26, 26, 26, .08); }
	.al-nav.is-open { display: flex; }
	.al-menu { flex-direction: column; }
	.al-menu a { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--al-line); }
	.al-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 16px; background: none; min-width: 0; }
	.al-menu .menu-item-has-children > a::after { display: none; }
	.al-nav-search { display: block; width: 100%; margin-top: 14px; }
	.al-foot-grid { grid-template-columns: 1fr 1fr; }
	.al-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	:root { --al-text: 1.0625rem; }
	.al-masthead-in { padding: 10px 16px; }
	.al-brand img { max-height: 42px; }
	.al-wrap { padding: 24px 16px 48px; }
	.al-grid-3 { grid-template-columns: minmax(0, 1fr); }
	.al-author-head { flex-direction: column; gap: 16px; }
	.alignleft, .alignright { float: none; margin: 0 0 1em; }
	.hv-signup { padding: 22px 16px 24px; }
	.entry-content .hv-signup .hv-title { font-size: 20px; }
	.responsive-table-web1 thead { display: none; }
	.responsive-table-web1 tr { display: block; margin-bottom: 16px; border: 1px solid var(--al-line); border-radius: 10px; }
	.responsive-table-web1 td { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid var(--al-line); }
	.responsive-table-web1 td::before { content: attr(data-label); font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }
}
