/* AuditPartner — mobile-first styles
   Brand: green #046a38, poppy red #f9423a, slate #344f61 */

:root {
    --green: #046a38;
    --green-light: #00b489;
    --red: #f9423a;
    --slate: #344f61;
    --gray: #818181;
    --light: #f5f6fb;
    --border: #ebe9e8;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: #333;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--slate);
}

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

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .08);
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    height: 54px;
    width: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* CSS-only mobile nav */
.nav-toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
}

.nav-toggle-label span {
    display: block;
    height: 2px;
    background: var(--slate);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.nav-toggle-checkbox:checked~.main-nav {
    max-height: 420px;
}

.nav-toggle-checkbox:checked~.nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle-checkbox:checked~.nav-toggle-label span:nth-child(2) {
    opacity: 0;
}

.nav-toggle-checkbox:checked~.nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.main-nav a {
    display: block;
    padding: 12px 24px;
    color: var(--slate);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--green);
    background: var(--light);
}

.main-nav a.active {
    color: var(--green);
}

.lang-switch {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
}

.lang-switch a {
    display: inline;
    padding: 0 4px;
    text-transform: none;
}

.lang-current {
    color: var(--green);
    padding: 0 4px;
}

/* ---------- Hero (homepage) ---------- */

.hero {
    position: relative;
    min-height: 62vh;
    background-size: cover;
    background-position: center bottom;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

/* diagonal white panel, echoing the original composite image */
.hero-diagonal {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            rgba(255, 255, 255, .94) 0%,
            rgba(255, 255, 255, .88) 42%,
            rgba(255, 255, 255, 0) 62%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 7vh 20px 12vh;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

.hero-logo {
    width: clamp(170px, 28vw, 260px);
    height: auto;
    margin-bottom: 10px;
}

.hero-title {
    margin: 12px 0 6px;
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 700;
    color: var(--green);
    letter-spacing: .5px;
}

.hero-title span {
    color: var(--slate);
}

.hero-tagline {
    margin: 0;
    font-size: clamp(17px, 2.6vw, 24px);
    font-weight: 400;
    color: var(--green);
}

/* ---------- Inner pages ---------- */

.page-title-band {
    background: linear-gradient(120deg, var(--slate) 0%, #23404f 55%, var(--green) 130%);
    color: #fff;
    padding: 42px 0;
    position: relative;
    overflow: hidden;
}

.page-title-band::after {
    content: '';
    position: absolute;
    right: -60px;
    top: 0;
    bottom: 0;
    width: 45%;
    background: linear-gradient(105deg, transparent 0%, rgba(0, 180, 137, .25) 100%);
    transform: skewX(-18deg);
    transform-origin: top;
}

.page-title-band h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 4vw, 34px);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.content-section {
    padding-top: 48px;
    padding-bottom: 56px;
}

.prose p {
    margin: 0 0 1.1em;
}

.prose ul {
    margin: 0 0 1.2em;
    padding-left: 0;
    list-style: none;
}

.prose ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: .55em;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: .52em;
    width: 9px;
    height: 9px;
    background: var(--red);
    transform: rotate(45deg);
}

.back-link {
    margin-top: 36px;
    font-weight: 500;
}

/* ---------- Cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--green);
    border-radius: 4px;
    padding: 28px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    transition: box-shadow .2s, transform .2s;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.card h2 {
    margin: 0 0 12px;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.card h2 a {
    color: var(--slate);
    text-decoration: none;
}

.card h2 a:hover {
    color: var(--green);
}

.card p {
    margin: 0 0 16px;
    color: #555;
    font-weight: 300;
}

.read-more {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-decoration: none;
}

/* ---------- Team ---------- */

.team-grid {
    text-align: center;
}

.team-card a {
    text-decoration: none;
}

.team-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px var(--border), 0 4px 14px rgba(0, 0, 0, .12);
    margin-bottom: 16px;
}

.team-card h2 {
    margin-bottom: 4px;
}

.team-position {
    color: var(--green) !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.member-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.member-photo {
    width: 100%;
    max-width: 320px;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.member-bio h2 {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 0;
}

.member-langs {
    color: var(--slate);
}

/* ---------- Testimonials ---------- */

.testimonial {
    margin: 0 0 32px;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .06);
    position: relative;
}

.testimonial::before {
    content: '“';
    position: absolute;
    top: 6px;
    left: 16px;
    font-family: var(--font-serif);
    font-size: 64px;
    color: var(--green);
    opacity: .18;
    line-height: 1;
}

.testimonial-text {
    position: relative;
}

.testimonial-text p {
    font-weight: 300;
    color: #444;
}

.testimonial footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.testimonial footer strong {
    color: var(--slate);
    font-size: 17px;
}

.testimonial footer span {
    color: var(--green);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ---------- Contact ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.contact-info h2 {
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 24px 0 6px;
}

.contact-info h2:first-child {
    margin-top: 0;
}

.contact-info p {
    margin: 0;
    font-size: 17px;
}

.contact-photos {
    display: grid;
    gap: 16px;
    align-content: start;
}

.contact-photos img {
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

/* ---------- Footer ---------- */

.site-footer {
    background: linear-gradient(120deg, #23404f, var(--slate));
    color: rgba(255, 255, 255, .85);
    /* margin-top: 40px; */
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 44px;
    padding-bottom: 36px;
}

.footer-logo {
    width: 72px;
    height: auto;
    background: #fff;
    padding: 10px 14px;
    border-radius: 8px;
}

.footer-tagline {
    color: var(--green-light);
    font-weight: 500;
    margin: 12px 0 0;
}

.footer-contact p {
    margin: 0 0 12px;
}

.footer-contact a {
    color: #fff;
}

.copyright {
    background: rgba(0, 0, 0, .25);
    padding: 16px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
}

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .footer-contact {
        text-align: right;
    }

    .contact-photos {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .nav-toggle-label {
        display: none;
    }

    .main-nav {
        position: static;
        max-height: none;
        box-shadow: none;
        background: transparent;
        overflow: visible;
    }

    .main-nav ul {
        display: flex;
        align-items: center;
        padding: 0;
    }

    .main-nav a {
        padding: 10px 14px;
        font-size: 14px;
    }

    .main-nav a:hover {
        background: transparent;
    }

    .lang-switch {
        padding: 10px 0 10px 14px;
        border-left: 1px solid var(--border);
        margin-left: 8px;
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 760px;
        margin: 0 auto;
    }

    .member-layout {
        grid-template-columns: 320px 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr 1.2fr;
    }

    .hero {
        min-height: 74vh;
    }

    .hero-content {
        padding-top: 10vh;
    }
}

.member-position {
    font-size: 16px;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
}

/* when footer-brand is hidden (homepage), let contact span full width */
.footer-contact:only-child {
    grid-column: 1 / -1;
    text-align: center;
}

/* sticky footer on short inner pages: let content grow, footer stays at bottom */
body.inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.inner .content-section {
    flex-grow: 1;
}