/* ============================================================
   AC-2779 — The Good Investors homepage v2.
   Modern sans-serif design per Home.png.
   Loaded after main.css / responsive.css so .tgi-* always wins.
   ============================================================ */

:root {
    --tgi-bg:        #ffffff;
    --tgi-mint:      #e8f1e5;   /* pale green panel background (block 1) */
    --tgi-ink:       #111111;
    --tgi-muted:     #555555;
    --tgi-nav:       #b5b5b5;
    --tgi-green:     var(--green-color, #2e7d3a);
    --tgi-green-dark:#234f29;
}

body {
    background: var(--tgi-bg);
    color: var(--tgi-ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tgi-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 80px;
    box-sizing: border-box;
}

/* ---------- Buttons (rectangular, not pill) ---------- */
a.tgi-btn,
.tgi-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    background: var(--tgi-green);
    color: #fff !important;
    text-decoration: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    transition: background 0.18s ease;
    border: none;
}
a.tgi-btn:hover,
a.tgi-btn:focus,
.tgi-btn:hover,
.tgi-btn:focus {
    background: var(--tgi-green-dark);
    color: #fff !important;
    text-decoration: none;
}

.tgi-accent {
    color: var(--tgi-green);
    font-style: normal;
}

/* ============================================================
   Top header
   ============================================================ */
/* Header stretches full width (background goes edge-to-edge); the inner
   .tgi-container shares its horizontal padding/max-width with hero/blocks,
   so the logo's left edge aligns with the page's left content column.
   Force `display: block` to override legacy `.header_main { display: flex }`
   (otherwise the inner becomes a flex item and ignores margin-auto centering). */
.tgi-header.header_main {
    position: relative;
    display: block;
    background: var(--tgi-bg);
    padding: 36px 0 0;
    z-index: 5;
    max-height: none;
}
.tgi-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tgi-header .tgi-logo,
.tgi-header figure.logo {
    margin: 0;
    padding: 0; /* override legacy .header_main .logo { padding: 15px } */
}
.tgi-header .tgi-logo img,
.tgi-header figure.logo img {
    display: block;
    width: 160px;
    height: auto;
}

.tgi-header .nav_main {
    display: flex;
    align-items: center;
}
.tgi-header .navigation.tgi-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tgi-header .navigation.tgi-nav > li {
    /* override legacy .nav_main ul li { margin: 0 22px } */
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.tgi-header .navigation.tgi-nav > li > a {
    color: var(--tgi-nav);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    /* override legacy .nav_main ul li a { padding: 47px 0 } */
    padding: 0 0 4px;
    transition: color 0.15s ease;
}
.tgi-header .navigation.tgi-nav > li > a:hover {
    color: var(--tgi-ink);
}
.tgi-header .navigation.tgi-nav > li.tgi-nav__item--active > a {
    color: var(--tgi-green);
    border-bottom: 2px solid var(--tgi-green);
}
.tgi-header .navigation .submenu { display: none; }
.tgi-header .navigation .login a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--tgi-green);
    color: #fff;
}
.tgi-header .navigation .login img {
    filter: brightness(0) invert(1);
    width: 16px !important;
    height: 16px !important;
}
.tgi-header .icon-bar { display: none; }

/* ============================================================
   Mobile hamburger button (hidden on desktop)
   ============================================================ */
.tgi-hamburger {
    display: none; /* shown only at <= 992px */
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 60;
}
.tgi-hamburger__bar {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--tgi-ink, #111);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
}
.tgi-hamburger--open .tgi-hamburger__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.tgi-hamburger--open .tgi-hamburger__bar:nth-child(2) {
    opacity: 0;
}
.tgi-hamburger--open .tgi-hamburger__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.tgi-nav-locked {
    overflow: hidden;
}

/* ============================================================
   Hero
   ============================================================ */
