/* ============================
   PWC Industrial Services
   Optimized Style System
   ============================ */

/* === FONT FACES === */
@font-face { font-family: 'Glancyr'; src: url('../fonts/Glancyr-Thin.otf') format('opentype'); font-weight: 100; }
@font-face { font-family: 'Glancyr'; src: url('../fonts/Glancyr-Regular.otf') format('opentype'); font-weight: 400; }
@font-face { font-family: 'Glancyr'; src: url('../fonts/Glancyr-Medium.otf') format('opentype'); font-weight: 500; }
@font-face { font-family: 'Glancyr'; src: url('../fonts/Glancyr-SemiBold.otf') format('opentype'); font-weight: 600; }
@font-face { font-family: 'Glancyr'; src: url('../fonts/Glancyr-Bold.otf') format('opentype'); font-weight: 700; }

/* === DESIGN TOKENS === */
:root {
    --color-navy: #0a1628;
    --color-blue-primary: #0052cc;
    --color-blue-bright: #1a6dff;
    --color-bg-dark: #0a0e17;
    --color-bg-card: #ffffff;
    --color-text-white: #ffffff;
    --color-text-light: #d0d8e8;
    --color-text-muted: #8899b3;
    --color-text-dark: #1a1a2e;
    --font-primary: 'Glancyr', 'Segoe UI', sans-serif;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    line-height: 1.5;
    overflow-x: hidden;
}

/* === REUSABLE CLASSES === */
.section { padding: 2.5rem 1.5rem; position: relative; }
.container { max-width: 1500px; margin: 0 auto; width: 100%; }

.title-plate {
    display: inline-block;
    background: rgba(10, 22, 40, 0.6);
    padding: 0.8rem 1.5rem;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-left: 4px solid var(--color-blue-primary);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.title-plate.center { display: table; margin-left: auto; margin-right: auto; text-align: center; border-left: none; border-bottom: 4px solid var(--color-blue-primary); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100ms { transition-delay: 0.1s; }
.delay-200ms { transition-delay: 0.2s; }
.delay-300ms { transition-delay: 0.3s; }
.delay-400ms { transition-delay: 0.4s; }
.delay-500ms { transition-delay: 0.5s; }
.delay-600ms { transition-delay: 0.6s; }

/* Typography */
h1, h2, h3 { text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; line-height: 1.1; }
h1 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 0; }
h2.section-title { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 0; }
.section-label { 
    display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.3em; 
    color: var(--color-blue-bright); font-weight: 600; margin-bottom: 0.3rem;
}
.section-label.center { text-align: center; }
.title-bar { width: 40px; height: 3px; background: var(--color-blue-primary); margin: 1rem 0 1.5rem; }
.title-bar.center { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { 
    display: inline-block; padding: 0.9rem 2rem; font-size: 0.85rem; font-weight: 700; 
    text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: 0.3s; 
    border-radius: 2px;
}
.btn-primary { background: var(--color-blue-primary); color: white; border: none; }
.btn-primary:hover { background: var(--color-blue-bright); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 82, 204, 0.3); }
.btn-outline { border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--color-navy); }

/* Hero Actions Container */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}


/* ========================
   NAVBAR (Expanded & Accessible)
   ======================== */
.navbar { 
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; 
    display: flex; justify-content: center; padding: 1rem 0;
    transition: background 0.3s;
}
.nav-pill { 
    display: flex; align-items: center; background: rgba(10, 22, 40, 0.9); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; padding: 0.5rem 1.5rem; 
    -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
    width: auto; min-width: 450px; justify-content: space-between;
}
.nav-link { 
    padding: 0.8rem 1.5rem; font-size: 0.85rem; font-weight: 700; 
    text-transform: uppercase; color: white; border-radius: 50px;
    transition: 0.3s;
}
.nav-link:hover { color: var(--color-blue-bright); }
.nav-link.active { background: var(--color-blue-primary); box-shadow: 0 4px 15px rgba(0, 82, 204, 0.4); }

/* ========================
   HERO (Compact)
   ======================== */
