/* ==============================================
   SaltShore Systems — V3 Stylesheet
   Saltshore coastal-clean, deterministic design
   Dev server: php -S localhost:8080 (from saltshore.net root)
   Browse to: http://localhost:8080/V3/
   ============================================== */

/* === Font Declaration === */
@font-face {
    font-family: 'Revans';
    src: url('../fonts/Revans-Medium-2026.woff2') format('woff2'),
         url('../fonts/Revans-Medium-2026.woff') format('woff'),
         url('../fonts/Revans-Medium-2026.otf') format('opentype'),
         url('../fonts/Revans-Medium-2026.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color palette */
    --color-primary:      #0A1A2F;
    --color-secondary:    #112B45;
    --color-accent:       #2E8BC0;
    --color-accent-dark:  #1a6a9e;
    --color-light:        #F7F9FB;
    --color-text:         #F7F9FB;
    --color-text-muted:   rgba(247, 249, 251, 0.65);
    --color-body-text:    #1C2B3A;
    --color-body-mid:     #3a4a5c;
    --color-body-soft:    #4a5568;
    --color-body-faint:   #6a7a8a;
    --color-border:       rgba(46, 139, 192, 0.15);

    /* Spacing rhythm: 4 / 8 / 16 / 24 / 32 / 48 / 64 */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Layout */
    --sidebar-width: 260px;
    --content-max:   920px;
    --content-wide:  1320px;

    /* Typography */
    --font-primary:    'Revans', sans-serif;
    --leading-tight:   1.25;
    --leading-base:    1.7;
    --tracking-hero:   0.5px;

    /* Borders */
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-full: 999px;

    /* Transitions */
    --transition: 0.2s ease;

    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 500;
    background: var(--color-light);
    color: var(--color-body-text);
    min-height: 100vh;
    display: flex;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Headings & Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 500;
    letter-spacing: var(--tracking-hero);
    line-height: var(--leading-tight);
}

h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h2 { font-size: clamp(1.15rem, 2vw, 1.55rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }

p {
    line-height: var(--leading-base);
    font-family: var(--font-primary);
    font-weight: 500;
}

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

a:hover {
    color: var(--color-accent-dark);
}

/* === Layout Shell === */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
    z-index: 100;
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-right: 1px solid rgba(46, 139, 192, 0.12);
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    max-width: 100%;
    background: var(--color-light);
    overflow-x: hidden;
}

/* === Sidebar Logo Block === */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    text-decoration: none;
}

.sidebar-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    background: #F8F6F0;
    padding: 2px;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-logo-text {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    line-height: 1.3;
}

.sidebar-logo-text span {
    display: block;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* === Sidebar Navigation === */
.sidebar-nav {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.sidebar-nav a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition), letter-spacing var(--transition), box-shadow var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.sidebar-nav a::after {
    content: '';
    position: absolute;
    left: var(--space-md);
    right: var(--space-md);
    bottom: 7px;
    height: 1px;
    background: linear-gradient(90deg, rgba(46, 139, 192, 0), rgba(46, 139, 192, 0.9), rgba(46, 139, 192, 0));
    transform: scaleX(0.25);
    transform-origin: center;
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--color-text);
    background: rgba(46, 139, 192, 0.12);
    letter-spacing: 0.55px;
    box-shadow: inset 0 0 0 1px rgba(46, 139, 192, 0.08);
}

.sidebar-nav a:hover::after,
.sidebar-nav a.active::after {
    transform: scaleX(1);
    opacity: 1;
}

.sidebar-nav a.active {
    color: var(--color-accent);
    border-left: 2px solid var(--color-accent);
    padding-left: calc(var(--space-md) - 2px);
}

