:root {
    --ink: #171b1f;
    --ink-soft: #454c54;
    --paper: #faf9f7;
    --surface: #ffffff;
    --border: #e4e2de;
    --accent: #c8352e;
    --accent-dark: #a02821;
    --accent-ink: #ffffff;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', -apple-system, Segoe UI, sans-serif;
    line-height: 1.55;
}

h1, h2, h3 {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 800;
    text-wrap: balance;
    margin: 0;
}

p {
    color: var(--ink-soft);
    margin: 0 0 0.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */

.site-header {
    background: var(--surface);
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header-top {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    font-weight: 700;
    margin-right: auto;
}

.brand-logo {
    display: block;
    height: 40px;
    width: auto;
}

.brand-text {
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.brand-text-small {
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.brand-text strong {
    font-weight: 800;
}

.site-nav {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem 0.85rem;
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.site-nav a {
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.site-nav a:hover {
    color: var(--accent);
}

.site-header-cta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-lg {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Light blue - matches the icon treatment on reyesco.com/clientmanager.html, used for links
   that lead off to REYESCO's shared Resources/Guides content rather than the site's own CTAs. */
.btn-info {
    background: #dbe9ff;
    color: #0b5acf;
}

.btn-info:hover {
    background: #c7ddff;
}

/* Hero */

.hero {
    background: var(--surface);
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    padding: 5rem 1.5rem 5.5rem;
}

.hero-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}


.hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.1rem);
    color: var(--ink);
    margin-bottom: 1.1rem;
}

.hero-sub {
    color: var(--ink-soft);
    font-size: 1.08rem;
    max-width: 620px;
    margin: 0 auto 1.75rem;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-note {
    color: var(--ink-soft);
    opacity: 0.75;
    font-size: 0.85rem;
    max-width: 520px;
    margin: 0 auto;
}

/* Compact page-header hero (Features/Pricing/Who We Serve/About/Contact) - tighter than
   Home's full flagship hero, and its eyebrow reads larger since there's no h1/hero-sub
   competing for attention above it the way Home's pillars section does. */
.hero-compact {
    padding: 1.75rem 1.5rem 1.5rem;
}

.hero-compact .eyebrow {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.hero-compact + section > .section-inner {
    padding-top: 1.5rem;
}

.hero-compact .hero-inner {
    max-width: 920px;
}

.hero-compact h1 {
    font-size: clamp(1.4rem, 2.8vw, 2.1rem);
    white-space: nowrap;
}

.hero-compact .hero-sub {
    max-width: 920px;
}

@media (max-width: 720px) {
    .hero-compact h1 {
        white-space: normal;
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }
}

/* Sections */

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Pillars */

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.pillar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.pillar-index {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.pillar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.pillar-card p {
    font-size: 0.92rem;
    margin: 0;
}

/* Verticals */

.verticals {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.vertical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.vertical-card {
    text-align: center;
    padding: 1.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
}

.vertical-banner {
    background: var(--accent);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vertical-banner strong {
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
}

.vertical-banner span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Footer */

.site-footer {
    background: var(--surface);
    color: var(--ink-soft);
    border-top: 1px solid var(--border);
}

.site-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    /* Below 480px the top row's brand text and CTA buttons get tight - drop the small
       "REYESCO ClientManager" wordmark text (logo image alone still identifies the brand)
       and shrink the CTA buttons' padding, matching this site's existing preference for a
       plain CSS/no-JS mobile treatment over a hamburger toggle. */
    .site-header-top {
        flex-wrap: wrap;
        row-gap: 0.6rem;
        gap: 0.75rem;
    }
    .brand-text {
        display: none;
    }
    .brand-logo {
        height: 32px;
    }
    .site-header-cta {
        gap: 0.4rem;
    }
    .site-header-cta .btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }
    .site-nav {
        gap: 0.9rem 1.1rem;
    }
}
