/* ============================================================
   CrossFit Kouvola — Homepage Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Barlow:wght@400;500;600&display=swap');

:root {
    --bg:          #0a0a0a;
    --bg-card:     #111111;
    --bg-card-2:   #c9a84c;
    --gold:        #bc8e54;
    --cw-gold:     #bc8e54;
    --gold-dark:   #a8883a;
    --gold-hover:  #d4b55e;
    --text:        #ffffff;
    --text-muted:  #999999;
    --border:      rgba(255,255,255,0.06);
    --border-2:    rgba(255,255,255,0.1);
    --font-head:   'D-DIN Condensed Regular';
    --font-body:   'D-DIN Condensed Regular';
    --max-w:       1200px;
    --section-py:  24px;
    --radius:      4px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    font-weight:500;
}
p,a,span{
 font-family: var(--font-head);
    font-weight:400;
   }


/* Reset for home page */
.home-page { background: var(--bg); color: var(--text); }
.home-page * { box-sizing: border-box; }
.home-page .page-width { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---- Section heading utility ---- */
.hp-section-label {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
    text-align: center;
}
.hp-section-title {
    font-family: var(--font-head);
    font-size: clamp(24px, 5vw, 42px);
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.05;
    margin: 20px 0 20px 0;
    padding: 10px 0 20px 0;
    text-align: center;
}
.hp-section-sub {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 600px;
    margin:auto;
}

/* ---- Button ---- */
.btn-gold {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gold);
    color: #111;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.18s;
    line-height: 1;
    justify-content: center;
}
.btn-gold:hover { background: var(--gold-hover); color: #111; transform: translateY(-2px); text-decoration: none; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
    font-family: var(--font-head);
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
.btn-outline:hover { background: var(--gold); color: #111; text-decoration: none; }

/* ================================================================
   1. SPLIT HERO
================================================================ */
.hp-hero {
    display: grid;
    grid-template-columns: repeat(var(--hero-cols, 2), 1fr);
    min-height: 58vh;
}
.hp-hero--cols-1 { grid-template-columns: 1fr; }
.hp-hero--cols-2 { grid-template-columns: 1fr 1fr; }
.hp-hero--cols-3 { grid-template-columns: repeat(3, 1fr); }
.hp-hero--cols-4 { grid-template-columns: repeat(4, 1fr); }

.hp-hero-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 48px 60px 140px;
    overflow: hidden;
    background-color: #111;
    align-items: center;
    gap: 0rem;
}
.hp-hero-panel:last-child {
    padding: 60px 138px 60px 48px;
}
.hp-hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--panel-bg);
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 0;
}
.hp-hero-panel:hover::before { transform: scale(1.05); }
.hp-hero-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
}
.hp-hero-panel--hyrox::before { background-image: var(--panel-bg, url('../images/hero-hyrox.jpg')); }
.hp-hero-panel--crossfit::before { background-image: var(--panel-bg, url('../images/hero-crossfit.jpg')); }

.hp-hero-panel > * { position: relative; z-index: 2; }
.hp-hero-heading {
    font-family: var(--font-head);
    font-size: clamp(38px, 5.5vw, 48px);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    margin: 0 0 16px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.hp-hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 480px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ================================================================
   2. MOTIVATIONAL QUOTE
================================================================ */
.hp-quote {
    padding: var(--section-py) 24px;
    /* text-align: center; */
    background: #111111;
}
.hp-quote-text {
    font-family: var(--font-head);
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    max-width: 856px;
    margin: 0 auto 28px;
    text-transform: uppercase;
    letter-spacing: 0;
    text-align: center;
}
.hp-quote-body {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.hp-quote-body p {
    margin: 0 0 1.25em;
}
.hp-quote-body p:last-child {
    margin-bottom: 0;
}
.hp-quote-body a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.hp-quote-body a:hover {
    color: #fff;
}
.hp-quote-body h1,
.hp-quote-body h2,
.hp-quote-body h3,
.hp-quote-body h4 {
    color: var(--text);
    font-family: var(--font-head);
    margin: 1.5em 0 0.5em;
    line-height: 1.3;
}
.hp-quote-body ul,
.hp-quote-body ol {
    text-align: left;
    margin: 1.2em auto;
    padding-left: 24px;
    max-width: 680px;
}
.hp-quote-body li {
    margin-bottom: 0.5em;
}

/* ---- Read More / Read Less Content Toggle ---- */
.cw-read-more-container .cw-content-rest {
    display: none;
    margin-top: 1.25em;
}
.cw-read-more-container.is-expanded .cw-content-rest {
    display: block;
    animation: cwFadeIn 0.35s ease;
}
.cw-read-more-container .cw-read-less-btn {
    display: none;
}
.cw-read-more-container.is-expanded .cw-read-more-btn {
    display: none;
}
.cw-read-more-container.is-expanded .cw-read-less-btn {
    display: flex;
}
.cw-read-more-container .cw-content-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}
@keyframes cwFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Prose Site / Recommendation Content Styling ---- */
.hp-content-section .hp-quote-text {
    text-align: center;
}
.hp-content-section .hp-quote-body {
    text-align: left;
}
.prose-site {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
}
.prose-site h2 {
    font-family: var(--font-head);
    font-size: 28px;
    color: var(--text);
    margin: 28px 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.25;
}
.prose-site h3 {
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--gold);
    margin: 24px 0 12px;
    text-transform: uppercase;
    line-height: 1.3;
}
.prose-site p {
    margin: 0 0 1.25em;
}
.prose-site ul,
.prose-site ol {
    margin: 14px 0 24px;
    padding-left: 24px;
}
.prose-site li {
    margin-bottom: 8px;
    color: var(--text-muted);
    line-height: 1.6;
}
.mt-5 {
    margin-top: 1.5rem;
}

