/* Reset & Variables */
:root {
    --bg-color: #121212;
    --card-bg: #1E1E1E;
    --card-bg-light: #2A2A2A;
    --accent: #FACC15;
    --accent-hover: #EAB308;
    --text-main: #FFFFFF;
    --text-muted: #A3A3A3;
    --text-dark: #000000;
    --border-radius: 24px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 600;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

p { margin-bottom: 16px; color: var(--text-muted); }

/* Buttons */
button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
}

.btn-primary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
    border-color: var(--text-main);
}

.btn-accent {
    background: var(--accent);
    color: var(--text-dark);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.full-width { width: 100%; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    align-self: flex-start;
}

.logo img {
    height: 40px;
    object-fit: contain;
    object-position: left top;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.main-nav a:hover, .main-nav a[data-cms-menu="blog"] {
    color: var(--text-main);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* Hero Section (Bento) */
.bento-section {
    padding: 60px 0 100px;
}

.hero-headings {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.hero-headings p {
    font-size: 1.1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.bento-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
}

/* Card Large */
.card-large {
    grid-column: span 2;
    min-height: 400px;
    background-image: url('images/hero-bento-bg.png');
    background-size: cover;
    background-position: center;
    justify-content: flex-end;
    padding: 40px;
}

.card-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18,18,18,0.9) 0%, rgba(18,18,18,0.4) 50%, rgba(18,18,18,0) 100%);
    z-index: 1;
}

.card-content-large {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.card-content-large h2 { margin-bottom: 20px; }
.card-content-large p { margin-bottom: 30px; font-size: 1.1rem; }

/* Cards Half */
.card-top-content {
    padding: 40px 40px 20px;
    flex-grow: 1;
}

.card-bottom-split {
    display: flex;
    height: 200px;
}

.split-img {
    flex: 1;
    background-size: cover;
    background-position: center;
}

.split-yellow {
    flex: 1;
    background: var(--accent);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    text-align: center;
}

/* Equipment Section */
.section-header {
    margin-bottom: 40px;
}

.equipment-section {
    padding: 80px 0;
    background: var(--card-bg);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.eq-card {
    background: var(--bg-color);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.03);
}

.eq-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.eq-card h4 { margin-bottom: 10px; color: var(--text-main); }
.eq-card p { font-size: 0.9rem; margin-bottom: 0;}

/* Trainers Section */
.trainers-section { padding: 100px 0; }

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.trainer-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.trainer-photo img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: var(--transition);
}

.trainer-card:hover .trainer-photo img { filter: grayscale(0%); }

.trainer-info { padding: 25px; }
.trainer-info h4 { margin-bottom: 10px; color: var(--accent); }
.trainer-info p { margin-bottom: 0; font-size: 0.95rem; }

/* Blog Section */
.blog-section { padding: 0 0 100px; }

.blog-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.03);
}

.blog-card:hover { border-color: var(--accent); }

.blog-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    padding: 15px;
    display: flex;
    align-items: flex-start;
}

.blog-tag {
    background: var(--accent);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
}

.blog-content h4 { font-size: 1.2rem; margin-bottom: 15px; }
.blog-content p { font-size: 0.9rem; margin-bottom: 0; }

/* Inner Page Layout */
.inner-page-wrapper {
    padding: 60px 0 100px;
}

.inner-container {
    max-width: 800px; /* Crucial for inner article readability */
}

.inner-hero { margin-bottom: 40px; }
.inner-hero h1 { margin: 20px 0; }
.inner-meta { color: var(--text-muted); font-size: 0.9rem; }

.inner-content .content-img-main {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 40px;
}

.inner-content h2 { margin: 40px 0 20px; color: var(--accent); }
.inner-content p { font-size: 1.1rem; margin-bottom: 24px; }
.inner-content ul { margin-bottom: 24px; padding-left: 20px; }
.inner-content li { margin-bottom: 10px; font-size: 1.1rem; color: var(--text-muted); }
.inner-content blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-main);
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin: 40px 0;
}

.content-cta {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 60px;
    border: 1px solid rgba(255,255,255,0.05);
}

.content-cta h3 { margin-bottom: 15px; }

/* Footer */
.site-footer {
    background: var(--card-bg);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo { height: 40px; margin-bottom: 20px; object-fit: contain; object-position: left top; }
.footer-brand p { font-size: 0.9rem; }

.footer-nav h4, .footer-contacts h4, .footer-legal h4 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-nav a, .footer-legal a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-nav a:hover, .footer-legal a:hover { color: var(--accent); }

.footer-contacts p { font-size: 0.9rem; margin-bottom: 10px; }
.phone-link { color: var(--accent); font-weight: 700; font-size: 1.1rem; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    padding: 0;
    line-height: 1;
}

.modal-close:hover { color: var(--text-main); }

.modal-content h3 { margin-bottom: 10px; }
.modal-content p { margin-bottom: 30px; font-size: 0.95rem; }

.input-group { margin-bottom: 20px; }
.input-group input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-color);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.input-group input:focus { border-color: var(--accent); }

.form-disclaimer {
    font-size: 0.75rem !important;
    color: var(--text-muted);
    margin-top: 15px;
    text-align: center;
    margin-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 992px) {
    .bento-grid { grid-template-columns: 1fr; }
    .card-large { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { display: none; } /* Handle via JS for mobile if needed, simplified here */
    .mobile-menu-toggle { display: flex; }
    .site-header .btn-primary { display: none; }
}

@media (max-width: 768px) {
    .card-bottom-split { flex-direction: column; height: auto; }
    .split-img { height: 200px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
/* --- Smart Hub Styles (Avant-Garde/Minimalism) --- */
.smart-hub {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.hub-controls {
    margin-bottom: 2rem;
}

.hub-search {
    position: relative;
    max-width: 400px;
}

.hub-search input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.hub-search input:focus {
    outline: none;
    border-color: #333;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hub-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.hub-card {
    background: transparent;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px;
}

.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.hub-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hub-card__image-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.hub-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hub-card:hover .hub-card__image-wrapper img {
    transform: scale(1.05);
}

/* Pattern Thumbnails */
.hub-card__image-wrapper.pattern-0 {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
}

.hub-card__image-wrapper.pattern-1 {
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

.hub-card__image-wrapper.pattern-2 {
    background: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
}

.hub-card__image-wrapper.pattern-3 {
    background: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
}

.hub-card__image-wrapper.pattern-4 {
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
}

.hub-card__image-wrapper.pattern-5 {
    background: linear-gradient(to right, #43e97b 0%, #38f9d7 100%);
}

.hub-card__image-wrapper.pattern-6 {
    background: linear-gradient(to top, #30cfd0 0%, #330867 100%);
}

.hub-card__image-wrapper.pattern-7 {
    background: linear-gradient(to right, #fa709a 0%, #fee140 100%);
}

.hub-card__image-wrapper.pattern-8 {
    background: linear-gradient(to top, #5ee7df 0%, #b490ca 100%);
}

.hub-card__image-wrapper.pattern-9 {
    background: linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%);
}

.hub-card__content {
    padding: 1.5rem;
}

.hub-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: inherit;
    line-height: 1.4;
}

.hub-card__excerpt {
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.8;
    line-height: 1.6;
}

.hub-footer {
    margin-top: 3rem;
    text-align: center;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    margin-bottom: 6rem;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea;
}

.related-posts__heading {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.related-post-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.related-post-card:hover {
    background: rgba(128, 128, 128, 0.05);
}

.related-post-card__image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
}

.related-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-card__title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Utilities */
.btn-clean {
    background: none;
    border: 1px solid #333;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-clean:hover {
    background: #333;
    color: #fff;
}