/* ============================================
   PIT Holdings - Inner Page Components
   Hero banners, breadcrumbs, content layouts,
   timelines, team grids, product cards, CTAs
   ============================================ */

/* --- Page Hero Banner --- */
.page-hero {
    position: relative;
    z-index: 10;
    padding: 10rem 2rem 3rem;
    text-align: center;
}

/* --- Sector Hero with Background Image --- */
.page-hero-image {
    position: relative;
    z-index: 10;
    min-height: 65vh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 2rem 4rem;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 12, 10, 0) 0%,
        rgba(10, 12, 10, 0) 50%,
        rgba(10, 12, 10, 0.35) 80%,
        rgba(10, 12, 10, 0.65) 100%
    );
    z-index: 1;
}

:root[data-theme="light"] .page-hero-image::before {
    background: linear-gradient(
        to bottom,
        rgba(245, 245, 240, 0) 0%,
        rgba(245, 245, 240, 0) 50%,
        rgba(245, 245, 240, 0.5) 80%,
        rgba(245, 245, 240, 0.85) 100%
    );
}

.page-hero-image .page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-hero-image .page-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.page-hero-image .page-hero-sub {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--pit-400);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.page-hero-image .page-hero-desc {
    font-size: 1.2rem;
    color: var(--gray-300);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.page-hero-image .sector-tags {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* --- Sector Challenge Section --- */
.sector-challenge {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.sector-challenge h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.sector-challenge p {
    font-size: 1.05rem;
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.sector-challenge p:last-child {
    margin-bottom: 0;
}

/* --- Solution Link Cards (sector pages) --- */
.solution-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-link {
    padding: 2rem;
    border-radius: 20px;
    text-decoration: none;
    display: block;
    transition: all 0.5s var(--ease-out);
}

.solution-link:hover {
    transform: translateY(-4px);
}

.solution-link-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--pit-400);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.solution-link-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.solution-link-desc {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.solution-link-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--pit-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.solution-link-cta svg {
    width: 16px;
    height: 16px;
    stroke: var(--pit-500);
    fill: none;
    transition: transform 0.3s var(--ease-out);
}

.solution-link:hover .solution-link-cta svg {
    transform: translateX(4px);
}

/* --- Application Cards --- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.app-card {
    padding: 2rem;
    border-radius: 20px;
}

.app-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.app-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--pit-500);
    stroke-width: 1.5;
    fill: none;
}

.app-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.app-card-desc {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.7;
}

.page-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero .section-label {
    justify-content: center;
}

.page-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.page-hero-desc {
    font-size: 1.15rem;
    color: var(--gray-400);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    letter-spacing: 0.05em;
}

.breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--pit-400);
}

.breadcrumb-sep {
    color: var(--gray-600);
    font-size: 0.7rem;
}

.breadcrumb-current {
    color: var(--pit-400);
}

/* --- Content Split (two-column text + card) --- */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.content-split-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.content-split-text p {
    font-size: 1rem;
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-split-text p:last-child {
    margin-bottom: 0;
}

.content-split-card {
    padding: 2.5rem;
    border-radius: 20px;
}

/* --- Stats Row --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}

.stat-value {
    font-family: 'Orbitron', 'Space Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pit-400);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--pit-500), var(--gray-800));
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    background: var(--pit-500);
    border-radius: 50%;
    border: 2px solid var(--black);
    box-shadow: 0 0 12px rgba(139, 154, 91, 0.5);
    transform: translateX(-5px);
}

.timeline-year {
    font-family: 'Orbitron', 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--pit-400);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.7;
}

/* --- Team Grid --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
}

.team-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pit-400);
}

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.8rem;
    color: var(--pit-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.7;
}

/* --- Product Card --- */
.product-card {
    padding: 2.5rem;
    border-radius: 20px;
}

.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.product-code {
    font-family: 'Orbitron', 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--pit-400);
    letter-spacing: 0.1em;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-specs {
    display: grid;
    gap: 0.75rem;
}

.product-spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.product-spec-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    letter-spacing: 0.05em;
}

.product-spec-value {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--pit-300);
}

/* --- Process Steps --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    padding: 2rem;
    border-radius: 20px;
    position: relative;
}

.process-step-number {
    font-family: 'Orbitron', 'Space Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(139, 154, 91, 0.15);
    line-height: 1;
    margin-bottom: 1rem;
}

.process-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-step-desc {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem;
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--pit-800), var(--pit-900));
    border: 1px solid var(--glow-color-subtle);
}

.cta-banner-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-banner-desc {
    font-size: 1rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn {
    display: inline-flex;
}

/* --- Active Nav State --- */
.nav-links a.active {
    color: var(--white);
}

.nav-links a.active::after {
    width: 100%;
    background: var(--pit-500);
    box-shadow: 0 0 8px var(--glow-color);
}

/* --- Card Grid (generic reusable grid for linked cards) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.link-card {
    padding: 2.5rem;
    border-radius: 20px;
    text-decoration: none;
    display: block;
    transition: all 0.5s var(--ease-out);
}

.link-card:hover {
    transform: translateY(-4px);
}

.link-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.link-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--pit-500);
    stroke-width: 1.5;
    fill: none;
}

.link-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.link-card-desc {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.link-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--pit-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.link-card-arrow svg {
    width: 16px;
    height: 16px;
    stroke: var(--pit-500);
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s var(--ease-out);
}

.link-card:hover .link-card-arrow svg {
    transform: translateX(4px);
}

/* --- Impact Metrics (for sustainability) --- */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-card {
    padding: 2rem;
    border-radius: 20px;
}

.impact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.impact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--pit-500);
    stroke-width: 1.5;
    fill: none;
}

.impact-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.impact-desc {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.7;
}

/* --- Light Theme - Page Overrides --- */
:root[data-theme="light"] .timeline::before {
    background: linear-gradient(180deg, var(--pit-500), var(--gray-800));
}

:root[data-theme="light"] .timeline-item::before {
    border-color: var(--bg-body);
    box-shadow: 0 0 8px var(--glow-color-subtle);
}

:root[data-theme="light"] .cta-banner {
    background: linear-gradient(135deg, var(--pit-600), var(--pit-800));
    color: #ffffff;
}

:root[data-theme="light"] .cta-banner-title,
:root[data-theme="light"] .cta-banner-desc {
    color: #ffffff;
}

:root[data-theme="light"] .cta-banner .btn-primary {
    background: #ffffff;
    color: var(--pit-700);
}

:root[data-theme="light"] .cta-banner .btn-primary:hover {
    background: var(--pit-50);
}

:root[data-theme="light"] .process-step-number {
    color: rgba(139, 154, 91, 0.12);
}
