/*
 * FitCore public theme
 * Assets live in public/web/{css,js,img,fonts}
 * Inspired by a dark gym landing (Teko + Roboto, crimson accent)
 */

@import url("https://fonts.googleapis.com/css2?family=Teko:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap");

:root {
    --red: #da1d25;
    --red-dark: #b3141b;
    --ink: #0d0d0d;
    --panel: #141414;
    --panel-2: #1c1c1c;
    --muted: #9b9b9b;
    --line: rgba(255, 255, 255, 0.08);
    --white: #ffffff;
    --header: "Teko", sans-serif;
    --body: "Roboto", sans-serif;
    --ease: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.7;
    color: #cfcfcf;
    background: var(--ink);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--ease);
}

a:hover {
    color: var(--red);
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--header);
    color: var(--white);
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin: 0 0 16px;
}

.section-pad {
    padding: 100px 0;
}

.dark-section {
    background: var(--panel);
}

.section-heading .eyebrow,
.eyebrow {
    display: inline-block;
    color: var(--red);
    font-family: var(--header);
    font-size: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 48px;
    max-width: 640px;
}

.section-heading.text-center h2 {
    margin-left: auto;
    margin-right: auto;
}

.lead-text {
    color: var(--muted);
    margin-bottom: 24px;
}

.btn-core,
.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 32px;
    font-family: var(--header);
    font-size: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 0;
    cursor: pointer;
}

.btn-core {
    background: var(--red);
    color: var(--white) !important;
}

.btn-core:hover {
    background: var(--red-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.btn-line {
    background: transparent;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-line:hover {
    border-color: var(--red);
    background: var(--red);
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo-img {
    display: block;
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.preloader-logo {
    font-family: var(--header);
    font-size: 42px;
    color: #fff;
    letter-spacing: 4px;
}

.preloader-logo span {
    color: var(--red);
}

.preloader-ring {
    display: block;
    width: 48px;
    height: 48px;
    margin: 18px auto 0;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header */
.header-top {
    background: #111;
    color: #aaa;
    font-size: 13px;
    padding: 8px 0;
}

.header-top a {
    color: #ddd;
}

.header-main {
    position: relative;
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(10px);
    z-index: 50;
    transition: var(--ease);
}

.header-main.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: dropIn 0.4s ease;
}

@keyframes dropIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--header);
    font-size: 38px;
    color: #fff !important;
    letter-spacing: 2px;
    line-height: 1;
}

.brand-logo img {
    height: 52px;
    width: 52px;
    object-fit: contain;
    border-radius: 50%;
    background: #000;
}

.brand-logo .brand-name {
    font-size: 28px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-logo .brand-name span,
.brand-logo span {
    color: var(--red);
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}

.main-nav a {
    font-family: var(--header);
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    position: relative;
}

.main-nav a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: var(--ease);
}

.main-nav a:hover:after,
.main-nav a.active:after {
    width: 100%;
}

.nav-toggle {
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    margin: 6px 8px;
}

.mobile-nav,
.mobile-nav-overlay {
    display: none;
}

.mobile-nav.is-open,
.mobile-nav-overlay.is-open {
    display: block;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: 100vh;
    background: #111;
    z-index: 80;
    padding: 32px 28px;
    animation: slideIn 0.35s ease;
}

@keyframes slideIn {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.mobile-nav ul {
    list-style: none;
    padding: 24px 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 14px;
}

.mobile-nav a {
    font-family: var(--header);
    font-size: 24px;
    color: #fff;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 70;
}

.mobile-nav-close {
    float: right;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 22px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
}

.hero-slide {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex !important;
    align-items: center;
}

.hero-slide:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 140px 0 180px;
}

.hero-copy .kicker {
    color: var(--red);
    font-family: var(--header);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 22px;
}

.hero-copy h1 {
    font-size: clamp(46px, 7vw, 84px);
    margin: 10px 0 18px;
}

.hero-copy p {
    font-size: 18px;
    max-width: 520px;
    margin-bottom: 28px;
}

.hero-counter {
    position: absolute;
    right: 40px;
    bottom: 80px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-dot {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--header);
    font-size: 28px;
    text-align: left;
    padding: 0;
    cursor: pointer;
}

.hero-dot.is-active {
    color: var(--red);
}

.hero-slider,
.hero-slider .slick-list,
.hero-slider .slick-track,
.hero-slider .slick-slide {
    height: 100vh;
}

/* Features */
.features {
    margin-top: -90px;
    position: relative;
    z-index: 4;
}

.feature-card {
    background: var(--panel-2);
    padding: 40px 28px 32px;
    min-height: 250px;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--red);
    transition: var(--ease);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: #222;
}

.feature-no {
    position: absolute;
    right: 18px;
    top: 8px;
    font-family: var(--header);
    font-size: 64px;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 28px;
}

.feature-card p {
    color: var(--muted);
    margin: 0;
}

/* About */
.about {
    background: #101010;
}

.about-media {
    position: relative;
    margin-bottom: 30px;
}

.about-media img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    filter: grayscale(0.15);
}

.about-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    background: var(--red);
    color: #fff;
    padding: 18px 22px;
    max-width: 180px;
}

