/* ==========================================================================
   VALEVANT ENGINEERING - GLOBAL STYLESHEET (MODERN SAAS)
   ========================================================================== */

:root {
    --navy: #002B5C;
    --teal: #008080;
    --white: #FFFFFF;
    --light-grey: #F8FAFC;
    --border: #E2E8F0;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { 
    box-sizing: border-box; 
}

body { 
    margin: 0; 
    font-family: var(--font-body); 
    background: var(--white); 
    color: var(--navy); 
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   1. NAVIGATION BAR
   ========================================================================== */
.navbar { 
    padding: 1rem 5%; 
    border-bottom: 1px solid rgba(226, 232, 240, 0.8); 
    position: sticky; 
    top: 0; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(8px);
    z-index: 100; 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.nav-logo { height: 45px; }

.nav-menu { 
    list-style: none; 
    display: flex; 
    align-items: center; 
    gap: 2rem; 
    margin: 0;
    padding: 0;
}

.nav-menu a { 
    text-decoration: none; 
    color: var(--navy); 
    font-weight: 600; 
    font-size: 0.9rem; 
    transition: 0.3s; 
}

.nav-menu a:not(.btn-outline):hover,
.nav-menu a.active {
    color: var(--teal);
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.footer a:hover { color: #fff; }

/* ==========================================================================
   2. HERO SECTION (MODERN GRADIENT)
   ========================================================================== */
.hero { 
    padding: 7rem 5%; 
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    text-align: center; 
    position: relative;
    overflow: hidden;
}

/* Subtle glowing orb effect behind the text */
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(0, 128, 128, 0.04) 0%, transparent 70%);
    z-index: 0;
}

.hero-content { 
    max-width: 800px; 
    margin: 0 auto; 
    position: relative; 
    z-index: 1; 
}

.badge { 
    background: var(--navy); 
    color: white; 
    padding: 5px 15px; 
    border-radius: 20px; 
    font-size: 0.75rem; 
    letter-spacing: 1px; 
    font-weight: 600; 
}

.hero h1 { 
    font-family: var(--font-head); 
    font-size: 3.5rem; 
    margin: 1.5rem 0; 
    line-height: 1.1;
}

.text-teal { color: var(--teal); }

.hero p { 
    font-size: 1.2rem; 
    color: #475569; 
    margin-bottom: 2.5rem; 
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ==========================================================================
   3. CONSULTANCY & INFO SECTIONS
   ========================================================================== */
.info-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header { 
    text-align: center; 
    margin-bottom: 3rem; 
}

.section-header h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.bg-light { background-color: var(--light-grey); }
.text-navy { color: var(--navy); }

/* Premium Service Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--teal);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    top: 0;
}

.service-card h3 {
    font-family: var(--font-head);
    margin-top: 0;
}

.service-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0, 43, 92, 0.1);
    border-color: var(--teal);
}

/* Training Banner */
.training-banner {
    background: var(--navy);
    color: white;
    padding: 4rem;
    border-radius: 12px;
    margin-top: 3rem;
    text-align: center;
}

.training-banner h3 { 
    color: var(--teal); 
    font-size: 2rem; 
    margin-bottom: 1rem; 
    font-family: var(--font-head);
}

.training-banner p { 
    margin-bottom: 2rem; 
    font-size: 1.1rem; 
    opacity: 0.9; 
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   4. SAAS TOOLS (GLASSMORPHISM)
   ========================================================================== */
.tool-section { 
    padding: 5rem 5%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.tool-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    align-items: center; 
}

/* Modern Glass Calculator Container */
.calc-container { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8); 
    padding: 3rem; 
    border-radius: 16px; 
    box-shadow: 0 20px 40px rgba(0, 43, 92, 0.08); 
    transition: transform 0.3s ease;
}

.calc-container:hover {
    box-shadow: 0 25px 50px rgba(0, 43, 92, 0.12);
}

.input-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1.5rem; 
    margin-bottom: 1.5rem; 
}

label { 
    display: block; 
    font-weight: 600; 
    font-size: 0.85rem; 
    margin-bottom: 0.5rem; 
    color: var(--navy);
}

/* Modern Inputs */
input { 
    width: 100%; 
    padding: 14px; 
    border: 2px solid var(--border); 
    border-radius: 8px; 
    font-size: 1rem; 
    transition: all 0.3s ease;
    background-color: #FAFAFA;
}

input:focus {
    outline: none;
    border-color: var(--teal);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.1);
}

.tool-graphic { text-align: center; }
.bg-icon { width: 120px; opacity: 0.1; margin-bottom: 1rem; }

/* ==========================================================================
   5. BUTTONS & UTILITIES
   ========================================================================== */
.btn-primary, .btn-action {
    display: inline-block;
    background-color: var(--teal);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-family: var(--font-head);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-action { width: 100%; padding: 1.2rem; margin-top: 1rem; }

.btn-primary:hover, .btn-action:hover {
    background-color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 43, 92, 0.15);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--navy);
    padding: 1rem 2rem;
    border: 2px solid var(--navy);
    border-radius: 6px;
    font-family: var(--font-head);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-secondary:hover { 
    background-color: var(--navy); 
    color: white; 
}

.btn-outline {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--teal);
    color: var(--teal) !important;
    border-radius: 4px;
}