.hero-section { 
    min-height: 90vh; display: flex; flex-direction: column; justify-content: center; 
    z-index: 2; padding-top: 4rem; padding-bottom: 2rem;
}
.hero-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-logo-col { display: flex; justify-content: center; }
.logo-scan-container { position: relative; width: 130%; max-width: 450px; }
.brand-logo-large { width: 140%; height: auto; display: block; filter: drop-shadow(0 0 30px rgba(0, 82, 204, 0.25)); }

.hero-text-col { position: relative; z-index: 2; }
.hero-subtitle { 
    font-size: 1.25rem; color: #eee; margin: 1.5rem 0 2rem; 
    max-width: 550px; line-height: 1.6; text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ========================
   QUICK CARDS (Minimalist)
   ======================== */
.quick-access-container { margin-top: 3rem; position: relative; z-index: 10; }
.quick-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.q-card { 
    background: #ffffff;
    border-radius: 8px; 
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    border: 1px solid #eef2f6;
    position: relative;
    overflow: hidden;
}
.q-card:hover { transform: translateY(-12px); box-shadow: 0 25px 60px rgba(0,0,0,0.2); border-color: var(--color-blue-primary); }

.q-icon-box {
    font-size: 2.2rem;
    background: #f8fafc;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    transition: 0.3s;
}
.q-card:hover .q-icon-box { background: var(--color-blue-primary); border-color: var(--color-blue-primary); transform: scale(1.1); }

.q-content h3 { font-size: 1.15rem; color: #1a202c; margin-bottom: 0.75rem; }
.q-content p { font-size: 0.95rem; color: #4a5568; line-height: 1.5; margin-bottom: 1.5rem; }
.q-link { font-size: 0.8rem; font-weight: 800; color: var(--color-blue-primary); text-transform: uppercase; letter-spacing: 0.05em; }

/* ========================
   IMMERSIVE BG & OVERLAY
   ======================== */
.immersive-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 0; overflow: hidden; }
.immersive-img { position: absolute; top: -10vh; left: 0; width: 100%; height: 120vh; object-fit: cover; will-change: transform; }
.immersive-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, 
        rgba(6, 10, 18, 0.45) 0%, 
        rgba(6, 10, 18, 0.75) 50%, 
        rgba(6, 10, 18, 0.95) 100%
    );
}

/* ========================
   ABOUT SECTION
   ======================== */
.about-section { padding-top: 3rem; } /* Account for cards overlap */
.compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text p { font-size: 1rem; color: var(--color-text-light); line-height: 1.7; }

/* Tabs inside About */
.tabs { list-style: none; display: flex; gap: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.5rem; }
.tab { padding-bottom: 0.5rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--color-text-muted); cursor: pointer; position: relative; }
.tab.active { color: white; }
.tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--color-blue-primary); }
.tab-pane { display: none; animation: fadeIn 0.4s ease forwards; }
.tab-pane.active { display: block; }
.tab-pane p { font-size: 0.95rem; }

/* Legacy Content (History Tab) */
.legacy-content { display: flex; flex-direction: column; gap: 0.8rem; }
.legacy-img {
    width: 100%; max-height: 220px; object-fit: cover; border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}
.legacy-content p { font-size: 0.9rem; color: var(--color-text-light); line-height: 1.7; }

/* ========================
   SERVICES SECTION
   ======================== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service-card { background: white; border-radius: 4px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-premium); }
.card-accent { height: 4px; background: var(--color-blue-primary); }
.card-image { height: 180px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; color: var(--color-text-dark); }
.card-content h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-content p { font-size: 0.85rem; color: #555; margin-bottom: 1.5rem; flex: 1; }
.cert-placeholder { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; background: #f0f4f8; padding: 0.3rem 0.6rem; border-radius: 2px; align-self: flex-start; }

/* ========================
   TRUST BAR
   ======================== */
