/* ========= Theme (white + purples only) */
:root {
    --purple-1: #8645ff; /* primary */
    --purple-2: #582da8; /* deep */
    --purple-3: #3f1b83; /* darkest */
    --text: #000000;
    --bg: #ffffff;
    --muted: #333333;
    --maxw: 1200px;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(63,27,131,.08); /* used sparingly */
}

/* ========= Base */
* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

html {
    color-scheme: light;
    background: #fff
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    /* Apply IBM Plex Sans site-wide for clarity (you can swap body back to Avenir if desired) */
    font-family: "IBM Plex Sans", Avenir, "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    width: min(100% - 2rem, var(--maxw));
    margin-inline: auto
}

/* ========= Header / Nav (Top white bar) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff; /* always white */
    border-bottom: 1px solid rgba(0,0,0,.06); /* thin divider */
    box-shadow: none;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 0;
    position: relative
}

.brand {
    display: inline-flex;
    gap: .6rem;
    align-items: center
}

.brand-logo {
    height: 40px;
    width: auto;
    border-radius: 8px;
    object-fit: contain
}

/* Hamburger-only nav */
.nav-toggle {
    background: #fff;
    border-radius: 8px;
    padding: .45rem .5rem;
    border: 1px solid rgba(0,0,0,.06)
}

    .nav-toggle:focus {
        outline: 2px solid var(--purple-1);
        outline-offset: 2px
    }

    .nav-toggle .bar {
        width: 26px;
        height: 2px;
        background: var(--purple-1);
        margin: 5px 0;
        transition: .16s
    }

    .nav-toggle.open .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg)
    }

    .nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0)
    }

    .nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg)
    }

.main-nav {
    display: none
}

    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        background: #fff;
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 10px;
        padding: .5rem;
        min-width: 160px;
        box-shadow: 0 10px 30px rgba(0,0,0,.10);
        z-index: 3000;
    }

    .main-nav .nav-link {
        padding: .45rem .7rem;
        border-radius: 8px
    }

        .main-nav .nav-link:hover {
            background: rgba(134,69,255,.08)
        }

/* ========= Global spacers */
main, .page-content {
    padding-top: 76px
}
/* push below fixed header */
.pad-block {
    padding: 2.5rem 0 3rem
}

/* ========= “Less-flat” banners (no shadows) */
.section-hero {
    padding: 4.5rem 0 2rem;
    color: #fff;
    background: radial-gradient(1200px 500px at 80% -10%, rgba(134,69,255,.40), transparent 70%), radial-gradient(1000px 400px at 10% 110%, rgba(88,45,168,.45), transparent 60%), linear-gradient(90deg, var(--purple-2), var(--purple-3));
}

    .section-hero h1 {
        margin: .25rem 0 0
    }

    .section-hero .lead {
        max-width: 800px;
        color: #fff;
        opacity: .95
    }

/* Optional banner image block with purple tint (used on Careers) */
.banner-image {
    position: relative;
    margin: 1rem auto 0;
    width: min(100%, var(--maxw));
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16/7; /* responsive height */
    background-size: cover;
    background-position: center;
}

    .banner-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, rgba(88,45,168,.35), rgba(63,27,131,.35)); /* purple tint */
    }

/* ========= Home hero */
.hero {
    position: relative;
    min-height: 70vh;
    background: #fff url("/assets/hero1.jpg") center / cover no-repeat;
    display: grid;
    place-items: center;
}

    .hero::before {
        /* gentle vignette so text reads without “flat” look */
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(1200px 500px at 50% -20%, rgba(134,69,255,.20), transparent 60%), radial-gradient(1000px 500px at 50% 120%, rgba(63,27,131,.20), transparent 60%);
    }

    .hero .hero-content {
        position: relative;
        z-index: 1;
        text-align: center;
        color: #fff;
        padding: 2rem 1rem
    }

.tagline {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin: 0
}

/* ========= Split (Home middle section) */
.split {
    padding: 3rem 0
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center
}

.split-media img {
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
    display: block;
    background: #fff;
    border-radius: 12px;
}

.split-text h2 {
    margin: 0 0 .5rem;
    font-size: clamp(1.5rem, 3vw, 2rem)
}

.split-text p {
    color: var(--muted);
    margin: 0 0 1rem
}

.bullets {
    padding-left: 1rem;
    margin: 0
}

    .bullets li {
        margin: .35rem 0
    }

