/**
 * About Page Styles
 * 
 * FILE LOCATION: /includes/css/pages/about.css
 * UPDATED: January 11, 2026 - v5: Clean production code, no development markers
 */

/* =============================================================================
   STICKY HEADER (KEEPS HEADER IN PLACE AT ALL TIMES)
   ============================================================================= */

/* Make header sticky - stays at top of viewport */
.navbar,
header,
.site-header,
nav[role="navigation"] {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* Bootstrap navbar z-index */
    width: 100%;
}

/* Add padding to body to prevent content from going under fixed header */
body {
    padding-top: 56px; /* Typical Bootstrap navbar height */
}

/* =============================================================================
   PAGE LAYOUT VARIABLES + BACKGROUND IMAGE SETTINGS
   ============================================================================= */

:root {
    --tb-header-h: 56px;  /* Keep in sync with your real header height */
    --tb-footer-h: 80px;  /* Keep in sync with your real footer height */

    /* Background image scaling and positioning */
    --tb-about-bg-position: center center;
    --tb-about-bg-size: cover;
    --tb-about-bg-opacity: 1;
    --tb-about-bg-blur: 2px;

    /* Overlay gradient strength */
    --tb-about-overlay-strength: 0.12;
    --tb-about-left-fade: 0.42;

    /* Card background transparency */
    --tb-card-bg: rgba(255, 255, 255, 0.75);
    --tb-card-border: rgba(255, 255, 255, 0.60);

    /* Per-section tuning (subtle differences) */
    --tb-card-story-bg:     rgba(255, 255, 255, 0.30);
    --tb-card-mission-bg:   rgba(255, 255, 255, 0.45);
    --tb-card-serve-bg:     rgba(255, 255, 255, 0.70);
    --tb-card-values-bg:    rgba(248, 249, 250, 0.74);
    --tb-card-different-bg: rgba(255, 255, 255, 0.70);
    --tb-card-features-bg:  rgba(255, 255, 255, 0.70);
    --tb-card-founder-bg:   rgba(255, 249, 230, 0.78);
    --tb-card-privacy-bg:   rgba(255, 255, 255, 0.72);

    /* CTA should stay solid for contrast */
    --tb-card-cta-bg: #0d6efd;
}

/* =============================================================================
   FIXED FOOTER + SCROLLABLE CONTENT AREA (HEADER + FOOTER LOCKED)
   ============================================================================= */

/* Prevent the browser window itself from scrolling */
html, body {
    height: 100%;
}

body {
    overflow: hidden;
}

/* Pin footer to the bottom (supports multiple footer wrappers) */
footer,
.site-footer,
.footer {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1025; /* below navbar(1030), above page content */
    min-height: var(--tb-footer-h);
}

/* =============================================================================
   MAIN PAGE WRAPPER
   ============================================================================= */

.about-page {
    background-color: #f8f9fa;

    /* Background image path */
    --tb-about-bg-url: url("/assets/images/backgrounds/about_background.png?v=20260111_3");

    /* Background tuning */
    --tb-about-bg-blur: 2px;
    --tb-about-bg-opacity: 1;
    --tb-about-bg-size: cover;             /* Fill sides - no white space */
    --tb-about-bg-position: center center; /* Center both directions */

    /* Editorial overlay tuning */
    --tb-about-overlay-strength: 0.12;
    --tb-about-left-fade: 0.42;

    /* Card transparency (overrides root defaults for this page if needed) */
    --tb-card-bg: rgba(255, 255, 255, 0.75);
    --tb-card-border: rgba(255, 255, 255, 0.60);

    /* Per-section tuning (subtle differences) */
    --tb-card-story-bg:     rgba(255, 255, 255, 0.30);
    --tb-card-mission-bg:   rgba(255, 255, 255, 0.45);
    --tb-card-serve-bg:     rgba(255, 255, 255, 0.70);
    --tb-card-values-bg:    rgba(248, 249, 250, 0.74);
    --tb-card-different-bg: rgba(255, 255, 255, 0.70);
    --tb-card-features-bg:  rgba(255, 255, 255, 0.70);
    --tb-card-founder-bg:   rgba(255, 249, 230, 0.78);
    --tb-card-privacy-bg:   rgba(255, 255, 255, 0.72);

    /* CTA should stay solid for contrast */
    --tb-card-cta-bg: #0d6efd;


    position: fixed;
    top: var(--tb-header-h);
    left: 0;
    right: 0;
    bottom: var(--tb-footer-h);

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    isolation: isolate;
    min-height: auto;
    padding-top: 3rem;  /* Padding instead of container margin - eliminates white gap */
    padding-bottom: 2rem;
}

