/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #008059;
    --secondary-color: #232323;
    --accent-color: #8ffca5;
    --text-dark: #1a1a1a;
    --text-light: #5c5c5c;
    --text-muted: #8a8a8a;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f7f7f5;
    --gray-border: #e6e6e2;
    --shadow: 0 1px 0 rgba(10, 10, 10, 0.04);
    --transition: all 0.25s ease;
    --hero-bg-image: url('../images/PER-fp-background.jpg');
    --section-pad: 110px;
    --max-width: 1120px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
}

.container.narrow {
    max-width: 760px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-intro {
    max-width: 640px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-intro.left {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.section-intro h2 {
    margin-bottom: 1.25rem;
}

.section-intro p {
    font-size: 1.05rem;
    margin-bottom: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 2px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--secondary-color);
    border-color: var(--white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
    border-color: var(--white);
    color: var(--white);
}

.btn-dark {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-dark:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-top: 1.5rem;
    transition: var(--transition);
}

.text-link:hover {
    gap: 0.75rem;
}

.text-link i {
    font-size: 0.75rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    border-bottom-color: var(--gray-border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: inline-block;
    line-height: 0;
}

.nav-logo img {
    height: 36px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 22px;
    height: 1.5px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-color: #0a0a0a;
    background-image:
        linear-gradient(105deg, rgba(8, 8, 8, 0.88) 0%, rgba(8, 8, 8, 0.55) 55%, rgba(8, 8, 8, 0.7) 100%),
        var(--hero-bg-image);
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: -1;
}

.hero-content {
    width: 100%;
    color: var(--white);
    z-index: 1;
}

.hero-text {
    max-width: 720px;
    text-align: left;
}

.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.hero-title {
    color: var(--white);
    font-weight: 500;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 1.75rem;
    max-width: 18ch;
}

.hero-description {
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 0 2.5rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* What We Do */
.what-we-do {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.focus-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--gray-border);
}

.focus-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-border);
    align-items: start;
}

.focus-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.08em;
    padding-top: 0.2rem;
}

.focus-item h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.focus-item p {
    margin: 0;
    max-width: 560px;
}

/* Pillars */
.pillars {
    padding: var(--section-pad) 0;
    background: var(--gray-light);
}

.pillars-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pillar {
    padding: 3rem 0;
    border-top: 1px solid var(--gray-border);
}

.pillar:last-child {
    border-bottom: 1px solid var(--gray-border);
}

.pillar-primary {
    padding-top: 3.5rem;
}

.pillar-primary .pillar-meta h3 {
    font-size: 1.5rem;
}

.pillar-secondary {
    opacity: 0.95;
}

.pillar-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.pillar-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.pillar > p {
    max-width: 640px;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.pillar-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 2rem;
    max-width: 720px;
    margin-bottom: 0.5rem;
}

.pillar-points li {
    position: relative;
    padding-left: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.pillar-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Approach */
.approach {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.approach-rows {
    border-top: 1px solid var(--gray-border);
}

.approach-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-border);
    align-items: baseline;
}

.approach-row h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.approach-row p {
    margin: 0;
    max-width: 520px;
}

/* Partners / Who We Work With */
.partners {
    padding: var(--section-pad) 0;
    background: var(--gray-light);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--gray-border);
}

.partner-item {
    padding: 2.5rem 2rem 2.5rem 0;
    border-bottom: 1px solid var(--gray-border);
}

.partner-item:not(:last-child) {
    border-right: 1px solid var(--gray-border);
    padding-right: 2rem;
    margin-right: 2rem;
}

.partner-item h3 {
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
}

