/* ═══════════════════════════════════════════════════════════
   Penumbra Advisors — Redesigned
   Quiet luxury. Institutional discretion. Private bank aesthetic.
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg:           #08080e;
    --bg-alt:       #0c0c14;
    --bg-card:      #10101a;
    --gold:         #c9a84c;
    --gold-dim:     rgba(201, 168, 76, 0.15);
    --gold-faint:   rgba(201, 168, 76, 0.06);
    --gold-glow:    rgba(201, 168, 76, 0.08);
    --text:         #e8e8ed;
    --text-dim:     #7a7a8c;
    --text-mid:     #a8a8b8;
    --border:       rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.08);
    --red-faint:    rgba(180, 60, 60, 0.6);
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Libre Franklin', -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: 'Cormorant Garamond', 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.5s ease, border-color 0.5s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(8, 8, 14, 0.94);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    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: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem; font-weight: 500;
    letter-spacing: 0.03em; color: var(--text);
}
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
    font-size: 0.75rem; font-weight: 400; color: var(--text-dim);
    letter-spacing: 0.08em; text-transform: uppercase;
    transition: color 0.4s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
    color: var(--gold); border: 1px solid rgba(201, 168, 76, 0.25);
    padding: 8px 22px; border-radius: 2px; transition: all 0.4s ease;
}
.nav-links .nav-cta:hover {
    background: rgba(201, 168, 76, 0.06); border-color: rgba(201, 168, 76, 0.45);
}

/* Mobile */
.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.4s 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.4s ease, transform 0.4s ease; pointer-events: none;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.mobile-menu a {
    font-size: 0.85rem; color: var(--text-dim);
    letter-spacing: 0.06em; text-transform: uppercase;
}
.mobile-menu .nav-cta { color: var(--gold); margin-top: 8px; }

/* ─── Hero (Improvement 1) ────────────────────────────────── */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; padding: 120px 0 80px; overflow: hidden;
}
.hero-atmosphere {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 80% at 8% 40%, rgba(201, 168, 76, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 90% 70%, rgba(201, 168, 76, 0.02) 0%, transparent 50%);
}
.hero-veil {
    position: absolute; inset: 0; pointer-events: none; opacity: 0.03;
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(201, 168, 76, 0.15) 60px, rgba(201, 168, 76, 0.15) 61px),
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(201, 168, 76, 0.1) 60px, rgba(201, 168, 76, 0.1) 61px);
}
.hero-content { max-width: 680px; position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    line-height: 1.12; color: var(--text); margin-bottom: 32px;
    font-weight: 300;
}
.hero-sub {
    font-size: 1.02rem; line-height: 1.85; 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: 'Libre Franklin', sans-serif;
    font-size: 0.78rem; font-weight: 400;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 15px 36px; border-radius: 2px;
    transition: all 0.45s ease; cursor: pointer; background: transparent;
}
.btn:hover {
    background: rgba(201, 168, 76, 0.06);
    border-color: rgba(201, 168, 76, 0.55);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.06);
}

/* ─── Sections ────────────────────────────────────────────── */
.section { padding: 100px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--cool { background: linear-gradient(180deg, var(--bg) 0%, #090912 100%); }
.section--warm { background: rgba(201, 168, 76, 0.015); }

.section-label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 300; color: var(--text); margin-bottom: 20px;
}
.section-intro {
    font-size: 0.98rem; color: var(--text-mid);
    max-width: 600px; margin-bottom: 64px; line-height: 1.85;
}

/* ─── Divider ─────────────────────────────────────────────── */
.divider { padding: 0 32px; }
.divider-line {
    max-width: 1080px; margin: 0 auto; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light) 30%, rgba(201, 168, 76, 0.08) 50%, var(--border-light) 70%, transparent);
}