/* ================================================================
   3. CURRENT PASSES & COURSES
================================================================ */
.hp-passes {
    padding: var(--section-py) 0;
    background: var(--bg);
}
.hp-passes-header {
    margin-bottom: 30px;
}
.hp-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s;
}
.hp-card:hover {
    border-color: rgba(201,168,76,0.3);
    transform: translateY(-4px);
}
.hp-card-title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin: 0 0 12px;
}
.hp-card-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 20px;
    flex: 1;
}
.hp-card-price {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    margin: 0 0 24px;
}
.hp-card-price span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}
/* Event Cards */
.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.event-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-2);
}
.event-card-thumb {
    margin: -28px -28px 20px -28px;
    overflow: hidden;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    aspect-ratio: 16 / 9;
    background: #181818;
}
.event-card-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}
.event-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.event-card:hover .event-card-thumb img {
    transform: scale(1.05);
}
.event-card-tag {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 14px;
    align-self: flex-start;
}
.event-card-title {
    font-family: var(--font-head);
    font-size: 24px;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 10px;
}
.event-card-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}
.event-card-footer {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: auto;
    flex-direction: column;
    gap: 10px;
}
.event-card-price {
    font-family: var(--font-head);
    font-size: 26px;
    color: var(--gold);
}
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ================================================================
   4. WEEKLY SCHEDULE (TIMETABLE MATRIX)
================================================================ */
.hp-schedule {
    padding: var(--section-py) 0;
    background: var(--bg-card);
}
.hp-schedule-header {
     text-align: center; 
    margin-bottom: 32px;
}

/* Matrix Table Wrapper */
.hp-schedule-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #0d0d0d;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
}

.hp-schedule-table {
    width: 100%;
    min-width: 820px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
}

.hp-schedule-table th,
.hp-schedule-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-sizing: border-box;
}

.hp-schedule-table tr th:last-child,
.hp-schedule-table tr td:last-child {
    border-right: none;
}

.hp-schedule-table tbody tr:last-child td {
    border-bottom: none;
}

/* Header Cells */
.hp-schedule-table thead th {
    background: #181818;
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 12px;
}

/* Time Column (Sticky on Horizontal Scroll) */
.hp-col-time,
.hp-cell-time {
    width: 96px;
    min-width: 96px;
    max-width: 110px;
    position: sticky;
    left: 0;
    z-index: 2;
    background: #141414 !important;
    border-right: 2px solid var(--border-2) !important;
    text-align: center;
}

thead .hp-col-time {
    z-index: 3;
    background: #1c1c1c !important;
    color: var(--text) !important;
}

.hp-time-badge {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 17px;
    color: var(--gold);
    letter-spacing: 0.5px;
}

/* Row Zebra & Hover */
.hp-schedule-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.015);
}

.hp-schedule-table tbody tr:hover td {
    background: rgba(188, 142, 84, 0.05);
}

.hp-schedule-table tbody tr:hover .hp-cell-time {
    background: #1a1a1a !important;
}

/* Class Cells */
.hp-cell-class {
    vertical-align: middle;
}

