/* =============================================================
   assets/css/about.css
   Styles for the About Us page (aboutUs.php).
   ============================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }
        
        :root {
            --deep-teal: #0f2027; --brown: #543c29; --warm-pale: #f5f1e6;
            --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 1rem; --s-4: 2rem; --s-5: 4rem;
        }
        
        body { font-family: 'Space Mono', monospace; line-height: 1.6; color: #333; background: var(--warm-pale); overflow-x: hidden; }
        
        .epic-hero {
            position: relative; min-height: 100vh; display: flex; align-items: center;
            justify-content: center; overflow: hidden; color: var(--warm-pale);
            text-align: center; padding: var(--s-5) var(--s-3) var(--s-4); margin-top: 0; isolation: isolate;
        }
        
        .hero-overlay {
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(rgba(15, 32, 39, 0.85), rgba(28, 56, 67, 0.8)); z-index: 1;
        }
        
        .hero-content {
            position: relative; z-index: 3; max-width: 1200px; width: 100%;
            padding: var(--s-4); display: flex; flex-direction: column; align-items: center;
        }
        
        .story-title {
            font-family: 'Oswald', sans-serif; font-size: clamp(3rem, 8vw, 5rem); font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--s-2);
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7); line-height: 1;
        }
        
        .story-subtitle {
            font-family: 'Oxanium', sans-serif; font-size: clamp(1.2rem, 3vw, 1.8rem);
            font-weight: 300; margin-bottom: var(--s-3); opacity: 0.95; letter-spacing: 0.05em;
        }
        
        .hero-description {
            font-family: 'Space Mono', monospace; font-size: clamp(1rem, 2vw, 1.2rem);
            max-width: 800px; margin: 0 auto var(--s-4); line-height: 1.6; opacity: 0.9;
        }
        
        .carousel-container {
            position: absolute; top: 0; left: 50%; transform: translateX(-50%);
            width: 100vw; height: 100%; z-index: 0; overflow: hidden;
        }
        
        .carousel-inner { position: relative; width: 100%; height: 100%; overflow: hidden; }
        
        .carousel-slide {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            opacity: 0; transition: opacity 1.5s ease-in-out;
        }
        
        .carousel-slide.active { opacity: 1; }
        
        .carousel-slide img {
            width: 100%; height: 100%; object-fit: cover; object-position: center;
            /*
             * Start fully transparent and at scale(1).
             * Both are declared here so the browser has explicit from-values
             * for both transitions — without an explicit starting transform,
             * the zoom has no defined origin and can jump.
             *
             * IMPORTANT: transition must list BOTH properties in one declaration.
             * CSS transition is not additive — a later rule that sets `transition`
             * silently overwrites an earlier one. The old code had two separate
             * rules setting `transition` on this element, meaning only the last
             * one (opacity 0.8s ease) was active. The transform had no transition
             * at all, causing the instant scale jump. Merging both here fixes it.
             */
            opacity: 0;
            transform: scale(1);
            transition: opacity 0.8s ease, transform 8s ease-out;
            display: block;
        }
        
        /* Fade the image in once it has finished loading */
        .carousel-slide img.loaded { opacity: 1; }
        
        /*
         * When a slide becomes active, begin the slow Ken Burns zoom.
         * Because transform is now properly transitioned above, this change
         * animates smoothly over 8s from the moment .active is added.
         */
        .carousel-slide.active img { transform: scale(1.08); }
        
        .carousel-controls {
            position: absolute; bottom: var(--s-4); left: 0; right: 0;
            z-index: 4; display: flex; justify-content: center; align-items: center;
        }
        
        .carousel-indicators {
            display: flex; gap: var(--s-1); margin: 0;
            background: rgba(15, 32, 39, 0.6); padding: var(--s-2) var(--s-3);
            border-radius: 50px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .carousel-indicator {
            width: 12px; height: 12px; border-radius: 50%;
            background: rgba(255, 255, 255, 0.3); border: 2px solid transparent;
            cursor: pointer; transition: all 0.3s ease; padding: 0;
        }
        
        .carousel-indicator.active { background: var(--warm-pale); transform: scale(1.2); }
        .carousel-indicator:hover { background: rgba(255, 255, 255, 0.5); }
        
        .story-badge {
            display: inline-block; background: linear-gradient(135deg, var(--deep-teal), var(--brown));
            color: var(--warm-pale); padding: var(--s-1) var(--s-2); border-radius: 20px;
            font-family: 'Oxanium', sans-serif; font-size: 0.9rem; font-weight: 600;
            letter-spacing: 0.05em; margin-bottom: var(--s-2);
            border: 1px solid rgba(255, 255, 255, 0.2); position: relative; z-index: 3;
        }
        
        .epic-section { padding: var(--s-5) var(--s-3); position: relative; }
        .epic-section.light { background: var(--warm-pale); color: var(--deep-teal); }
        .epic-section.dark { background: var(--deep-teal); color: var(--warm-pale); }
        
        .container { max-width: 1200px; margin: 0 auto; padding: 0 var(--s-3); }
        .section-header { text-align: center; margin-bottom: var(--s-4); }
        
        .section-header h2 {
            font-family: 'Oswald', sans-serif; font-size: clamp(2rem, 5vw, 3rem);
            font-weight: 600; margin-bottom: var(--s-2); text-transform: uppercase; letter-spacing: 0.05em;
        }
        
        .section-intro {
            font-family: 'Space Mono', monospace; font-size: clamp(1rem, 2vw, 1.2rem);
            max-width: 800px; margin: 0 auto; line-height: 1.6; opacity: 0.9;
        }
        
        .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s-3); margin: var(--s-4) 0; }
        
        .stat-card {
            background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
            border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: var(--s-3);
            backdrop-filter: blur(10px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-align: center;
        }
        
        .stat-card:hover { transform: translateY(-8px); border-color: var(--warm-pale); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
        
        .stat-value {
            font-family: 'Oswald', sans-serif; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700;
            color: var(--warm-pale); display: block; margin-bottom: var(--s-1); line-height: 1;
        }
        
        .stat-label { font-family: 'Oxanium', sans-serif; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.9; }
        
        .timeline-showcase { position: relative; max-width: 1000px; margin: var(--s-4) auto; }
        
        .timeline-step {
            display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-4);
            padding: var(--s-3); background: rgba(255, 255, 255, 0.05); border-radius: 16px;
            border-left: 4px solid var(--warm-pale); transition: all 0.3s ease;
        }
        
        .timeline-step:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(8px); }
        
        .timeline-year {
            font-family: 'Oswald', sans-serif; font-size: clamp(2.5rem, 6vw, 3.5rem);
            font-weight: 800; color: var(--warm-pale); opacity: 0.3; min-width: 80px; flex-shrink: 0;
        }
        
        .timeline-content h3 {
            font-family: 'Oswald', sans-serif; font-size: 1.5rem; color: var(--warm-pale);
            margin-bottom: var(--s-1); text-transform: uppercase; letter-spacing: 0.05em;
        }
        
        .timeline-content p { font-family: 'Space Mono', monospace; font-size: 1rem; line-height: 1.6; opacity: 0.9; }
        
        .philosophy-showcase {
            display: flex; height: 300px; margin: var(--s-4) 0; border-radius: 16px;
            overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); position: relative;
        }
        
        .philosophy-pillar {
            flex: 1; display: flex; flex-direction: column; justify-content: center;
            align-items: center; padding: var(--s-3); position: relative;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer;
        }
        
        .philosophy-pillar:hover { flex: 1.3; z-index: 2; }
        .pillar-1 { background: linear-gradient(135deg, #0f2027 0%, #1c3843 100%); color: var(--warm-pale); }
        .pillar-2 { background: linear-gradient(135deg, #1c3843 0%, #2a525e 100%); color: var(--warm-pale); }
        .pillar-3 { background: linear-gradient(135deg, #2a525e 0%, #3a6f7e 100%); color: var(--warm-pale); }
        
        .pillar-icon { width: 60px; height: 60px; margin-bottom: var(--s-2); object-fit: contain; transition: transform 0.3s ease; }
        .philosophy-pillar:hover .pillar-icon { transform: scale(1.1); }
        
        .pillar-label { font-family: 'Oxanium', sans-serif; font-size: 0.95rem; text-align: center; line-height: 1.4; opacity: 0.95; }
        .pillar-label strong { display: block; font-size: 1.1rem; margin-bottom: var(--s-1); }
        
        .approach-grid {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: var(--s-3); margin: var(--s-4) 0; width: 100%;
        }
        
        .approach-card {
            background: var(--warm-pale); border-radius: 16px; padding: var(--s-3);
            box-shadow: 0 8px 40px rgba(15, 32, 39, 0.15); position: relative; overflow: hidden;
            border-left: 4px solid var(--deep-teal); transition: all 0.3s ease;
            display: block !important; opacity: 1 !important; visibility: visible !important;
        }
        
        .approach-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(15, 32, 39, 0.2); }
        
        .approach-card::before {
            content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
            background: linear-gradient(90deg, var(--deep-teal), var(--brown));
        }
        
        .approach-title {
            font-family: 'Oswald', sans-serif; font-size: 1.4rem; color: var(--deep-teal);
            margin-bottom: var(--s-2); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
        }
        
        .approach-card p { font-family: 'Space Mono', monospace; font-size: 0.95rem; line-height: 1.6; margin-bottom: var(--s-1); color: #333; }
        
        .team-location { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s-4); margin-top: var(--s-4); }
        .team-location h3 { font-family: 'Oswald', sans-serif; font-size: 1.6rem; margin-bottom: var(--s-2); text-transform: uppercase; letter-spacing: 0.05em; }
        .team-location p { font-family: 'Space Mono', monospace; font-size: 1rem; line-height: 1.8; margin-bottom: var(--s-2); }
        
        .location-visual {
            background: linear-gradient(135deg, rgba(84, 60, 41, 0.1) 0%, rgba(15, 32, 39, 0.1) 100%);
            border-radius: 16px; padding: var(--s-3); margin-top: var(--s-3); border: 2px solid rgba(15, 32, 39, 0.2);
        }
        
        .location-visual h4 { font-family: 'Oswald', sans-serif; font-size: 1.2rem; color: var(--deep-teal); margin-bottom: var(--s-2); }
        
        .cta-section {
            text-align: center; padding: var(--s-4);
            background: linear-gradient(135deg, rgba(84, 60, 41, 0.9) 0%, rgba(15, 32, 39, 0.9) 100%);
            border-radius: 20px; margin-top: var(--s-4); color: var(--warm-pale) !important;
            border: 2px solid rgba(245, 241, 230, 0.2);
        }
        
        .cta-section h2 { color: var(--warm-pale) !important; margin-bottom: var(--s-2); }
        .cta-section p { color: rgba(245, 241, 230, 0.9) !important; margin-bottom: var(--s-2); }
        
        .cta-button {
            display: inline-block; background: var(--warm-pale); color: var(--deep-teal) !important;
            padding: var(--s-2) var(--s-4); border-radius: 50px; font-family: 'Oswald', sans-serif;
            font-size: 1.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
            text-decoration: none; margin-top: var(--s-2); transition: all 0.3s ease; border: 2px solid var(--warm-pale);
        }
        
        .cta-button:hover { background: transparent; color: var(--warm-pale) !important; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
        
        /* Footer styles are provided by includes/footer.php */
        
        @media (max-width: 768px) {
            .epic-hero { min-height: 90vh; padding: var(--s-4) var(--s-2); }
            .hero-content { padding: var(--s-3) var(--s-2); }
            .carousel-controls { bottom: var(--s-2); }
            .carousel-indicators { padding: var(--s-1) var(--s-2); }

            /*
             * FIX: styles.css has a global rule that forces all <button> elements
             * to min-height: 44px / min-width: 44px on mobile (accessibility touch
             * targets). Carousel indicator dots are purely decorative 12x12px
             * circles and must not be affected by that rule. We reset it here.
             */
            .carousel-indicator {
                min-height: 0;
                min-width: 0;
                width: 12px;
                height: 12px;
            }
            
            .philosophy-showcase { flex-direction: column; height: auto; }
            .philosophy-pillar { flex-direction: row; justify-content: space-between; padding: var(--s-2); min-height: 100px; }
            .philosophy-pillar:hover { flex: 1; }
            .pillar-icon { margin-bottom: 0; margin-right: var(--s-2); width: 50px; height: 50px; }
            .pillar-label { text-align: left; flex: 1; }
            .timeline-step { flex-direction: column; text-align: center; gap: var(--s-2); }
            .timeline-year { min-width: auto; }
            .epic-section { padding: var(--s-4) var(--s-2); }
            .stat-grid { grid-template-columns: repeat(2, 1fr); }
            .approach-grid { grid-template-columns: 1fr; gap: var(--s-2); }
        }
        
        @media (max-width: 480px) {
            .stat-grid { grid-template-columns: 1fr; }
            .team-location { grid-template-columns: 1fr; }
            .story-title { font-size: 2.5rem; }
            .story-subtitle { font-size: 1.1rem; }
            .pillar-icon { width: 40px; height: 40px; }
        }
        
        .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
        *:focus { outline: 2px solid var(--warm-pale); outline-offset: 2px; }
        
        .img-fallback {
            background: linear-gradient(135deg, var(--deep-teal), var(--brown));
            display: flex; align-items: center; justify-content: center;
            color: var(--warm-pale); font-family: 'Oswald', sans-serif;
            text-transform: uppercase; letter-spacing: 0.1em;
        }
