/* ============================================================
   UPSIDE — Website Styles
   Brand: Navy #1B2A4A, Teal #00B8A9, Orange #E8572A
   ============================================================ */

:root {
    --navy: #1B2A4A;
    --teal: #00B8A9;
    --orange: #E8572A;
    --light-grey: #F0F4F8;
    --white: #FFFFFF;
    --dark-text: #2D2D2D;
    --mid-text: #555555;
    --light-text: #999999;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-text);
    line-height: 1.7;
    font-size: 17px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    z-index: 100;
    padding: 0 24px;
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-tag {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--teal);
    margin-left: 12px;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

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

/* ============================================================
   HERO
   ============================================================ */

.hero {
    padding: 140px 24px 80px;
    background: var(--white);
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 44px;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 700px;
}

.hero-sub {
    font-size: 19px;
    color: var(--mid-text);
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
    padding: 72px 24px;
}

.bg-light {
    background: var(--light-grey);
}

.bg-navy {
    background: var(--navy);
}

.section h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 24px;
    line-height: 1.3;
}

.section h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--teal);
    margin-bottom: 16px;
}

.section p {
    color: var(--mid-text);
    margin-bottom: 16px;
    max-width: 640px;
}

/* ============================================================
   TWO COLUMN LAYOUT (Problem / Outcome)
   ============================================================ */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 16px;
}

.pain-item, .good-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 16px;
    color: var(--dark-text);
}

.pain-item:last-child, .good-item:last-child {
    border-bottom: none;
}

.good-item {
    color: var(--navy);
    font-weight: 500;
}

/* ============================================================
   STATS ROW
   ============================================================ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--teal);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   NAVY SECTION OVERRIDES
   ============================================================ */

.bg-navy h2.white,
h2.white {
    color: var(--white);
}

.bg-navy .white-sub,
.white-sub {
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
    font-size: 17px;
}

/* ============================================================
   PHASE CARDS (How It Works page)
   ============================================================ */

.phase-card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
}

.phase-card .phase-number {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    margin-right: 12px;
    vertical-align: middle;
}

.phase-card h3 {
    display: inline;
    vertical-align: middle;
    color: var(--navy);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
}

.phase-card .phase-weeks {
    display: inline;
    margin-left: 8px;
    font-size: 14px;
    color: var(--light-text);
    font-weight: 400;
}

.phase-card p {
    margin-top: 16px;
    color: var(--mid-text);
}

.phase-card .deliverables {
    margin-top: 16px;
}

.phase-card .deliverables-title {
    font-weight: 600;
    color: var(--navy);
    font-size: 15px;
    margin-bottom: 8px;
}

.phase-card .deliverable {
    padding: 6px 0;
    color: var(--dark-text);
    font-size: 15px;
    border-bottom: 1px solid #F0F4F8;
}

.phase-card .deliverable:last-child {
    border-bottom: none;
}

/* ============================================================
   ONGOING PARTNERSHIP BOX
   ============================================================ */

