/* ============================================================
   joshuabechtel.com — Shared Stylesheet
   All pages import this file.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
    --forest:    #1f3b1f;
    --moss:      #2d5a2d;
    --sage:      #5c8a5c;
    --mist:      #9fca9f;
    --foam:      #cfe8cf;
    --parchment: #f4f8f4;
    --white:     #ffffff;
    --ink:       #1a1a1a;
    --slate:     #4a5a4a;
    --gold:      #b8860b;
    --gold-lt:   #d4a017;
    --sidebar-w: 240px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--parchment);
    line-height: 1.65;
}

/* ── LAYOUT SHELL ────────────────────────────────────────── */
.page-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* pages that use sidebar push content right */
.has-sidebar .page-body {
    margin-left: var(--sidebar-w);
}

/* ── SITE HEADER (top green bar) ─────────────────────────── */
.site-header {
    background: #cfe8cf;
    text-align: center;
    padding: 32px 20px 18px;
    position: relative;
    z-index: 10;
}

.site-header .wordmark {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #000;
    text-decoration: none;
    margin-bottom: 6px;
    line-height: 1;
}

.site-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    color: #111;
    margin: 0;
}

/* ── TOP NAV (horizontal, below header) ──────────────────── */
.top-nav {
    background: #9fca9f;
    padding: 14px 24px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.top-nav a {
    color: white;
    text-decoration: none;
    margin: 0 16px;
    font-weight: bold;
    font-size: 0.95rem;
    display: inline-block;
    transition: opacity 0.15s;
    opacity: 0.92;
}
.top-nav a:hover { opacity: 1; text-decoration: underline; }
.top-nav a.active { text-decoration: underline; opacity: 1; }

/* ── LEFT SIDEBAR NAV ────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--forest);
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow-y: auto;
    box-shadow: 3px 0 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.sidebar-logo {
    padding: 22px 20px 16px;
    border-bottom: 1px solid rgba(159,202,159,0.2);
    text-decoration: none;
    display: block;
}

.sidebar-logo .name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    color: var(--foam);
    display: block;
    line-height: 1.2;
}

.sidebar-logo .role {
    font-size: 0.72rem;
    color: var(--mist);
    opacity: 0.8;
    display: block;
    margin-top: 3px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.sidebar-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mist);
    opacity: 0.55;
    padding: 16px 20px 6px;
    display: block;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 20px;
    color: rgba(207,232,207,0.8);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(159,202,159,0.1);
    color: var(--foam);
    border-left-color: rgba(159,202,159,0.4);
}

.sidebar-nav a.active {
    background: rgba(159,202,159,0.15);
    color: var(--foam);
    border-left-color: var(--mist);
    font-weight: 600;
}

.sidebar-nav .icon {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.75;
}

.sidebar-cta {
    padding: 16px 16px 20px;
    border-top: 1px solid rgba(159,202,159,0.15);
}

.sidebar-cta a {
    display: block;
    background: var(--gold);
    color: var(--white);
    text-align: center;
    padding: 10px 16px;
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.sidebar-cta a:hover { background: var(--gold-lt); }

/* Mobile sidebar toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 300;
    background: var(--forest);
    color: var(--foam);
    border: none;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
}

/* ── PAGE MAIN CONTENT ───────────────────────────────────── */
.page-content {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 52px 48px 80px;
    width: 100%;
}

/* for full-width sections */
.page-content.wide {
    max-width: 1100px;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
.page-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-eyebrow::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--mist);
}

h1.page-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.6rem;
    color: var(--forest);
    line-height: 1.1;
    margin-bottom: 18px;
}

h1.page-title em { color: var(--sage); font-style: italic; }

p.page-intro {
    font-size: 1.1rem;
    color: var(--slate);
    max-width: 680px;
    line-height: 1.75;
    margin-bottom: 48px;
}

h2.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.7rem;
    color: var(--forest);
    margin-bottom: 14px;
    margin-top: 48px;
}

h3.card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    color: var(--forest);
    margin-bottom: 8px;
}

p { margin-bottom: 16px; color: var(--slate); line-height: 1.7; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid rgba(159,202,159,0.35);
    margin: 48px 0;
}

/* ── CARDS GRID ──────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.card {
    background: var(--white);
    border: 1px solid rgba(95,138,95,0.18);
    border-top: 3px solid var(--sage);
    border-radius: 8px;
    padding: 28px 26px;
    transition: box-shadow 0.2s, transform 0.18s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.card:hover {
    box-shadow: 0 8px 28px rgba(31,59,31,0.1);
    transform: translateY(-2px);
}

.card .deliverable {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sage);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 14px;
    display: block;
}

.card-icon {
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: block;
}

/* ── CALLOUT BOX ─────────────────────────────────────────── */
.callout {
    background: var(--forest);
    border-radius: 10px;
    padding: 36px 40px;
    margin-top: 48px;
}
.callout h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 10px;
}
.callout p { color: rgba(255,255,255,0.75); margin-bottom: 20px; }
.callout .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── HIGHLIGHT STRIP ─────────────────────────────────────── */
.highlight-strip {
    background: var(--moss);
    padding: 18px 24px;
    border-radius: 7px;
    margin: 28px 0;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.highlight-strip .stat {
    color: var(--foam);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.highlight-strip .stat::before { content: '◆'; font-size: 0.45rem; color: var(--mist); }

/* ── DISTINCTION LIST ────────────────────────────────────── */
.distinction-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0;
}
.distinction-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 20px;
    background: var(--white);
    border-radius: 7px;
    border-left: 3px solid var(--sage);
    border: 1px solid rgba(95,138,95,0.15);
    border-left: 3px solid var(--sage);
}
.distinction-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 3px;
}
.distinction-item p { font-size: 0.88rem; color: var(--slate); margin: 0; }

