/* ═══════════════════════════════════════════════════════════
   Penumbra Advisors — Stylesheet
   Premium, understated, institutional design
   ═══════════════════════════════════════════════════════════ */

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

:root {
    --bg:       #08080e;
    --bg-light: #0e0e16;
    --bg-card:  #12121c;
    --gold:     #c9a84c;
    --gold-dim: rgba(201, 168, 76, 0.15);
    --text:     #f0f0f0;
    --text-dim: #8a8a9a;
    --text-mid: #b0b0be;
    --border:   rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─── Typography ───────────────────────────────────────── */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ─── Navigation ───────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 32px;
    transition: background 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(8, 8, 14, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links .nav-cta {
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 8px 20px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-links .nav-cta:hover {
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.5);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--text);
    transition: all 0.3s ease;
}

.nav-toggle.open span:first-child {
    transform: translateY(9.5px) rotate(45deg);
}

.nav-toggle.open span:last-child {
    transform: translateY(-9.5px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(8, 8, 14, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px;
    z-index: 99;
    flex-direction: column;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-menu a {
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mobile-menu .nav-cta {
    color: var(--gold);
    margin-top: 8px;
}

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

.hero-content {
    max-width: 680px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 32px;
}

.hero-sub {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 48px;
    max-width: 580px;
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}

/* ─── Button ───────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.35);
    padding: 14px 32px;
    border-radius: 2px;
    transition: all 0.35s ease;
    cursor: pointer;
    background: transparent;
}

.btn:hover {
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.6);
}

/* ─── Sections ─────────────────────────────────────────── */
.section {
    padding: 100px 0;
}

.section-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    color: var(--text);
    margin-bottom: 20px;
}

.section-intro {
    font-size: 1rem;
    color: var(--text-mid);
    max-width: 600px;
    margin-bottom: 64px;
    line-height: 1.8;
}

/* ─── Problem Section ──────────────────────────────────── */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 48px;
}

.problem-text .lead {
    font-size: 1.1rem;
    color: var(--text-mid);
    line-height: 1.8;
}

.problem-text p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 16px;
}

.problem-text .emphasis {
    color: var(--gold);
    font-weight: 400;
    font-style: italic;
    margin-top: 8px;
}

/* ─── Divider ──────────────────────────────────────────── */
.divider {
    padding: 0 32px;
}

.divider-line {
    max-width: 1080px;
    margin: 0 auto;
    height: 1px;
    background: var(--border);
}

/* ─── Pillars / Solution ───────────────────────────────── */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.pillar {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 3px;
    transition: border-color 0.4s ease;
}

.pillar:hover {
    border-color: var(--border-light);
}

.pillar h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 16px;
    font-weight: 400;
}

.pillar p {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.75;
}

/* ─── Process / Steps ──────────────────────────────────── */
.steps {
    margin-top: 48px;
}

.step {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.step:first-child {
    border-top: 1px solid var(--border);
}

.step-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: var(--gold);
    flex-shrink: 0;
    width: 48px;
    opacity: 0.7;
}

.step-body h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 400;
}

.step-body p {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.75;
}

.step-price {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--gold);
    opacity: 0.7;
}

/* ─── Clients ──────────────────────────────────────────── */
.clients-list {
    margin-top: 48px;
    max-width: 560px;
}

.clients-list ul {
    list-style: none;
}

.clients-list li {
    padding: 14px 0;
    font-size: 0.95rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

.clients-list li:first-child {
    border-top: 1px solid var(--border);
}

/* ─── Contact Section ──────────────────────────────────── */
.section-contact {
    padding-bottom: 120px;
}

.contact-form-wrap {
    max-width: 640px;
    margin-top: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

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

.form-group.full {
    margin-bottom: 32px;
}

label {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 400;
}

input,
select,
textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 14px 16px;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(201, 168, 76, 0.4);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-dim);
    opacity: 0.5;
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8a9a' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select option {
    background: var(--bg-card);
    color: var(--text);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    text-align: center;
}

/* Success state */
.form-success {
    display: none;
    padding: 48px 0;
    text-align: center;
}

.form-success h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 12px;
}

.form-success p {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ─── Footer ───────────────────────────────────────────── */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    color: var(--text);
    display: block;
    margin-bottom: 6px;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-dim);
}

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

.footer-legal p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.footer-copy {
    margin-top: 4px;
    opacity: 0.5;
}

/* ─── Fade-in animation ────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

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

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pillars {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pillar {
        padding: 28px;
    }

    .step {
        flex-direction: column;
        gap: 12px;
        padding: 28px 0;
    }

    .step-num {
        width: auto;
    }

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

    .section {
        padding: 72px 0;
    }

    .section-contact {
        padding-bottom: 80px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer-legal {
        text-align: left;
    }

    .container {
        padding: 0 24px;
    }

    .nav {
        padding: 0 24px;
    }

    .divider {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .section-label {
        font-size: 1.4rem;
    }
}
