/* =========================================================================
   Bagley Strategies — site styles
   ========================================================================= */

:root {
    --color-bg: #ffffff;
    --color-surface: #f7f7f5;
    --color-text: #1a1a1a;
    --color-text-muted: #555555;
    --color-text-faint: #8a8a8a;
    --color-border: #e6e4dd;
    --color-border-strong: #cccccc;

    --color-kevin-bg: #e6f0f9;
    --color-kevin-text: #1a4d7a;
    --color-blair-bg: #eaf3de;
    --color-blair-text: #3b6d11;

    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-pill: 999px;

    --container-max: 1040px;
    --section-padding: clamp(40px, 6vw, 72px);
    --hero-padding-top: clamp(28px, 4vw, 48px);
    --hero-padding-bottom: clamp(32px, 5vw, 56px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

/* ---------- Layout ---------- */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}

.brand {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--color-text);
}

.site-nav {
    display: flex;
    gap: 28px;
}

.site-nav a {
    font-size: 14px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

/* ---------- Typography helpers ---------- */

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-faint);
    margin: 0 0 14px;
}

.eyebrow-centered {
    text-align: center;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 500;
    text-align: center;
    margin: 0 0 32px;
    letter-spacing: -0.005em;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
    line-height: 1.2;
}

.btn-primary {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn-primary:hover {
    background: #000000;
}

.btn-primary:active {
    transform: translateY(1px);
}

/* ---------- Hero ---------- */

.hero {
    padding: var(--hero-padding-top) 0 var(--hero-padding-bottom);
    background: var(--color-bg);
    text-align: center;
}

.hero-inner {
    max-width: 720px;
}

.hero .eyebrow {
    margin-bottom: 12px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
}

.lede {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0 auto 24px;
    max-width: 580px;
}

/* ---------- Team ---------- */

.team {
    background: var(--color-surface);
    padding: var(--section-padding) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--color-surface);
}

.card-identity {
    min-width: 0;
}

.card-name {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}

.card-role {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

.card-bio {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin: 0 0 18px;
}

.tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags li {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.card-kevin .tags li {
    background: var(--color-kevin-bg);
    color: var(--color-kevin-text);
}

.card-blair .tags li {
    background: var(--color-blair-bg);
    color: var(--color-blair-text);
}

/* ---------- Contact ---------- */

.contact {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.contact-inner {
    max-width: 560px;
    text-align: center;
}

.contact-lede {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0 auto 36px;
    max-width: 460px;
}

.contact-form {
    text-align: left;
    margin-top: 8px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text);
}

.optional {
    font-weight: 400;
    color: var(--color-text-faint);
}

.field input,
.field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg);
    padding: 11px 14px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    line-height: 1.5;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--color-text);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    margin-top: 8px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-faint);
}

.footer-inner p {
    margin: 0;
}

.footer-inner a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.footer-inner a:hover {
    color: var(--color-text);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    .header-inner {
        padding: 14px 20px;
    }

    .brand {
        font-size: 18px;
    }

    .site-nav {
        gap: 18px;
    }

    .site-nav a {
        font-size: 13px;
    }

    .container {
        padding: 0 20px;
    }

    .card {
        padding: 22px;
    }

    .avatar {
        width: 64px;
        height: 64px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
