/* ==========================================================================
   KPA homepage
   --------------------------------------------------------------------------
   Page-specific styles only. The shell (navbar, footer, buttons, cards,
   section headers, .section spacing) lives in public.css; tokens in
   tokens.css. The KPA wordmark is the page's only image, by design.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-home {
    background: var(--gradient-subtle);
    border-bottom: 1px solid var(--border);
    padding: clamp(3rem, 9vw, 6rem) 0;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.hero-home h1 {
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 36rem;
    margin-bottom: 1.75rem;
}

.hero-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* The wordmark on a soft card - the page's single piece of imagery. */
.hero-brand {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: clamp(2rem, 6vw, 3.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-brand img {
    width: 100%;
    max-width: 20rem;
    height: auto;
}

/* On phones the brand card is decoration competing with the CTA - hide it. */
@media (max-width: 991.98px) {
    .hero-brand {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */
.steps-list {
    margin-bottom: 0;
    counter-reset: none;
}

.step-card {
    position: relative;
    height: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 1.75rem;
    padding-top: 2.25rem;
}

.step-number {
    position: absolute;
    top: -1.1rem;
    left: 1.5rem;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-inverse);
    font-family: var(--font-heading);
    font-weight: 700;
}

.step-card h3 {
    margin-bottom: 0.5rem;
}

.step-card a {
    font-weight: 600;
    text-decoration: none;
}

.step-card a:hover,
.step-card a:focus-visible {
    text-decoration: underline;
}

/* Room for the floating step numbers */
.steps-section .steps-list {
    padding-top: 1.1rem;
}

/* --------------------------------------------------------------------------
   Groups: day + time lead the card
   -------------------------------------------------------------------------- */
.group-when {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Training-group cards: a navy header band carries the day + time, the body
   holds the rest so cards line up even with different amounts of text. */
.group-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(49, 64, 87, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(49, 64, 87, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(49, 64, 87, 0.14);
}
.group-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--gradient-primary);
    color: #fff;
}
.group-card__day {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}
.group-card__time {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.16);
    padding: 0.15rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    white-space: nowrap;
}
.group-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.25rem;
}
.group-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--kpa-navy);
    margin: 0;
}
.group-card__tag {
    align-self: flex-start;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(49, 64, 87, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
}
.group-card__desc {
    color: var(--text-muted, #667);
    font-size: 0.925rem;
    margin: 0.85rem 0 0;
}
.group-card__meta {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.group-card__meta li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--kpa-navy);
}
.group-card__meta i {
    color: var(--kpa-green);
    width: 1rem;
    text-align: center;
    flex: 0 0 auto;
}
.group-card__cta {
    margin-top: auto;
    align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Weekly timetable
   -------------------------------------------------------------------------- */
.tt {
    --tt-gutter: 58px;
    background: #fff;
    border: 1px solid rgba(49, 64, 87, 0.1);
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 4px 18px rgba(49, 64, 87, 0.06);
    overflow-x: auto;
}
.tt__head,
.tt__body {
    display: grid;
    grid-template-columns: var(--tt-gutter) repeat(var(--tt-cols), minmax(150px, 1fr));
    column-gap: 14px;
    min-width: 640px;
}
.tt__head {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(49, 64, 87, 0.1);
}
.tt__dayhead {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.tt__dayname {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kpa-navy);
    font-size: 1.05rem;
}
.tt__dayhours {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
}
.tt__body {
    position: relative;
}
/* Hour lines span every column (behind events). */
.tt__lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.tt__line {
    position: absolute;
    left: var(--tt-gutter);
    right: 0;
    height: 0;
    border-top: 1px solid rgba(49, 64, 87, 0.08);
}
.tt__break {
    position: absolute;
    left: var(--tt-gutter);
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px dashed rgba(49, 64, 87, 0.28);
    border-bottom: 1px dashed rgba(49, 64, 87, 0.28);
}
.tt__break span {
    background: #fff;
    padding: 0.1rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #7a8699);
    border-radius: 2rem;
}
.tt__gutter {
    position: relative;
}
.tt__hour {
    position: absolute;
    right: 6px;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted, #8794a6);
}
.tt__col {
    position: relative;
    background: rgba(49, 64, 87, 0.025);
    border-radius: 8px;
}
.tt__event {
    position: absolute;
    left: 4px;
    right: 4px;
    border-left: 4px solid var(--kpa-navy);
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(49, 64, 87, 0.08);
}
.tt__event-name {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--kpa-navy);
    line-height: 1.2;
}
.tt__event-time {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    color: var(--kpa-navy);
    opacity: 0.72;
}
.tt__off {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted, #8794a6);
}

/* Stacked list: shown instead of the grid on narrow screens. */
.tt-list { display: none; }
.tt-list__day { margin-bottom: 1.25rem; }
.tt-list__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.tt-list__name {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kpa-navy);
}
.tt-list__hours {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-color);
}
.tt-list__event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-left: 4px solid var(--kpa-navy);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.5rem;
}
.tt-list__event-name { font-weight: 700; color: var(--kpa-navy); }
.tt-list__event-time { font-variant-numeric: tabular-nums; color: var(--kpa-navy); opacity: 0.75; }

@media (max-width: 767.98px) {
    .tt { display: none; }
    .tt-list { display: block; }
}

.card-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Kaizen
   -------------------------------------------------------------------------- */
.kaizen-item {
    text-align: center;
    padding: 0 1rem;
}

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */
.news-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .hero-home .btn {
        width: 100%;
    }
}