.tgi-hero {
    padding: 80px 0 120px;
    background: var(--tgi-bg);
}
.tgi-hero__grid {
    /* Mirrors .tgi-block__grid so the hero right column starts at the same
       x as the body text in every subsequent block. */
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(420px, 2fr);
    gap: 60px;
    align-items: start;
}
.tgi-hero__heading {
    font-family: inherit;
    font-weight: 800;
    font-style: normal;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.06;
    letter-spacing: -0.01em;
    margin: 0;
    max-width: 14ch;
    color: var(--tgi-ink);
}
.tgi-hero__heading .tgi-accent {
    color: var(--tgi-green);
    font-weight: 800;
}
.tgi-hero__body {
    color: var(--tgi-ink);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 56ch;
}
.tgi-hero__body p {
    margin: 0 0 1.2rem;
}
.tgi-hero__body p:last-child {
    margin-bottom: 0;
}
/* Green-dot bullet list inside body */
.tgi-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
}
.tgi-bullets li {
    position: relative;
    padding-left: 24px;
    margin: 0 0 1rem;
    line-height: 1.55;
}
.tgi-bullets li:last-child {
    margin-bottom: 0;
}
.tgi-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--tgi-green);
}
.tgi-hero__cta {
    margin-top: 1.6rem;
}

/* ============================================================
   Full-bleed divider images
   ============================================================ */
.tgi-divider {
    width: 100%;
    height: clamp(320px, 38vw, 520px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden; /* monogram extends past the bottom edge and is clipped */
}

/* ============================================================
   Split content blocks (heading | body + button)
   ============================================================ */
.tgi-block {
    padding: 100px 0;
    background: var(--tgi-bg);
}
/* Block 1 has the pale-green panel + the theme tile row underneath */
.tgi-block--mint {
    background: var(--tgi-mint);
}
.tgi-block__grid {
    /* Right column starts roughly at the middle of the "Biodiversity" tile
       in the 4-tile theme row underneath block 1 (per design). */
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(420px, 2fr);
    gap: 60px;
    align-items: start;
}
.tgi-block__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}
.tgi-block__heading {
    font-family: inherit;
    font-style: normal;
    font-weight: 800;
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--tgi-ink);
}
.tgi-block__right {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tgi-ink);
    max-width: 56ch; /* keep paragraph lines comfortable to read */
}
.tgi-block__right p {
    margin: 0 0 1.2rem;
}
.tgi-block__right p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   4-tile theme grid (Food / Biodiversity / Water / Energy).
   Labels render ABOVE the photo, not as a white overlay.
   ============================================================ */
.tgi-themes-row {
    margin-top: 56px;
}
.tgi-themes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.tgi-themes__tile {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tgi-themes__label {
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tgi-ink);
    line-height: 1;
    text-align: center;
}
.tgi-themes__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #d8d8d8;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    position: relative;
}
.tgi-themes__hit {
    position: absolute;
    inset: 0;
}

/* ============================================================
   How We Invest — partner logos row (block 1)
   Mirrors the .tgi-block__grid column structure so the logos sit
   under the right text column (not centred across the full width).
   ============================================================ */
.tgi-partners {
    margin-top: 48px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(420px, 2fr);
    gap: 60px;
}
.tgi-partners__inner {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 56px;
}
.tgi-partners__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.tgi-partners__logo img {
    display: block;
    max-height: 56px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}
@media (max-width: 992px) {
    .tgi-partners { grid-template-columns: 1fr; gap: 24px; }
    .tgi-partners__inner { grid-column: 1; justify-content: flex-start; }
}

/* ============================================================
   How We Invest — investment methodology diagram (block 2)
   Same grid pattern as .tgi-partners so the image sits under the
   right text column (centred within that column, not the page).
   ============================================================ */
.tgi-diagram {
    margin-top: 32px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(420px, 2fr);
    gap: 60px;
}
.tgi-diagram__inner {
    grid-column: 2;
    display: flex;
    justify-content: center;
}
.tgi-diagram img {
    display: block;
    max-width: 360px;
    width: 100%;
    height: auto;
}
@media (max-width: 992px) {
    .tgi-diagram { grid-template-columns: 1fr; gap: 24px; }
    .tgi-diagram__inner { grid-column: 1; }
}

