/* Edgehill Management - Website Styles */

/* CSS Variables */
:root {
    --navy: #0a1628;
    --navy-light: #152238;
    --navy-medium: #1a3a5c;
    --accent: #2d5a87;
    --accent-light: #3d7ab7;
    --gold: #c9a962;
    --gold-light: #d4bc7d;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-light: #64748b;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--navy);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--accent-light);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-sm {
    padding: 4rem 0;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navy);
    transition: var(--transition);
}

.header.scrolled {
    background: var(--navy);
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: #c5c8cc;
    letter-spacing: 0.01em;
}

.logo:hover {
    color: #d5d8dc;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.02em;
}

.logo-text span {
    display: block;
    font-size: 0.7rem;
    font-family: var(--font-body);
}

.logo-img {
    height: 45px;
    width: auto;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-top: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-300);
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-medium) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.03" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
    opacity: 0.5;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-medium) 50%, var(--navy-light) 100%);
}

.mountain-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.mountain-bg svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 6rem;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    line-height: 1.8;
    max-width: 600px;
}

/* Mountain decoration */
.mountain-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    overflow: hidden;
}

.mountain-decoration svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
}

/* About Section */
.about-section {
    background: var(--navy);
    color: var(--white);
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--gray-200);
    margin-bottom: 1.75rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Values Section */
.values-section {
    background: var(--white);
    text-align: center;
}

.values-section h2 {
    color: var(--navy);
    margin-bottom: 3rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.value-item {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--accent);
    padding: 0.5rem 0;
    position: relative;
}

.value-item::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--gray-200);
}

.value-item:last-child::before {
    display: none;
}

/* Team Section */
.team-section {
    background: var(--gray-50);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.team-photo-wrapper {
    width: 70%;
    aspect-ratio: 1;
    margin: 2rem auto 0;
    overflow: hidden;
    border-radius: 4px;
    background: #ffffff;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.team-photo-daniel {
    object-position: 70% 8%;
    transform: scale(1.05);
}

.team-photo-ben {
    object-position: center 20%;
}

.team-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-role {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.team-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
}

.team-linkedin:hover {
    color: var(--navy);
}

.team-linkedin svg {
    width: 20px;
    height: 20px;
}

/* Investment Criteria */
.criteria-section {
    background: var(--white);
}

.criteria-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.criteria-card {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--gray-200);
}

.criteria-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
}

.criteria-list {
    list-style: none;
}

.criteria-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-200);
}

.criteria-list li:last-child {
    border-bottom: none;
}

.criteria-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.42rem;
    width: 5px;
    height: 5px;
    background: transparent;
    border-top: 1.5px solid var(--accent);
    border-right: 1.5px solid var(--accent);
    transform: rotate(45deg);
}

/* Companies Section */
.companies-section {
    background: var(--gray-50);
    min-height: 60vh;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.company-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.company-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.company-logo img {
    height: 100%;
    width: auto;
}

.company-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.company-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.company-invested {
    color: var(--navy);
    font-weight: 500;
}

.company-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.company-link:hover {
    color: var(--accent);
}

/* Contact Section */
.contact-section {
    background: var(--white);
}

.contact-section h2 {
    margin-bottom: 2.5rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-label .required {
    color: var(--accent);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 90, 135, 0.1);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
}

.form-submit {
    margin-top: 1rem;
    text-align: right;
}

/* Footer */
.footer {
    background: var(--navy);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
    font-family: var(--font-heading);
}

.footer-content {
    text-align: center;
}

.footer-contact {
    margin-bottom: 2rem;
}

.footer-email {
    color: var(--white);
    font-size: 1rem;
    display: block;
    margin-bottom: 1rem;
}

.footer-email:hover {
    color: var(--gray-300);
}

.footer-address {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-400);
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: var(--gray-600);
    margin: 2rem auto;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Page Header */
.page-header {
    background: var(--navy);
    padding: 10rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .criteria-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 1rem 1.5rem;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-top: 1px solid var(--navy-light);
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-content {
        padding-top: 4rem;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .companies-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 8rem 0 3rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }

    .logo-text span {
        font-size: 0.6rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }
}
