/*
 Theme Name:   MMM
 Theme URI:    https://matchmarketing.ai
 Description:  GeneratePress child theme
 Author:       MatchMarketing™
 Template:     generatepress
 Version:      1.0
*/

/* =========================
   FONTS — self-hosted woff2
   No external requests.
   ========================= */
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/source-sans-3-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/source-sans-3-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/source-sans-3-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/source-sans-3-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/roboto-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/roboto-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('fonts/roboto-900.woff2') format('woff2');
}

/* =========================
   TOKENS
   ========================= */
:root {
    --mm-brand: #304c7b; /* JH primary navy */
    --mm-brand-2: #3a5d96; /* JH action blue */
    --mm-brand-3: #5d876f; /* consultation green */
    --mm-brand-3-hover: #4f7460;
    --mm-ink: #1f2937;
    --mm-muted: #667085;
    --mm-chrome: #ffffff;
    --mm-surface: #f6f9fc;
    --mm-line: #dde6f0;
    --mm-line-strong: #cfd9e5;
    --mm-focus: #3a5d96;
    /* GeneratePress token mapping */
    --accent: var(--mm-brand-2);
    --contrast: var(--mm-ink);
    --contrast-2: var(--mm-muted);
    --base: var(--mm-chrome);
    --base-2: #ffffff;
    --base-3: #ffffff;
}

/* =========================
   BASE
   ========================= */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-gutter: stable;
}

body {
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--mm-ink);
    background: var(--mm-chrome);
    line-height: 1.65;
    accent-color: var(--mm-brand-2);
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6,
.site-title,
.main-title,
.button,
.wp-block-button__link {
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--mm-brand);
    letter-spacing: -0.01em;
}

p,
li {
    color: var(--mm-ink);
}

small,
.has-small-font-size {
    color: var(--mm-muted);
}

/* =========================
   LINKS
   ========================= */
a {
    color: var(--mm-brand-2);
    text-decoration: none;
    transition: color 160ms ease;
}

    a:hover,
    a:focus {
        color: var(--mm-brand);
    }

:focus-visible {
    outline: 2px solid var(--mm-focus);
    outline-offset: 2px;
}

/* =========================
   HEADER
   ========================= */
.site-header {
    background: var(--mm-brand);
}

.site-logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================
   NAVIGATION
   ========================= */
.main-navigation,
.main-navigation ul ul {
    background: var(--mm-chrome);
    border-top: 1px solid var(--mm-line);
    border-bottom: 1px solid var(--mm-line);
    box-shadow: none;
}

    .main-navigation .main-nav ul li > a,
    .main-navigation .menu-bar-items {
        color: var(--mm-brand);
        font-weight: 600;
    }

    .main-navigation .main-nav ul li:hover > a,
    .main-navigation .main-nav ul li:focus-within > a,
    .main-navigation .main-nav ul li.current-menu-item > a,
    .main-navigation .main-nav ul li[class*="current-menu-"] > a {
        color: var(--mm-brand-2);
    }

    .main-navigation .menu-toggle {
        color: var(--mm-brand);
        background: transparent;
        border: 0;
    }

    .main-navigation ul ul {
        border: 1px solid var(--mm-line);
    }

/* =========================
   BUTTONS
   ========================= */
.button,
.wp-block-button__link,
button,
input[type="submit"] {
    background: var(--mm-brand-2);
    border: 1px solid var(--mm-brand-2);
    color: #fff;
    border-radius: 10px;
    padding: 0.75em 1.2em;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

    .button:hover,
    .wp-block-button__link:hover,
    button:hover,
    input[type="submit"]:hover {
        background: var(--mm-brand);
        border-color: var(--mm-brand);
        color: #fff;
    }

    .is-style-outline .wp-block-button__link,
    .button.button-outline {
        background: transparent;
        border-color: var(--mm-line-strong);
        color: var(--mm-brand);
    }

        .is-style-outline .wp-block-button__link:hover,
        .button.button-outline:hover {
            background: var(--mm-surface);
            border-color: var(--mm-brand-2);
            color: var(--mm-brand);
        }

/* =========================
   FORMS
   ========================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="date"],
select,
textarea {
    background: #fff;
    border: 1px solid var(--mm-line-strong);
    border-radius: 10px;
    color: var(--mm-ink);
    font-family: inherit;
    box-shadow: none;
}

    input::placeholder,
    textarea::placeholder {
        color: var(--mm-muted);
    }

    input:focus,
    select:focus,
    textarea:focus {
        border-color: var(--mm-brand-2);
        outline: none;
    }

/* =========================
   CONTENT SPACING
   ========================= */

.home.one-container .site-content {
    padding: 0 28px 28px;
}

.one-container .site-content {
    padding: 28px;
}

.no-sidebar .entry-content .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

@media (min-width: 768px) {
    .one-container .site-content {
        padding: 28px;
    }
}


/* =========================
   SIMPLE SURFACES / UTILITIES
   ========================= */
.mm-muted {
    color: var(--mm-muted);
}

.mm-surface {
    background: var(--mm-surface);
    border: 1px solid var(--mm-line);
    border-radius: 16px;
}

/* =========================
   FOOTER
   ========================= */
.site-footer,
.footer-widgets,
.site-info {
    background: var(--mm-chrome);
    color: var(--mm-muted);
    border-top: 1px solid var(--mm-line);
}

    .site-info a,
    .footer-widgets a {
        color: var(--mm-brand);
    }

        .site-info a:hover,
        .footer-widgets a:hover {
            color: var(--mm-brand-2);
        }


/* Mobile CTA row */
.mm-mobile-cta {
    display: none;
}

@media (max-width: 767px) {
    .mm-mobile-cta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 8px 12px 10px;
        background: var(--mm-chrome);
        border-bottom: 1px solid var(--mm-line);
    }

        .mm-mobile-cta .mm-cta {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            padding: 0.8rem 0.85rem;
            border-radius: 12px;
            font-family: Roboto, Arial, sans-serif;
            font-size: 15px;
            font-weight: 700;
            line-height: 1;
            text-decoration: none;
            color: #fff;
            transition: background-color 150ms ease, color 150ms ease;
        }

    /* CALL BUTTON */
    .mm-cta--call {
        background: var(--mm-brand-2);
    }

        .mm-cta--call:hover,
        .mm-cta--call:focus,
        .mm-cta--call:active {
            background: var(--mm-brand);
            color: #fff;
        }

    /* CONSULT BUTTON */
    .mm-cta--consult {
        background: var(--mm-brand-3);
    }

        .mm-cta--consult:hover,
        .mm-cta--consult:focus,
        .mm-cta--consult:active {
            background: var(--mm-brand-3-hover);
            color: #fff;
        }
}
