/*
Theme Name: CraViero Compliance
Theme URI: https://craviero.com
Author: Craviero LLC
Description: Compliance-first B2B wholesale procurement theme for CraViero LLC.
Version: 2.0.1
License: MIT
Text Domain: craviero
*/

:root {
    --bg: #ffffff;
    --surface: #f4f6f9;
    --ink: #141a22;
    --muted: #5b6776;
    --line: #d7dde6;
    --accent: #154f8f;
    --accent-dark: #0c3764;
    --radius: 12px;
    --shadow: 0 16px 40px rgba(15, 23, 32, 0.08);
    --shadow-soft: 0 10px 24px rgba(15, 23, 32, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "IBM Plex Sans", "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    max-width: 100%;
    display: block;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 12px;
    padding: 8px 12px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 6px 16px rgba(15, 23, 32, 0.06);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
}

.logo-text {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.4px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 600;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-list li {
    list-style: none;
}

.nav-list a {
    color: var(--ink);
    opacity: 0.8;
}

.nav-list a:hover,
.nav-list a:focus {
    opacity: 1;
    color: var(--accent);
}

.nav-cta {
    margin-left: 12px;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    margin: 4px 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.page-hero {
    padding: 72px 0 48px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    align-items: center;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--muted);
    margin-bottom: 16px;
}

.lead {
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 20px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 8px;
    border: 1px solid var(--accent);
    font-weight: 600;
    transition: all 0.2s ease;
}

.button-solid {
    background: var(--accent);
    color: #fff;
}

.button-outline {
    background: transparent;
    color: var(--accent);
}

.button-solid:hover,
.button-solid:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.button-outline:hover,
.button-outline:focus {
    background: rgba(21, 79, 143, 0.08);
}

.section {
    padding: 64px 0;
}

.section-muted {
    background: var(--surface);
}

.section-header {
    max-width: 720px;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--muted);
}

.badge-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.badge {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--muted);
    background: #fff;
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card p,
.card li {
    color: var(--muted);
}

.checklist {
    list-style: none;
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.checklist li::before {
    content: "✓";
    margin-right: 8px;
    color: var(--accent);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.category-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    font-weight: 600;
    text-align: center;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.process-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.step-index {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 12px;
}

.notice {
    border-left: 4px solid var(--accent);
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 16px;
    color: var(--muted);
}

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-weight: 600;
    font-size: 14px;
}

.field input,
.field select,
.field textarea {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.field small {
    color: var(--muted);
}

.checkbox-field {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
}

.form-alert {
    display: none;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.form-alert.success {
    display: block;
    background: #e7f3ec;
    border: 1px solid #b9dcc8;
    color: #1f5a3f;
}

.form-alert.error {
    display: block;
    background: #f7e9ea;
    border: 1px solid #e3c1c4;
    color: #6b2a2f;
}

.site-footer {
    background: #101621;
    color: #dbe3ef;
    padding: 56px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-notices {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    font-size: 13px;
    color: rgba(219, 227, 239, 0.7);
    display: grid;
    gap: 8px;
}

.footer-meta {
    color: rgba(219, 227, 239, 0.5);
}

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .primary-nav {
        position: absolute;
        right: 4vw;
        top: 72px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 16px;
        display: none;
        flex-direction: column;
        box-shadow: var(--shadow);
    }

    .primary-nav.open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

@media (max-width: 600px) {
    .page-hero {
        padding: 56px 0 36px;
    }

    .section {
        padding: 48px 0;
    }

    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }
}
