/* ============================================================
   Buckeye Payroll System — Main Stylesheet
   ============================================================ */

/* ── Reset & Root ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cream:           #FDF8F2;
    --warm-white:      #FFFCF8;
    --red:             #BB2A2A;
    --red-hover:       #D94040;
    --red-pale:        #FAEAEA;
    --gold:            #C8882A;
    --gold-pale:       #FEF5E7;
    --green:           #2D6A2D;
    --charcoal:        #2C2422;
    --warm-gray:       #6B5F58;
    --border:          #E2D8CF;
    --light-warm:      #EDE5DD;
    --font-display:    'Playfair Display', Georgia, serif;
    --font-body:       'DM Sans', system-ui, sans-serif;
    --radius-sm:       6px;
    --radius-md:       10px;
    --radius-lg:       16px;
    --shadow-sm:       0 1px 3px rgba(44,36,34,.07);
    --shadow-md:       0 4px 16px rgba(44,36,34,.10);
    --transition:      0.2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ── Typography Utilities ─────────────────────────────────── */
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .6rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.25;
    margin-bottom: .9rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--warm-gray);
    font-weight: 300;
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 2.5rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), border-color var(--transition);
    line-height: 1;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--red); background: var(--red-pale); }

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-pad { padding: 5rem 2rem; }

/* ── Navigation ───────────────────────────────────────────── */
.main-nav {
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

/* Logo wrapper — transparent PNG: no bg; dark-bg PNG: rounded dark pill */
.nav-logo-img-wrap { display: flex; align-items: center; }

.nav-logo-img-wrap.logo-dark-bg {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 3px 10px;
    /* Crops the solid black bleed to a clean container */
}

.nav-logo-img { height: 48px; width: auto; display: block; }

/* When transparent logo is uploaded, no dark bg needed */
.nav-logo-img-wrap:not(.logo-dark-bg) .nav-logo-img { height: 52px; }

.nav-logo-fallback {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon-box {
    width: 40px; height: 40px;
    background: var(--red);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.logo-fallback-text {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--red);
}

/* "A subsidiary of" label in nav */
.nav-subsidiary {
    border-left: 1px solid var(--border);
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.subsidiary-label {
    font-size: 10px;
    color: var(--warm-gray);
    letter-spacing: .04em;
    text-transform: uppercase;
    font-style: italic;
}

.subsidiary-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
}

.subsidiary-name:hover { text-decoration: underline; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--warm-gray);
    text-decoration: none;
    transition: color var(--transition);
}

.nav-links a:hover { color: var(--red); }

.nav-btn-login {
    background: var(--red);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px !important;
    transition: background var(--transition) !important;
}
.nav-btn-login:hover { background: var(--red-hover) !important; }

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-mobile {
    display: none;
    background: var(--warm-white);
    border-top: 1px solid var(--border);
    padding: 1rem 2rem 1.5rem;
}
.nav-mobile ul { display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile a  { font-size: 15px; font-weight: 500; color: var(--warm-gray); text-decoration: none; }
.nav-mobile a:hover { color: var(--red); }
.nav-mobile.open { display: block; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    padding: 5.5rem 2rem 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200,136,42,.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(187,42,42,.05)  0%, transparent 60%);
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-pale);
    border: 1px solid rgba(200,136,42,.3);
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.2;
    max-width: 720px;
    margin: 0 auto 1.25rem;
    color: var(--charcoal);
}

.hero h1 em { font-style: normal; color: var(--red); }

