/* =========================================================
   NexChain - Shared site styles (Home + Service pages)
   ========================================================= */

/* ---------- Theme tokens ---------- */
:root {
    --blue: #181e40;
    --gold: #d5ae38;
    --text: #181e40;
    --muted: #5f6a8a;
    --bg: #ffffff;
    --card: #ffffff;
    --border: rgba(27, 36, 72, 0.12);
}

/* ---------- Base / reset ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    line-height: 1.5;
}

.page {
    min-height: 100vh;
}

.container {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================================================
   Header / Hero
   ========================================================= */
.hero {
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--border);
}

/* Used on service pages (more compact hero spacing) */
.hero-compact {
    padding: 44px 0 34px;
}

.hero-inner {
    width: min(880px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

.logo {
    margin-bottom: 18px;
}

.logo img {
    width: 260px;
    height: auto;
}

/* H1 title on service pages */
.page-title {
    margin: 0 0 10px 0;
    font-size: 2rem;
    color: var(--blue);
    letter-spacing: 0.02em;
}

/* Primary hero paragraph (all pages) */
.lead {
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 auto 18px;
    color: var(--text);
}

/* =========================================================
   Buttons / CTA row
   ========================================================= */
.cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 18px 0 0;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;

    /* Prevent long labels from overflowing on mobile */
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: #ffffff;
}

.btn-outline {
    background: #ffffff;
    color: var(--blue);
    border-color: var(--border);
}

/* =========================================================
   Sections / typography
   ========================================================= */
.section {
    padding: 52px 0;
    scroll-margin-top: 80px;
}

/* Alternate section background (e.g. Team on home) */
.section-alt {
    background: rgba(27, 36, 72, 0.03);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

h2 {
    margin: 0 0 10px 0;
    font-size: 1.9rem;
    color: var(--gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-intro {
    margin: 0 0 24px 0;
    color: var(--muted);
    line-height: 1.6;
}

/* =========================================================
   Grid / Cards
   Used for service grids + team cards, etc.
   ========================================================= */
.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(12, 1fr);
}

.card {
    grid-column: span 12;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 18px;
}

.card h3 {
    margin: 0 0 8px 0;
    color: var(--blue);
    font-size: 1.1rem;
    text-transform: capitalize;
}

.card p {
    margin: 0;
    color: var(--text);
    line-height: 1.65;
}

/* Spacing for the button row inside service cards (home page) */
.card-actions {
    margin-top: 14px;
}

/* Two-column layout on wider screens */
@media (min-width: 820px) {
    .card {
        grid-column: span 6;
    }

    /* Used on home page team grid (two-col) */
    .grid.two-col .card {
        grid-column: span 6;
    }
}

/* List styling used on Virtual Assistant page */
.list {
    margin: 10px 0 0;
    padding-left: 18px;
    line-height: 1.75;
}

/* Team role label and small “note” text */
.role {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.95rem;
    margin-left: 6px;
}

.note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.95rem;
}

/* =========================================================
   Top navigation
   ========================================================= */
.site-nav {
    border-bottom: 1px solid rgba(27, 36, 72, 0.12);
    background: #ffffff;
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: var(--muted);
}

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

/* Mobile nav layout */
@media (max-width: 720px) {
    .nav-inner {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .nav-links {
        justify-content: center;
    }
}

/* =========================================================
   Callout (Virtual Assistant page)
   ========================================================= */
.callout {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}

.callout-title {
    margin: 0 0 8px 0;
    font-weight: 800;
    color: var(--blue);
}

.callout-text {
    margin: 0 0 10px 0;
    color: var(--text);
    line-height: 1.65;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
    padding: 26px 0;
}

.footer-inner {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    text-align: center;
}

.fineprint {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    color: var(--blue);
}

.footer-sep {
    margin: 0 10px;
    color: rgba(27, 36, 72, 0.25);
}