/* Pecan Creek Consulting — Live AI Office (chat surface)
   Editorial palette matched to the walkthrough page at / */
:root {
    --navy: #1a2942;
    --navy-deep: #0f1a2e;
    --cream: #f5efe2;
    --cream-soft: #faf6ec;
    --paper: #fdfbf5;
    --ink: #1c1c1c;
    --ink-soft: #3a3a3a;
    --muted: #6b6457;
    --rule: #c9bfa8;
    --gold: #b08a3e;
    --gold-soft: #d4b878;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'Source Serif 4', Georgia, serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); }
.hidden { display: none !important; }

/* Header */
.site-header {
    background: var(--navy);
    color: var(--cream);
    padding: 22px 0;
    border-bottom: 1px solid var(--gold);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.brand { display: flex; flex-direction: column; }
.brand .firm {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--gold-soft);
    line-height: 1.1;
}
.brand .sub {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.7;
    margin-top: 4px;
}
.back-link {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-soft);
    text-decoration: none;
    border: 1px solid var(--gold-soft);
    padding: 8px 14px;
    transition: all 0.2s ease;
}
.back-link:hover { background: var(--gold-soft); color: var(--navy); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Landing inside the chat surface */
.landing { padding: 60px 0 80px; }
.hero { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}
.hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -0.005em;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.lede {
    font-size: 18px;
    color: var(--ink-soft);
    margin-bottom: 32px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-btn {
    background: var(--navy);
    color: var(--gold-soft);
    border: 1px solid var(--gold-soft);
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Source Serif 4', serif;
    text-decoration: none;
    display: inline-block;
}
.cta-btn:hover { background: var(--gold-soft); color: var(--navy); }
.trust-line { margin-top: 16px; font-size: 13px; color: var(--muted); font-style: italic; }

/* Team grid — 5 cards (Pecan Creek) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
.team-card {
    background: var(--cream-soft);
    padding: 24px 18px;
    border: 1px solid var(--rule);
    text-align: center;
}
.team-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-soft);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.team-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 4px;
}
.team-role {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
    font-weight: 500;
}
.team-card p {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* Form modal */
.form-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 26, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}
.form-card {
    background: var(--paper);
    padding: 36px;
    max-width: 460px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border-top: 3px solid var(--gold);
}
.close-form {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: 0;
    font-size: 28px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
}
.form-card h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--navy);
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 500;
}
.form-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; font-style: italic; }
.form-card label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 6px;
    margin-top: 14px;
    color: var(--ink-soft);
}
.form-card input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--rule);
    background: var(--paper);
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
}
.form-card input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(176, 138, 62, 0.15);
}
.form-card button[type="submit"] { width: 100%; margin-top: 24px; }
.form-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 10px 14px;
    margin-top: 14px;
    font-size: 14px;
    border-left: 3px solid #991b1b;
}

/* Chat section */
.chat { padding: 50px 0 80px; }
.chat-header { text-align: center; margin-bottom: 28px; }
.chat-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--cream-soft);
    color: var(--navy);
    padding: 10px 18px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border: 1px solid var(--gold-soft);
    margin-bottom: 14px;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.chat-intro {
    color: var(--ink-soft);
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}
.chat-intro em {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--navy);
    font-style: italic;
    font-size: 17px;
}

.chat-log {
    background: var(--paper);
    border: 1px solid var(--rule);
    padding: 24px;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    margin-bottom: 16px;
    box-shadow: 0 2px 0 var(--rule);
}

/* User messages (right-aligned, navy) */
.msg { margin-bottom: 16px; display: flex; }
.msg.user { justify-content: flex-end; }
.msg.user .msg-bubble {
    background: var(--navy);
    color: var(--cream);
    padding: 14px 18px;
    border-radius: 4px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
    max-width: 78%;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Staff messages */
.msg-staff { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.msg-staff-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    flex-shrink: 0;
}
.msg-staff-content { flex: 1; max-width: 78%; }
.msg-staff-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 4px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.msg-staff-bubble {
    background: var(--cream-soft);
    color: var(--ink);
    padding: 14px 18px;
    border-radius: 4px;
    border-top-left-radius: 16px;
    border-bottom-right-radius: 16px;
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid var(--rule);
}

/* Chat form */
.chat-form { display: flex; gap: 10px; }
.chat-form input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--rule);
    background: var(--paper);
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
}
.chat-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(176, 138, 62, 0.15);
}
.chat-form button {
    background: var(--navy);
    color: var(--gold-soft);
    border: 1px solid var(--gold-soft);
    padding: 0 26px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}
.chat-form button:hover { background: var(--gold-soft); color: var(--navy); }
.chat-form button:disabled { background: var(--muted); border-color: var(--muted); color: var(--cream); cursor: not-allowed; }

.chat-end {
    text-align: center;
    padding: 28px;
    background: var(--cream-soft);
    border: 1px solid var(--gold);
    margin-bottom: 16px;
}
.chat-end p {
    margin-bottom: 16px;
    color: var(--navy);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 20px;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--cream);
    background: var(--navy-deep);
    font-size: 13px;
    border-top: 1px solid var(--gold);
}
.site-footer p { margin-bottom: 6px; opacity: 0.85; }
.site-footer p:first-child {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--gold-soft);
    font-size: 17px;
    font-style: italic;
    opacity: 1;
    margin-bottom: 10px;
}
.site-footer .disclaimer {
    font-size: 11px;
    opacity: 0.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;
}
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .team-card:nth-last-child(-n+2) { grid-column: span 1; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 36px; }
    .lede { font-size: 16px; }
    .landing { padding: 40px 0 50px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .form-card { padding: 28px; }
    .header-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
}
@media (max-width: 420px) {
    .team-grid { grid-template-columns: 1fr; }
}
