/* STYLE RESET */

html {
    box-sizing: border-box;
    font-size: 16px;
    scroll-padding-top: 150px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.45rem;
    font-weight: 600;
}

ol,
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

button,
.button,
input[type="submit"],
input[type="button"] {
    font-family: 'Montserrat', sans-serif;
}

a {
    cursor: pointer;
}

/* COLOURS */

:root {
    --primary: rgb(0, 62, 75);
    --primary-a: rgb(0, 30, 36);
    --primary-b: rgb(0, 94, 114);
    --primary-c: rgb(0, 125, 152);
    --secondary: rgb(206, 163, 61);
    --secondary-a: rgb(225, 199, 102);
    --secondary-b: rgb(238, 220, 140);
    --text-primary: rgb(28, 28, 28);
    --text-secondary: rgb(249, 249, 249);
}

/* MAIN CSS */

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 3rem clamp(1.25rem, 4vw, 5rem);
}

/* Header */
.site-header {
    background-color: var(--primary);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container{
  padding-top: 0;
  padding-bottom: 0;
  padding-left: clamp(1.25rem, 4vw, 5rem);
  padding-right: clamp(1.25rem, 4vw, 5rem);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

/* Logo */
.logo img {
    display: block;
    width: 250px;
    height: auto;
}

/* Nav */
.main-nav {
    position: relative;
}

.nav-toggle {
    background: transparent;
    border: 0;
    padding: 0.75rem;
    cursor: pointer;
    z-index: 2100;
}

.nav-toggle-bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    background: var(--text-secondary);
    border-radius: 2px;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.25s ease;
    font-size: 1.05rem;
}

.nav-list a:hover {
    color: var(--secondary);
}

.nav-button {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--text-secondary);
    background: var(--primary);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.nav-list .nav-button:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--text-primary);
}

/* Hero */
.hero {
    background-color: var(--primary);
    color: var(--text-secondary);
    min-height: 45vh;
    display: flex;
    align-items: center;
}

/* Inner layout */
.hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 0;
    text-align: left;
    max-width: max-content;
}

.hero-content .angel {
    color: var(--secondary);
    font-size: 5rem;
    font-weight: 800;
}

.hero-content .liquidity {
    color: var(--secondary-a);
    font-size: 5rem;
    font-weight: 800;
}

.hero-content .fund {
    color: var(--secondary-b);
    font-size: 5rem;
    font-weight: 800;
}

.hero .eyebrow {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.15em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header {
    padding-bottom: 3rem;
    text-align: center;
}

.section-header h1 {
    padding-bottom: 2rem;
    font-size: 3rem;
}

/* Desktop: 3 cards per row, centred leftovers */
.card-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.card {
    grid-column: span 2;
    /* 3 per row */
    padding: 0.5rem;
    display: flex;
    justify-content: center;
}

.card {
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    max-width: none;
    width: auto;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    text-align: center;
}

.card-body p {
    font-size: 1.1rem;
}

.card-body i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 1.25rem;
    background: var(--primary);
    width: 70px;
    height: 70px;
    border-radius: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.card-body h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-end;
    min-height: 3.5rem;
}

.comment {
    padding-top: 2rem;
    text-align: center;
}

.borrow-cta {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.criterion {
    background-color: var(--secondary);
    color: var(--primary);
}

.criteria-grid {
    max-width: fit-content;
    margin: auto;
}

.criteria {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 1.5rem;
}

.criteria p {
    font-size: 1.2rem;
}

.investor-memo {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 0;
}

.investor-memo-text,
.investor-memo-image {
    width: 50%;
}

.investor-memo-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.investor-memo-text p {
    font-size: 1.25rem;
    font-weight: 500;
}

.investor-memo-image img {
    width: 100%;
    height: auto;
    display: block;
}

.number {
    width: 90px;
    aspect-ratio: 1 / 1;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: var(--primary);
    border: 6px solid transparent;
    margin-right: 1.5rem;
}

.b1 {
    background: var(--primary-a);
}

.b2 {
    background: var(--primary);
}

.b3 {
    background: var(--primary-b);
}

.b4 {
    background: var(--primary-c);
}

.number span {
    position: static;
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-secondary);
}

.about {
    background-color: var(--primary);
    color: var(--text-secondary);
}

.about ul li {
    margin-bottom: 1rem;
}

.about-text {
    text-align: center;
}

.team {
    display: flex;
    gap: 3rem;
    justify-content: space-evenly;
    align-items: stretch;
    margin-top: 2rem;
}

.team>div {
    max-width: 560px;
    width: 100%;
    padding: 1.5rem;
    background-color: var(--secondary);
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
}

.team-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
}

