/* ============================================
   TRAINLINE-STYLE HOME PAGE DESIGN
   The Climate Ledger — Clean Executive Architecture
   ============================================ */

/* ===== 1. HERO BANNER (Trainline banner--home) ===== */
.banner--home {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #002326 0%, #00191c 100%);
    padding-top: 150px;
    padding-bottom: 90px;
    color: #ffffff;
    overflow: hidden;
}

.banner__overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.banner__content {
    max-width: 960px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    padding: 0.4rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
}

.hero-label .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4a4;
    box-shadow: 0 0 10px #00d4a4;
}

h1.hero {
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    font-weight: 800;
    line-height: 1.08;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.banner__content p {
    font-size: 1.22rem;
    line-height: 1.7;
    color: #e6faf6;
    margin-bottom: 2.25rem;
    max-width: 760px;
}

.banner__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== 2. STATEMENT BANNER (Trainline Mint Ribbon) ===== */
.statement-banner {
    background-color: var(--bg-mint) !important;
    padding: 5rem 0 !important;
    color: #ffffff !important;
}

.introduction {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
    font-weight: 700;
    line-height: 1.38;
    color: #ffffff !important;
    max-width: 1120px;
    margin: 0;
    letter-spacing: -0.015em;
}

/* ===== 3. PLATFORM IN NUMBERS (Trainline Group in numbers) ===== */
.numbers-section {
    background-color: var(--bg-mint-dark) !important;
    padding: 6rem 0 !important;
    color: #ffffff !important;
}

.panel-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3.5rem;
}

.panel-grid--col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.panel-grid__item {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    padding: 2.5rem 2rem !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
    min-height: 220px;
}

.panel-grid__item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35) !important;
}

.stat-num-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.stat-style {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: var(--accent-main) !important;
    line-height: 1;
}

.stat-unit {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-main) !important;
}

.stat-label {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111827 !important;
    line-height: 1.45;
    display: block;
}

/* ===== 4. CAPABILITIES 50/50 HORIZONTAL CARDS ===== */
.capabilities-section {
    background-color: #ffffff;
    padding: 6rem 0;
}

.card--horizontal.card--50-50 {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 24px !important;
    padding: 3rem !important;
    box-shadow: 0 10px 30px rgba(0, 35, 38, 0.05) !important;
    margin-bottom: 3rem;
}

.card--horizontal.card-flipped {
    flex-direction: row-reverse;
    background: #f8faf9 !important;
}

.card--horizontal .card__img {
    flex: 1;
    min-width: 0;
    max-height: 380px;
    border-radius: 16px;
    overflow: hidden;
    background: #f0fbf9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card--horizontal .card__img img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card--horizontal:hover .card__img img {
    transform: scale(1.03);
}

.card--horizontal .card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.badge-mint {
    display: inline-block;
    background: #e6faf6;
    color: var(--accent-main);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 168, 143, 0.25);
    margin-bottom: 1rem;
    width: fit-content;
}

.card--horizontal .heading {
    font-size: clamp(1.8rem, 2.6vw, 2.25rem);
    color: var(--text-heading) !important;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.card--horizontal p {
    font-size: 1.05rem;
    color: #4b5563 !important;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-bullets {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.feature-bullets li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937 !important;
}

.check-mark {
    color: var(--accent-main);
    font-weight: 800;
    font-size: 1.1rem;
}

.card__link a {
    width: fit-content;
}

/* ===== 5. CONSOLE SECTION ===== */
.console-section {
    background-color: #f4f6f5;
    padding: 6rem 0;
}

.interactive-console-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(0, 35, 38, 0.08);
    overflow: hidden;
}

.console-tabs-header {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
}

.console-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.console-tab-btn:hover {
    color: var(--accent-main);
    background: #f0fbf9;
}

.console-tab-btn.active {
    color: var(--accent-main);
    border-bottom-color: var(--accent-main);
    background: #f0fbf9;
}

.console-tab-content-panel {
    padding: 3rem;
}

.console-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.console-panel-info h3 {
    font-size: 1.75rem;
    color: var(--text-heading) !important;
    margin-bottom: 1rem;
}

.console-panel-info p {
    color: #4b5563 !important;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.console-feature-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.feature-badge-pill {
    font-size: 0.92rem;
    font-weight: 600;
    color: #00876c;
}

.console-display-box {
    background: #f8faf9;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.data-row-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #111827;
}

.data-sub {
    font-size: 0.8rem;
    color: #6b7280;
}

.data-metric-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-main);
    text-align: right;
}

.data-status-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00876c;
    background: #e6faf6;
    padding: 2px 8px;
    border-radius: 4px;
    display: block;
    text-align: right;
}

/* ===== 6. NEWS / ARTICLES (Trainline Padded Cards) ===== */
.news-section {
    background-color: #ffffff;
    padding: 6rem 0;
}

.cards-grid {
    display: grid;
    gap: 2rem;
}

.cards-grid--col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.padded-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 16px rgba(0, 35, 38, 0.05) !important;
    min-height: 400px;
}

.padded-card:hover {
    border-color: var(--accent-main) !important;
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 36px rgba(0, 35, 38, 0.12) !important;
}

.padded-card__wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.padded-card__img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}

.padded-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.padded-card:hover .padded-card__img {
    transform: scale(1.05);
}

.padded-card__body {
    padding: 1.75rem 1.75rem 2rem !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.padded-card__content-top {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.padded-card__cat-dot {
    color: var(--accent-main);
}

.padded-card__cat {
    color: var(--accent-main);
}

.padded-card__title .subheading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-heading) !important;
    line-height: 1.35;
    margin-bottom: 1rem;
}

.padded-card__content p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #4b5563 !important;
    margin-bottom: 1.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.padded-card__link {
    margin-top: auto;
}

.padded-card__link .button--arrow-right {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-main) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.padded-card:hover .padded-card__link .button--arrow-right {
    gap: 12px;
    color: var(--bg-mint-hover) !important;
}

/* ===== 7. CTA SECTION ===== */
.cta-section {
    background-color: var(--bg-mint-dark) !important;
    padding: 6rem 0 !important;
    color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .panel-grid--col-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .cards-grid--col-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .card--horizontal.card--50-50 {
        flex-direction: column !important;
        gap: 2rem;
        padding: 2rem !important;
    }
    .console-panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .panel-grid--col-3 {
        grid-template-columns: 1fr;
    }
    .cards-grid--col-3 {
        grid-template-columns: 1fr;
    }
    .banner--home {
        padding-top: 130px;
        min-height: auto;
        padding-bottom: 60px;
    }
    h1.hero {
        font-size: 2.3rem;
    }
    .introduction {
        font-size: 1.4rem;
    }
    .console-tab-content-panel {
        padding: 1.5rem;
    }
    .data-row-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .data-metric-val, .data-status-tag {
        text-align: left;
    }
}