/* ─── Problem ─────────────────────────────────────────────── */
.problem-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; margin-top: 48px;
}
.problem-text .lead { font-size: 1.08rem; color: var(--text-mid); line-height: 1.85; }
.problem-text p { color: var(--text-dim); line-height: 1.85; margin-bottom: 16px; }
.problem-text .emphasis {
    color: var(--gold); font-weight: 300;
    font-style: italic; margin-top: 8px;
}

/* ─── Before/After Visualization (Improvement 2) ──────────── */
.viz-section { padding: 80px 0; }
.viz {
    display: flex; align-items: center; justify-content: center;
    gap: 32px; flex-wrap: wrap;
}
.viz-arrow { color: var(--text-dim); opacity: 0.3; flex-shrink: 0; }
.viz-card {
    flex: 1; min-width: 280px; max-width: 400px;
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: 3px; overflow: hidden;
    transition: border-color 0.5s ease;
}
.viz-card--before:hover { border-color: var(--red-faint); }
.viz-card--after:hover { border-color: rgba(201, 168, 76, 0.2); }
.viz-label {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-dim); padding: 14px 20px 0;
}
.viz-header {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 20px 12px; font-size: 0.82rem; color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}
.viz-icon { opacity: 0.4; }
.viz-result { padding: 4px 0; }
.viz-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 20px; font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}
.viz-row:last-child { border-bottom: none; }
.viz-key { color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.02em; }
.viz-val { color: var(--text-mid); font-weight: 400; text-align: right; }
.viz-val--highlight { color: var(--red-faint); font-weight: 500; }
.viz-redacted {
    display: inline-block; width: 120px; height: 10px;
    background: rgba(255,255,255,0.03); border-radius: 1px;
}
.viz-footer {
    padding: 12px 20px; font-size: 0.72rem; color: var(--text-dim);
    border-top: 1px solid var(--border); opacity: 0.6;
}
.viz-footer--empty {
    color: var(--text-dim); opacity: 0.3; font-style: italic;
}

/* ─── Pillars (Improvement 3) ─────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar {
    padding: 40px; border: 1px solid var(--border);
    border-radius: 3px; transition: border-color 0.5s ease, background 0.5s ease;
    position: relative; overflow: hidden;
}
.pillar::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px; background: var(--gold); opacity: 0;
    transition: opacity 0.5s ease;
}
.pillar:hover::before { opacity: 1; }
.pillar--family:hover { background: rgba(180, 140, 60, 0.02); border-color: rgba(201, 168, 76, 0.12); }
.pillar--defense:hover { background: rgba(100, 130, 170, 0.02); border-color: rgba(140, 160, 190, 0.1); }
.pillar--asset:hover { background: rgba(160, 160, 160, 0.02); border-color: var(--border-light); }
.pillar-icon {
    color: var(--gold); opacity: 0.35; margin-bottom: 20px;
    transition: opacity 0.5s ease;
}
.pillar:hover .pillar-icon { opacity: 0.6; }
.pillar h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 16px; font-weight: 400; }
.pillar p { font-size: 0.92rem; color: var(--text-dim); line-height: 1.8; }

/* ─── Process / Steps (Improvement 7) ─────────────────────── */
.steps { margin-top: 48px; }
.step {
    display: flex; gap: 32px; padding: 36px 0;
    border-bottom: 1px solid var(--border);
}
.step:first-child { border-top: 1px solid var(--border); }
.step-rail {
    flex-shrink: 0; width: 48px;
    display: flex; flex-direction: column; align-items: center;
}
.step-num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem; color: var(--gold); opacity: 0.6;
    line-height: 1;
}
.step-connector {
    flex: 1; width: 1px; margin-top: 12px;
    background: linear-gradient(to bottom, rgba(201, 168, 76, 0.2), transparent);
    min-height: 20px;
}
.step-body h3 { font-size: 1.12rem; color: var(--text); margin-bottom: 10px; font-weight: 400; }
.step-body p { font-size: 0.92rem; color: var(--text-dim); line-height: 1.8; }
.step-price {
    display: inline-block; margin-top: 14px;
    font-size: 0.78rem; letter-spacing: 0.06em; color: var(--gold); opacity: 0.6;
}