/* ========= “Email only” Contact page block */
.contact-card {
    text-align: center;
    padding: 2rem 1rem;
    background: #fff;
    width: min(720px,100%);
    margin: 1rem auto;
}

    .contact-card .big-email {
        display: inline-block;
        margin-top: .5rem;
        font-weight: 700;
        font-size: 2.1rem;
        color: var(--purple-1);
        text-decoration: underline;
    }

/* ========= About: tiles (3 on top, 2 below) */
.team-tiles {
    display: grid;
    gap: 1rem
}

.tiles-row {
    display: grid;
    gap: 1rem
}

    .tiles-row.row-3 {
        grid-template-columns: repeat(3, 1fr)
    }

    .tiles-row.row-2 {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center
    }

.team-tile {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    align-items: center;
}

    .team-tile img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 8px
    }

    .team-tile h3 {
        margin: .15rem 0 .25rem
    }

    .team-tile p {
        margin: 0;
        color: #333
    }

/* ========= Cards (legacy use) */
.cards-3, .cards-2 {
    display: grid;
    gap: 1rem;
    margin-top: 1rem
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr)
}

.cards-2 {
    grid-template-columns: repeat(2, 1fr)
}

.card {
    background: #fff;
    /* border: 1px solid rgba(0,0,0,.08);*/
    /*border-radius: 12px;*/
    padding: 1.1rem
}

/* ========= Footer (centered 4-col) */
.site-footer {
    padding: 2rem 0;
    text-align: center;
    color: #fff;
    background: var(--purple-3)
}

    .site-footer > .container {
        display: flex;
        flex-direction: column;
        align-items: center
    }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.25rem;
    align-items: start;
    justify-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 1rem;
}

    .footer-grid h4, .footer-grid a {
        text-align: center;
        color: #fff
    }

    .footer-grid a {
        display: block;
        padding: .18rem 0;
        font-size: .95rem
    }

.footer-social .social-links {
    display: flex;
    justify-content: center;
    gap: .75rem
}

.social-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1)
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: .75rem;
    margin-top: .75rem
}

    .site-footer .footer-bottom p {
        margin: 0;
        font-size: .9rem
    }

/* ========= Responsive */
@media (max-width:900px) {
    .split-grid {
        grid-template-columns: 1fr
    }

    .cards-3 {
        grid-template-columns: 1fr 1fr
    }

    .tiles-row.row-3 {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:700px) {
    .cards-2 {
        grid-template-columns: 1fr
    }

    .tiles-row.row-2 {
        grid-template-columns: 1fr
    }
}

/* === NAV: square hamburger button + purple bars (override) === */
.nav-toggle {
    background: #fff; /* white button */
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 0; /* square, not rounded */
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.site-header .nav-toggle .bar {
    background: var(--purple-1) !important; /* keep bars purple */
    width: 26px;
    height: 2px;
    margin: 4px 0;
}

/* === IMAGE HERO (text over background image with purple tint) === */
.section-hero.image-hero {
    position: relative;
    color: #fff;
    padding: 5.5rem 0 3rem; /* a bit taller for the image */
    background: radial-gradient(1200px 500px at 80% -10%, rgba(134,69,255,.30), transparent 70%), radial-gradient(1000px 400px at 10% 110%, rgba(88,45,168,.35), transparent 60%), var(--hero-img, none) center/cover no-repeat, linear-gradient(90deg, var(--purple-2), var(--purple-3)); /* fallback if image missing */
}

    .section-hero.image-hero::after {
        /* subtle overall purple tint to aid readability, no “shadow” used */
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, rgba(63,27,131,.28), rgba(88,45,168,.28));
        pointer-events: none;
    }

    .section-hero.image-hero .container {
        position: relative;
        z-index: 1; /* above the tint */
    }

    .section-hero.image-hero h1,
    .section-hero.image-hero .lead {
        color: #fff;
        opacity: 0.98;
    }

/* ===== Full-bleed image hero (Careers) ===== */
.image-hero.full-bleed {
    /* full width across the viewport, ignoring the .container max width */
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    /* size & background image */
    min-height: 32vh; /* adjust if you want taller/shorter */
    background: var(--hero-img, none) center/cover no-repeat;
}

    /* Purple tint overlay (no drop shadows) */
    .image-hero.full-bleed::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(1200px 500px at 90% -10%, rgba(134,69,255,.28), transparent 70%), radial-gradient(1000px 400px at 10% 110%, rgba(88,45,168,.32), transparent 80%), linear-gradient(0deg, rgba(63,27,131,.28), rgba(88,45,168,.28));
        pointer-events: none;
    }

