/*
 * The Coaching Tree brand styles.
 * Tokens on :root are meant to be shared site-wide. Everything else is scoped to
 * body.tl (the public landing layout) so it can't collide with the Bootstrap theme
 * used by the rest of the app.
 */

:root {
    --tct-forest: #0d3b22;
    --tct-leaf: #8bc34a;
    --tct-leaf-dark: #4f7f22;
    --tct-leaf-tint: #eef3e4;
    --tct-paper: #f2f1ec;
    --tct-ink: #1d2b22;
    --tct-muted: #5d6b62;
    --tct-line: #e0e1da;
    --tct-on-dark: #e8efe9;
    --tct-on-dark-muted: #d7e3d9;
    --tct-font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    --tct-font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --tl-gut: max(24px, calc((100vw - 1160px) / 2));
}

@media (max-width: 640px) {
    :root { --tl-gut: 20px; }
}

/* ---------- Base ---------- */
body.tl {
    margin: 0;
    background: #fff;
    color: var(--tct-ink);
    font-family: var(--tct-font-body);
    font-size: 15px;
    line-height: 1.5;
}
.tl *, .tl *::before, .tl *::after { box-sizing: border-box; }
.tl h1, .tl h2, .tl h3, .tl p, .tl ul, .tl ol { margin: 0; }
.tl a, .tl a:hover { text-decoration: none; }
.tl-d {
    font-family: var(--tct-font-display);
    font-weight: 400;
    letter-spacing: .5px;
    line-height: .95;
    text-transform: uppercase;
}
.tl-px { padding-left: var(--tl-gut); padding-right: var(--tl-gut); }
.tl-sec { padding-top: 44px; padding-bottom: 44px; }
.tl-dark {
    background-color: var(--tct-forest);
    background-image: repeating-linear-gradient(-55deg, transparent 0 46px, rgba(255, 255, 255, .04) 46px 47px);
}
.tl-paper { background: var(--tct-paper); }
.tl-h1 { font-size: clamp(40px, 5.4vw, 66px); }
.tl-h2 { font-size: clamp(26px, 3.2vw, 38px); color: var(--tct-forest); }
.tl-brush {
    height: 9px;
    width: min(200px, 55%);
    background: var(--tct-leaf);
    border-radius: 2px 60% 40% 3px;
    transform: skewX(-20deg);
    margin: 14px 0 16px;
}
.tl-more { color: var(--tct-leaf-dark); font-weight: 700; font-size: 14px; }
.tl-more:hover { color: var(--tct-forest); }

/* ---------- Buttons ---------- */
.tl-btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    margin: 0 8px 8px 0;
    border: 1.5px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.tl-btn--leaf, .tl-btn--leaf:visited { background: var(--tct-leaf); color: var(--tct-forest); }
