/* Custom Properties & Consulting Color System */
:root {
    /* Primary Colors */
    --primary: #0F172A;
    /* Midnight Blue */
    --secondary: #94A3B8;
    /* Soft Platinum */

    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-alt: #F8FAFC;
    /* Light Grey Alternative */

    /* Accents */
    --accent: #2563EB;
    /* Refined Steel Blue */
    --accent-hover: #1D4ED8;

    /* Typography */
    --text-primary: #0F172A;
    --text-light: #475569;

    /* Font Families */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout Variables */
    --section-padding: 130px 0;
    /* Huge spacious padding */
    --container-width: 1280px;
    --border-radius: 4px;
    /* Sharper edges for structured corporate feel */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 15px 35px rgba(15, 23, 42, 0.06);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Respect hardware acceleration for GSAP */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Lenis Smooth Scroll Requires html & body height configuration */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--bg-white);
    background-image: none;
    overflow-x: hidden;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    z-index: 9999;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2.2rem, 3.5vw, 3.5rem);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Utilities */
.text-accent {
    color: var(--accent);
}

.text-platinum {
    color: var(--secondary);
}

.text-white {
    color: var(--bg-white);
}

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

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

.bg-alt {
    background-color: var(--bg-alt);
}

.subtitle {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    /* More mature than heavy accent */
    margin-bottom: 1rem;
}

/* Layout Utilities (12 Column conceptual grid) */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--section-padding);
}

.center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 4rem;
}

.w-100 {
    width: 100%;
}

/* Refined Consulting Buttons (Subtle hover states) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    gap: 0.8rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.05rem;
}

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

.btn-primary:hover {
    background-color: var(--primary);
    /* Keep background solid */
    color: var(--bg-white);
    transform: scale(1.02);
    /* Max scale 1.02 per instructions */
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.15);
    /* Soft glow */
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(15, 23, 42, 0.2);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--bg-alt);
    border-color: rgba(15, 23, 42, 0.4);
    transform: scale(1.02);
}

/* Header Context */
.header .btn-primary {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
}

.header .btn-primary:hover {
    background-color: var(--bg-white);
    color: var(--primary);
}

.header.scrolled .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-white);
}

.header.scrolled .btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Hero Context */
.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--bg-white);
}

.hero .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--bg-white);
}

/* Sticky Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    padding: 30px 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    padding: 20px 0;
}

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

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-white);
    line-height: 1;
    transition: var(--transition);
    letter-spacing: -0.5px;
}

.header.scrolled .logo-main {
    color: var(--primary);
}

.logo-sub {
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 5px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-menu a.nav-link {
    text-decoration: none;
    color: var(--bg-white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    opacity: 0.85;
}

.nav-menu a.nav-link:hover {
    opacity: 1;
}

.header.scrolled .nav-menu a.nav-link {
    color: var(--text-light);
}

.header.scrolled .nav-menu a.nav-link:hover {
    color: var(--primary);
}

/* Elegant Underline Animation */
.nav-menu a.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--bg-white);
    transition: var(--transition);
}

.header.scrolled .nav-menu a.nav-link::after {
    background-color: var(--primary);
}

.nav-menu a.nav-link:hover::after,
.nav-menu a.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background: var(--bg-white);
    transition: var(--transition);
}

.header.scrolled .menu-toggle .bar {
    background: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
    background-color: var(--primary);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark sophisticated gradient, controlled by GSAP scaling */
    background: radial-gradient(circle at 70% 30%, #172442 0%, #0F172A 70%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 900px;
    margin: 0;
    /* Left aligned for structured feel */
    text-align: left;
}

.premium-badge {
    display: inline-block;
    padding: 8px 20px;
    border-left: 3px solid var(--accent);
    /* Minimal structured badge */
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero h1 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

/* Word wrapper styling for GSAP Word-by-Word setup */
.word-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    margin-right: 0.25em;
    /* Spacing between words */
}

.word-inner {
    display: inline-block;
    /* Transformation starts off-screen and is animated by GSAP */
}

.hero p.hero-sub {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-bottom: 3.5rem;
    max-width: 800px;
    font-weight: 300;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

/* Credibility Section - Minimal Interface */
.credibility {
    background-color: var(--bg-alt);
    padding: 0;
    position: relative;
    z-index: 10;
}

.stats-container {
    max-width: var(--container-width);
    margin: 0 auto;
    background: transparent;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 60px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    /* Architectural line */
}

.stat-item {
    text-align: left;
    padding-right: 20px;
}

.stat-item h3 {
    display: inline-block;
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 0;
    line-height: 1;
    letter-spacing: -2px;
}

.stat-item .stat-plus {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: 300;
    vertical-align: top;
    line-height: 1.2;
}

.stat-item p {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    margin-top: 10px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.about-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    font-weight: 300;
}

.partner-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    padding-top: 2rem;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 500;
    color: var(--primary);
    font-size: 1.05rem;
}

.partner-item i {
    color: var(--secondary);
    font-size: 1rem;
}

/* Premium Card (Structured) */
.glass-card {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(15, 23, 42, 0.03);
}

/* Framework Solutions */
.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.framework-card {
    background: var(--bg-white);
    padding: 45px 35px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(15, 23, 42, 0.05);
    /* Visible structure */
    text-align: left;
}

.framework-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(15, 23, 42, 0.1);
}