.hp-class-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(188, 142, 84, 0.1);
    border: 1px solid rgba(188, 142, 84, 0.28);
    border-radius: 6px;
    padding: 8px 10px;
    width: 92%;
    min-height: 42px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.hp-class-pill:hover {
    background: rgba(188, 142, 84, 0.2);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.hp-class-name {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #ffffff;
    line-height: 1.25;
}

.hp-class-empty {
    color: var(--border-2);
    font-size: 16px;
    font-weight: 300;
    opacity: 0.4;
}

/* Mobile Scroll Hint */
.hp-schedule-scroll-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
}

.hp-schedule-scroll-hint svg {
    color: var(--gold);
}

@media (max-width: 900px) {
    .hp-schedule-scroll-hint {
        display: flex;
    }
}

/* Legacy Card Grid Fallback */
.hp-schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}
.hp-day {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.hp-day-name {
    font-family: var(--font-head);
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    padding: 14px 14px 10px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.hp-day-slots {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hp-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.hp-slot:last-child {
    border: 0;
}
.hp-slot-time {
    color: var(--text);
    min-width: 44px;
    flex-shrink: 0;
    font-size: 18px;
}
.hp-slot-class {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
}

/* ================================================================
   5. PRICING
================================================================ */
.hp-pricing {
    padding: var(--section-py) 0;
    background: var(--bg);
}
.hp-pricing-header {
    text-align: left;
    margin-bottom: 32px;
}
.hp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.hp-price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 36px 24px;
    text-align: center;
    transition: border-color 0.25s, transform 0.25s;
}
.hp-price-card:hover {
    border-color: rgb(188 142 84 / 49%);
    transform: translateY(-4px);
}
.hp-price-card--featured {
    background: linear-gradient(180deg, rgba(201,168,76,0.08) 0%, var(--bg-card) 40%);
}
.hp-quote  .btn-gold {
    width: fit-content;
    margin: auto;
}

.hp-price-name {
    font-family: var(--font-head);
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--text);
    margin: 0 0 28px;
     text-align: left;
}
.hp-price-amount {
    font-family: var(--font-head);
    font-size: 44px;
    color: var(--gold);
    margin: 0 0 4px;
    line-height: 1;
    text-align: left;
}

.hp-price-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hp-price-features li {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: start;
}
.hp-price-features li::before {
    content: '\2713';
    color: var(--gold);
    font-weight: 700;
    font-size: 13px;
}
.hp-pricing-link {
    text-align: center;
}

/* ================================================================
   6. ABOUT / COMMUNITY
================================================================ */
.hp-about {
    padding: var(--section-py) 0;
    background: #111111;
}
.hp-about-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}
.hp-about  a.btn-gold {
    width: fit-content;
}
.hp-about-body {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

/* ================================================================
   7. FAQ
================================================================ */
.hp-faq {
    padding: var(--section-py) 0;
    background: var(--bg-card);
}
.hp-faq-header {
    text-align: left;
    margin-bottom: 48px;
    max-width: 780px;
    margin: 0px auto 30px;
}
.hp-faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hp-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.hp-faq-item.is-open { border-color: rgba(201,168,76,0.25); }
.hp-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    outline: none;
    gap: 16px;
    transition: color 0.2s;
}
.hp-faq-q:hover { color: var(--gold); }
.hp-faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--gold);
    transition: transform 0.25s;
}
.hp-faq-item.is-open .hp-faq-icon { transform: rotate(45deg); }
.hp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}
.hp-faq-item.is-open .hp-faq-a {
    max-height: 300px;
    padding: 0 24px 20px;
}
.hp-faq-a p {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}
h4.footer-heading {
    font-family: var(--font-head);
    font-size: 20px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}
.sec-background-clr {
    background-color: var(--bg-card) !important;
}
.paddomg-top-bottom{
        padding: var(--section-py) 0;
}
.pre-background-clr {
    background-color: var(--bg) !important;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
    .hp-schedule-grid { grid-template-columns: repeat(4, 1fr); }
    .hp-pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hp-hero { grid-template-columns: 1fr; min-height: auto; }
    .hp-hero-panel { min-height: 50vh; padding: 40px 28px; }
    .hp-cards-grid { grid-template-columns: 1fr; }
    .hp-schedule-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-pricing-grid { grid-template-columns: 1fr; }
    :root { --section-py: 64px; }
}
@media (max-width: 480px) {
    .hp-schedule-grid { grid-template-columns: 1fr; }
    .hp-hero-heading { font-size: 36px; }
}