/* ========================================
   HAWAII CANCER CONSORTIUM — TEAL / PURPLE MEDICAL THEME
   ======================================== */

:root {
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --purple: #6d28d9;
    --purple-light: #7c3aed;
    --pink: #db2777;
    --pink-hover: #be185d;
    --bg: #f8fafc;
    --alt-bg: #f0fdfa;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --radius: 12px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: var(--text); line-height: 1.7; background: var(--bg); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }

/* ---------- HEADER ---------- */
.header {
    position: sticky; top: 0; z-index: 900;
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    box-shadow: 0 2px 16px rgba(13,148,136,.25);
}
.header-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: .7rem 0; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: #fff; }
.brand-mark { font-size: 1.8rem; }
.brand-name { display: block; font-size: 1.2rem; }
.brand-sub { font-size: .7rem; color: rgba(255,255,255,.8); letter-spacing: 1px; text-transform: uppercase; }

.main-nav { display: flex; gap: 1.6rem; }
.main-nav a { color: rgba(255,255,255,.9); text-decoration: none; font-weight: 500; font-size: .93rem; transition: color .2s; }
.main-nav a:hover { color: #fde68a; }

.header-right { display: flex; align-items: center; gap: .5rem; }
.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; padding: .3rem; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block; padding: .55rem 1.2rem; border: none; border-radius: 8px;
    font-size: .93rem; font-weight: 600; cursor: pointer; transition: all .25s; text-decoration: none;
}
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-hover); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(219,39,119,.3); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .35rem .9rem; font-size: .82rem; }
.btn-block { width: 100%; text-align: center; }

/* ---------- MOBILE NAV ---------- */
.mob-nav {
    display: none; flex-direction: column;
    background: var(--teal-dark); position: sticky; top: 56px; z-index: 899;
}
.mob-nav a { color: #fff; text-decoration: none; padding: .8rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.mob-nav a:hover { background: rgba(255,255,255,.06); }

/* ---------- HERO ---------- */
.hero {
    background: linear-gradient(135deg, rgba(13,148,136,.06), rgba(109,40,217,.06));
    padding: 4rem 0;
}
.hero-flex { display: flex; align-items: center; gap: 3rem; }
.hero-text { flex: 1; min-width: 300px; }
.hero-text h2 { font-size: 2.4rem; color: var(--teal-dark); margin-bottom: .75rem; }
.hero-text .lead { font-size: 1.15rem; color: var(--purple); margin-bottom: .5rem; font-weight: 500; }
.hero-text p { color: var(--muted); margin-bottom: 1.2rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-img { flex: 1; min-width: 280px; }
.hero-img img { width: 100%; border-radius: var(--radius); box-shadow: 0 8px 28px rgba(13,148,136,.15); }

/* ---------- SECTIONS ---------- */
.sec { padding: 4rem 0; }
.sec-alt { background: var(--alt-bg); }
.sec-heading {
    text-align: center; font-size: 2rem; color: var(--teal-dark); margin-bottom: 2.5rem;
}
.sec-heading::after {
    content: ''; display: block; width: 50px; height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--purple)); margin: .6rem auto 0; border-radius: 2px;
}

/* ---------- TWO-COL (ABOUT) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.col-img img { width: 100%; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.col-text h3 { font-size: 1.25rem; color: var(--purple); margin: 1.2rem 0 .4rem; }
.col-text h3:first-child { margin-top: 0; }
.col-text p { color: var(--muted); margin-bottom: .75rem; }

.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 1.4rem; position: relative; margin-bottom: .55rem; color: var(--muted); }
.check-list li::before { content: "✦"; position: absolute; left: 0; color: var(--teal); font-size: .9rem; }

/* ---------- RESEARCH CARDS ---------- */
.card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.rcard {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.07); transition: transform .3s, box-shadow .3s;
}
.rcard:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(13,148,136,.12); }
.rcard img { width: 100%; height: 200px; object-fit: cover; }
.rcard-body { padding: 1.4rem; }
.rcard-body h3 { font-size: 1.1rem; color: var(--teal-dark); margin-bottom: .4rem; }
.rcard-body p { color: var(--muted); font-size: .93rem; }

/* ---------- SUPPORT / HELP ---------- */
.help-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.hcard {
    background: var(--card); padding: 1.5rem; border-radius: var(--radius);
    border-top: 4px solid var(--teal); text-align: center; transition: transform .25s;
}
.hcard:hover { transform: translateY(-4px); }
.hcard-icon { font-size: 2.2rem; margin-bottom: .4rem; }
.hcard h4 { color: var(--purple); margin-bottom: .4rem; font-size: 1.05rem; }
.hcard p { color: var(--muted); font-size: .92rem; }

.support-cta {
    background: linear-gradient(135deg, var(--teal-dark), var(--purple));
    color: #fff; padding: 2.5rem; border-radius: var(--radius); text-align: center;
}
.support-cta h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.support-cta p { color: rgba(255,255,255,.85); margin-bottom: 1.2rem; }

/* ---------- FOOTER ---------- */
.footer {
    background: linear-gradient(135deg, var(--teal-dark), #064e3b);
    color: rgba(255,255,255,.9); padding: 3rem 0 1rem;
}
.footer-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.fcol h4 { color: #fde68a; margin-bottom: .8rem; font-size: 1.05rem; }
.fcol p { margin-bottom: .55rem; font-size: .92rem; line-height: 1.6; }
.fcol a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.fcol a:hover { color: #fde68a; }
.fcol ul { list-style: none; }
.fcol ul li { margin-bottom: .55rem; }
.em { font-size: 1.1rem; font-weight: 600; color: #fde68a !important; }
.footer-end { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; color: rgba(255,255,255,.5); }

/* ---------- MODALS ---------- */
.overlay {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.5); align-items: center; justify-content: center;
}
.overlay.open { display: flex; }
.dialog {
    background: #fff; border-radius: var(--radius); padding: 2rem; width: 92%; max-width: 480px;
    max-height: 85vh; overflow-y: auto; position: relative; animation: pop .3s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
.dialog-sm { max-width: 360px; text-align: center; }
.dialog-icon { font-size: 3rem; margin-bottom: .5rem; }
.dialog-x {
    position: absolute; top: .7rem; right: 1rem; background: none; border: none;
    font-size: 1.5rem; cursor: pointer; color: var(--muted);
}
.dialog-x:hover { color: var(--pink); }
.dialog h2 { color: var(--teal-dark); margin-bottom: 1rem; font-size: 1.35rem; }
.dialog h3 { color: var(--purple); margin: 1rem 0 .4rem; font-size: 1.05rem; }
.dialog p { color: var(--muted); margin-bottom: .7rem; line-height: 1.6; }

/* ---------- FORM ---------- */
.fg { margin-bottom: 1.1rem; }
.fg label { display: block; margin-bottom: .3rem; font-weight: 600; font-size: .92rem; }
.fg input, .fg select, .fg textarea {
    width: 100%; padding: .6rem .75rem; border: 2px solid #e2e8f0; border-radius: 6px;
    font-family: inherit; font-size: .95rem; transition: border-color .2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--teal); }
.fg textarea { resize: vertical; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .burger { display: flex; }
    .two-col { grid-template-columns: 1fr; }
    .hero-flex { flex-direction: column; gap: 2rem; }
    .hero-text h2 { font-size: 1.8rem; }
    .footer-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .brand-name { font-size: 1rem; }
    .hero-text h2 { font-size: 1.5rem; }
    .sec-heading { font-size: 1.5rem; }
    .card-row { grid-template-columns: 1fr; }
    .help-row { grid-template-columns: 1fr; }
}
