/* ========================================
   SCALEFIELD SECURE — SUPPORT PAGE STYLES
   ======================================== */

/* ========== HERO ========== */
.support-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.support-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.support-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.35;
}

.support-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(6,14,24,0.92) 0%, rgba(13,31,51,0.88) 40%, rgba(6,14,24,0.75) 100%);
}

.support-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 80px;
}

/* Hero text overrides for dark background */
.support-hero-content h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin-bottom: 28px;
}

/* ========== PATHS SECTION ========== */
.support-paths-section {
    background: var(--gradient-section);
    padding: 100px 0;
}

.support-paths-section .section-header h2,
.sla-section .section-header h2,
.global-support-section .section-header h2,
.process-section .section-header h2 {
    color: var(--white);
}

.support-paths-section .section-header p,
.sla-section .section-header p,
.global-support-section .section-header p,
.process-section .section-header p {
    color: var(--text-light);
}

.paths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.path-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(61,184,245,0.15);
    border-radius: 16px;
    padding: 40px;
    transition: border-color 0.3s, transform 0.3s;
}

.path-card:hover {
    border-color: rgba(61,184,245,0.3);
    transform: translateY(-3px);
}

.path-card-featured {
    background: linear-gradient(135deg, rgba(61,184,245,0.08) 0%, rgba(34,211,187,0.05) 100%);
    border-color: rgba(61,184,245,0.3);
    position: relative;
    overflow: hidden;
}

.path-card-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.path-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.path-badge-handoff {
    background: rgba(255,255,255,0.08);
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.15);
}

.path-badge-handson {
    background: var(--gradient-primary);
    color: #000;
}

.path-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.path-tagline {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px !important;
}

.path-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.path-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.path-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.path-features li svg {
    flex-shrink: 0;
    stroke: var(--accent-teal);
}

.btn-sm-block {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.875rem;
}

.paths-diagram {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(61,184,245,0.15);
}

.paths-diagram img {
    width: 100%;
    display: block;
}

/* ========== SLA TABLE ========== */
.sla-section {
    background: linear-gradient(160deg, #050c15 0%, #0b1a2b 50%, #0d2035 100%);
    padding: 100px 0;
}

.sla-table-wrapper {
    overflow-x: auto;
    margin-bottom: 40px;
    border-radius: 12px;
    border: 1px solid rgba(61,184,245,0.15);
}

.sla-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.sla-table thead th {
    padding: 20px 24px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    border-bottom: 1px solid rgba(61,184,245,0.12);
    background: rgba(255,255,255,0.03);
}

.sla-feature-col {
    text-align: left !important;
    width: 32%;
    color: var(--text-light) !important;
    font-weight: 500 !important;
}

.sla-standard { background: rgba(255,255,255,0.02); }
.sla-professional { background: rgba(61,184,245,0.04); }
.sla-enterprise {
    background: linear-gradient(180deg, rgba(61,184,245,0.1) 0%, rgba(34,211,187,0.06) 100%);
    color: var(--accent) !important;
    position: relative;
}

.sla-recommended {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 4px;
}

.sla-table tbody td {
    padding: 16px 24px;
    font-size: 0.875rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(61,184,245,0.06);
    text-align: center;
    vertical-align: middle;
}

.sla-table tbody td:first-child {
    text-align: left;
    color: var(--white);
    font-weight: 500;
}

.sla-enterprise-col {
    background: rgba(61,184,245,0.04);
    color: var(--white) !important;
}

.sla-highlight-row td {
    background: rgba(61,184,245,0.04);
}

.sla-check { color: var(--accent-teal); font-size: 1.1rem; }
.sla-check-partial { color: var(--accent); opacity: 0.7; }
.sla-dash { color: var(--text-muted); }
.sla-infinity { font-size: 1.2rem; color: var(--accent); }

.sla-table small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.sla-footnote {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    text-align: left !important;
    padding: 14px 24px !important;
    border-bottom: none !important;
    background: rgba(255,255,255,0.02) !important;
    font-weight: 400 !important;
    line-height: 1.6;
}

.sla-matrix-img {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(61,184,245,0.15);
    margin-bottom: 40px;
}

.sla-matrix-img img {
    width: 100%;
    display: block;
}

.sla-cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ========== SCALEFIELD SUPPORT ========== */
.scalefield-support-section {
    background: var(--gradient-section);
    padding: 100px 0;
}

.scalefield-support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.scalefield-support-content .section-tag {
    display: inline-block;
    margin-bottom: 12px;
}

.scalefield-support-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.scalefield-support-content > p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.scalefield-support-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ssf-item {
    display: flex;
    gap: 16px;
}

.ssf-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(61,184,245,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.ssf-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

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

.scalefield-support-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(61,184,245,0.15);
}

/* ========== SUPPORT PROCESS ========== */
.process-section {
    background: linear-gradient(160deg, #050c15 0%, #0b1a2b 100%);
    padding: 100px 0;
}

.process-flow-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0;
    margin-bottom: 56px;
}

.process-flow-step {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(61,184,245,0.15);
    border-radius: 12px;
    padding: 28px 24px;
    transition: border-color 0.3s;
}

.process-flow-step:hover {
    border-color: rgba(61,184,245,0.3);
}

.pf-number {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
}

.process-flow-step h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.process-flow-step p {
    font-size: 0.835rem;
    color: var(--text-light);
    line-height: 1.6;
}

.pf-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 12px 0;
    color: var(--accent);
    opacity: 0.5;
}

.process-diagram-imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.process-diagram-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(61,184,245,0.15);
}

.process-diagram-img img {
    width: 100%;
    display: block;
}

