/* Base Theme — neutral, industry-agnostic styles.
   Uses the same structural hooks as other themes (.site-wrap, --site-width,
   .btn, .page) so core/admin output renders consistently. */

:root {
    --bg:        #ffffff;
    --ink:       #1a1a1a;
    --ink-soft:  #4a4a4a;
    --muted:     #8a8a8a;
    --line:      #e6e6e6;
    --line-soft: #f0f0f0;
    --accent:    #2563eb;
    --accent-dark: #1d4ed8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-wrap {
    max-width: var(--site-width, 1100px);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-brand { display: inline-flex; align-items: center; }
.site-brand img { max-height: 40px; width: auto; display: block; }
.site-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--ink-soft); font-weight: 500; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* Main */
.site-main { padding: 48px 0; min-height: 50vh; }

.page h1 { font-size: 36px; line-height: 1.2; margin: 0 0 24px; }
.page h2 { font-size: 26px; margin: 32px 0 14px; }
.page h3 { font-size: 20px; margin: 24px 0 12px; }
.page p  { margin: 0 0 16px; color: var(--ink-soft); }
.page em { font-style: italic; color: var(--accent-dark); }
.page ul, .page ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-soft); }
.page li { margin-bottom: 6px; }
.page-body p:first-child { font-size: 18px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 11px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-weight: 600;
    background: #fff;
    cursor: pointer;
}
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; }

/* Contact form (rendered by core Forms) */
.contact-form-wrap {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.contact-form-wrap h2 { margin-bottom: 16px; }
.rc-form-field { margin-bottom: 16px; }
.rc-form-field label { display: block; margin-bottom: 6px; font-weight: 500; }
.rc-form-field input,
.rc-form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}
.rc-form-flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.rc-form-flash-success { background: #ecfdf5; color: #065f46; }
.rc-form-flash-error   { background: #fef2f2; color: #991b1b; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 32px 0;
    margin-top: 48px;
}
.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.site-title-sm { font-weight: 700; }
.muted { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--ink-soft); font-size: 14px; }

@media (max-width: 640px) {
    .site-header-inner { flex-direction: column; gap: 14px; }
    .page h1 { font-size: 28px; }
}
