/* METALEVELS — Styles
   Visual Identity: Enterprise B2B, McKinsey/Gartner level
   ===================================================== */

/* CSS Variables */
:root {
    /* Primary Colors */
    --deep-navy: #0D1B2A;
    --midnight-blue: #1B2838;
    --slate: #2D3E50;

    /* Accent Colors - METALEVELS Blue */
    --blue: #2C93FE;
    --blue-dark: #1A7AE6;
    --blue-light: #60B0FF;
    --blue-pale: #E8F4FD;
    --amber: #F59E0B;
    --gold: #D4A853;

    /* Legacy aliases for compatibility */
    --teal: var(--blue);
    --teal-dark: var(--blue-dark);
    --light-teal: var(--blue-light);

    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --light-gray: #E2E8F0;
    --medium-gray: #64748B;
    --dark-gray: #334155;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0D1B2A 0%, #1B2838 50%, #0D1B2A 100%);
    --gradient-section: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    --gradient-node: radial-gradient(circle, #60B0FF 0%, transparent 70%);

    /* Shadows */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-nav: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);

    /* Typography */
    --font-heading: 'IBM Plex Serif', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* Spacing */
    --section-padding: 120px;
    --section-padding-mobile: 80px;
    --container-max: 1280px;
    --gutter: 32px;
    --gutter-tablet: 24px;
    --gutter-mobile: 16px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.2s ease-out;
}

a:hover {
    color: var(--teal-dark);
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--deep-navy);
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 2rem;
    font-weight: 500;
}

h4 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--deep-navy);
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-out;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--teal-dark);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--teal);
    color: var(--teal);
}

.btn-secondary:hover {
    background: rgba(44, 147, 254, 0.1);
    color: var(--teal);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease-out;
}

.nav.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-nav);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    transition: opacity 0.3s ease-out;
}

.logo-reversed {
    display: block;
}

.logo-full {
    display: none;
}

.nav.scrolled .logo-reversed {
    display: none;
}

.nav.scrolled .logo-full {
    display: block;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
}

.nav.scrolled .nav-toggle {
    color: var(--deep-navy);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease-out;
}

.nav.scrolled .nav-links a {
    color: var(--dark-gray);
}

.nav-links a:hover {
    color: var(--light-teal);
}

.nav.scrolled .nav-links a:hover {
    color: var(--teal);
}

.nav-cta {
    padding: 10px 24px;
    background: var(--teal);
    color: var(--white) !important;
    border-radius: 6px;
}

.nav-cta:hover {
    background: var(--teal-dark);
    color: var(--white) !important;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--deep-navy);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 27, 42, 0.85) 0%,
        rgba(27, 40, 56, 0.75) 50%,
        rgba(13, 27, 42, 0.85) 100%
    );
    z-index: 1;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--blue-light) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.05;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--gutter);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-intro {
    font-size: 1.25rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

.section-header-dark h2,
.section-header-dark .section-intro {
    color: var(--white);
}

.section-header-dark .section-intro {
    opacity: 0.8;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--light-teal);
    margin-bottom: 12px;
}

/* Services Section */
.services {
    position: relative;
    padding: var(--section-padding) 0;
    background: var(--gradient-section);
}

.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('images/bg-section-pattern-subtle.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease-out;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 147, 254, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
    color: var(--teal);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h4 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Case Study Section */
.case-study {
    padding: var(--section-padding) 0;
    background: var(--deep-navy);
}

.case-study-content {
    max-width: 1000px;
    margin: 0 auto;
}

.case-study-challenge {
    margin-bottom: 64px;
}

.case-study-challenge h3 {
    color: var(--white);
    margin-bottom: 24px;
}

.case-study-challenge p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    line-height: 1.7;
}

.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.metric {
    text-align: center;
    padding: 32px 24px;
    background: var(--midnight-blue);
    border-radius: 8px;
    border: 1px solid var(--slate);
}

.metric-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--light-teal);
    margin-bottom: 8px;
}

.metric-value svg {
    width: 24px;
    height: 24px;
}

.metric-value.gold {
    color: var(--gold);
}

.metric-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-study-methodology {
    margin-bottom: 64px;
}

.case-study-methodology h3 {
    color: var(--white);
    margin-bottom: 32px;
}

.methodology-phases {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.phase {
    position: relative;
    padding: 24px;
    background: var(--midnight-blue);
    border-radius: 8px;
    border: 1px solid var(--slate);
}

.phase-number {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--teal);
    margin-bottom: 12px;
}

.phase h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 8px;
}

.phase p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.case-study-quote blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 40px;
    border-left: 4px solid var(--teal);
    background: var(--midnight-blue);
    border-radius: 8px;
}