.tl-btn--leaf:hover { background: #9ccf5f; color: var(--tct-forest); }
.tl-btn--ghost, .tl-btn--ghost:visited { color: #fff; border-color: rgba(255, 255, 255, .5); }
.tl-btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.tl-btn--sm { padding: 7px 14px; margin: 0; }
.tl-btn:focus-visible, .tl-nav a:focus-visible, .tl-more:focus-visible, .tl-menu-btn:focus-visible, .tl-tile:focus-visible, .tl-ev:focus-visible {
    outline: 2px solid var(--tct-leaf);
    outline-offset: 2px;
}

/* ---------- Nav ---------- */
.tl-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
    position: relative;
    z-index: 2;
}
.tl-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.tl-brand:hover { color: #fff; }
.tl-brand img { width: 30px; height: 32px; object-fit: contain; }
.tl-brand span { font-size: 21px; }
.tl-links { display: flex; gap: 22px; align-items: center; font-size: 13px; }
.tl-links a { color: var(--tct-on-dark-muted); }
.tl-links a:hover, .tl-links a.is-active { color: var(--tct-leaf); }
.tl-links a.tl-btn { color: var(--tct-forest); }
.tl-menu-btn {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.tl-hero { position: relative; background-color: var(--tct-forest); overflow: hidden; }
.tl-hero-copy { position: relative; z-index: 1; padding: 76px var(--tl-gut) 72px; }
.tl-hero-line {
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 20px;
    max-width: min(640px, 60vw);
}
.tl-hero-line span { display: block; text-wrap: balance; }
.tl-photo {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 40%;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(0,0,0,.005) 4%, rgba(0,0,0,.02) 8%, rgba(0,0,0,.06) 13%, rgba(0,0,0,.14) 20%, rgba(0,0,0,.28) 29%, rgba(0,0,0,.48) 39%, rgba(0,0,0,.7) 50%, rgba(0,0,0,.88) 60%, #000 70%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(0,0,0,.005) 4%, rgba(0,0,0,.02) 8%, rgba(0,0,0,.06) 13%, rgba(0,0,0,.14) 20%, rgba(0,0,0,.28) 29%, rgba(0,0,0,.48) 39%, rgba(0,0,0,.7) 50%, rgba(0,0,0,.88) 60%, #000 70%);
}
/* Brand grade over hero photos: a green wash and slightly muted color.
   It reads as a deliberate treatment and hides the softness of lower-res source photos. */
.tl-photo { filter: saturate(.8) contrast(1.05); }
.tl-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 59, 34, .28);
}
.tl-photo--stadium { background-image: url('../img/landing/hero-stadium.webp'); background-position: center 70%; }
.tl-photo--lacrosse {
    background-image: url('../img/landing/lacrosse.jpg');
    background-position: center 42%;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(0,0,0,.005) 3%, rgba(0,0,0,.02) 6%, rgba(0,0,0,.07) 10%, rgba(0,0,0,.16) 15%, rgba(0,0,0,.32) 22%, rgba(0,0,0,.54) 30%, rgba(0,0,0,.76) 38%, rgba(0,0,0,.92) 46%, #000 54%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(0,0,0,.005) 3%, rgba(0,0,0,.02) 6%, rgba(0,0,0,.07) 10%, rgba(0,0,0,.16) 15%, rgba(0,0,0,.32) 22%, rgba(0,0,0,.54) 30%, rgba(0,0,0,.76) 38%, rgba(0,0,0,.92) 46%, #000 54%);
}
.tl-lede { max-width: min(540px, 52vw); }
.tl-kicker { color: #fff; font-weight: 700; font-size: 17px; }
.tl-sub { color: var(--tct-leaf); font-size: clamp(22px, 2.4vw, 30px); margin-top: 4px; }
.tl-body { color: var(--tct-on-dark); font-size: 15px; line-height: 1.55; margin-top: 10px; }

/* ---------- Bands and pillars ---------- */
.tl-band {
    padding-top: 18px;
    padding-bottom: 18px;
    text-align: center;
    font-weight: 700;
    color: var(--tct-forest);
    font-size: 16px;
    line-height: 1.45;
}
.tl-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.tl-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tl-g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tl-pillar { text-align: center; }
.tl-pillar h3 { color: var(--tct-leaf); font-size: 28px; }
.tl-pillar p { color: var(--tct-on-dark); font-size: 14px; margin-top: 6px; }

/* ---------- Events ---------- */
.tl-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tl-ev {
    display: flex;
    gap: 14px;
    border: 1px solid var(--tct-line);
    border-radius: 10px;
    padding: 12px;
    align-items: center;
    color: var(--tct-ink);
    transition: border-color .15s ease;
}
.tl-ev:hover { border-color: var(--tct-leaf); color: var(--tct-ink); }
.tl-date { background: var(--tct-forest); color: #fff; border-radius: 8px; text-align: center; padding: 6px 12px; flex: none; min-width: 56px; }
.tl-date .m { color: var(--tct-leaf); font-size: 14px; }
.tl-date .n { font-size: 30px; }
.tl-ev-name { font-weight: 700; font-size: 15px; }
.tl-ev-meta { font-size: 13px; color: var(--tct-muted); }

/* ---------- Split rows ---------- */
.tl-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.tl-action { height: 280px; border-radius: 16px; background: url('../img/landing/lacrosse.jpg') center 40% / cover no-repeat; }
.tl-checks { display: grid; gap: 6px; margin-top: 14px; padding: 0; list-style: none; }
.tl-checks li { font-family: var(--tct-font-display); font-size: 24px; color: var(--tct-leaf-dark); display: flex; gap: 10px; align-items: center; text-transform: uppercase; }

/* ---------- Tiles ---------- */
.tl-tile { display: block; background: #fff; border: 1px solid var(--tct-line); border-radius: 16px; padding: 22px; transition: border-color .15s ease; }
.tl-tile:hover { border-color: var(--tct-leaf); }
.tl-tile > i { color: var(--tct-leaf-dark); font-size: 24px; }
.tl-tile h3 { color: var(--tct-forest); font-size: 25px; margin-top: 10px; }
.tl-tile p { font-size: 14px; color: var(--tct-muted); margin: 6px 0 12px; line-height: 1.5; }
.tl-intro { font-size: 15px; line-height: 1.5; color: var(--tct-muted); margin-top: 10px; max-width: 720px; }

/* Featured coaches */
.tl-coach { text-align: center; padding: 20px 16px; }
.tl-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tct-forest);
    color: #fff;
    font-weight: 700;
    font-size: 26px;
}
.tl-coach h3 { font-family: var(--tct-font-body); text-transform: none; font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--tct-ink); margin: 0; }
.tl-coach p { margin: 4px 0 10px; font-size: 13px; }

/* ---------- How events work ---------- */
.tl-bul { display: grid; gap: 10px; margin-top: 16px; padding: 0; list-style: none; font-size: 15px; line-height: 1.45; color: var(--tct-forest); font-weight: 600; }
.tl-bul li { display: flex; gap: 10px; }
.tl-bul i { color: var(--tct-leaf-dark); font-size: 20px; flex: none; }
.tl-ex { border-radius: 16px; padding: 24px 26px; }
.tl-ex h3 { color: var(--tct-leaf); font-size: 30px; }
.tl-ex-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-top: 12px; }
.tl-ex-row > i { color: var(--tct-leaf); font-size: 24px; margin-top: 14px; flex: none; }
.tl-stat { text-align: center; flex: 1 1 0; min-width: 0; position: relative; }
.tl-stat b { display: block; font-family: var(--tct-font-display); font-weight: 400; font-size: clamp(44px, 5vw, 64px); line-height: 1; color: #fff; }
.tl-stat b.leaf { color: var(--tct-leaf); }
.tl-stat small { position: absolute; top: -13px; left: 0; right: 0; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--tct-on-dark-muted); }
.tl-stat span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--tct-on-dark-muted); margin-top: 6px; line-height: 1.35; }
.tl-ex-foot { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 18px; padding-top: 12px; font-size: 12px; color: var(--tct-on-dark-muted); text-align: center; }
.tl-steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.tl-step { text-align: center; color: #fff; }
.tl-n { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--tct-leaf); color: var(--tct-forest); font-weight: 700; font-size: 14px; align-items: center; justify-content: center; }
.tl-step > i { display: block; font-size: 34px; margin-top: 10px; }
.tl-step h3 { color: var(--tct-leaf); font-size: 24px; margin-top: 8px; }
.tl-step p { font-size: 13px; line-height: 1.4; margin-top: 4px; color: var(--tct-on-dark); }
.tl-calc { border: 1px solid var(--tct-line); border-radius: 16px; padding: 20px; background: #fff; }
.tl-calc-top { font-weight: 700; color: var(--tct-forest); font-size: 15px; margin-bottom: 14px; }
.tl-calc-g { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
.tl-r { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eeefe9; font-size: 13px; color: var(--tct-muted); }
.tl-r b { color: var(--tct-forest); }
.tl-net { background: var(--tct-leaf-tint); border-radius: 10px; padding: 12px; margin-top: 10px; display: flex; justify-content: space-between; font-weight: 700; color: var(--tct-forest); font-size: 14px; }
.tl-sum { background: var(--tct-paper); border-radius: 10px; padding: 14px; font-size: 12px; color: var(--tct-muted); }
.tl-sum b { display: block; font-size: 22px; color: var(--tct-forest); margin: 2px 0 10px; }
.tl-sum b:last-child { margin-bottom: 0; }
.tl-fine { font-size: 12px; color: var(--tct-muted); margin-top: 12px; }
.tl-lead-copy { font-size: 17px; font-weight: 600; color: var(--tct-forest); line-height: 1.45; }

/* ---------- Closing CTA and footer ---------- */
.tl-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tl-cta h2 { color: var(--tct-leaf); }
.tl-cta p { color: #fff; font-size: 15px; margin-top: 8px; }
.tl-cta p + p { font-weight: 700; margin-top: 6px; }
.tl-footer { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 28px; padding-bottom: 28px; color: var(--tct-on-dark-muted); font-size: 13px; }
.tl-footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tl-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.tl-footer a { color: var(--tct-on-dark-muted); }
.tl-footer a:hover { color: var(--tct-leaf); }

/* Flash messages reuse Bootstrap alerts; keep them flush with the page edge. */
.tl .alert { border-radius: 0; margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) and (min-width: 641px) {
    .tl-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tl-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .tl-menu-btn { display: block; }
    .tl-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px 0 6px; font-size: 15px; }
    .tl-links.is-open { display: flex; }
    .tl-hero-copy { padding: 30px var(--tl-gut); }
    .tl-hero-line, .tl-lede { max-width: none; }
    .tl-photo, .tl-photo--lacrosse {
        left: 0;
        -webkit-mask-image: none;
                mask-image: none;
    }
    .tl-photo::after { display: none; }
    .tl-photo--stadium { background-image: linear-gradient(rgba(13, 59, 34, .86), rgba(13, 59, 34, .86)), url('../img/landing/hero-stadium.webp'); background-position: center 60%; }
    .tl-photo--lacrosse { background-image: linear-gradient(rgba(13, 59, 34, .86), rgba(13, 59, 34, .86)), url('../img/landing/lacrosse.jpg'); }
    .tl-sec { padding-top: 28px; padding-bottom: 28px; }
    .tl-g3, .tl-g2, .tl-g4, .tl-split, .tl-calc-g, .tl-steps { grid-template-columns: minmax(0, 1fr); }
    .tl-g3 { gap: 14px; }
    .tl-split { gap: 20px; }
    .tl-action { height: 200px; }
    .tl-pillar { text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .08); padding-bottom: 12px; }
    .tl-pillar:last-child { border: 0; }
    .tl-cta { flex-direction: column; align-items: flex-start; }
    .tl-ex { padding: 20px 16px; }
    .tl-ex-row { gap: 4px; }
    .tl-ex-row > i { font-size: 16px; margin-top: 12px; }
    .tl-stat b { font-size: clamp(34px, 11.5vw, 46px); }
    .tl-stat span { font-size: 11px; letter-spacing: .3px; }
    .tl-steps { gap: 0; }
    .tl-step {
        display: grid;
        grid-template-columns: 30px 30px minmax(0, 1fr);
        column-gap: 12px;
        align-items: center;
        text-align: left;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }
    .tl-step:last-child { border: 0; }
    .tl-step > i { font-size: 26px; margin: 0; }
    .tl-step h3 { margin: 0; font-size: 22px; }
    .tl-step p { grid-column: 3; }
}