.process-diagram-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    background: linear-gradient(0deg, rgba(6,14,24,0.9) 0%, transparent 100%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
}

/* ========== SLA NUMBERS ========== */
.sla-numbers-section {
    background: var(--gradient-section);
    padding: 100px 0;
}

.sla-numbers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.sla-numbers-content .section-tag {
    display: inline-block;
    margin-bottom: 12px;
}

.sla-numbers-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.sla-numbers-content > p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.sla-proof-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
}

.sla-proof-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sla-proof-number {
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.sla-proof-label {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.4;
    max-width: 140px;
}

.sla-proof-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.sla-numbers-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(61,184,245,0.15);
}

/* ========== GLOBAL SUPPORT ========== */
.global-support-section {
    background: linear-gradient(160deg, #050c15 0%, #0b1a2b 100%);
    padding: 100px 0;
}

.global-support-img {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(61,184,245,0.15);
    margin-bottom: 48px;
}

.global-support-img img {
    width: 100%;
    display: block;
}

.global-support-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gsf-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(61,184,245,0.12);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.gsf-item:hover {
    border-color: rgba(61,184,245,0.3);
    transform: translateY(-3px);
}

.gsf-icon {
    width: 48px;
    height: 48px;
    background: rgba(61,184,245,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent);
}

.gsf-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.gsf-item p {
    font-size: 0.825rem;
    color: var(--text-light);
    line-height: 1.55;
}

/* ========== ONBOARDING ========== */
.onboarding-section {
    background: var(--gradient-section);
    padding: 100px 0;
}

.onboarding-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.onboarding-content .section-tag {
    display: inline-block;
    margin-bottom: 12px;
}

.onboarding-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.onboarding-content > p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 28px;
}

.onboarding-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.onboarding-steps li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

.onboarding-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.onboarding-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(61,184,245,0.15);
}

/* ========== SUPPORT CTA ========== */
.support-cta-section {
    background: linear-gradient(160deg, #050c15 0%, #0b1a2b 100%);
    padding: 100px 0;
}

.support-cta-card {
    background: linear-gradient(135deg, rgba(61,184,245,0.08) 0%, rgba(34,211,187,0.05) 100%);
    border: 1px solid rgba(61,184,245,0.2);
    border-radius: 20px;
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-cta-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(61,184,245,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.support-cta-card h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
    position: relative;
}

.support-cta-card > p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 36px;
    position: relative;
}

.support-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
}

.support-cta-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.support-cta-contact svg { color: var(--accent); }

.support-cta-contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.support-cta-contact a:hover { opacity: 0.7; }

/* ========== NAV ACTIVE STATE ========== */
.nav-links a.active {
    color: var(--accent);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .process-flow-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .pf-arrow { display: none; }
    .global-support-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .support-hero { min-height: auto; }
    .support-hero-content { padding-top: 90px; padding-bottom: 50px; }
    .paths-grid { grid-template-columns: 1fr; }
    .path-card { padding: 28px 20px; }
    .scalefield-support-grid { grid-template-columns: 1fr; gap: 40px; }
    .sla-numbers-grid { grid-template-columns: 1fr; gap: 40px; }
    .onboarding-grid { grid-template-columns: 1fr; gap: 40px; }
    .process-flow-grid { grid-template-columns: 1fr; }
    .process-diagram-imgs { grid-template-columns: 1fr; }
    .global-support-features { grid-template-columns: 1fr; }
    .gsf-item { padding: 22px 18px; }
    .sla-proof-stats { flex-direction: column; gap: 20px; }
    .support-cta-card { padding: 40px 24px; }
    .support-cta-card h2 { font-size: 1.8rem; }
    .sla-cta-row { flex-direction: column; align-items: center; }
    .sla-table-title[style] { margin-top: 40px !important; }
}

/* 1. Trigger Image Styling */
.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.zoomable-image:hover {
    transform: translateY(-2px); /* Subtle lift effect */
}

/* 2. Main Lightbox Background */
.modern-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(8, 12, 16, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modern-lightbox.active {
    display: block;
}

/* 3. Viewport (Handles the touch/pan boundaries) */
.lightbox-viewport {
    width: 100%; 
    height: 100%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    touch-action: none; /* Critical: Prevents native scrolling while pinching */
    overflow: hidden;
}

/* 4. The Image Element */
#lightboxImg {
    max-width: 90%;
    max-height: 80vh; /* Limits height to leave room for the caption below */
    transition: transform 0.1s ease-out;
    will-change: transform;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    cursor: grab;
}

#lightboxImg:active {
    cursor: grabbing;
}

/* 5. Close Button (Fixed Top-Right) */
.lightbox-close {
    position: absolute;
    /* Uses max() to ensure at least 20px gap, plus safety for phone notches */
    top: max(20px, env(safe-area-inset-top)); 
    right: max(20px, env(safe-area-inset-right));
    width: 44px; 
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none; 
    border-radius: 50%;
    color: white; 
    font-size: 32px;
    cursor: pointer; 
    pointer-events: auto;
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 10002;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 6. Caption (Fixed Bottom-Center) */
#lightboxCaption {
    position: absolute;
    bottom: max(30px, env(safe-area-inset-bottom)); /* Pushes up from bottom */
    left: 0;
    width: 100%;
    text-align: center;
    color: #3db8f5; /* Scalefield Secure Blue */
    font-weight: 500;
    font-size: 1.1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); /* Ensures readability on bright images */
    z-index: 10002;
    pointer-events: none; /* Allows user to click "through" the text */
    padding: 0 20px;
}