/* ============================================================
   Contact page — mailto link + form
   ============================================================ */
.tgi-contact__email {
    color: var(--tgi-green) !important;
    text-decoration: underline;
    font-weight: 500;
}
.tgi-contact__email:hover {
    color: var(--tgi-green-dark) !important;
}

.tgi-contact-form {
    margin-top: 28px;
}
.tgi-contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.tgi-contact-form__field {
    margin-bottom: 14px;
}
.tgi-contact-form__input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    background: #fff;
    color: var(--tgi-ink);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: border-color 0.18s ease;
}
.tgi-contact-form__input::placeholder {
    color: #9a9a9a;
}
.tgi-contact-form__input:focus {
    outline: none;
    border-color: var(--tgi-green);
}
.tgi-contact-form__textarea {
    min-height: 140px;
    resize: vertical;
}
.tgi-contact-form__submit {
    margin-top: 6px;
}
@media (max-width: 600px) {
    .tgi-contact-form__row { grid-template-columns: 1fr; }
}

/* ============================================================
   GI monogram overlay (divider 2)
   Sized so the bottom of the glyph hugs the bottom of the image,
   matching the design where the "G" sits anchored to the lower-left.
   ============================================================ */
.tgi-monogram {
    /* Sized to sit comfortably in the lower-left, ~60% of divider height. */
    position: absolute;
    left: 6vw;
    top: 30%;
    bottom: 5%;
    pointer-events: none;
    line-height: 0;
}
.tgi-monogram img {
    display: block;
    height: 100%;
    width: auto;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
    .tgi-container { padding: 0 48px; }
    .tgi-header.header_main { padding: 28px 0 0; }
    .tgi-hero__grid,
    .tgi-block__grid { gap: 60px; }
}
@media (max-width: 992px) {
    .tgi-header.header_main { padding: 20px 0 0; position: relative; z-index: 50; }
    .tgi-header__inner { align-items: center; }

    /* Show hamburger, hide inline nav by default */
    .tgi-hamburger { display: inline-flex; }

    /* Nav becomes a full-screen drawer that slides in from the right */
    .tgi-header .tgi-nav-wrap {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 86vw);
        height: 100vh;
        background: var(--tgi-bg, #fff);
        box-shadow: -12px 0 32px rgba(0, 0, 0, 0.08);
        padding: 88px 28px 32px;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 55;
        overflow-y: auto;
    }
    .tgi-header .tgi-nav-wrap--open {
        transform: translateX(0);
    }
    .tgi-header .navigation.tgi-nav {
        /* override legacy responsive.css line 122 which sets the .navigation
           ul to position:absolute, width:100%, left:0 at <1050px and escapes
           the drawer's padding. */
        position: static;
        top: auto;
        left: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        width: 100%;
        padding: 0;
        margin: 0;
        background: transparent;
        display: flex;
    }
    .tgi-header .navigation.tgi-nav > li > a {
        font-size: 1rem;
        padding: 8px 0;
    }
    .tgi-header .navigation .login {
        margin-top: 12px;
    }

    .tgi-hero { padding: 56px 0 80px; }
    .tgi-hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .tgi-block { padding: 64px 0; }
    .tgi-block__grid { grid-template-columns: 1fr; gap: 28px; }
    .tgi-themes { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .tgi-themes-row { margin-top: 40px; }
}
@media (max-width: 600px) {
    .tgi-container { padding: 0 24px; }
    .tgi-header.header_main { padding: 16px 0 0; }
    .tgi-themes { grid-template-columns: 1fr; }
    .tgi-themes__image { aspect-ratio: 16 / 10; }
    .tgi-monogram { width: clamp(110px, 32vw, 200px); left: 6vw; bottom: 6vw; }
}
