@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --text-dark: #1b1c1d;
    --heading-blue: #2a3373;
    --navy-blue: #1a2357;
    --primary-blue: #2c54d5;
    --sky-blue: #35c4fa;
    --graphite: #3d3d3d;
    --bg-light: #f5f6fa;
    --bg-lighter: #f5fbff;
    --white: #ffffff;

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --font-poppins: 'Poppins', sans-serif;
}

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

body {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.italic { font-style: italic; }
.underline { text-decoration: underline; text-decoration-color: var(--primary-blue); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-blue);
    font-weight: 700;
}

.h1 { font-size: clamp(48px, 6vw, 72px); line-height: 1.1; margin-bottom: 20px; }
.h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.2; margin-bottom: 40px; }
.h4 { font-size: 24px; line-height: 1.4; margin-bottom: 15px; }

p { margin-bottom: 20px; color: var(--text-dark); }

a { color: var(--primary-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--heading-blue); }

/* Logo */
.logo-link {
    color: var(--heading-blue);
    display: inline-flex;
    align-items: center;
}
.logo-link:hover { color: var(--heading-blue); }
.site-logo { display: block; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    border-radius: 100px;
    padding: 16px 32px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
    border: none;
}
.btn-large { font-size: 24px; padding: 22px 40px; }

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    box-shadow: 0 10px 20px rgba(44, 84, 213, 0.15);
}
.btn-primary:hover {
    background-color: var(--sky-blue);
    color: var(--white) !important;
    box-shadow: 0 10px 24px rgba(53, 196, 250, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue) !important;
    border: 2px solid var(--primary-blue);
}
.btn-secondary:hover {
    background-color: var(--bg-lighter);
    border-color: var(--sky-blue);
    color: var(--sky-blue) !important;
}

/* ── Header ──────────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding: 15px 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}
.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 18px;
}
.nav-links a:hover { color: var(--primary-blue); }

/* ── Hamburger ───────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
    z-index: 200;
}
.hamburger:hover { background: var(--bg-light); }
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}
.hamburger span:not(:last-child) { margin-bottom: 6px; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.nav-overlay.visible { opacity: 1; pointer-events: all; }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-overlay { display: block; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: min(320px, 85vw);
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding: 90px 32px 40px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.12);
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 99;
    }
    .nav-links.open { right: 0; }
    .nav-links a {
        width: 100%;
        font-size: 22px;
        padding: 16px 0;
        border-bottom: 1px solid var(--bg-light);
        color: var(--heading-blue);
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links .btn { margin-top: 24px; width: 100%; text-align: center; }
    .header-cta { display: none; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 100px 0 120px; }

.badge {
    display: inline-block;
    background-color: var(--bg-lighter);
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 25px;
}

.hero .subtitle { font-size: 24px; color: var(--text-dark); margin-bottom: 50px; }

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.question { font-weight: 600; color: var(--text-dark); }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 100px 0; }

/* Cards */
.cards-grid { display: grid; gap: 30px; }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); }
@media (min-width: 992px) {
    .cards-grid.cols-2 > :last-child:nth-child(odd) {
        grid-column: span 2;
    }
}

.card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s;
}
.bg-light .card { background-color: var(--white); }
/* No lift on card hover — only subtle shadow */
.card:hover { box-shadow: 0 16px 45px rgba(0,0,0,0.08); }

.card-horizontal { display: flex; align-items: flex-start; gap: 25px; }

.card-icon {
    width: 60px; height: 60px;
    background-color: var(--bg-lighter);
    border-radius: 15px;
    margin-bottom: 25px;
    position: relative;
}
.card-icon::after {
    content: '';
    position: absolute;
    width: 24px; height: 24px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.card-icon.small { min-width: 50px; height: 50px; margin-bottom: 0; }
.card-icon.small::after { width: 20px; height: 20px; }

/* Steps */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1140px;
    margin: 0 auto;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 2;
    flex: 1;
    text-align: center;
}
.step-circle {
    width: 80px; height: 80px;
    background-color: var(--white);
    border: 3px solid var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px; font-weight: 700;
    color: var(--primary-blue);
    box-shadow: 0 10px 20px rgba(44, 84, 213, 0.1);
    flex-shrink: 0;
}
.step-desc {
    font-size: 15px;
    color: var(--graphite);
    line-height: 1.4;
    margin: 0;
    max-width: 180px;
}
.step-line {
    flex: 1;
    height: 3px;
    background-color: var(--bg-light);
    margin: 40px 10px 0;
    position: relative;
}