/* Fixed background - stays in place while content scrolls, positioned below header */
.about-page::before {
    content: "";
    position: fixed;           /* FIXED - background doesn't scroll */
    top: var(--tb-header-h);   /* Start below header */
    left: 0;
    right: 0;
    bottom: var(--tb-footer-h); /* Stop above footer */
    z-index: -3;

    background-image: var(--tb-about-bg-url);
    background-repeat: no-repeat;
    background-size: var(--tb-about-bg-size);
    background-position: var(--tb-about-bg-position);

    filter: blur(var(--tb-about-bg-blur)) saturate(0.88) contrast(0.90) brightness(1.06);
    opacity: var(--tb-about-bg-opacity);

    pointer-events: none;
}

/* Fixed overlay - stays in place while content scrolls, positioned below header */
.about-page::after {
    content: "";
    position: fixed;           /* FIXED - overlay doesn't scroll */
    top: var(--tb-header-h);   /* Start below header (matches background) */
    left: 0;
    right: 0;
    bottom: var(--tb-footer-h); /* Stop above footer */
    z-index: -2;

    background:
        linear-gradient(90deg,
            rgba(246,236,222,var(--tb-about-left-fade)) 0%,
            rgba(246,236,222,0.22) 22%,
            rgba(246,236,222,0.08) 44%,
            rgba(246,236,222,0.00) 65%),
        linear-gradient(180deg,
            rgba(248,242,234,0.60) 0%,
            rgba(248,242,234,0.20) 40%,
            rgba(248,242,234,0.10) 70%,
            rgba(248,242,234,0.00) 100%),
        rgba(246,236,222,var(--tb-about-overlay-strength));

    pointer-events: none;
}

.about-page .container {
    position: relative;
}

/* =============================================================================
   FORCED CARD TRANSPARENCY (THE "WHITE TEXT BLOCKS")
   ============================================================================= */

.about-card {
    background: var(--tb-card-bg) !important;
    border: 1px solid var(--tb-card-border) !important;
    border-radius: 0.75rem;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Section-specific card backgrounds */
.about-card--story    { background: var(--tb-card-story-bg) !important; }
.about-card--mission  { background: var(--tb-card-mission-bg) !important; }
.about-card--serve    { background: var(--tb-card-serve-bg) !important; }
.about-card--values   { background: var(--tb-card-values-bg) !important; }
.about-card--different{ background: var(--tb-card-different-bg) !important; }
.about-card--features { background: var(--tb-card-features-bg) !important; }
.about-card--founder  { background: var(--tb-card-founder-bg) !important; }
.about-card--privacy  { background: var(--tb-card-privacy-bg) !important; }

/* CTA stays solid */
.about-card--cta {
    background: var(--tb-card-cta-bg) !important;
    color: #fff !important;
    border-color: rgba(13,110,253,0.85) !important;
}

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */

.about-page__title {
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #212529;
    text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.about-card .card-title {
    font-weight: 750;
    color: #1f2a37;
    margin-bottom: 0.5rem;
}

.about-card .card-text,
.about-card p,
.about-card li {
    color: #2b3643;
    line-height: 1.55;
}

/* =============================================================================
   LISTS / CHECKS
   ============================================================================= */

.about-checklist {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.about-checklist li {
    display: flex;
    gap: 0.5rem;
    padding: 0.15rem 0;
}

.about-checklist li i {
    margin-top: 0.15rem;
    opacity: 0.95;
}

/* =============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================= */

@media (max-width: 991.98px) {
    body {
        padding-top: 56px;
    }
    .about-page {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .about-card {
        border-radius: 0.65rem;
    }
    .about-page__title {
        font-size: 1.9rem;
    }
}