/* Inner wrapper keeps content centered and readable */
.image-hero__inner {
    position: relative;
    z-index: 1; /* above the tint */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    padding: clamp(5.5rem, 8vw, 7rem) 1rem 2.5rem; /* top padding also accounts for fixed header */
}

/* Text block */
.image-hero__content {
    width: min(100% - 2rem, 1100px);
    margin-inline: auto;
    text-align: left; /* feels executive; change to center if you prefer */
    color: #fff;
}

    .image-hero__content h1 {
        margin: 0 0 .35rem 0;
        color: #fff;
    }

    .image-hero__content .lead {
        margin: 0;
        color: #fff;
        opacity: .99;
        max-width: 70ch; /* keep lines readable */
    }

/* Mobile tweaks */
@media (max-width: 700px) {
    .image-hero__content {
        text-align: left; /* or center for mobile: change to center if desired */
    }

    .image-hero.full-bleed {
        min-height: 46vh;
    }
}

/* === Stronger purple tint on full-bleed careers hero === */
.image-hero.full-bleed::after {
    background: radial-gradient(1200px 500px at 80% -10%, rgba(134,69,255,.45), transparent 70%), radial-gradient(1000px 400px at 10% 110%, rgba(88,45,168,.50), transparent 60%), linear-gradient(0deg, rgba(63,27,131,.55), rgba(88,45,168,.55));
}

/* === Footer color: #8645ff on all pages === */
.site-footer {
    background: #3f1b83 !important; /* was var(--purple-3) */
}

    .site-footer .footer-bottom {
        border-top: 1px solid rgba(255,255,255,.18); /* keep a subtle divider on the new purple */
    }

/* === Team gallery (image grid with captions, like live site) === */
.team-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
    margin-top: 1rem;
}

.team-card {
    text-align: center;
}

    .team-card img {
        width: 100%;
        aspect-ratio: 1 / 1; /* perfect square */
        object-fit: cover; /* crop to fill */
        border-radius: 12px; /* or 0 for sharp corners */
    }

    .team-card .name {
        margin: .55rem 0 .1rem;
        font-weight: 700;
    }

    .team-card .role {
        margin: 0;
        color: var(--muted);
        font-size: .95rem;
    }

/* Responsive columns */
@media (max-width: 1100px) {
    .team-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 860px) {
    .team-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .team-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .team-gallery {
        grid-template-columns: 1fr;
    }
}

.card-index {
    background: #fff;
    /* border: 1px solid rgba(0,0,0,.08);*/
    /*border-radius: 12px;*/
    padding: 1.5rem
}

/* === Home: center the intro card and widen it === */
.card-index {
    /* center it */
    margin: 0 auto;
    text-align: center;
    /* give it presence */
    width: min(100%, 1000px); /* widen up to 1000px inside your 1200px container */
    padding: 2rem 1.5rem;
    /* optional: subtle panel look (uncomment if you like it)
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  */
}

    .card-index h2 {
        margin-top: 0;
        font-size: clamp(1.8rem, 3.6vw, 2.4rem);
        font-weight: 700;
    }

    .card-index p {
        font-size: 1.05rem;
        color: var(--muted);
        margin-bottom: 1rem;
    }

    /* keep bullets neatly centered under the paragraph */
    .card-index .bullets {
        display: inline-block; /* shrink to content so we can center the whole list */
        text-align: left; /* keep bullets and text left-aligned inside */
        margin-top: .25rem;
        font-size: 1.02rem;
    }

        .card-index .bullets li {
            margin: .35rem 0;
        }

/* ——— Force light mode site-wide ——— */
html {
    color-scheme: light; /* tell browsers to render native UI (forms, scrollbars) in light */
    background: #ffffff;
}

body {
    background: #ffffff;
    color: #111111;
}

/* If the device is in dark mode, still render our site as light */
@media (prefers-color-scheme: dark) {
    html {
        color-scheme: light;
    }

    body {
        background: #ffffff;
        color: #111111;
    }
    /* make sure key elements don't inherit dark-mode colors */
    header.site-header {
        background: #ffffff;
    }

    .site-footer {
        color: #ffffff;
    }
    /* keep your footer text visible on purple */
}

/* Make native form controls explicitly light (belt & braces) */
input, select, textarea, button {
    background-color: #ffffff;
    color: #111111;
    border-color: rgba(0,0,0,.2);
}

/* If you use any utility that auto-inverts media in dark mode, stop it */
img, video, svg {
    filter: none !important;
}