/* === Sidebar Bottom === */
.sidebar-bottom {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.sidebar-contact-link {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sidebar-contact-link:hover {
    color: var(--color-accent);
}

/* === Hamburger Button === */
.hamburger {
    display: none;
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 200;
    background: var(--color-primary);
    border: 1px solid rgba(46, 139, 192, 0.25);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* Hamburger → X animation */
.nav-open .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-open .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === Sidebar Overlay (mobile backdrop) === */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 90;
    backdrop-filter: blur(2px);
}

/* === Buttons === */
.btn-primary {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    padding: 12px var(--space-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    text-align: center;
    transition: background var(--transition), transform var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--color-body-text);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    padding: 11px var(--space-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    text-align: center;
    border: 1px solid rgba(10, 26, 47, 0.2);
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-1px);
}

/* Ghost button for dark backgrounds (hero, CTA band) */
.btn-ghost-dark {
    display: inline-block;
    background: transparent;
    color: rgba(247, 249, 251, 0.82);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    padding: 11px var(--space-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    text-align: center;
    border: 1px solid rgba(247, 249, 251, 0.22);
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
    cursor: pointer;
}

.btn-ghost-dark:hover {
    color: #fff;
    border-color: rgba(247, 249, 251, 0.5);
    transform: translateY(-1px);
}

.btn-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
}

/* === Hero Section === */
.hero {
    background: var(--color-primary);
    color: var(--color-text);
    padding: 56px var(--space-2xl) 68px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -80px;
    width: min(720px, 72vw);
    height: 180px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(46, 139, 192, 0.24) 0%, rgba(46, 139, 192, 0.08) 45%, rgba(46, 139, 192, 0) 78%);
    filter: blur(18px);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.4;
}

/* Large logo for home hero */
.hero-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 50%;
    background: #F8F6F0;
    padding: 0;
    margin-bottom: var(--space-xl);
    box-shadow: 0 0 0 1px rgba(46, 139, 192, 0.2),
                0 8px 40px rgba(0, 0, 0, 0.35);
}

/* Inner-page hero logo (slightly smaller) */
.hero-inner-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    background: #F8F6F0;
    padding: 0;
    margin-bottom: var(--space-lg);
    box-shadow: 0 0 0 1px rgba(46, 139, 192, 0.2),
                0 6px 28px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.hero-tagline {
    font-size: 0.78rem;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.hero h1 {
    color: var(--color-text);
    font-size: clamp(2.3rem, 4.8vw, 4.2rem);
    margin-bottom: 18px;
}

.hero-subhead {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 48ch;
    line-height: var(--leading-base);
    margin-bottom: 28px;
}

/* Small hero variant for inner pages */
.hero-sm {
    padding: var(--space-2xl) var(--space-2xl) 56px;
}

/* === Content Sections === */
.section {
    padding: 52px var(--space-2xl);
    max-width: var(--content-wide);
    margin: 0 auto;
}

.section-full {
    padding: 52px var(--space-2xl);
}

.section-alt {
    background: var(--color-secondary);
    color: var(--color-text);
}

.section-alt h2,
.section-alt h3 {
    color: var(--color-text);
}

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

.section-label {
    font-size: 0.78rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 10px;
    display: block;
}

.section h2,
.section-full h2,
.cta-band h2 {
    margin-bottom: 12px;
}

.section p,
.section-full p,
.cta-band p {
    font-size: 0.96rem;
}

.section-inner {
    max-width: var(--content-wide);
    margin: 0 auto;
}

/* Alternating two-column layout */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    max-width: var(--content-wide);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-2xl);
}

/* Nested split-section inside a section-full/section-alt wrapper.
   Removes desktop padding (the parent section provides it) while
   allowing the mobile breakpoint to restore padding via class specificity. */
.split-section--nested {
    padding: 0;
}

.split-section.reverse > :first-child {
    order: 2;
}
.split-section.reverse > :last-child {
    order: 1;
}

.split-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.split-visual {
    background: rgba(46, 139, 192, 0.06);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    font-size: 4rem;
}

/* === Product Card Grid (Image -> Text -> Button) === */
.product-grid-section {
    max-width: var(--content-wide);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-2xl);
    border-radius: var(--radius-lg);
}

/* Alternate the backdrop area around card groups (deepest visible layer). */
.product-grid-section:nth-of-type(odd) {
    background: rgba(10, 26, 47, 0.08);
}