.about-badge strong {
    display: block;
    font-family: var(--header);
    font-size: 48px;
    line-height: 1;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #ddd;
}

.check-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--red);
    position: absolute;
    left: 0;
    top: 2px;
}

/* Classes */
.class-card {
    background: #111;
    margin: 0 12px;
}

.class-thumb {
    position: relative;
    overflow: hidden;
}

.class-thumb img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: 0.7s ease;
}

.class-card:hover .class-thumb img {
    transform: scale(1.08);
}

.class-tag {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
}

.class-body {
    padding: 22px 20px 18px;
}

.class-body h3 {
    font-size: 28px;
    margin-bottom: 6px;
}

.class-coach {
    color: var(--muted);
    margin-bottom: 14px;
}

.class-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.class-meta .price {
    color: var(--red);
    font-family: var(--header);
    font-size: 28px;
    margin: 0;
}

.class-meta s {
    color: #777;
    font-size: 16px;
    margin-left: 6px;
}

.class-meta a {
    color: #fff;
    font-family: var(--header);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Team */
.team-card {
    text-align: center;
    margin-bottom: 24px;
}

.team-photo {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
}

.team-photo img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.team-social {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -60px;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transition: var(--ease);
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    width: 38px;
    height: 38px;
    background: var(--red);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card h3 {
    font-size: 30px;
    margin-bottom: 4px;
}

.team-card p {
    color: var(--red);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

/* Timetable */
.table-wrap {
    overflow-x: auto;
}

.class-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #111;
}

.class-table th,
.class-table td {
    border: 1px solid var(--line);
    padding: 16px 12px;
    text-align: center;
}

.class-table th {
    background: var(--red);
    color: #fff;
    font-family: var(--header);
    font-size: 20px;
    letter-spacing: 1px;
}

.class-table td {
    color: #ddd;
}

.class-table td strong {
    display: block;
    color: #fff;
    font-family: var(--header);
    font-size: 18px;
    font-weight: 500;
}

.class-table td span {
    color: var(--red);
    font-size: 12px;
}

.class-table tbody tr:hover td {
    background: #1a1a1a;
}

.class-table td.is-off,
.class-table td.is-off strong {
    color: var(--muted);
}

/* Pricing */
.price-card {
    background: #141414;
    border: 1px solid var(--line);
    padding: 36px 24px 28px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    transition: var(--ease);
}

.price-card:hover,
.price-card.is-featured {
    transform: translateY(-10px);
    border-color: var(--red);
}

.price-card.is-featured {
    background: #1a1a1a;
}

.popular {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
}

.plan-name {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
}

.price-card h3 {
    font-size: 48px;
    color: var(--red);
}

.price-card h3 span {
    font-size: 16px;
    color: #aaa;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 24px;
}

.price-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.price-card li.off {
    color: #666;
    text-decoration: line-through;
}

/* Testimonials */
.quote-card {
    background: #111;
    padding: 36px 32px;
    margin: 0 8px;
    border-left: 4px solid var(--red);
}

.quote-card p,
.quote-card .editor-content {
    font-size: 20px;
    color: #eee;
    font-style: italic;
}

.quote-card .editor-content p {
    margin-bottom: 12px;
}

.quote-person strong {
    display: block;
    font-family: var(--header);
    font-size: 24px;
    color: #fff;
}

.quote-person span {
    color: var(--red);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Contact */
.contact-points {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.contact-points li {
    margin-bottom: 12px;
}

.contact-points i {
    color: var(--red);
    width: 22px;
}

.contact-points a {
    color: inherit;
}

.contact-points a:hover {
    color: var(--red);
}

.contact-photo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.contact-form {
    background: #141414;
    padding: 36px 32px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid var(--line);
    color: #fff;
    padding: 14px 16px;
    margin-bottom: 16px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--red);
}

.form-alert {
    padding: 12px 14px;
    margin-bottom: 16px;
}

.form-alert.is-success {
    background: rgba(218, 29, 37, 0.15);
    color: #fff;
}

.form-alert.is-error {
    background: #3a1010;
    color: #ffb3b3;
}

/* Blog */
.blog-card {
    background: #111;
    margin: 0 12px;
}

.blog-thumb img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.blog-body {
    padding: 22px 20px 20px;
}

.blog-meta {
    color: var(--muted);
    font-size: 13px;
}

.blog-body h3 {
    font-size: 26px;
}

.blog-body a {
    font-family: var(--header);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--red);
}

/* Footer */
.newsletter {
    background: var(--red);
    padding: 0;
}

.newsletter-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 42px 0;
    flex-wrap: wrap;
}

.newsletter-box h2,
.newsletter-box .eyebrow {
    color: #fff;
}

.newsletter-box .eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 280px;
    max-width: 520px;
}