.partnership-box {
    background: var(--navy);
    border-radius: 8px;
    padding: 32px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.partnership-box h3 {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 12px;
}

.partnership-box p {
    color: rgba(255, 255, 255, 0.75);
    max-width: none;
}

/* ============================================================
   ABOUT PAGE — TIMELINE
   ============================================================ */

.story-section p {
    max-width: 680px;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.stat-card {
    background: var(--light-grey);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.stat-card .stat-number {
    color: var(--teal);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    color: var(--mid-text);
    font-size: 13px;
}

/* ============================================================
   CASE STUDIES PAGE
   ============================================================ */

.case-study-card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 32px;
}

.case-study-card h3 {
    color: var(--navy);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 8px;
}

.case-study-card .case-subtitle {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 24px;
}

.case-study-card .case-label {
    font-weight: 600;
    color: var(--navy);
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 8px;
}

.case-study-card p {
    max-width: none;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.result-item {
    background: var(--light-grey);
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}

.result-item .result-number {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--teal);
    margin-bottom: 2px;
}

.result-item .result-label {
    font-size: 12px;
    color: var(--mid-text);
}

.case-note {
    font-size: 13px;
    color: var(--light-text);
    margin-top: 20px;
    font-style: italic;
}

/* ============================================================
   LINKS AND CTAs
   ============================================================ */

.cta-link {
    display: inline-block;
    color: var(--teal);
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.cta-link:hover {
    opacity: 0.8;
}

.cta-link.light {
    color: var(--teal);
}

.text-link {
    color: var(--teal);
    font-weight: 500;
    text-decoration: none;
    font-size: 16px;
}

.text-link:hover {
    text-decoration: underline;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
    text-align: center;
    padding: 80px 24px;
}

.cta-section h2 {
    max-width: 600px;
    margin: 0 auto 12px;
}

.cta-sub {
    color: var(--mid-text);
    font-size: 16px;
    margin-bottom: 24px;
}

.contact-details {
    font-size: 17px;
}

.contact-details a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details .divider {
    color: var(--light-text);
    margin: 0 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    background: var(--navy);
    padding: 32px 24px;
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.footer-brand span {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--teal);
    margin-left: 8px;
    letter-spacing: 0;
}

.footer-contact {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-legal {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
}

/* ============================================================
   PROBLEM / OUTCOME CARDS (Homepage)
   ============================================================ */

.problem-outcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 8px;
}

.problem-card,
.outcome-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.card-header {
    padding: 20px 24px;
}

.card-header h2 {
    margin-bottom: 0;
    font-size: 20px;
    color: var(--white);
}

.card-header-problem {
    background: var(--navy);
}

.card-header-outcome {
    background: var(--teal);
}

.card-body {
    padding: 8px 24px 20px;
}

.card-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F0F4F8;
    font-size: 15px;
    color: var(--dark-text);
    line-height: 1.5;
}

.card-item:last-child {
    border-bottom: none;
}

.item-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-top: 1px;
}

.item-icon-problem {
    background: rgba(232, 87, 42, 0.1);
    color: var(--orange);
}

.item-icon-outcome {
    background: rgba(0, 184, 169, 0.12);
    color: var(--teal);
}

/* ============================================================
   OPTIONS GRID (Homepage — Three Options)
   ============================================================ */

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.option-card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.option-card.option-a {
    border-top: 3px solid var(--orange);
}

.option-card.option-b {
    border-top: 3px solid var(--navy);
}

.option-card.option-c {
    border: 2px solid var(--teal);
    border-top: 3px solid var(--teal);
    box-shadow: 0 4px 16px rgba(0, 184, 169, 0.12);
}

.option-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-text);
    margin-bottom: 8px;
}

.option-label-better {
    color: var(--teal);
}

.option-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 16px;
}

.option-items {
    flex-grow: 1;
    margin-bottom: 16px;
}

.option-item {
    padding: 8px 0;
    font-size: 14px;
    color: var(--mid-text);
    border-bottom: 1px solid #F0F4F8;
    padding-left: 20px;
    position: relative;
}

.option-item::before {
    content: "\00D7";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
    font-size: 16px;
}

.option-item:last-child {
    border-bottom: none;
}

.option-item-good {
    padding: 8px 0;
    font-size: 14px;
    color: var(--dark-text);
    font-weight: 500;
    border-bottom: 1px solid #F0F4F8;
    padding-left: 20px;
    position: relative;
}

.option-item-good::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
    font-size: 14px;
}

.option-item-good:last-child {
    border-bottom: none;
}

.option-cost {
    font-size: 13px;
    color: var(--mid-text);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #E2E8F0;
}

.option-risk {
    font-size: 13px;
    color: var(--light-text);
    margin-top: 8px;
}

.risk-highlight {
    color: var(--orange);
    font-weight: 500;
}

.option-highlight {
    font-size: 14px;
    font-weight: 600;
    color: var(--teal);
    margin-top: 8px;
}

.option-highlight:first-of-type {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #E2E8F0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero-sub {
        font-size: 17px;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .section {
        padding: 48px 24px;
    }

    .section h2 {
        font-size: 24px;
    }

    .phase-card {
        padding: 24px;
    }

    .case-study-card {
        padding: 24px;
    }

    .problem-outcome-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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