.btn-outline:hover { 
    background-color: var(--teal); 
    color: white !important; 
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.footer { 
    background: var(--navy); 
    color: white; 
    padding: 5rem 5% 2rem; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 4rem; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.footer-logo { 
    height: 40px; 
    filter: brightness(0) invert(1); 
    margin-bottom: 1.5rem; 
}

.footer h4 { 
    color: var(--teal); 
    margin-bottom: 1.5rem; 
    font-family: var(--font-head);
}

.footer ul { 
    list-style: none; 
    padding: 0; 
}

.footer li { 
    margin-bottom: 0.8rem; 
    font-size: 0.9rem; 
    opacity: 0.8; 
}

.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    margin-top: 4rem; 
    padding-top: 2rem; 
    text-align: center; 
    font-size: 0.85rem; 
    opacity: 0.6; 
}

/* ==========================================================================
   7. MOBILE RESPONSIVENESS & HAMBURGER MENU
   ========================================================================== */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 21px;
    z-index: 101;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--navy);
    transition: all 0.3s ease-in-out;
}

@media (max-width: 900px) {
    .tool-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-logo { margin: 0 auto 1.5rem; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 75px; 
        gap: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.4s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 2rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 1.5rem 0; }
    
    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .training-banner { padding: 3rem 1.5rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; }
    
    .input-row { grid-template-columns: 1fr; gap: 1rem; }
    .input-group[style] { grid-column: auto !important; }
}

/* ==========================================================================
   8. CONTACT FORM
   ========================================================================== */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--teal);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 1.5rem;
    resize: vertical;
    background-color: #FAFAFA;
    transition: all 0.3s ease;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--teal);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.1);
}

/* ==========================================================================
   9. TOOL NAVIGATION BAR — shared across all tool/simulator pages
   ========================================================================== */
.tool-nav {
    background: var(--navy);
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 58px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-sizing: border-box;
}

.tool-nav-logo { height: 28px; flex-shrink: 0; display: block; }

.tool-nav-sep {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

.tool-nav-home {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
    flex-shrink: 0;
}
.tool-nav-home:hover { color: rgba(255,255,255,0.85); }

.tool-switcher {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
    justify-content: center;
}

.tool-pill {
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    padding: 5px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}
.tool-pill:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.07); }
.tool-pill.active { color: var(--navy); background: var(--teal); }

@media (max-width: 640px) {
    .tool-nav { padding: 0 12px; gap: 8px; }
    .tool-pill { font-size: 0.62rem; padding: 4px 9px; letter-spacing: 0; }
    .tool-nav-home { font-size: 0.68rem; }
}

/* ==========================================================================
   10. PLATFORM / TOOLS HUB PAGE
   ========================================================================== */
.platform-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #003d7a 100%);
    padding: 5.5rem 5% 4.5rem;
    text-align: center;
}

.platform-badge {
    display: inline-block;
    background: rgba(0,128,128,0.2);
    color: var(--teal);
    border: 1px solid rgba(0,128,128,0.35);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.platform-hero h1 {
    font-family: var(--font-head);
    color: white;
    font-size: 2.8rem;
    margin: 1rem 0 0.75rem;
    line-height: 1.1;
}

.platform-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.platform-section {
    padding: 4rem 5%;
    max-width: 1100px;
    margin: 0 auto;
}

.platform-section-label {
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin: 0 0 1.5rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.platform-card {
    background: white;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 2rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: inherit;
}
.platform-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--teal);
}
.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(0,43,92,0.1);
    border-color: rgba(0,128,128,0.35);
}

.platform-card-icon {
    width: 42px; height: 42px;
    background: rgba(0,128,128,0.08);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem;
    color: var(--teal);
    flex-shrink: 0;
}

.platform-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0.6rem;
}

.platform-card-title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
}

.status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}
.status-open      { background: rgba(16,185,129,0.1);  color: #059669; }
.status-protected { background: rgba(245,158,11,0.1);  color: #d97706; }
.status-soon      { background: rgba(100,116,139,0.1); color: #64748b; }

.platform-card-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.65;
    flex: 1;
    margin: 0 0 1.5rem;
}

.platform-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: auto;
}

.platform-card-tag {
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: var(--font-body);
}

.btn-launch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--navy);
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-launch:hover { background: var(--teal); }

/* ==========================================================================
   11. SIMULATOR PAGE SHELL — shared by moineau.html + fatigue_simulator.html
   ========================================================================== */
.sim-body {
    background: var(--light-grey);
    display: flex;
    justify-content: center;
    padding: 28px 20px;
    min-height: calc(100vh - 58px);
    box-sizing: border-box;
}

.sim-container {
    background: white;
    padding: 28px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 1200px;
    width: 100%;
    height: fit-content;
}

h2.sim-title {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--navy);
    font-size: 1.25rem;
    border-bottom: 2px solid var(--teal);
    padding-bottom: 10px;
    margin: 0 0 8px;
}

.sim-subtitle {
    font-size: 0.86rem;
    color: #64748b;
    margin: 0 0 22px;
    font-family: var(--font-body);
}

.result-box {
    background: var(--light-grey);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    min-height: 64px;
    line-height: 1.7;
}