.team-main {
    flex: 1 1 auto;
    min-width: 0;
    flex: 0 0 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-main>img {
    width: 85%;
    max-width: 240px;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
}

.team-member>h2 {
    margin-bottom: 0.5rem;
}

.team-logos {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    flex: 0 0 150px;
}

.team-logos img {
    width: 85%;
    max-width: 130px;
    height: auto;
    object-fit: contain;
    display: block;
}

.team-logos img.team-logo-mobile-only{
  display: none !important;
}

.team img {
    width: 100%;
    object-fit: cover;
}

.about-text {
    margin: auto;
    padding-top: 3rem;
    ;
}

/* Contact */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.form-options {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.form-options label {
    font-size: 1.05rem;
    cursor: pointer;
}

.form-row label {
    font-size: 1.1rem;
    font-weight: 600;
}

.form-row input,
.form-row textarea {
    font-size: 1.1rem;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Conditional groups */
.conditional-group {
    display: none;
    margin-top: 0.5rem;
}

.conditional-group.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.button {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 4px;
    background-color: var(--primary);
    color: var(--text-secondary);
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.25s ease;
    text-decoration: none;
}

.button:hover {
    background-color: var(--secondary);
}

.form-row label {
    font-size: 1.1rem;
    font-weight: 600;
}

.form-row input,
.form-row textarea {
    font-size: 1.1rem;
    padding: 0.75rem;
}

.button {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Footer */
.site-footer small {
    font-size: 1rem;
}

.legal-disclaimer {
    background: var(--primary);
    color: var(--text-secondary);
    padding: 2rem 0;
    margin-top: 2rem;
}

.legal-disclaimer small {
    font-size: 0.85rem;
    line-height: 1.5;
    display: block;
    opacity: 0.85;
}


/* Hide nav-toggle on tablet and desktop */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

@media (max-width: 1023px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }

    .card {
        grid-column: auto;
        width: 100%;
        max-width: 420px;
    }

    .card-grid>.card:last-child:nth-child(3n + 1),
    .card-grid>.card:nth-last-child(2):nth-child(3n + 1),
    .card-grid>.card:last-child:nth-child(3n + 2) {
        grid-column: auto;
    }
}

@media (min-width: 1024px) {
    .site-header .container {
        padding-left: clamp(2rem, 5vw, 6rem);
        padding-right: clamp(2rem, 5vw, 6rem);
    }

    /* If the last row has 1 card (e.g., 4, 7, 10 cards...) centre it */
    .card-grid>.card:last-child:nth-child(3n + 1) {
        grid-column: 3 / span 2;
    }

    /* If the last row has 2 cards (e.g., 5, 8, 11 cards...) centre the pair */
    .card-grid>.card:nth-last-child(2):nth-child(3n + 1) {
        grid-column: 2 / span 2;
    }

    .card-grid>.card:last-child:nth-child(3n + 2) {
        grid-column: 4 / span 2;
    }

    .card-grid--two-up {
        grid-template-columns: repeat(4, 1fr);
    }

    .card-grid--two-up .card {
        grid-column: span 2;
        /* 2 cards per row */
    }
}

@media (max-width: 1220px) {
    .team {
        flex-direction: column;
        align-items: centre;
        /* keeps cards centred */
    }

    .team>div {
        max-width: 700px;
        /* choose a sensible single-column width */
        width: 100%;
        margin: auto;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 1.75rem 1.25rem;
    }

    .hero-inner {
        max-width: 100%;
        padding: 2.5rem 0;
        text-align: center;
    }

    .hero-content .angel,
    .hero-content .liquidity,
    .hero-content .fund {
        font-size: 2.8rem;
        line-height: 1.05;
    }

    .hero .eyebrow {
        font-size: 0.95rem;
    }

    .section-header {
        padding-bottom: 1.75rem;
    }

    .section-header h1 {
        padding-bottom: 1rem;
    }

    .header-inner {
        position: relative;
        /* padding-top: 0;
        padding-bottom: 0; */
    }

    .logo img {
        width: 160px;
        height: auto;
    }

    .main-nav {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .nav-toggle {
        margin-left: auto;
        padding-right: 1rem;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        gap: 1rem;
        background: var(--primary-b);
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        padding: 1.25rem 1.25rem;
        z-index: 1000;
        margin: 0;
        box-sizing: border-box;
        width: max-content;
        min-width: 220px;
        max-width: 100vw;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list a {
        font-size: 1rem;
    }

    .nav-button {
        display: inline-block;
        width: fit-content;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 0.75rem 0;
        grid-column: auto;
    }

    .number {
        width: 70px;
        height: 70px;
        border-width: 4px;
        margin-right: 1rem;
    }

    .number span {
        font-size: 1.75rem;
    }

    .criteria p {
        font-size: 1.05rem;
    }

    .investor-memo {
        flex-direction: column;
        gap: 2rem;
    }

    .investor-memo-text,
    .investor-memo-image {
        width: 100%;
    }

    .team {
        flex-direction: column;
        align-items: center;
    }

    .team>div {
        max-width: 100%;
    }

    .team-content {
        flex-direction: column;
        gap: 1.25rem;
        align-items: center;
    }

    .team-main {
        flex: 1 1 auto;
        width: 100%;
    }

    .team-main>img {
        width: 75%;
        max-width: 220px;
    }

.team-logos{
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* true 4-column grid */
    gap: 0.75rem;

    max-width: 520px;   /* controls how wide the grid can be */
    width: 100%;
    margin: 0 auto;

    justify-content: center; /* centres the grid tracks when there’s spare space */
    justify-items: center;   /* centres each logo within its cell */
  }

  .team-logos img{
    width: 100%;
    max-width: 120px;
    object-fit: contain;
    display: block;
  }

  .team-logos img.team-logo-mobile-only{
    display: block !important;
  }

}