.product-grid-section:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.78);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl);
}

.product-grid--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    box-shadow: 0 12px 20px rgba(10, 26, 47, 0.08);
}

.product-card__image {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--color-border);
    height: 220px;
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card__image--dark {
    background: rgba(46, 139, 192, 0.1);
}

.product-card__image img {
    display: block;
    max-width: 100%;
    max-height: 170px;
    object-fit: contain;
}

/* Home suite logos: keep equal visual footprint across mixed source dimensions. */
.home-page .home-suite-grid .product-card__image img {
    height: 132px;
    width: auto;
    max-width: 85%;
}

.product-card__icon {
    font-size: 3.1rem;
    line-height: 1;
    text-align: center;
}

.product-card__body {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    flex: 1;
}

.product-card__body h2 {
    margin: 0;
}

.product-card__body p {
    margin: 0;
    font-size: 0.95rem;
}

.product-card__body .feature-list {
    flex: 1;
}

.product-card__body .btn-primary,
.product-card__body .btn-ghost-dark {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* === Feature List === */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    font-size: 0.97rem;
    line-height: var(--leading-base);
    color: var(--color-body-mid);
}

.feature-list li::before {
    content: '—';
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.section-alt .feature-list li {
    color: var(--color-text-muted);
}

/* === Trust Badge Row === */
.trust-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.trust-badge {
    text-align: center;
    padding: 16px 12px;
}

.trust-badge-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-accent);
}

.trust-badge-icon svg {
    display: block;
    color: inherit;
}

.trust-badge strong {
    display: block;
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.trust-badge p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* === Pipeline Flow === */
.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: 24px;
}

.pipeline-step {
    background: rgba(46, 139, 192, 0.08);
    border: 1px solid rgba(46, 139, 192, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    text-align: center;
    min-width: 140px;
}

.pipeline-step strong {
    display: block;
    color: var(--color-primary);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.pipeline-step span {
    font-size: 0.82rem;
    color: var(--color-body-faint);
}

.pipeline-arrow {
    color: var(--color-accent);
    font-size: 1.5rem;
    opacity: 0.7;
}

/* === CTA Band === */
.cta-band {
    background: var(--color-primary);
    color: var(--color-text);
    padding: 44px var(--space-2xl) 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -72px;
    transform: translateX(-50%);
    width: min(760px, 76vw);
    height: 120px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(46, 139, 192, 0.2) 0%, rgba(46, 139, 192, 0.07) 45%, rgba(46, 139, 192, 0) 78%);
    filter: blur(20px);
}

.cta-band-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.cta-band h2 {
    color: var(--color-text);
}

.cta-band p {
    color: var(--color-text-muted);
    max-width: 48ch;
    line-height: var(--leading-base);
}

.cta-portal-link {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F8F6F0;
    box-shadow: 0 4px 14px rgba(10, 26, 47, 0.28);
    margin-right: 8px;
}

.cta-portal-link img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

/* === Contact Form === */
.form-section {
    max-width: 560px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.form-group label {
    font-size: 0.88rem;
    letter-spacing: 0.4px;
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px var(--space-md);
    border: 1px solid rgba(10, 26, 47, 0.18);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.97rem;
    color: var(--color-body-text);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(46, 139, 192, 0.12);
}

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

/* === Employee Profile List === */
.employee-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
}

.employee-item {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

.employee-photo {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #f3f4f6;
    flex-shrink: 0;
}

.employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.employee-bio h3 {
    margin-bottom: 6px;
}

.employee-role {
    font-size: 0.86rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: var(--space-sm);
}

/* === Comprehensive Site Footer === */
.site-footer {
    background: var(--color-primary);
    color: var(--color-text-muted);
    padding: var(--space-3xl) var(--space-2xl) var(--space-lg);
    border-top: 1px solid rgba(46, 139, 192, 0.15);
}

.footer-grid {
    max-width: var(--content-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(46, 139, 192, 0.1);
    margin-bottom: var(--space-xl);
}

.footer-logo-block {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    text-decoration: none;
}

.footer-logo-block img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: #F8F6F0;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo-name {
    font-size: 0.78rem;
    color: var(--color-text);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col-tagline {
    font-size: 0.86rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: var(--space-md);
    max-width: 28ch;
}

.footer-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-address p,
.footer-address a {
    font-size: 0.82rem;
    color: rgba(247, 249, 251, 0.48);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-address a:hover {
    color: var(--color-text);
}

.footer-col-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    display: block;
}

.footer-col-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-nav a {
    font-size: 0.86rem;
    color: rgba(247, 249, 251, 0.48);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-col-nav a:hover {
    color: var(--color-text);
}

.footer-col-nav li span {
    font-size: 0.86rem;
    color: rgba(247, 249, 251, 0.28);
}

.footer-social {
    margin-top: var(--space-md);
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.footer-bottom {
    max-width: var(--content-wide);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-bottom-copy {
    font-size: 0.78rem;
    color: rgba(247, 249, 251, 0.38);
    letter-spacing: 0.2px;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom-links a {
    font-size: 0.78rem;
    color: rgba(247, 249, 251, 0.38);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--color-text);
}

/* Social icon (used in footer) */
.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background: transparent;
    text-decoration: none;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.social-icon-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 68, 102, 0.2);
}

.social-icon-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-full);
}

/* === Prose pages (docs, privacy) === */
.prose-page {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-2xl);
}

.prose-page h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    font-size: 1.2rem;
}

