/* ═══════════════════════════════════════════════
   Pathway Nexus — Stylesheet
   ═══════════════════════════════════════════════ */

:root {
    /* Core palette — inspired by ERP enterprise blues */
    --navy: #0f1b2d;
    --navy-mid: #1b2a45;
    --blue: #2b579a;
    --blue-light: #3a6bc5;
    --teal: #0078d4;
    --gold: #d4920a;
    --gold-light: #e6a817;
    --gold-muted: rgba(212, 146, 10, 0.15);

    /* Neutrals */
    --ink: #1a1e2a;
    --slate: #4a5568;
    --slate-light: #8a94a6;
    --grey: #cbd2dc;
    --rule: #dfe3ea;
    --paper: #f7f8fa;
    --paper-warm: #f0f2f5;
    --white: #ffffff;
}

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

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

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─── */
h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    line-height: 1.15;
}

.section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1.2rem;
}

/* ─── Layout ─── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* ═══════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule);
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 1px 24px rgba(15, 27, 45, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--navy);
    text-decoration: none;
}

.logo span {
    color: var(--teal);
}

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

.nav-links a {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--slate);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

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

.nav-links .btn-nav {
    background: var(--blue);
    color: var(--white);
    padding: 0.55rem 1.3rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s;
}

.nav-links .btn-nav:hover {
    background: var(--teal);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    transition: all 0.3s;
}

/* ═══════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════ */
.hero {
    padding: 11rem 0 7rem;
    position: relative;
    background: linear-gradient(165deg, var(--white) 0%, var(--paper) 50%, var(--white) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(0, 120, 212, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 60% 70%, rgba(212, 146, 10, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--navy);
    margin-bottom: 1.8rem;
    letter-spacing: -0.02em;
}

.hero h1 em {
    font-style: italic;
    color: var(--teal);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--slate);
    max-width: 560px;
    margin-bottom: 2.8rem;
    line-height: 1.8;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-primary {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    padding: 0.85rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s;
}

.btn-primary:hover {
    background: var(--teal);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 120, 212, 0.2);
}

.btn-secondary {
    display: inline-block;
    color: var(--slate);
    padding: 0.85rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: all 0.25s;
}

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

/* ═══════════════════════════════════════════════
   Divider
   ═══════════════════════════════════════════════ */
.divider {
    border: none;
    height: 1px;
    background: var(--rule);
    margin: 0;
}

/* ═══════════════════════════════════════════════
   Problem Section
   ═══════════════════════════════════════════════ */
.problem {
    background: var(--navy);
    color: var(--paper);
    padding: 5rem 0;
    position: relative;
}

.problem::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--gold), var(--blue));
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.problem h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--white);
    letter-spacing: -0.01em;
}

.problem p {
    font-size: 1.05rem;
    color: var(--grey);
    line-height: 1.85;
}

.problem p + p {
    margin-top: 1.2rem;
}

.problem strong {
    color: var(--gold-light);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════
   Services
   ═══════════════════════════════════════════════ */
.services {
    padding: 7rem 0;
    background: var(--white);
}

.services-header {
    max-width: 600px;
    margin-bottom: 4rem;
}

.services-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 1rem;
    color: var(--navy);
}

.services-header p {
    color: var(--slate);
    font-size: 1.05rem;
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 2.2rem 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    border-color: var(--teal);
    box-shadow: 0 8px 30px rgba(15, 27, 45, 0.07);
    transform: translateY(-2px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--blue));
    border-radius: 6px 6px 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .card-number {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--rule);
    margin-bottom: 1rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--navy);
}

.service-card p {
    color: var(--slate);
    font-size: 0.92rem;
    line-height: 1.75;
}

.service-card .card-tag {
    display: inline-block;
    margin-top: 1.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(0, 120, 212, 0.2);
    border-radius: 3px;
}

/* ═══════════════════════════════════════════════
   Delivery Teams
   ═══════════════════════════════════════════════ */
.teams {
    background: var(--paper);
    padding: 7rem 0;
}

.teams-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
}

.teams h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 1.2rem;
    color: var(--navy);
}

.teams-intro {
    color: var(--slate);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.85;
}

.capability-list {
    list-style: none;
}

.capability-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--ink);
}

.capability-list li:first-child {
    border-top: 1px solid var(--rule);
}

.capability-list .cap-marker {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.55rem;
}

.capability-list .cap-label {
    font-weight: 500;
    color: var(--navy);
}

.capability-list .cap-desc {
    color: var(--slate);
    font-weight: 300;
}

.teams-aside {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 2.5rem;
    position: relative;
}

.teams-aside::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gold), var(--teal));
    border-radius: 6px 0 0 6px;
}

.teams-aside h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: var(--navy);
}

.teams-aside p {
    color: var(--slate);
    font-size: 0.92rem;
    line-height: 1.75;
}

.teams-aside .aside-stat {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
}

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

.aside-stat .stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    color: var(--blue);
    line-height: 1.2;
}

.aside-stat .stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-light);
    margin-top: 0.2rem;
}

/* ═══════════════════════════════════════════════
   About / Founder
   ═══════════════════════════════════════════════ */
.about {
    padding: 7rem 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.about-portrait {
    background: linear-gradient(145deg, var(--navy-mid) 0%, var(--navy) 100%);
    border-radius: 6px;
    aspect-ratio: 3/4;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.about-portrait::before {
    content: 'JT';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'DM Serif Display', serif;
    font-size: 6rem;
    color: var(--navy-mid);
    opacity: 0.6;
}

.portrait-note {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    padding: 0.5rem 0.8rem;
    border-radius: 3px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.about-body p {
    color: var(--slate);
    font-size: 1rem;
    line-height: 1.85;
}

.about-body p + p {
    margin-top: 1.2rem;
}

.about-body strong {
    color: var(--navy);
    font-weight: 500;
}

.credibility-markers {
    display: flex;
    gap: 0.6rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
    flex-wrap: wrap;
}

.cred-item {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--blue);
    letter-spacing: 0.02em;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(43, 87, 154, 0.2);
    border-radius: 3px;
    background: rgba(43, 87, 154, 0.03);
}

/* ═══════════════════════════════════════════════
   Contact / CTA
   ═══════════════════════════════════════════════ */
.contact {
    background: var(--navy);
    color: var(--paper);
    padding: 6rem 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--teal), var(--gold));
}

.contact-inner {
    max-width: 640px;
}

.contact .section-label {
    color: var(--gold-light);
}

.contact h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.contact p {
    color: var(--grey);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-method .method-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--slate-light);
}

.contact-method a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 2px;
    transition: border-color 0.2s;
}

.contact-method a:hover {
    border-color: var(--gold);
}

/* ═══════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════ */
footer {
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--slate-light);
    font-size: 0.78rem;
}

.footer-inner a {
    color: var(--slate-light);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .problem-grid,
    .teams-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-portrait {
        aspect-ratio: 16/9;
        max-height: 240px;
    }

    section { padding: 4rem 0; }
    .hero { padding: 8rem 0 5rem; }

    .service-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-links { display: none; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--rule);
        padding: 1.5rem 2rem;
        gap: 1rem;
    }

    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
    .hero-ctas { flex-direction: column; align-items: flex-start; }
    .contact-methods { flex-direction: column; gap: 1.5rem; }
    .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
    .aside-stat { flex-direction: column; gap: 1.2rem; }
}
