/*
Theme Name: MemberSavi WP Theme
Template: generatepress
Description: MemberSavi child theme for GeneratePress. BMF designation portal — dark gradient nav, dynamic brand CSS variables, Vue SPA shortcode host.
Version: 1.0.0
Author: Dinnative Technologies
*/

/* Child theme overrides — tokens injected into :root by functions.php at runtime */
body {
    font-family: var(--ms-font-body, 'Montserrat', -apple-system, system-ui, sans-serif);
    background: var(--ms-bg-gradient, linear-gradient(135deg, #f8faf9 0%, #e8f5f0 100%));
    color: var(--ms-text, #1A202C);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ms-font-heading, 'DM Serif Display', serif);
    color: var(--ms-dark, #0a2818);
}

a {
    color: var(--ms-primary, #146139);
}

a:hover {
    color: var(--ms-primary-light, #1a7a48);
}

/* Logo wrap — configurable via ms_logo_light_background: white | transparent | dark */
.ms-logo-wrap {
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ms-logo-wrap-dark {
    background: var(--ms-dark, #0a2818);
    border: 1px solid rgba(255,255,255,.18);
}

/* GeneratePress overrides */
.site-header {
    display: none !important; /* replaced by our header.php */
}

.site-content {
    padding-top: 0;
}

/* Portal page: full-width, no sidebar, no gaps */
.page-template-page-portal .site-content {
    padding: 0;
}

.page-template-page-portal #primary {
    width: 100%;
    max-width: none;
    padding: 0;
}

/* Apply page: full-width, no sidebar */
.page-template-page-apply .site-content {
    padding: 0;
}

.page-template-page-apply #primary {
    width: 100%;
    max-width: none;
    padding: 0;
}

.page-template-page-apply #secondary {
    display: none !important;
}

/* General WP pages (registration, sign-in, etc.): suppress sidebar,
   enforce an editorial container matching the landing's 1200px rhythm. */
.full-width-content #primary {
    width: 100%;
    max-width: none;
}

.full-width-content #secondary {
    display: none !important;
}

.full-width-content .inside-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    font-family: var(--ms-font-body, 'Urbanist', sans-serif);
}

/* Buttons — global green gradient for generic WP/GP surfaces.
   Excluded: .ms-apply__submit (apply/signup page — styled gold by template CSS) */
.wp-block-button__link,
.button,
button[type="submit"]:not(.ms-apply__submit) {
    background: var(--ms-btn-gradient, linear-gradient(135deg, #146139 0%, #1a8a4d 100%));
    color: white;
    border: none;
    border-radius: var(--ms-radius, 8px);
    font-family: var(--ms-font-body, 'Urbanist', sans-serif);
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.wp-block-button__link:hover,
.button:hover,
button[type="submit"]:not(.ms-apply__submit):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(19, 97, 56, 0.4);
    color: white;
}