.newsletter-form input {
    flex: 1;
    border: 0;
    min-height: 52px;
    padding: 0 16px;
}

.newsletter-form .btn-core {
    background: #111;
}

.footer-main {
    padding: 70px 0 30px;
}

.footer-main p,
.footer-contact li,
.footer-main ul a {
    color: #9a9a9a;
}

.footer-contact a:hover,
.footer-main ul a:hover {
    color: #fff;
}

.footer-main h4 {
    font-size: 24px;
}

.footer-main ul {
    list-style: none;
    padding: 0;
}

.footer-main li {
    margin-bottom: 8px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
}

.footer-social a:hover {
    background: var(--red);
    border-color: var(--red);
}

.footer-copy {
    border-top: 1px solid var(--line);
    padding: 18px 0;
    color: #777;
    font-size: 14px;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    background: var(--red);
    color: #fff !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.back-to-top.is-visible {
    display: flex;
}

/* Reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* Slick arrows */
.class-slider .slick-arrow,
.blog-slider .slick-arrow,
.testimonial-slider .slick-arrow {
    position: absolute;
    top: -72px;
    right: 0;
    width: 42px;
    height: 42px;
    background: var(--red);
    color: #fff;
    border: 0;
    z-index: 2;
}

.class-slider .slick-prev,
.blog-slider .slick-prev,
.testimonial-slider .slick-prev {
    right: 50px;
}

@media (max-width: 991px) {
    .section-pad {
        padding: 70px 0;
    }
    .section-heading h2 {
        font-size: 36px;
    }
    .hero-counter {
        right: 16px;
        bottom: 40px;
    }
    .features {
        margin-top: 0;
        padding-top: 40px;
    }
    .about-media img,
    .team-photo img {
        height: 360px;
    }
    .newsletter-box {
        display: block;
    }
    .newsletter-form {
        margin-top: 16px;
        max-width: none;
    }
}

.team-card > a {
    display: inline-block;
    margin-top: 8px;
    color: var(--red);
    font-family: var(--header);
    font-size: 18px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.price-copy {
    margin-bottom: 16px;
    font-size: 14px;
}

.page-banner {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    padding: 160px 0 50px;
    background-size: cover;
    background-position: center;
}

.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.25) 0%, rgba(13, 13, 13, 0.9) 100%);
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: 56px;
    max-width: 820px;
}

.page-meta {
    color: var(--muted);
    margin: 0;
}

.article-card,
.article-aside {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 28px;
}

.article-cover {
    margin-bottom: 24px;
}

.article-cover img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.article-aside h3 {
    margin-bottom: 20px;
}

.article-aside .btn-core,
.article-aside .btn-line {
    display: inline-flex;
    margin-top: 16px;
    margin-right: 10px;
}

.aside-card {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.aside-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.aside-card strong {
    display: block;
    color: var(--white);
    font-size: 15px;
    line-height: 1.35;
}

.aside-card span {
    color: var(--muted);
    font-size: 13px;
}

.detail-price {
    font-family: var(--header);
    font-size: 36px;
    color: var(--white);
}

.detail-price s {
    color: var(--muted);
    font-size: 22px;
    margin-left: 8px;
}

.team-social-static {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

.editor-content {
    color: #cfcfcf;
}

.editor-content p,
.editor-content ul,
.editor-content ol,
.editor-content h2,
.editor-content h3,
.editor-content h4 {
    margin-bottom: 16px;
}

.editor-content img {
    margin: 16px 0;
}

.editor-content ul,
.editor-content ol {
    padding-left: 20px;
}

@media (max-width: 767px) {
    .hero-copy {
        padding: 120px 0 100px;
    }
    .header-actions .btn-core {
        display: none !important;
    }
    .header-inner .brand-name {
        font-size: 22px;
    }
    .brand-logo img {
        height: 44px;
        width: 44px;
    }
}