/* ── TOPIC ITEMS (speaking) ──────────────────────────────── */
.topic-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 28px 0;
}
.topic-item {
    background: var(--white);
    border: 1px solid rgba(95,138,95,0.18);
    border-left: 3px solid var(--sage);
    border-radius: 7px;
    padding: 20px 24px;
    transition: box-shadow 0.2s;
}
.topic-item:hover { box-shadow: 0 4px 16px rgba(31,59,31,0.08); }
.topic-item h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    color: var(--forest);
    margin-bottom: 6px;
}
.topic-item p { font-size: 0.9rem; color: var(--slate); margin: 0; }

/* ── CASE STUDY CARDS ────────────────────────────────────── */
.case-study {
    background: var(--white);
    border: 1px solid rgba(95,138,95,0.18);
    border-radius: 10px;
    padding: 32px 36px;
    margin-bottom: 28px;
}
.case-study-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.case-tag {
    background: var(--foam);
    color: var(--moss);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
}
.case-study h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: var(--forest);
    margin-bottom: 14px;
}
.case-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 18px;
}
.case-col h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 6px;
}
.case-col p { font-size: 0.9rem; color: var(--slate); margin: 0; }

/* ── PROCESS STEPS ───────────────────────────────────────── */
.process-steps {
    counter-reset: steps;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 28px 0;
    border-left: 2px solid rgba(159,202,159,0.4);
    padding-left: 0;
}
.process-step {
    position: relative;
    padding: 0 0 32px 36px;
    counter-increment: steps;
}
.process-step::before {
    content: counter(steps);
    position: absolute;
    left: -14px;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--moss);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}
.process-step h4 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    color: var(--forest);
    margin-bottom: 6px;
}
.process-step p { font-size: 0.92rem; color: var(--slate); margin: 0; }

/* ── CONTACT FORMS ───────────────────────────────────────── */
.contact-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(159,202,159,0.3);
    margin-bottom: 36px;
}
.contact-tab {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--slate);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: color 0.15s, border-color 0.15s;
    font-family: 'DM Sans', sans-serif;
}
.contact-tab:hover { color: var(--moss); }
.contact-tab.active { color: var(--moss); border-bottom-color: var(--moss); }

.contact-form-panel { display: none; }
.contact-form-panel.active { display: block; }

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 7px;
    letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid rgba(95,138,95,0.3);
    border-radius: 5px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(92,138,92,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--moss);
    color: var(--white);
}
.btn-primary:hover { background: var(--forest); transform: translateY(-1px); }

.btn-gold {
    background: var(--gold);
    color: var(--white);
}
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--moss);
    border: 1.5px solid var(--sage);
}
.btn-outline:hover { background: var(--foam); }

.btn-outline-white {
    background: transparent;
    color: var(--foam);
    border: 1.5px solid rgba(159,202,159,0.5);
}
.btn-outline-white:hover { background: rgba(159,202,159,0.1); }

.btn-full { width: 100%; text-align: center; padding: 14px; font-size: 1rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
    background: var(--forest);
    padding: 28px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-name {
    font-family: 'DM Serif Display', serif;
    color: var(--foam);
    font-size: 0.95rem;
}
.footer-tagline {
    font-size: 0.8rem;
    color: rgba(207,232,207,0.55);
}

/* ── ABOUT PAGE SPECIFICS ────────────────────────────────── */
.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
}
.bio-card {
    background: var(--white);
    border: 1px solid rgba(95,138,95,0.18);
    border-radius: 8px;
    padding: 24px;
}
.bio-card h4 {
    font-family: 'DM Serif Display', serif;
    font-size: 1rem;
    color: var(--forest);
    margin-bottom: 8px;
}
.bio-card p { font-size: 0.88rem; color: var(--slate); margin: 0; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .has-sidebar .page-body { margin-left: 0; }

    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-toggle { display: flex; }
    .sidebar-overlay.open { display: block; }

    .page-content { padding: 32px 24px 60px; }
    h1.page-title { font-size: 2rem; }
    .case-row { grid-template-columns: 1fr; gap: 12px; }
    .bio-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .site-header .wordmark { font-size: 2.2rem; }
    .top-nav a { margin: 0 10px; font-size: 0.88rem; }
    footer { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
    h1.page-title { font-size: 1.7rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .callout { padding: 28px 22px; }
    .case-study { padding: 24px 20px; }
    .top-nav a { margin: 0 8px; font-size: 0.82rem; }
}
