/* ===== MS Financials - site stylesheet ===== */

:root {
    --teal: #119583;
    --teal-dark: #0E7A6B;
    --teal-tint: #E3F5F1;
    --teal-tint-2: #CDEDE6;
    --navy: #122037;
    --bg: #ffffff;
    --bg-tint: #F5F7F9;
    --text-primary: #16202B;
    --text-secondary: #5B6672;
    --border: #E3E7EB;
    --radius: 10px;
    --max-width: 1140px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--navy);
}

h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 18px; }

p { color: var(--text-secondary); margin: 0 0 16px; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-primary {
    background: var(--teal);
    color: #fff;
}
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-weight: 700;
    font-size: 17px;
}
.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    position: relative;
    font-size: 14px;
    font-weight: 800;
}
.logo-bars { display: none; }
.logo-wordmark { white-space: nowrap; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.site-nav a:not(.btn) {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
}
.site-nav a.active,
.site-nav a:not(.btn):hover { color: var(--navy); }
.site-header > .container > a.btn { display: none; }
.site-nav .btn { margin-left: 8px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
}

/* ===== Hero ===== */
.hero { padding: 96px 24px 72px; }
.hero-inner { max-width: 760px; }
.eyebrow {
    color: var(--teal);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 14px;
}
.hero-sub {
    font-size: 18px;
    max-width: 620px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--navy); }
.section-head {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}
.section-head h2 { color: var(--navy); }
.section-head p { font-size: 16px; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--teal-tint);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-block h3 { margin-bottom: 8px; }
.feature-block p { font-size: 15px; margin: 0; }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; margin: 0; }

/* ===== Founders (about page) ===== */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 560px;
    margin: 0 auto;
}
.founder-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
}
.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.founder-name { font-weight: 700; font-size: 17px; color: var(--navy); }
.founder-role { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

/* ===== CTA band ===== */
.cta-band { padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C6D0DA; }

/* ===== Footer ===== */
.site-footer {
    background: var(--navy);
    padding: 56px 0 24px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span {
    color: #A9B4C0;
    font-size: 14px;
}
.footer-col a:hover { color: #fff; }
.footer-blurb { color: #8592A1; font-size: 14px; margin-top: 10px; }
.footer-label {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}
.site-footer .logo { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: #7E8B99;
    font-size: 13px;
}

/* ===== Services page ===== */
.page-intro {
    padding: 72px 24px 48px;
    max-width: 720px;
}
.service-row {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
    padding: 56px 0;
}
.service-row.reverse { grid-template-columns: .9fr 1.1fr; }
.service-row.reverse .visual { order: -1; }
.service-band--alt { background: var(--bg-tint); }
.service-num {
    color: var(--teal);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}
.service-title { margin-bottom: 12px; }
.service-desc { font-size: 16px; }
.check-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-primary);
}
.check-list svg { color: var(--teal); flex-shrink: 0; }
.visual { display: flex; align-items: center; justify-content: center; }
.pattern-block {
    background: var(--bg-tint);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.step { text-align: center; }
.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* ===== Contact page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    padding: 0 0 72px;
    align-items: start;
}
.contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field-group input,
.field-group select,
.field-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 15px;
    color: var(--text-primary);
    background: #fff;
}
.field-group textarea { min-height: 110px; resize: vertical; }
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-tint);
}
.form-status { font-size: 14px; color: var(--teal-dark); margin: 0; }
.form-note { font-size: 13px; color: var(--text-secondary); margin: 4px 0 0; }

.info-card {
    background: var(--bg-tint);
    border-radius: var(--radius);
    padding: 32px;
}
.info-card-label {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    font-size: 15px;
}
.info-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.info-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--teal-tint);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.info-label { font-size: 13px; color: var(--text-secondary); }
.info-value { font-size: 15px; color: var(--text-primary); font-weight: 500; }
.info-divider { height: 1px; background: var(--border); margin: 8px 0 16px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .site-nav {
          display: none;
          position: absolute;
          top: 76px;
          left: 0;
          right: 0;
          background: #fff;
          border-bottom: 1px solid var(--border);
          flex-direction: column;
          align-items: flex-start;
          gap: 4px;
          padding: 16px 24px 24px;
    }
    .site-nav a:not(.btn) { padding: 10px 0; width: 100%; }
    .site-nav.nav-open { display: flex; }
    .nav-toggle { display: flex; }
    .site-header > .container > a.btn { display: inline-block; }
    h1 { font-size: 32px; }
    .grid-3, .grid-2, .founders-grid, .steps-grid { grid-template-columns: 1fr; }
    .service-row, .service-row.reverse {
          grid-template-columns: 1fr;
    }
    .service-row.reverse .visual { order: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 64px 24px 48px; }
}