.framework-card .card-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    opacity: 0.8;
}

.framework-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary);
    line-height: 1.3;
}

.framework-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 300;
}

/* Process Timeline (Leadership Assessment) */
.dark-section {
    background-color: var(--primary);
    color: var(--bg-white);
}

.dark-section h2 {
    color: var(--bg-white);
}

.dark-section p {
    color: var(--secondary);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 80px auto 0;
    padding-bottom: 20px;
}

/* GSAP Animated Timeline Line */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-50%);
    /* Height will be controlled by GSAP */
    height: 0%;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 40px 60px;
    margin-bottom: 10px;
}

.timeline-item:nth-child(odd) {
    left: 50%;
    text-align: left;
    margin-top: -60px;
    /* Offset to alternate tightly */
}

/* First item reset margin */
.timeline-item:nth-child(2) {
    margin-top: 0;
}

.timeline-item:nth-child(even) {
    left: 0;
    text-align: right;
}

.timeline-icon {
    position: absolute;
    top: 45px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 0 0 8px var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-item:nth-child(odd) .timeline-icon {
    left: -16px;
}

.timeline-item:nth-child(even) .timeline-icon {
    right: -16px;
}

.timeline-content {
    background: transparent;
    padding: 0;
    border: none;
}

.timeline-content h4 {
    color: var(--bg-white);
    margin-bottom: 10px;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.timeline-content p {
    margin: 0;
    font-weight: 300;
}

/* Industries Minimal List */
.industry-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.industry-box {
    background: var(--bg-alt);
    padding: 20px 30px;
    border-radius: 50px;
    /* Pill shape for tags */
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.industry-box i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.industry-box h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--primary);
    font-family: var(--font-body);
    /* More standard for tags */
}

/* Statement Section */
.text-block-container {
    max-width: 950px;
    margin: 0 auto;
}

.statement-text {
    font-size: 2.6rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--primary);
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.statement-author {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Contact / Advisory Engagement */
.contact-section {
    background: var(--bg-white);
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    padding-top: 2rem;
}

.ci-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.ci-icon {
    width: 24px;
    height: 24px;
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 5px;
}

.ci-item h5 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 5px;
    color: var(--primary);
}

/* Modern Floating Label Form */
.form-container {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(15, 23, 42, 0.1);
    /* Visible structure */
}

.form-container h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.floating-form input,
.floating-form textarea,
.floating-form select {
    width: 100%;
    padding: 15px 0 10px;
    border: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.floating-form label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--text-light);
    pointer-events: none;
    transition: 0.2s ease all;
}

.floating-form input:focus+label,
.floating-form input:not(:placeholder-shown)+label,
.floating-form textarea:focus+label,
.floating-form textarea:not(:placeholder-shown)+label {
    top: -12px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

.floating-form input:focus,
.floating-form textarea:focus,
.floating-form select:focus {
    border-bottom-color: var(--primary);
    outline: none;
}

.floating-form select {
    appearance: none;
    color: var(--text-primary);
    cursor: pointer;
}

.error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    display: none;
    margin-top: 5px;
    font-weight: 500;
}

.input-group.error input,
.input-group.error textarea,
.input-group.error select {
    border-bottom-color: #ef4444;
}

.input-group.error .error-msg {
    display: block;
}

.form-success {
    text-align: center;
    padding: 30px;
}

.form-success.hidden {
    display: none;
}

.success-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Footer (Minimal Grid) */
.footer {
    background: var(--primary);
    color: var(--secondary);
    padding-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.brand-col p {
    color: var(--secondary);
    max-width: 320px;
    font-size: 0.95rem;
    font-weight: 300;
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 1.05rem;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

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

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

.footer-col ul a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--bg-white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    /* Structured square */
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    background: var(--bg-white);
    color: var(--primary);
}

.footer-bottom {
    background: transparent;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-legal a {
    color: var(--secondary);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--bg-white);
}

/* Visibility classes for GSAP */
.gsap-fade-up,
.gsap-fade-left,
.gsap-fade-right,
.gsap-stagger-item,
.gsap-timeline-item {
    opacity: 0;
    /* Hidden initially before GSAP triggers them */
}

/* Responsiveness overrides */
@media (max-width: 1024px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

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

    .timeline::before {
        left: 40px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 90px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
        margin-top: 0;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 24px;
        right: auto;
        top: 20px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 0;
    }

    .nav-menu {
        display: none;
    }

    /* Assume simple mobile menu logic */
    .hero {
        padding-top: 120px;
        text-align: left;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .framework-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
    }
}