/* Styles for the service partner directory pages (/directory/, /utah/, city pages, trade pages).
   Design tokens, header, footer and buttons mirror the homepage (static/index.html). */
:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a8a;
    --primary-dark: #152a45;
    --accent: #0ea5e9;
    --accent-light: #38bdf8;
    --success: #10b981;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg-light);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--text-dark);
    line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--accent); }

/* Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 32px;
}
.header-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.header-title { font-size: 1.25rem; font-weight: 700; color: var(--primary); letter-spacing: -0.01em; }
.logo { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.logo img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--text-medium); text-decoration: none; font-weight: 500; font-size: 0.94rem; transition: color 0.2s ease; }
.main-nav a:hover { color: var(--primary); }
.nav-cta-btn {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 10px 24px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.nav-cta-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Page hero */
.page-hero {
    text-align: center;
    padding: 72px 24px 64px;
    background-image: linear-gradient(135deg, rgba(21,42,69,0.92) 0%, rgba(30,58,95,0.86) 100%), url('/static/background.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}
.page-hero-inner { max-width: 760px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.18; margin: 0 0 18px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; color: var(--accent-light); margin: 0 0 14px; }
.hero-sub { font-size: 1.05rem; line-height: 1.75; color: rgba(255,255,255,0.88); margin: 0; }
.breadcrumbs { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 22px; }
.breadcrumbs a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }

/* Sections */
.section { padding: 72px 24px; }
.section-alt { background: var(--bg-white); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }
.section-title { font-size: 1.75rem; font-weight: 700; color: var(--primary); text-align: center; margin: 0 0 14px; }
.section-title.left { text-align: left; margin-bottom: 22px; }
.section-sub { text-align: center; color: var(--text-medium); max-width: 640px; margin: 0 auto 44px; line-height: 1.75; }
.note { text-align: center; color: var(--text-medium); font-size: 0.95rem; margin: 36px 0 0; }

/* Market chooser */
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 760px; margin: 0 auto; }
.market-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.market-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent-light); }
.market-card h2 { margin: 0 0 10px; font-size: 1.4rem; color: var(--primary); }
.market-card p { margin: 0 0 20px; color: var(--text-medium); font-size: 0.95rem; line-height: 1.65; }
.market-card-link { margin-top: auto; font-weight: 600; font-size: 0.92rem; color: var(--accent); }

/* Trade grid */
.trade-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.trade-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.trade-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent-light); }
.trade-card h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--text-dark); }
.trade-card p { margin: 0 0 18px; color: var(--text-medium); font-size: 0.92rem; line-height: 1.65; }
.badge { margin-top: auto; display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.badge-active { background: rgba(16,185,129,0.12); color: #047857; }
.badge-soon { background: var(--bg-light); border: 1px solid var(--border); color: var(--text-light); }

/* Partner + vacant cards */
.partner-card, .vacant-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 34px 32px;
}
.partner-card { border-left: 4px solid var(--accent); }
.partner-head { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.partner-logo { width: 96px; height: 96px; flex-shrink: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.partner-head h3 { margin-bottom: 12px; }
.partner-head h3 a { color: var(--primary); text-decoration: none; }
.partner-head h3 a:hover { color: var(--accent); text-decoration: underline; }
.credential-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.credential-list li {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(14,165,233,0.1);
    border: 1px solid rgba(14,165,233,0.25);
    border-radius: 999px;
    padding: 4px 12px;
}
.partner-card h3, .vacant-card h2 { margin: 0 0 10px; font-size: 1.35rem; color: var(--primary); }
.partner-card p, .vacant-card p { margin: 0 0 20px; color: var(--text-medium); line-height: 1.75; }
.founder {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px;
    padding: 16px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.founder-photo { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.partner-card .founder p { margin: 0; line-height: 1.4; }
.partner-card .founder .founder-name { font-weight: 700; font-size: 1.05rem; color: var(--primary); }
.partner-card .founder .founder-title { font-size: 0.9rem; color: var(--text-light); margin-top: 2px; }
.partner-facts { margin: 0 0 24px; display: grid; gap: 10px; }
.partner-facts div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.partner-facts dt { font-weight: 600; color: var(--text-dark); }
.partner-facts dd { margin: 0; color: var(--text-medium); line-height: 1.6; }
.partner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Checklists + pills */
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 32px; color: var(--text-medium); line-height: 1.7; }
.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/70% no-repeat;
}
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list a {
    display: inline-block;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}
.pill-list a:hover { border-color: var(--accent); color: var(--accent); }

/* Buttons */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 13px 28px;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(14,165,233,0.3); }
.btn-outline { border: 2px solid var(--border); color: var(--primary); background: var(--bg-white); padding: 11px 26px; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* CTA banner */
.cta-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; text-align: center; padding: 72px 24px; }
.cta-banner h2 { font-size: 1.75rem; font-weight: 700; margin: 0 0 14px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0 auto 28px; max-width: 620px; line-height: 1.7; }
.cta-banner .market-switch { margin: 28px auto 0; font-size: 0.9rem; }
.cta-banner .market-switch a { color: var(--accent-light); }

/* Footer */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 40px 24px 24px; }
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
    margin-bottom: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 1.05rem; }
.footer-brand img { width: 36px; height: 36px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { text-align: center; font-size: 0.85rem; margin: 0; }
.footer-copy a { color: var(--accent-light); text-decoration: none; }

@media (max-width: 860px) {
    .main-nav { display: none; }
}
@media (max-width: 768px) {
    .header-inner { padding: 12px 20px; }
    .header-title { font-size: 1.05rem; }
    .logo { width: 42px; height: 42px; }
    .section { padding: 56px 20px; }
    .section-title { font-size: 1.5rem; }
    .partner-card, .vacant-card { padding: 26px 22px; }
    .partner-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .partner-facts div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 480px) {
    .header-title { display: none; }
    .nav-cta-btn { padding: 10px 18px; }
}
