/* Crestline Credit Union – Main Stylesheet */

:root {
    --navy:      #1a3a5c;
    --navy-dark: #122840;
    --gold:      #c9922a;
    --gold-lt:   #e8b84b;
    --offwhite:  #f5f7fa;
    --text:      #2d3748;
    --muted:     #718096;
    --border:    #dde2ea;
    --green:     #276749;
    --red:       #c53030;
}

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    color: var(--text);
    background: var(--offwhite);
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--gold); }

/* ── HEADER ── */
header {
    background: var(--navy);
    color: #fff;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--navy-dark);
    letter-spacing: -.5px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
}

.logo-text .tagline {
    font-size: .7rem;
    color: #a0b4c8;
    letter-spacing: .8px;
    text-transform: uppercase;
}

nav a {
    color: #cdd9e5;
    font-size: .9rem;
    margin-left: 1.6rem;
    text-decoration: none;
    transition: color .15s;
}
nav a:hover { color: var(--gold-lt); text-decoration: none; }
nav a.active { color: #fff; font-weight: 600; }

.header-cta {
    background: var(--gold);
    color: var(--navy-dark) !important;
    font-weight: 700 !important;
    padding: .4rem 1.1rem;
    border-radius: 4px;
    transition: background .15s !important;
}
.header-cta:hover { background: var(--gold-lt) !important; }

/* ── HERO ── */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #2a5280 100%);
    color: #fff;
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.hero p {
    font-size: 1.15rem;
    color: #a0b4c8;
    max-width: 560px;
    margin: 0 auto 2.2rem;
    position: relative;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
}

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    padding: .7rem 1.8rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: none;
    transition: background .15s, transform .1s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
}
.btn-primary:hover { background: var(--gold-lt); color: var(--navy-dark); }

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.45);
}
.btn-outline:hover { border-color: #fff; color: #fff; }

.btn-navy {
    background: var(--navy);
    color: #fff;
}
.btn-navy:hover { background: var(--navy-dark); color: #fff; }

.btn-block { display: block; width: 100%; text-align: center; }

/* ── RATES TICKER ── */
.rates-bar {
    background: var(--navy-dark);
    color: #a0b4c8;
    font-size: .78rem;
    padding: .4rem 2rem;
    display: flex;
    gap: 2.5rem;
    overflow: hidden;
}
.rates-bar span { white-space: nowrap; }
.rates-bar strong { color: var(--gold-lt); }

/* ── CARDS / SECTIONS ── */
.section { padding: 3.5rem 2rem; }
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .4rem;
}
.section-sub {
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: .95rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.6rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .15s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.card-icon {
    font-size: 1.8rem;
    margin-bottom: .8rem;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .4rem;
}

.card p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.55;
}

.card-rate {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green);
    margin: .5rem 0 .2rem;
}
.card-rate-label { font-size: .75rem; color: var(--muted); }

/* ── NOTICE BAND ── */
.notice-band {
    background: #ebf4ff;
    border-left: 4px solid var(--navy);
    padding: 1rem 2rem;
    font-size: .88rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: .8rem;
}

/* ── LOGIN CARD ── */
.login-wrap {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--offwhite);
    padding: 2rem;
}

.login-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2.4rem 2.8rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.login-card h2 {
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: .25rem;
}

.login-card .sub {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .3rem;
}

.form-group input {
    width: 100%;
    padding: .6rem .85rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: .95rem;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.form-group input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26,58,92,.12);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.4rem;
    font-size: .82rem;
}

.secure-note {
    text-align: center;
    font-size: .75rem;
    color: var(--muted);
    margin-top: 1.2rem;
}
.secure-note span { color: var(--green); font-weight: 600; }

/* ── DASHBOARD ── */
.dash-layout {
    display: flex;
    min-height: calc(100vh - 68px);
}

.dash-sidebar {
    width: 230px;
    background: var(--navy-dark);
    color: #cdd9e5;
    padding: 1.5rem 0;
    flex-shrink: 0;
}

.dash-sidebar .greeting {
    padding: .5rem 1.4rem 1.2rem;
    font-size: .82rem;
    color: #7a96ae;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: .5rem;
}
.dash-sidebar .greeting strong { display: block; font-size: 1rem; color: #fff; }

.dash-sidebar a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem 1.4rem;
    font-size: .88rem;
    color: #a0b4c8;
    text-decoration: none;
    transition: background .12s, color .12s;
}
.dash-sidebar a:hover, .dash-sidebar a.active {
    background: rgba(255,255,255,.07);
    color: #fff;
}

.dash-main { flex: 1; padding: 2rem; background: var(--offwhite); overflow-y: auto; }

.account-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.4rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.account-card .acct-info .acct-name { font-weight: 700; color: var(--navy); }
.account-card .acct-info .acct-num { font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.account-card .acct-balance { text-align: right; }
.account-card .acct-balance .balance { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.account-card .acct-balance .avail { font-size: .75rem; color: var(--muted); }

.quick-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.quick-actions .btn { font-size: .85rem; padding: .5rem 1.2rem; }

.txn-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.txn-table th {
    text-align: left;
    font-size: .75rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: .6rem .8rem;
    border-bottom: 2px solid var(--border);
}
.txn-table td { padding: .75rem .8rem; border-bottom: 1px solid var(--border); color: var(--text); }
.txn-table tr:hover td { background: #f0f4f8; }
.txn-amount.credit { color: var(--green); font-weight: 600; }
.txn-amount.debit  { color: var(--red); }

/* ── FOOTER ── */
footer {
    background: var(--navy-dark);
    color: #7a96ae;
    padding: 2.5rem 2rem 1.5rem;
    font-size: .8rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 2rem;
}

footer h4 { color: #fff; font-size: .85rem; margin-bottom: .8rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: .45rem; }
footer ul li a { color: #7a96ae; font-size: .8rem; }
footer ul li a:hover { color: var(--gold-lt); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.2rem;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}

.ncua-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 4px;
    padding: .25rem .6rem;
    font-size: .72rem;
    color: #a0b4c8;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .hero h1 { font-size: 1.8rem; }
    nav { display: none; }
    .dash-sidebar { display: none; }
    .account-card { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .login-card { padding: 1.8rem 1.4rem; }
}
