/* ============================================
   EBITDA Capital FZCO
   Aesthetic: Refined Corporate — "The Quiet Authority"
   ============================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Derived from logo: steel blue #2c5f8a + slate grey #4a5568 */
    --navy: #0f1d2f;
    --navy-mid: #162840;
    --navy-light: #1e3350;
    --steel: #2c5f8a;
    --steel-light: #3a7ab5;
    --steel-dim: rgba(44, 95, 138, 0.12);
    --slate: #4a5568;
    --slate-light: #718096;
    --border-dark: #243448;
    --border-light: #ddd8d0;

    --ivory: #faf8f5;
    --warm-white: #f5f2ed;
    --white: #ffffff;
    --text-dark: #1a1a2e;
    --text-body: #3d3d50;
    --text-muted: #6b7280;
    --text-on-dark: #c8cdd5;
    --text-bright: #e8ecf0;

    /* Typography */
    --font-display: 'Libre Baskerville', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --container: 1120px;
    --section-pad: clamp(5rem, 10vw, 8rem);
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--navy);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Grain */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ============================================
   Navigation — white, logo prominent
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
    padding: 0.4rem 0;
}

.nav--scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 0.2rem 0;
}

.nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav__logo-img {
    height: 90px;
    width: auto;
}

.nav__logo-text {
    display: none;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 102;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    transform-origin: center;
}

.nav__toggle span:nth-child(2) {
    width: 24px;
}

/* Overlay behind mobile menu — hidden for dropdown style */
.nav__overlay {
    display: none;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate);
    letter-spacing: 0.03em;
    transition: color 0.25s var(--ease);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1.5px;
    background: var(--steel);
    transition: width 0.3s var(--ease);
}

.nav__link:hover { color: var(--text-dark); }
.nav__link:hover::after { width: 100%; }

.nav__link--cta {
    color: var(--white);
    background: var(--steel);
    padding: 0.55rem 1.4rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
    background: var(--steel-light);
    color: var(--white);
    transform: translateY(-1px);
}

/* ============================================
   Hero — deep navy, big typography
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(170deg, var(--navy) 0%, var(--navy-mid) 50%, #0c1825 100%);
    overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; }

.hero__line {
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, rgba(44, 95, 138, 0.12) 30%, rgba(44, 95, 138, 0.12) 70%, transparent 100%);
}

.hero__line--1 { left: 25%; }
.hero__line--2 { left: 50%; }
.hero__line--3 { left: 75%; }

.hero__content {
    position: relative;
    text-align: center;
    padding: 7rem 2rem 4rem;
    max-width: 880px;
}

.hero__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--steel-light);
    border: 1px solid rgba(44, 95, 138, 0.3);
    background: rgba(44, 95, 138, 0.08);
    padding: 0.5rem 1.5rem;
    border-radius: 3px;
    margin-bottom: 2.5rem;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6.5vw, 4.8rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-bright);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.hero__title-line { display: block; }

.hero__title em {
    color: var(--steel-light);
    font-style: italic;
}

.hero__subtitle {
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    color: var(--text-on-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.7;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.25s var(--ease);
    cursor: pointer;
}

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

.btn--primary:hover {
    background: var(--steel-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 95, 138, 0.3);
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-on-dark);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
}

.hero__scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--steel), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Section base
   ============================================ */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.section--light {
    background: var(--ivory);
    color: var(--text-body);
}

.section--dark {
    background: var(--navy);
}

.section--accent {
    background: var(--navy-mid);
}

.section__header {
    margin-bottom: clamp(3rem, 5vw, 4rem);
    text-align: center;
}

.section__label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 1rem;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.section--light .section__title { color: var(--text-dark); }
.section--dark .section__title { color: var(--text-bright); }

/* ============================================
   About
   ============================================ */
.about__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2.5rem, 4vw, 3.5rem);
}

.about__lead {
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.about__text {
    max-width: 680px;
    text-align: center;
}

.about__text p {
    color: var(--text-body);
    line-height: 1.85;
    font-size: 0.98rem;
    margin-bottom: 1rem;
}

.about__text strong { color: var(--text-dark); }

.about__stats {
    display: flex;
    flex-direction: row;
    gap: 0;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    background: var(--white);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.75rem 2rem;
}

.stat + .stat {
    border-left: 1px solid var(--border-light);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat__number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--steel);
    line-height: 1;
}

.stat__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================
   Services
   ============================================ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.service {
    background: var(--navy-mid);
    padding: clamp(2rem, 3vw, 2.75rem);
    transition: background 0.3s var(--ease);
    border-right: 1px solid var(--border-dark);
}

.service:last-child { border-right: none; }

.service:hover {
    background: var(--navy-light);
}

.service__number {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--steel);
    display: block;
    margin-bottom: 1.5rem;
}

.service__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-bright);
    margin-bottom: 1rem;
}

.service__desc {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-on-dark);
}

/* Expertise */
.expertise {
    border-top: 1px solid var(--border-dark);
    padding-top: clamp(3rem, 5vw, 4rem);
    margin-bottom: clamp(3rem, 5vw, 4rem);
}

.expertise__heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-bright);
    margin-bottom: 2rem;
}

.expertise__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.expertise__item {
    padding: 1.5rem;
    border-left: 2px solid var(--border-dark);
    transition: border-color 0.3s var(--ease);
}

.expertise__item:hover { border-left-color: var(--steel); }

.expertise__item h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.6rem;
}