/* ─── Referral Callout (Improvement 4) ────────────────────── */
.referral-callout {
    padding: 80px 0; text-align: center;
}
.referral-rule {
    height: 1px; max-width: 120px; margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.referral-inner { padding: 48px 0; }
.referral-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 300; color: var(--gold); line-height: 1;
    letter-spacing: -0.03em; margin-bottom: 16px;
}
.referral-text {
    font-size: 1rem; color: var(--text-mid); letter-spacing: 0.02em;
    margin-bottom: 8px;
}
.referral-detail {
    font-size: 0.85rem; color: var(--text-dim);
}

/* ─── Clients / Partners ──────────────────────────────────── */
.clients-list { margin-top: 48px; max-width: 600px; }
.clients-list ul { list-style: none; }
.clients-list li {
    padding: 16px 0; font-size: 0.95rem; color: var(--text-dim);
    border-bottom: 1px solid var(--border); line-height: 1.65;
}
.clients-list li:first-child { border-top: 1px solid var(--border); }

/* ─── Trust Indicators (Improvement 5) ────────────────────── */
.trust-row {
    display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap;
}
.trust-badge {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-dim);
}
.trust-badge svg { color: var(--gold); opacity: 0.5; }

/* ─── Contact Section (Improvement 8) ─────────────────────── */
.section-contact {
    padding-bottom: 120px; position: relative; overflow: hidden;
}
.contact-glow {
    position: absolute; top: 30%; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(201, 168, 76, 0.03) 0%, transparent 60%);
    pointer-events: none;
}
.contact-form-wrap {
    max-width: 640px; margin-top: 16px;
    border: 1px solid var(--border); border-radius: 3px;
    padding: 40px; position: relative;
    background: rgba(16, 16, 26, 0.4);
}
.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: 28px; }
label {
    font-size: 0.72rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-dim);
    margin-bottom: 8px; font-weight: 400;
}
input, select, textarea {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.92rem; font-weight: 300;
    color: var(--text); background: var(--bg);
    border: 1px solid var(--border-light);
    padding: 14px 16px; border-radius: 2px; outline: none;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
    border-color: rgba(201, 168, 76, 0.35);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.04);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); opacity: 0.4; }
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='%237a7a8c' stroke-width='1'/%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;
    transition: all 0.45s ease;
}
.btn-submit:hover {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.1);
}

/* Success state */
.form-success { display: none; padding: 48px 0; text-align: center; }
.form-success h3 { font-size: 1.4rem; 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: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem; color: var(--text); display: block; margin-bottom: 6px;
}
.footer-tagline { font-size: 0.78rem; color: var(--text-dim); }
.footer-legal { text-align: right; }
.footer-legal p { font-size: 0.78rem; color: var(--text-dim); line-height: 1.6; }
.footer-copy { margin-top: 4px; opacity: 0.4; }

/* ─── Animations ──────────────────────────────────────────── */
.fade-in {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.9s ease, transform 0.9s 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: 2.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-rail { width: auto; flex-direction: row; gap: 16px; }
    .step-connector { display: none; }
    .form-row { grid-template-columns: 1fr; gap: 20px; }
    .section { padding: 72px 0; }
    .section-contact { padding-bottom: 80px; }
    .contact-form-wrap { padding: 28px 20px; }
    .footer-inner { flex-direction: column; gap: 24px; }
    .footer-legal { text-align: left; }
    .container { padding: 0 24px; }
    .nav { padding: 0 24px; }
    .divider { padding: 0 24px; }
    .viz { flex-direction: column; gap: 24px; }
    .viz-arrow { transform: rotate(90deg); }
    .viz-card { max-width: 100%; }
    .trust-row { gap: 24px; }
    .referral-number { font-size: 4rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-sub { font-size: 0.95rem; }
    .section-label { font-size: 1.5rem; }
    .trust-row { flex-direction: column; gap: 16px; }
}