/* Canvas */
.canvas-container {
    margin: 60px 0;
    height: 250px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg-lighter);
}
#expertiseCanvas { width: 100%; height: 100%; display: block; }

.bottom-cta { display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    background-color: var(--bg-light);
    padding: 72px 0 40px;
}

/* Top row: brand + links grouped left, CTA pushed to far right */
.footer-cols {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 56px;
}

.footer-brand-col {
    flex-shrink: 0;
    margin-right: 110px;
}

.footer-nav-col {
    flex-shrink: 0;
}

.footer-cta-col {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

/* Col title (Links) */
.footer-col-title {
    font-family: var(--font-poppins);
    font-size: 21px;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 16px;
}

/* Col 1: brand */
.footer-brand-col .footer-logo-img {
    height: 44px;
    width: auto;
    margin-bottom: 14px;
    display: block;
}
.footer-email {
    display: block;
    font-family: var(--font-poppins);
    color: var(--graphite);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 18px;
}
.footer-email:hover { color: var(--primary-blue); }

.btn-upwork {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 100px;
    padding: 10px 20px;
    font-family: var(--font-poppins);
    font-size: 15px;
    font-weight: 600;
    color: var(--graphite);
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 4px;
}
.btn-upwork:hover {
    border-color: var(--sky-blue);
    color: var(--sky-blue);
    background-color: var(--bg-light);
    box-shadow: 0 4px 12px rgba(53, 196, 250, 0.1);
}
.btn-upwork .footer-upwork-img {
    height: 20px;
    width: auto;
    display: block;
    margin-top: -1px; /* visual alignment tweak */
}

/* Col 2: links */
.footer-nav-col a {
    display: block;
    font-family: var(--font-poppins);
    color: var(--graphite);
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 14px;
    line-height: 1.5;
}
.footer-nav-col a:last-child { margin-bottom: 0; }
.footer-nav-col a:hover { color: var(--primary-blue); }

/* Divider */
.footer-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin: 0;
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    font-family: var(--font-poppins);
    color: var(--graphite);
    font-size: 14px;
    font-weight: 500;
}
.footer-links a:hover { color: var(--primary-blue); }

.footer-socials {
    display: flex;
    gap: 20px;
}
.footer-socials a {
    color: var(--graphite);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.footer-socials a:hover { color: var(--primary-blue); }

/* ── Scroll-to-top button ────────────────────────────────── */
.scroll-top-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(44,84,213,0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, background-color 0.2s;
}
.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.scroll-top-btn:hover { background: var(--sky-blue); }
.scroll-top-btn svg { width: 20px; height: 20px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 992px) {
    .h1 { font-size: 48px; }
    .steps-container { flex-direction: column; gap: 40px; align-items: center; }
    .step-line { display: none; }
    .step-desc { max-width: 320px; font-size: 16px; }
}

@media (max-width: 768px) {
    /* Footer mobile: 2 columns for brand/links, button full width below */
    .footer-cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 36px 20px;
        padding-bottom: 40px;
    }
    .footer-brand-col { margin-right: 0; grid-column: 1; }
    .footer-nav-col { grid-column: 2; }
    .footer-cta-col {
        margin-left: 0;
        width: 100%;
        grid-column: span 2;
    }
    .footer-cta-col .btn {
        width: 100%;
        text-align: center;
        display: block;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    .footer-links { gap: 16px; }
    .footer-socials {
        width: 100%;
        justify-content: center;
    }
    .cards-grid { grid-template-columns: 1fr; }
    .cols-2 { grid-template-columns: 1fr; }
}