.prose-page p {
    margin-bottom: var(--space-lg);
    color: var(--color-body-mid);
}

.prose-page ul {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-lg);
}

.prose-page li {
    margin-bottom: var(--space-sm);
    color: var(--color-body-mid);
    line-height: var(--leading-base);
}

/* === Utility Classes === */
.text-accent  { color: var(--color-accent); }
.text-muted   { color: var(--color-body-faint); }
.text-center  { text-align: center; }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* ==============================================
   RESPONSIVE — MOBILE FIRST
   ============================================== */

@media (max-width: 768px) {
    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Slide sidebar off-screen */
    .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }

    /* Slide sidebar in when nav is open */
    .nav-open .sidebar {
        transform: translateX(0);
    }

    /* Show overlay */
    .nav-open .sidebar-overlay {
        display: block;
    }

    /* Remove sidebar margin from main content */
    .main-content {
        margin-left: 0;
    }

    .hero {
        padding: 48px var(--space-lg) 56px;
        min-height: 46vh;
    }

    .hero-sm {
        padding: var(--space-2xl) var(--space-lg) var(--space-2xl);
    }

    .hero-inner-logo {
        width: 88px;
        height: 88px;
    }

    .section,
    .section-full {
        padding: 40px var(--space-lg);
    }

    .split-section {
        grid-template-columns: 1fr;
        padding: var(--space-2xl) var(--space-lg);
        gap: var(--space-xl);
    }

    .product-grid-section {
        padding: var(--space-2xl) var(--space-lg);
    }

    .product-grid,
    .product-grid--2col {
        grid-template-columns: 1fr;
    }

    /* Nested split-sections get horizontal padding on mobile;
       vertical padding comes from the parent section-full. */
    .split-section--nested {
        padding: 0 var(--space-lg);
    }

    .split-section.reverse > :first-child,
    .split-section.reverse > :last-child {
        order: unset;
    }

    .trust-row {
        grid-template-columns: 1fr;
    }

    .pipeline-flow {
        flex-direction: column;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }

    /* Footer grid collapses to 2-col then 1-col */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }

    /* Employee list stacks vertically */
    .employee-item {
        flex-direction: column;
        gap: var(--space-md);
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-portal-link {
        margin-right: 0;
    }

    .cta-band .btn-primary {
        order: 1;
    }

    .cta-band .btn-ghost-dark {
        order: 2;
    }

    .cta-band .cta-portal-link {
        order: 3;
        align-self: center;
        margin-top: 8px;
        margin-right: 0;
    }

    .btn-primary,
    .btn-ghost,
    .btn-ghost-dark {
        text-align: center;
    }
}