.trust-bar { padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; position: relative; z-index: 2; }
.trust-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-text-muted); margin-bottom: 1.5rem; display: block; }
.trust-logos { display: flex; justify-content: center; align-items: center; gap: 4rem; flex-wrap: wrap; opacity: 0.6; }
.trust-logo { font-size: 1rem; font-weight: 700; color: white; letter-spacing: 0.1em; }

/* ========================
   CAPABILITIES SECTION
   ======================== */
.capabilities-section { padding-top: 3rem; padding-bottom: 3rem; }
.capabilities-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
    margin-top: 1rem;
}
.capability-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.capability-item::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--color-blue-primary), var(--color-blue-bright));
    opacity: 0; transition: opacity 0.3s;
}
.capability-item:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(0, 82, 204, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 82, 204, 0.15);
}
.capability-item:hover::before { opacity: 1; }
.cap-icon { font-size: 2rem; margin-bottom: 1rem; }
.capability-item h3 {
    font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 0.6rem; color: var(--color-text-white);
}
.capability-item p {
    font-size: 0.85rem; color: var(--color-text-light); line-height: 1.6;
}

/* ========================
   BRANDS SECTION
   ======================== */
.brands-section { padding-top: 2rem; padding-bottom: 3rem; }
.brands-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
    margin-top: 1rem;
}
.brand-item {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 1.5rem 2rem;
    display: flex; align-items: center; justify-content: center;
    min-height: 90px;
    transition: all 0.4s var(--transition-smooth);
}
.brand-item:hover {
    background: #ffffff;
    border-color: var(--color-blue-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 82, 204, 0.2);
}
.brand-item img {
    max-height: 50px; max-width: 140px; width: auto; height: auto;
    object-fit: contain;
    opacity: 0.75;
    transition: all 0.3s;
}
.brand-item:hover img { opacity: 1; transform: scale(1.08); }

/* ========================
   CONTACT SECTION
   ======================== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.7rem; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 2px; }
.form-group input:focus { outline: none; border-color: var(--color-blue-primary); }
.form-desc { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 1.5rem; }
.info-list.compact .info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.info-item .icon { font-size: 1.2rem; }
.info-item strong { display: block; font-size: 0.75rem; text-transform: uppercase; color: var(--color-blue-bright); }
.info-item p { font-size: 0.9rem; color: var(--color-text-light); }
.map-wrapper.compact { border-radius: 4px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); height: 250px; }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ========================
   FOOTER
   ======================== */
footer { background: #03060c; padding: 4rem 1.5rem 2rem; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 2rem; }
.footer-info h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.footer-info p { font-size: 0.8rem; color: var(--color-text-muted); }
.footer-links { display: flex; gap: 2rem; justify-content: flex-end; }
.footer-links a:hover { color: var(--color-blue-bright); }
.footer-bottom { text-align: center; padding-top: 2rem; font-size: 0.7rem; color: var(--color-text-muted); }

/* ========================
   MODAL
   ======================== */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.modal-content { background: var(--color-bg-dark); border: 1px solid var(--color-blue-primary); padding: 3rem; width: 90%; max-width: 600px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 4px; }
.close-modal { position: absolute; right: 1.5rem; top: 1rem; font-size: 1.5rem; cursor: pointer; }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
    .nav-pill { min-width: auto; width: 90%; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
    .brands-grid { grid-template-columns: repeat(4, 1fr); }
    .compact-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .section { padding: 2rem 1rem; }
    .navbar { padding: 0.5rem 0; }
    .nav-pill { padding: 0.3rem 1rem; }
    .nav-link { padding: 0.6rem 0.8rem; font-size: 0.75rem; }
    
    .hero-split { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-logo-col { order: -1; }
    .logo-scan-container { max-width: 250px; margin: 0 auto; }
    
    .services-grid { grid-template-columns: 1fr; }
    .capabilities-grid { grid-template-columns: 1fr 1fr; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    
    .hero-section { padding-top: 6rem; }
    .hero-subtitle { margin-left: auto; margin-right: auto; font-size: 1.1rem; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .btn-outline {
        margin-left: 0;
    }

    .logo-scan-container {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .brand-logo-large {
        width: 100%;
    }
}


@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