.hero-desc {
    font-size: 1.1rem;
    color: var(--warm-gray);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Stats Band ───────────────────────────────────────────── */
.stats-band {
    background: var(--red);
    padding: 2rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat { text-align: center; color: #fff; }
.stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label { font-size: 11px; opacity: .8; letter-spacing: .06em; text-transform: uppercase; }

/* ── Feature Cards ────────────────────────────────────────── */
.features-section { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    font-size: 20px;
}
.icon-red   { background: var(--red-pale); }
.icon-gold  { background: var(--gold-pale); }
.icon-green { background: #E8F3E8; }

.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: .5rem; }
.feature-card p  { font-size: 13.5px; color: var(--warm-gray); line-height: 1.65; font-weight: 300; }

/* ── State Coverage ───────────────────────────────────────── */
.states-section {
    background: var(--warm-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4.5rem 2rem;
}

.states-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.state-cards { display: flex; flex-direction: column; gap: 1rem; }

.state-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color var(--transition);
}
.state-card:hover { border-color: var(--gold); }

.state-flag {
    width: 48px; height: 48px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.state-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.state-info p  { font-size: 13px; color: var(--warm-gray); }

.state-badge {
    margin-left: auto;
    background: var(--gold-pale);
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

/* ── Trust Band ───────────────────────────────────────────── */
.trust-band {
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 2rem;
    text-align: center;
}

.trust-inner { max-width: 900px; margin: 0 auto; }

.trust-band h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.trust-band > .trust-inner > p {
    font-size: 14px;
    color: var(--warm-gray);
    margin-bottom: 2rem;
    font-weight: 300;
}

.trust-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.trust-pillar {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
}

.trust-pillar-icon { font-size: 22px; margin-bottom: 8px; display: block; }
.trust-pillar h4   { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.trust-pillar p    { font-size: 12px; color: var(--warm-gray); line-height: 1.5; }

/* ── Prospect Form ────────────────────────────────────────── */
.form-section {
    background: var(--warm-white);
    border-top: 1px solid var(--border);
    padding: 5rem 2rem;
}

.form-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.form-pitch h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.form-pitch > p {
    color: var(--warm-gray);
    font-size: 15px;
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 2rem;
}

.pitch-points { display: flex; flex-direction: column; gap: 12px; }

.pitch-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.check {
    width: 20px; height: 20px;
    background: var(--red-pale);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Form Card */
.form-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.form-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.form-card .form-desc { font-size: 13px; color: var(--warm-gray); margin-bottom: 1.75rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--charcoal);
    outline: none;
    width: 100%;
    transition: border-color var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }

.form-group input.error,
.form-group select.error { border-color: var(--red); background: #fff8f8; }

.form-group .field-error {
    font-size: 11px;
    color: var(--red);
    margin-top: 2px;
    display: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B5F58' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-footer { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 12px; }

.btn-form-submit {
    width: 100%;
    padding: 14px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.btn-form-submit:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.form-privacy {
    font-size: 11px;
    color: var(--warm-gray);
    text-align: center;
    line-height: 1.6;
}

/* Success State */
.form-success {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
}

.success-icon {
    width: 64px; height: 64px;
    background: #E8F3E8;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: .5rem;
}

.form-success p { font-size: 14px; color: var(--warm-gray); line-height: 1.7; }

/* Alert Banner */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.alert-error   { background: #fdf2f2; border-color: #f5c6c6; color: #7c2b2b; }
.alert-success { background: #f0faf0; border-color: #b3ddb3; color: #2a5c2a; }

/* ── Footer ───────────────────────────────────────────────── */
.main-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,.65);
    padding: 3.5rem 2rem 2rem;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .85;
    margin-bottom: 10px;
}

.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 260px; }

.footer-subsidiary {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    margin-top: 6px;
    font-style: italic;
}
.footer-subsidiary a { color: rgba(255,200,200,.75); text-decoration: none; }
.footer-subsidiary a:hover { color: #fff; }

.footer-col h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.9);
    margin-bottom: 12px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a  { font-size: 13px; color: rgba(255,255,255,.5); text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin-bottom: 8px;
}
.footer-contact svg { opacity: .6; flex-shrink: 0; }
.footer-contact a { color: rgba(255,200,200,.8); text-decoration: none; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: 12px;
    color: rgba(255,255,255,.35);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .states-inner { grid-template-columns: 1fr; }
    .form-inner   { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .nav-links    { display: none; }
    .nav-hamburger { display: flex; }
    .stats-band   { gap: 2rem; }
    .form-row     { grid-template-columns: 1fr; }
    .footer-top   { flex-direction: column; }
}
