/* ============================================
   RailGuard - Sub-page Styles
   ============================================ */

/* --- Page Hero (for sub-pages) --- */
.page-hero {
    padding: 160px 0 80px;
    background:
        linear-gradient(135deg, rgba(10, 25, 47, 0.85) 0%, rgba(26, 58, 92, 0.75) 40%, rgba(76, 175, 80, 0.6) 100%),
        url('../images/large-hearo-back-2.png') center/cover no-repeat;
    text-align: center;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(26, 115, 232, 0.1) 0%, transparent 50%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin: 0 auto;
}

/* Navbar on sub-pages starts dark */
.navbar-dark {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

/* --- Feature Detail Sections --- */
.feature-detail {
    padding: 100px 0;
    background: var(--bg);
}

.feature-detail.alt {
    background: var(--bg-light);
}

.feature-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-detail-grid.reverse {
    direction: rtl;
}
.feature-detail-grid.reverse > * {
    direction: ltr;
}

.feature-detail-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(76, 175, 80, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-detail-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.feature-detail-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.95rem;
}

.feature-list i {
    color: var(--accent);
    font-size: 1rem;
}

/* --- Feature Mockups --- */
.feature-mockup {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.mockup-header {
    padding: 12px 16px;
    background: #f8faf8;
    border-bottom: 1px solid rgba(76, 175, 80, 0.15);
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 600;
}

.mockup-body {
    padding: 20px;
}

.mockup-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.mockup-tabs span {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.mockup-tabs span.active {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.mockup-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.mockup-stat {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.mockup-stat.green { background: #e8f5e9; }
.mockup-stat.blue { background: #f0f7f0; }
.mockup-stat.orange { background: #f1f8e9; }

.stat-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1b5e20;
}

.stat-lbl {
    font-size: 0.65rem;
    color: #6b7280;
    margin-top: 2px;
}

.mockup-chart-area {
    height: 100px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    border: 1px solid rgba(76, 175, 80, 0.15);
}

/* Calendar Mockup */
.mockup-calendar {
    padding: 8px;
}

.cal-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.cal-header span {
    text-align: center;
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
}

.cal-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.cal-cell {
    height: 44px;
    border-radius: 6px;
    background: #f8faf8;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(76, 175, 80, 0.08);
}

.cal-shift {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
}

.cal-shift.green { background: #43a047; }
.cal-shift.blue { background: #66bb6a; }
.cal-shift.orange { background: #81c784; }

/* Score Bars */
.score-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 8px 0;
}

.score-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-name {
    font-size: 0.75rem;
    color: #4b5563;
    min-width: 70px;
}

.score-bar {
    flex: 1;
    height: 12px;
    background: #e8f5e9;
    border-radius: 6px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
}

.score-fill.green { background: var(--accent); }
.score-fill.orange { background: var(--warning); }
.score-fill.red { background: var(--danger); }

.score-val {
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 52px;
    text-align: right;
}

.score-val.low { color: var(--accent); }
.score-val.med { color: var(--warning); }
.score-val.high { color: var(--danger); }

/* Phone Mockup */
.phone-mockup {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 260px;
    background: #ffffff;
    border-radius: 32px;
    padding: 12px;
    border: 2px solid rgba(76, 175, 80, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.phone-notch {
    width: 100px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 0 auto 16px;
}

.phone-screen {
    background: #f8faf8;
    border-radius: 20px;
    padding: 20px 16px;
    min-height: 340px;
}

.phone-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 16px;
}

.phone-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(76, 175, 80, 0.12);
}

.phone-shift-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.phone-shift-time {
    font-size: 0.7rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.phone-shift-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
}

.phone-shift-status.accepted {
    background: #e8f5e9;
    color: #2e7d32;
}

.phone-shift-status.pending {
    background: #fff8e1;
    color: #f57f17;
}

.phone-btn {
    background: #43a047;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 16px;
}

/* Integration Visual */
.integration-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 60px 0;
}

.int-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 40px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    font-weight: 600;
    font-size: 0.95rem;
}

.int-box i {
    font-size: 2rem;
    color: var(--text-muted);
}

.int-box.primary {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.08), rgba(76, 175, 80, 0.08));
    border-color: rgba(26, 115, 232, 0.2);
    color: var(--primary);
}

.int-box.primary i {
    color: var(--primary);
}

.int-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 1.5rem;
}

.int-arrow-line {
    width: 40px;
    height: 2px;
    background: var(--accent);
}

/* --- More Features Grid --- */
.more-features {
    padding: 100px 0;
    background: var(--bg-light);
}

.features-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* --- Pricing --- */
.pricing-section {
    padding: 80px 0 100px;
    background: var(--bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.pricing-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 40px 32px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary);
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.pricing-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.price-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.pricing-features {
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
}

.pricing-features li i {
    font-size: 0.9rem;
    color: var(--accent);
}

.pricing-features li.disabled {
    color: var(--text-muted);
}

.pricing-features li.disabled i {
    color: var(--text-muted);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* --- FAQ --- */
.faq-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- About Page --- */
.about-mission {
    padding: 100px 0;
    background: var(--bg);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.mission-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.mission-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.mission-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mission-stat-card {
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.mission-stat-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.mission-stat-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.mission-stat-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Values */
.about-values {
    padding: 100px 0;
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.value-card {
    padding: 32px 24px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.value-number {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(26, 115, 232, 0.15);
    margin-bottom: 12px;
}

.value-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Regulations */
.about-regulations {
    padding: 100px 0;
    background: var(--bg);
}

.regulations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.regulation-card {
    padding: 32px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}

.regulation-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.regulation-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Contact Page --- */
.contact-section {
    padding: 80px 0 100px;
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-wrapper h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    color: var(--text-light);
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-success {
    text-align: center;
    padding: 60px 0;
}

.success-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-light);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.contact-info-card.highlight {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05), rgba(76, 175, 80, 0.05));
    border-color: rgba(26, 115, 232, 0.15);
}

.contact-info-icon {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-info-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.contact-info-card a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

.demo-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* --- Sub-page Responsive --- */
@media (max-width: 1024px) {
    .feature-detail-grid,
    .feature-detail-grid.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 40px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 130px 0 60px;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .features-grid-3 {
        grid-template-columns: 1fr !important;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .regulations-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