.partner-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* About */
.about-section {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.about-copy h2 {
    margin-bottom: 1.75rem;
}

.about-copy p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.about-aside {
    border-left: 1px solid var(--gray-border);
    padding-left: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
}

.aside-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.aside-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.aside-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Contact */
.contact {
    padding: var(--section-pad) 0;
    background: var(--gray-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    margin-top: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.contact-details h3 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.contact-details p {
    margin: 0;
    font-size: 0.95rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--gray-border);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid var(--gray-border);
    border-radius: 0;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-logo img {
    height: 36px;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    font-size: 0.85rem;
}

html {
    scroll-behavior: smooth;
}

/* ========== Subpages ========== */

.page-hero {
    padding: 160px 0 90px;
    background-color: #0a0a0a;
    background-image:
        linear-gradient(105deg, rgba(8, 8, 8, 0.88) 0%, rgba(8, 8, 8, 0.55) 55%, rgba(8, 8, 8, 0.7) 100%),
        var(--hero-bg-image);
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--white);
}

.page-hero-content {
    max-width: 680px;
    text-align: left;
}

.page-hero-content h1 {
    color: var(--white);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.page-hero-content p:not(.hero-eyebrow) {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    font-weight: 300;
    line-height: 1.7;
}

.page-section {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.page-section.alt {
    background: var(--gray-light);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--gray-border);
}

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

.detail-item {
    padding: 2rem 2rem 2rem 0;
    border-bottom: 1px solid var(--gray-border);
}

.detail-item:nth-child(odd) {
    padding-right: 2.5rem;
}

.detail-item:nth-child(even) {
    padding-left: 2.5rem;
    border-left: 1px solid var(--gray-border);
}

.detail-grid.three .detail-item {
    padding: 2rem 2rem 2rem 0;
    border-left: none;
}

.detail-grid.three .detail-item:not(:nth-child(3n)) {
    padding-right: 2.5rem;
    border-right: 1px solid var(--gray-border);
    margin-right: 0;
}

.detail-grid.three .detail-item:nth-child(3n) {
    padding-left: 2.5rem;
}

.detail-grid.three .detail-item:nth-child(3n+2) {
    padding-left: 2.5rem;
}

.detail-item h3 {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.detail-item p {
    margin: 0;
    font-size: 0.95rem;
}

.process-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--gray-border);
}

.process-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--gray-border);
}

.process-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.06em;
    padding-top: 0.15rem;
}

.process-item h3 {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.process-item p {
    margin: 0;
}

.simple-list {
    list-style: none;
    margin-top: 1.5rem;
}

.simple-list li {
    position: relative;
    padding: 0.75rem 0 0.75rem 1.1rem;
    border-bottom: 1px solid var(--gray-border);
    color: var(--text-light);
    font-size: 0.95rem;
}

.simple-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.15em;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

.page-cta {
    padding: 70px 0;
    background: var(--secondary-color);
    text-align: center;
}

.page-cta p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.cta-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.page-cta .text-link {
    color: var(--accent-color);
    margin-top: 0;
}

/* Ventures: investment themes / sector universe */
.theme-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.theme-block {
    padding: 3rem 0;
    border-top: 1px solid var(--gray-border);
}

.theme-block:last-child {
    border-bottom: 1px solid var(--gray-border);
}

.theme-header {
    max-width: 640px;
    margin-bottom: 1.75rem;
}

.theme-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.theme-header p {
    margin: 0;
    font-size: 0.98rem;
}

.theme-sectors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--gray-border);
    border: 1px solid var(--gray-border);
}

.sector-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
    background: var(--white);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.sector-card:hover {
    background: #fafaf8;
}

.sector-card img {
    width: 88px;
    height: 56px;
    object-fit: cover;
    display: block;
}

.sector-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.sector-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.45;
}

/* Legacy selectors kept for industry pages if still linked */
.industries,
.research-overview,
.capital-overview,
.investment-approach,
.research-process,
.digital-overview,
.digital-focus,
.services,
.divisions,
.team,
.about,
.about-intro,
.services-alt {
    padding: var(--section-pad) 0;
}

.industries-grid,
.research-grid,
.capital-grid,
.approach-grid,
.divisions-grid,
.team-grid,
.services-grid,
.focus-grid,
.digital-grid,
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.industry-card,
.research-card,
.capital-card,
.approach-item,
.division-card,
.team-member,
.service-card,
.digital-card {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--gray-border);
    border-radius: 0;
    box-shadow: none;
}

.industry-image {
    height: 180px;
    overflow: hidden;
}

.industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.industry-content {
    padding: 1.5rem;
}

.industry-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