/* Training Section */
.training {
    position: relative;
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.training::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('images/bg-section-pattern-subtle.svg');
    background-size: cover;
    background-position: center bottom;
    opacity: 0.3;
    pointer-events: none;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.training-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease-out;
}

.training-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.training-duration {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(44, 147, 254, 0.1);
    color: var(--teal);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 16px;
}

.training-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.training-card > p {
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.training-topics {
    list-style: none;
}

.training-topics li {
    position: relative;
    padding-left: 20px;
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.training-topics li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
}

.training-cta {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--light-gray);
}

.training-cta p {
    color: var(--medium-gray);
    margin-bottom: 24px;
}

/* About Section */
.about {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-lead {
    font-size: 1.25rem;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

.about-text > p {
    color: var(--medium-gray);
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.pillar {
    text-align: center;
}

.pillar svg {
    width: 32px;
    height: 32px;
    color: var(--teal);
    margin-bottom: 16px;
}

.pillar h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.pillar p {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.about-visual {
    position: relative;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Contact Section */
.contact {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    margin-bottom: 24px;
}

.contact-info > p {
    color: var(--medium-gray);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.contact-details {
    margin-top: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark-gray);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--teal);
}

.contact-item a {
    font-size: 1.125rem;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark-gray);
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(44, 147, 254, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--deep-navy);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
}

.footer-tagline {
    color: var(--medium-gray);
    font-size: 0.9375rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--medium-gray);
    font-size: 0.9375rem;
    transition: color 0.2s ease-out;
}

.footer-links a:hover {
    color: var(--light-teal);
}

.footer-contact a {
    color: var(--medium-gray);
    font-size: 0.9375rem;
}

.footer-contact a:hover {
    color: var(--light-teal);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--slate);
    text-align: center;
}

.footer-bottom p {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-study-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .methodology-phases {
        grid-template-columns: repeat(3, 1fr);
    }

    .methodology-phases .phase:nth-child(4),
    .methodology-phases .phase:nth-child(5) {
        grid-column: span 1;
    }

    .training-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-out;
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--dark-gray);
        font-size: 1.125rem;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    /* Hero mobile adjustments */
    .hero {
        min-height: 90vh;
        padding-top: 80px;
    }

    .hero-content {
        padding: 0 var(--gutter);
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 32px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 28px;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 48px;
    }

    .section-intro {
        font-size: 1rem;
    }

    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 28px;
    }

    .service-card p {
        font-size: 0.9375rem;
    }

    /* Case study */
    .case-study-metrics {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .metric {
        padding: 24px 20px;
    }

    .metric-value {
        font-size: 2rem;
    }

    .methodology-phases {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .phase {
        padding: 20px;
    }

    .case-study-challenge p {
        font-size: 1rem;
    }

    /* Training grid */
    .training-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* About section */
    .about-pillars {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-lead {
        font-size: 1.125rem;
    }

    /* Contact */
    .contact-info > p {
        font-size: 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    /* Touch-friendly buttons */
    .btn {
        min-height: 48px;
        padding: 14px 28px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
        --gutter: 16px;
    }

    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    /* Navigation */
    .nav-container {
        padding: 16px var(--gutter);
    }

    .logo-img {
        height: 28px;
    }

    .nav-links {
        width: 100%;
        padding: 72px 24px 24px;
    }

    /* Hero */
    .hero {
        min-height: 85vh;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 28px;
    }

    .hero-ctas .btn {
        max-width: 100%;
        font-size: 0.9375rem;
    }

    /* Cards */
    .service-card,
    .training-card,
    .contact-form {
        padding: 20px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
    }

    .service-icon svg {
        width: 20px;
        height: 20px;
    }

    .service-card h4,
    .training-card h4 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.875rem;
    }

    /* Metrics */
    .metric {
        padding: 20px 16px;
    }

    .metric-value {
        font-size: 1.75rem;
    }

    .metric-label {
        font-size: 0.75rem;
    }

    /* Training */
    .training-duration {
        font-size: 0.6875rem;
        padding: 3px 10px;
    }

    .training-topics li {
        font-size: 0.8125rem;
    }

    /* Case study */
    .case-study-quote blockquote {
        font-size: 1rem;
        padding: 20px;
    }

    .phase {
        padding: 16px;
    }

    .phase h4 {
        font-size: 0.9375rem;
    }

    .phase p {
        font-size: 0.8125rem;
    }

    /* About pillars */
    .pillar h4 {
        font-size: 0.9375rem;
    }

    .pillar p {
        font-size: 0.8125rem;
    }

    /* Contact form */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 60px 0 32px;
    }

    .footer-logo-img {
        height: 32px;
    }

    .footer-tagline {
        font-size: 0.875rem;
    }

    .footer-links h4,
    .footer-contact h4 {
        font-size: 0.9375rem;
    }
}