.expertise__item p {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--text-on-dark);
}

/* Sectors */
.sectors {
    padding-top: clamp(2.5rem, 4vw, 3.5rem);
    border-top: 1px solid var(--border-dark);
}

.sectors__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 1.25rem;
}

.sectors__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sectors__list span {
    padding: 0.45rem 1rem;
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-on-dark);
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.sectors__list span:hover {
    border-color: var(--steel);
    color: var(--text-bright);
}

/* ============================================
   Leadership
   ============================================ */
.leader {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: clamp(3rem, 5vw, 4.5rem);
    align-items: start;
}

.leader__portrait {
    position: sticky;
    top: calc(50vh - 275px);
}

.leader__img-wrap {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.leader__img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: filter 0.5s var(--ease);
    filter: grayscale(15%);
}

.leader__img-wrap:hover .leader__img {
    filter: grayscale(0%);
}

.leader__header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--steel);
}

.leader__name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.leader__role {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--steel);
    letter-spacing: 0.02em;
}

.leader__intro,
.leader__bio {
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--text-body);
    margin-bottom: 1rem;
}

.leader__expertise,
.leader__career,
.leader__education {
    margin-top: 2rem;
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.leader__expertise h4,
.leader__career h4,
.leader__education h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.leader__expertise-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.leader__expertise-list li {
    font-size: 0.82rem;
    color: var(--text-body);
    line-height: 1.5;
    padding-left: 0.9rem;
    position: relative;
}

.leader__expertise-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.55rem;
    width: 4px; height: 4px;
    background: var(--steel);
    border-radius: 50%;
}

.leader__positions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.position {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1.15rem;
    background: var(--ivory);
    border-radius: 3px;
    border-left: 2px solid var(--steel-dim);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.position:hover {
    transform: translateX(3px);
    border-left-color: var(--steel);
}

.position strong {
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.position strong span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.position > span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Education research note */
.leader__research {
    margin-top: 1rem;
    padding: 0.85rem 1.15rem;
    background: var(--ivory);
    border-left: 2px solid var(--steel);
    border-radius: 3px;
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
}

.leader__research em { color: var(--text-dark); }

/* ============================================
   Contact
   ============================================ */
.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
    padding: clamp(3rem, 5vw, 4.5rem);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    background: var(--navy);
}

.contact__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--text-bright);
    line-height: 1.25;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact__subtitle {
    color: var(--text-on-dark);
    font-size: 0.95rem;
    opacity: 0.7;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__email {
    font-size: 1rem;
    font-weight: 500;
    color: var(--steel-light);
    padding: 0.85rem 1.25rem;
    border: 1px solid rgba(44, 95, 138, 0.3);
    border-radius: 3px;
    text-align: center;
    transition: all 0.25s var(--ease);
}

.contact__email:hover {
    background: rgba(44, 95, 138, 0.1);
    border-color: var(--steel);
    color: var(--text-bright);
}

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

.contact__location {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contact__location-city {
    font-size: 0.92rem;
    color: var(--text-bright);
    font-weight: 500;
}

.contact__location-type {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-on-dark);
    opacity: 0.5;
}

.contact__linkedin {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--steel-light);
    transition: color 0.25s var(--ease);
}

.contact__linkedin:hover { color: var(--text-bright); }

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #0a1520;
    border-top: 1px solid var(--border-dark);
    padding: 1.75rem 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 0.88rem;
    color: var(--text-on-dark);
    opacity: 0.5;
}

.footer__copy {
    font-size: 0.78rem;
    color: var(--text-on-dark);
    opacity: 0.35;
}

/* ============================================
   Reveal animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .services__grid { grid-template-columns: 1fr; }
    .service { border-right: none; border-bottom: 1px solid var(--border-dark); }
    .service:last-child { border-bottom: none; }
    .expertise__items { grid-template-columns: 1fr; }
    .leader { grid-template-columns: 200px 1fr; }
}

@media (max-width: 768px) {
    .nav__toggle { display: flex; }

    .nav__menu {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--white);
        border-top: 1px solid var(--border-light);
        border-bottom: 1px solid var(--border-light);
        flex-direction: column;
        padding: 1.25rem 2rem;
        gap: 0.75rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s var(--ease-out), opacity 0.25s var(--ease), padding 0.35s var(--ease-out);
        padding-top: 0;
        padding-bottom: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }

    .nav__menu--open {
        max-height: 320px;
        opacity: 1;
        padding: 1.25rem 2rem;
    }

    .nav__toggle[aria-expanded="true"] span:first-child {
        transform: translateY(8px) rotate(45deg);
    }
    .nav__toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .nav__toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav__link { font-size: 0.95rem; color: var(--text-dark); }
    .nav__link--cta { text-align: center; margin-top: 0.5rem; }

    .about__stats { flex-direction: row; }

    .leader { grid-template-columns: 1fr; }
    .leader__portrait { position: static; max-width: 220px; margin: 0 auto; transform: none; }

    .contact__inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: clamp(2rem, 4vw, 3rem);
        gap: 2.5rem;
    }
    .contact__locations {
        justify-items: center;
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .contact__linkedin { text-align: center; }
    .contact__email { font-size: 0.82rem; word-break: keep-all; white-space: nowrap; }

    .footer__inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero__scroll { display: none; }
}

@media (max-width: 480px) {
    .about__stats { flex-direction: column; }
    .contact__locations { grid-template-columns: 1fr; }
    .nav__logo-img { height: 44px; }
}
