/* Harmonious Mind site chrome — calm clinic aesthetic */

:root {
    --hm-teal: #2a7f8f;
    --hm-teal-dark: #1e5f72;
    --hm-teal-light: #f1f5f9;
    --hm-teal-mid: #cbd5e1;
    --hm-text: #1e293b;
    --hm-muted: #64748b;
    --hm-border: #cbd5e1;
    --hm-surface: #f8fafc;
    --hm-nav: #1e5f72;
    --hm-nav-dark: #164555;
}

body.hm-forms {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--hm-text);
    background: var(--hm-surface);
    -webkit-font-smoothing: antialiased;
}

.hm-navbar {
    background: var(--hm-nav);
    padding: 0.6rem 1.5rem;
}

.hm-navbar a {
    color: #fff;
    text-decoration: none;
}

.hm-navbar .brand {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.hm-navbar .brand img {
    height: 34px;
}

.hm-navbar .nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    font-size: 0.875rem;
}

.hm-navbar .nav-links a:hover {
    text-decoration: underline;
}

.hm-navbar .nav-links a.portal-link {
    background: #e75480;
    color: #fff;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.hm-navbar .nav-links a.portal-link:hover {
    background: #c93d6a;
    text-decoration: none;
}

.hm-navbar .nav-links a.bill-link {
    background: #f5c518;
    color: #1e293b;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.hm-navbar .nav-links a.bill-link:hover {
    background: #d4a800;
    text-decoration: none;
}

.hm-navbar .nav-links a.active-forms {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-weight: 600;
}

.hm-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #fff;
    font-size: 1.55rem;
    line-height: 1;
    min-width: 48px;
    min-height: 48px;
}

.hm-subbar {
    background: var(--hm-nav-dark);
    padding: 0.35rem 1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.hm-subbar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.hm-subbar a:hover {
    text-decoration: underline;
}

.hm-mobile-menu {
    display: none;
    background: var(--hm-nav-dark);
    padding: 0.25rem 1.5rem 0.75rem;
    flex-direction: column;
}

.hm-mobile-menu.open {
    display: flex;
}

.hm-mobile-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.hm-mobile-menu a:last-child {
    border-bottom: none;
}

.hm-mobile-menu a:hover {
    opacity: 0.85;
}

.hm-page-banner {
    background: linear-gradient(135deg, var(--hm-nav-dark), var(--hm-nav));
    color: #fff;
    padding: 1.5rem 1.5rem;
    text-align: center;
}

.hm-page-banner h1 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.45rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
}

.hm-page-banner p {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    opacity: 0.92;
    line-height: 1.5;
}

.hm-main {
    padding: 1.5rem 0 2.5rem;
}

.hm-footer {
    background: var(--hm-nav-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    margin-top: auto;
    line-height: 1.6;
}

.hm-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.hm-footer a:hover {
    text-decoration: underline;
}

.hm-footer .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hm-forms-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .hm-navbar .nav-links {
        display: none;
    }

    .hm-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hm-subbar {
        display: none;
    }
}
