/**
 * Isatta Services Limited - Penchin Group Inspired Design System
 * Clean, High-Precision Industrial EPCIM Aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Orbitron:wght@500;600;700;800;900&family=Saira:wght@500;600;700;800;900&display=swap');

:root {
    --brand-navy: #0c2d62;
    --brand-navy-dark: #071b3b;
    --brand-navy-deep: #041228;
    --brand-blue: #164e9c;
    --brand-gold: #f5b731;
    --brand-gold-hover: #df9f18;
    --brand-gold-light: #fef3c7;
    --brand-gold-dark: #b87b0a;
    --brand-border: #e2e8f0;
    --brand-bg-light: #f8fafc;
    --brand-bg-subtle: #f1f5f9;

    /* Aliases for seamless backward compatibility */
    --penchin-blue: #0c2d62;
    --penchin-blue-hover: #071b3b;
    --penchin-navy: #071b3b;
    --penchin-dark: #041228;
    --penchin-slate: #0b1e3b;
    --penchin-border: #e2e8f0;
    --penchin-bg-light: #f8fafc;
    --penchin-bg-subtle: #f1f5f9;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #334155;
    overflow-x: hidden;
}

/* Headings with Orbitron / Saira Industrial Styling */
h1, h2, h3, .font-industrial {
    font-family: 'Saira', 'Orbitron', -apple-system, sans-serif;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.font-tech-header {
    font-family: 'Orbitron', 'Saira', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.font-mono-tech {
    font-family: 'IBM Plex Mono', monospace;
}

/* Sticky Header Scrolled State */
#main-header {
    background-color: #ffffff !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-header.is-scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px -2px rgba(12, 45, 98, 0.08), 0 2px 6px -1px rgba(12, 45, 98, 0.04) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0c2d62;
}

/* Technical Blueprint Grid Pattern */
.bg-tech-grid {
    background-size: 32px 32px;
    background-image: 
        linear-gradient(to right, rgba(12, 45, 98, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(12, 45, 98, 0.04) 1px, transparent 1px);
}

.bg-tech-grid-dark {
    background-size: 32px 32px;
    background-image: 
        linear-gradient(to right, rgba(245, 183, 49, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(12, 45, 98, 0.15) 1px, transparent 1px);
}

/* Brand Corporate Cards */
.penchin-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.penchin-card:hover {
    border-color: #f5b731;
    box-shadow: 0 12px 24px -6px rgba(12, 45, 98, 0.14), 0 4px 8px -2px rgba(245, 183, 49, 0.08);
    transform: translateY(-3px);
}

/* Corporate Buttons */
.btn-penchin-blue, .btn-brand-navy {
    background-color: #0c2d62;
    color: #ffffff;
    font-weight: 700;
    border: 1px solid rgba(245, 183, 49, 0.3);
    transition: all 0.2s ease;
}

.btn-penchin-blue:hover, .btn-brand-navy:hover {
    background-color: #071b3b;
    border-color: #f5b731;
    box-shadow: 0 6px 18px -2px rgba(12, 45, 98, 0.4);
    transform: translateY(-1px);
}

.btn-brand-gold {
    background-color: #f5b731;
    color: #071b3b;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-brand-gold:hover {
    background-color: #df9f18;
    box-shadow: 0 6px 18px -2px rgba(245, 183, 49, 0.45);
    transform: translateY(-1px);
}

/* Technical Brackets for Cards (Gold & Navy Accents) */
.tech-bracket-container {
    position: relative;
}

.tech-bracket-container::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 16px;
    height: 16px;
    border-top: 2px solid #f5b731;
    border-left: 2px solid #f5b731;
    pointer-events: none;
}

.tech-bracket-container::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-bottom: 2px solid #0c2d62;
    border-right: 2px solid #0c2d62;
    pointer-events: none;
}

/* Ticker Tape Animation */
.ticker-tape-wrapper {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-tape-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 2rem;
    animation: ticker-slide 30s linear infinite;
}

@keyframes ticker-slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Marquee */
.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    min-width: 100%;
    animation: marquee-scroll 32s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: #1e293b;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

/* ═══════════════════════════════════════════════════════════════
   GSAP + Lenis Integration Styles
   ═══════════════════════════════════════════════════════════════ */



/* Animation initial states — GSAP sets these inline; 
   this ensures no FOUC before JS initializes */
[data-animate] {
    will-change: auto;
}

/* Reduced motion: disable all GSAP transforms instantly */
@media (prefers-reduced-motion: reduce) {
    [data-animate],
    [data-parallax],
    .hero-line-inner,
    .split-word {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Mobile-First Responsiveness & Touch Optimization
   ═══════════════════════════════════════════════════════════════ */

/* Prevent iOS Safari automatic zoom on focus by enforcing min 16px font-size on mobile inputs */
@media (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Horizontal momentum scrolling for pill bars (Services filter, capability badges) */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.scroll-momentum {
    -webkit-overflow-scrolling: touch;
}

/* Mobile Touch Target Standards (minimum 44px hit area for primary actions) */
@media (max-width: 767px) {
    .btn-penchin-blue,
    .btn-brand-gold,
    .btn-brand-navy,
    #mobile-menu-btn,
    #close-drawer-btn {
        min-height: 44px;
    }
    
    /* Touch target padding for links in lists */
    .mobile-touch-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Mobile Range Slider Thumb Styling for Scope Estimator */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0c2d62;
    border: 3px solid #f5b731;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.15);
    background: #071b3b;
}

input[type="range"]::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0c2d62;
    border: 3px solid #f5b731;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Safe Area Inset Support (for modern iPhones / home indicator) */
.safe-pb {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}
.safe-mb {
    margin-bottom: max(1rem, env(safe-area-inset-bottom));
}

/* Mobile Floating Action Back to Top Button Safe Offset */
@media (max-width: 640px) {
    #back-to-top {
        bottom: max(16px, env(safe-area-inset-bottom)) !important;
        right: 16px !important;
        padding: 10px !important;
    }
}

/* ==============================================================================
   Sleek Framer-Grade Industrial Preloader (White Executive Light Theme)
   ============================================================================== */
#site-preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    background-image: 
        linear-gradient(to right, rgba(12, 45, 98, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(12, 45, 98, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
    box-shadow: 0 25px 50px -12px rgba(12, 45, 98, 0.12);
}

#site-preloader.preloader-hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

.preloader-logo-pulse {
    animation: preloaderPulse 1.8s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.preloader-bar-fill {
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 1px 8px rgba(12, 45, 98, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    #site-preloader {
        transition: none !important;
        display: none !important;
    }
}


