/* Home page: full-bleed hero, copy-first sections, video, feature blocks */

.home-layout-body .content {
    padding-top: 0;
}

/* Hero */
.home-hero {
    background: linear-gradient(135deg, #1b6ec2 0%, #1861ac 50%, #0d47a1 100%);
    color: white;
    text-align: center;
    padding: 4rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("/images/ct-logo-reimagine.png") center/contain no-repeat;
    opacity: 0.6;
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

.home-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.home-hero-logo-wrap {
    flex: 0 0 auto;
    width: 120px;
    min-width: 80px;
}

.home-hero-logo {
    max-height: 100px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.home-hero-center {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.home-hero-spacer {
    flex: 0 0 auto;
    width: 120px;
    min-width: 80px;
}

@media (max-width: 767.98px) {
    .home-hero-inner {
        flex-direction: column;
        gap: 1rem;
    }
    .home-hero-logo-wrap {
        width: 80px;
    }
    .home-hero-logo {
        max-height: 72px;
    }
    .home-hero-spacer {
        display: none;
    }
}

.home-hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.home-hero .lead {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll fade-in: sections animate into view */
.home-fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.home-fade-in.home-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Copy sections: text-first, informative */
.home-copy-section {
    padding: 3.5rem 0;
}

.home-section-alt {
    background-color: #f8f9fa;
}

.home-section-title {
    color: #1b6ec2;
    font-weight: 700;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.home-subhead {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.home-section-subtitle {
    color: #212529;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.home-tagline {
    color: #212529;
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.home-tagline-strong {
    font-weight: 600;
    color: #1b6ec2;
}

/* First row tagline: bottom center, prominent */
.home-first-row-tagline {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #1b6ec2;
    letter-spacing: 0.02em;
    margin-top: 2.5rem;
    margin-bottom: 0;
    padding-top: 1.5rem;
}

/* Problem list */
.home-problem-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
    max-width: 32em;
}

.home-problem-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #212529;
}

.home-problem-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1b6ec2;
    font-weight: bold;
}

/* Bullet list (generic) */
.home-bullet-list {
    list-style: none;
    padding-left: 1.25rem;
    margin: 1rem 0;
}

.home-bullet-list li {
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.55;
    color: #212529;
}

.home-bullet-list li::before {
    content: "•";
    position: absolute;
    left: -1rem;
    color: #1b6ec2;
}

.home-bullet-list.small li {
    font-size: 0.95rem;
}

/* Time saved */
.home-time-saved-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem auto;
    max-width: 28em;
}

.home-time-saved-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #212529;
    border-bottom: 1px solid #dee2e6;
}

.home-time-saved-list li:last-child {
    border-bottom: none;
}

.home-time-icon {
    display: inline-block;
    margin-right: 0.5rem;
}

/* Flow cards (Sunday / Mon-Thu / Friday) */
.home-flow-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.home-flow-step {
    color: #1b6ec2;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.home-why-matters {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(27, 110, 194, 0.06);
    border-radius: 12px;
    border-left: 4px solid #1b6ec2;
}

/* Origin / Philosophy */
.home-origin p,
.home-philosophy p {
    margin-bottom: 0.75rem;
    color: #212529;
}

.home-origin .home-bullet-list,
.home-philosophy .home-bullet-list {
    margin: 0.75rem 0;
}

/* Compare: Old Way vs CoachTactix Way */
.home-compare-card {
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    border: 2px solid #dee2e6;
}

.home-compare-old {
    background: #fce8e8;
    border-color: #e8b4b4;
}

.home-compare-new {
    background: #e8f5e9;
    border-color: #81c784;
}

.home-compare-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.home-compare-old .home-compare-title {
    color: #495057;
}

.home-compare-new .home-compare-title {
    color: #1b6ec2;
}

.home-actual-saves {
    padding: 1rem 0;
}

/* High school: What you get / don't get */
.home-reality-callout .home-bullet-list {
    margin: 0.75rem 0;
}

.home-get-card {
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid #dee2e6;
}

.home-get-no {
    background: #f8f9fa;
}

.home-get-no .home-compare-title {
    color: #6c757d;
}

.home-get-yes {
    background: #e8f4fc;
    border-color: #1b6ec2;
}

.home-get-yes .home-compare-title {
    color: #1b6ec2;
}

/* Video section (pushed down) */
.home-video-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.home-video-section h2 {
    color: #1b6ec2;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.home-video-section .video-sub {
    color: #6c757d;
    margin-bottom: 2rem;
}

.home-video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.home-video-wrapper .ratio {
    background: #000;
}

.home-video-wrapper iframe {
    border: none;
}

/* Feature blocks (image + text) */
.home-feature-block {
    padding: 4rem 0;
}

.home-feature-block:nth-of-type(odd) {
    background-color: #fff;
}

.home-feature-block:nth-of-type(even) {
    background-color: #f8f9fa;
}

.home-feature-block .row {
    align-items: center;
}

.home-feature-block img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Feature image: clickable, opens lightbox */
.home-feature-img-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}

.home-feature-img-btn:hover .home-feature-img {
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.home-feature-img-btn:focus {
    outline: 2px solid #1b6ec2;
    outline-offset: 2px;
    border-radius: 12px;
}

/* Lightbox: float overlay, enlarged image */
.home-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.home-lightbox.home-lightbox-open {
    opacity: 1;
    visibility: visible;
}

.home-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.home-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10001;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.home-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.home-lightbox-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.home-lightbox-img {
    position: relative;
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.home-feature-block h3 {
    color: #1b6ec2;
    font-weight: 700;
    margin-bottom: 1rem;
}

.home-feature-block .text-muted {
    font-size: 1rem;
    line-height: 1.6;
}

/* Why Coach Tactix */
.home-why-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #e8f4fc 0%, #fff 100%);
}

.home-why-section h2 {
    color: #1b6ec2;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.home-why-section .lead {
    font-size: 1.1rem;
    max-width: 42em;
    margin-left: auto;
    margin-right: auto;
}

/* Contact CTA */
.home-cta-section {
    padding: 4rem 0;
    text-align: center;
}

.home-cta-section h2 {
    color: #212529;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.home-cta-section p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
    .home-feature-block .row > div:first-child {
        margin-bottom: 1.5rem;
    }

    .home-flow-card {
        margin-bottom: 1rem;
    }

    .home-compare-card,
    .home-get-card {
        margin-bottom: 1rem;
    }
}
