/*
 Theme Name:   MMM — DAC
 Theme URI:    https://matchmarketing.ai
 Description:  MatchMarketing™ GeneratePress child theme — The Dental Anesthesia Center
 Author:       Outshine Media LLC
 Author URI:   https://outshine.io
 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 — DAC Brand
   ========================= */
:root {
    /* ── Primary palette ── */
    --mm-brand: #0E2540; /* deep navy — hero, section bgs, headings */
    --mm-brand-mid: #1B3A5C; /* mid navy — CTA button hover, accents */
    --mm-brand-2: #005595; /* action blue — primary buttons, links (matches logo/existing) */
    --mm-brand-2-hover: #004070; /* action blue hover */
    --mm-brand-3: #4A9FD4; /* sky blue — trust dots, level accents, ghost CTAs on dark */
    --mm-brand-3-hover: #3a8bbf; /* sky blue hover */
    /* ── Consultation / secondary CTA ── */
    --mm-cta-consult: #3a7d5c; /* calm green — consultation/secondary CTA */
    --mm-cta-consult-hover: #306650;
    /* ── Ink & surfaces ── */
    --mm-ink: #1f2937; /* body text */
    --mm-muted: #667085; /* captions, meta, muted labels */
    --mm-chrome: #ffffff;
    --mm-surface: #f4f3f0; /* off-white section bg — matches mockup light sections */
    --mm-surface-dark: #0E2540; /* dark section bg */
    --mm-line: #dde6f0;
    --mm-line-strong: #cfd9e5;
    /* ── Focus ── */
    --mm-focus: #005595;
    /* ── 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;
    max-width: 100vw;
    overflow-x: hidden;
}

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);
    max-width: 100vw;
    overflow-x: hidden;
}

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

.entry-content > p:empty {
    margin: 0;
    padding: 0;
    display: none;
}

/* =========================
   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;
}

/* Headings on dark backgrounds — utility class */
.mm-dark h1,
.mm-dark h2,
.mm-dark h3,
.mm-dark h4,
.mm-dark h5,
.mm-dark h6 {
    color: #ffffff;
}

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

.mm-dark p,
.mm-dark li {
    color: #9FB8CF;
}

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

/* Eyebrow / section label utility */
.mm-eyebrow {
    font-family: Roboto, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mm-muted);
    display: block;
    margin-bottom: 8px;
}

.mm-dark .mm-eyebrow {
    color: var(--mm-brand-3);
}

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

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

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

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

.inside-header {
    padding: 0;
}

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

/* =========================
   NAVIGATION
   ========================= */
.main-navigation,
.main-navigation ul ul {
    background: var(--mm-chrome);
    box-shadow: none;
}

/* Bottom border matches brand navy — replaces old hardcoded #005595 */
#site-navigation {
    border-bottom: 3px solid var(--mm-brand);
}

.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;
}

/* Dropdown */
.main-navigation .sub-menu {
    background: var(--mm-chrome);
    border: 1px solid var(--mm-line);
    box-shadow: 0 6px 16px rgba(14, 37, 64, 0.12);
    border-radius: 8px;
    padding: 6px;
}

/* =========================
   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.4em;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 600;
    font-size: 15px;
    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-2-hover);
        border-color: var(--mm-brand-2-hover);
        color: #fff;
    }

    /* Ghost / outline button */
    .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);
        }

/* Ghost on dark backgrounds */
.mm-dark .button-ghost,
.mm-dark .is-style-outline .wp-block-button__link {
    background: transparent;
    border-color: rgba(74, 159, 212, 0.5);
    color: #A8D1F0;
}

    .mm-dark .button-ghost:hover,
    .mm-dark .is-style-outline .wp-block-button__link:hover {
        background: rgba(74, 159, 212, 0.1);
        border-color: var(--mm-brand-3);
        color: #ffffff;
    }

/* =========================
   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;
    }

/* Comments — hide per original */
.comments-area {
    display: none;
}

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

/* Full-bleed sections on no-sidebar layout */
.no-sidebar .entry-content .alignfull,
.no-sidebar .entry-content .gb-section.is-full-width {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================
   SECTION UTILITIES
   ========================= */

/* Dark navy section (hero, credential block, CTA) */
.mm-dark {
    background: var(--mm-surface-dark);
}

/* Light off-white section (referral band, alternating sections) */
.mm-surface {
    background: var(--mm-surface);
}

/* Standard surface card (serve cards, review cards) */
.mm-card {
    background: var(--mm-chrome);
    border: 1px solid var(--mm-line);
    border-radius: 8px;
}

.mm-card-top-accent {
    border-top: 3px solid var(--mm-brand-2);
}

/* Callout / credential card on dark bg */
.mm-card-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
}

/* Tag / badge on dark */
.mm-tag-dark {
    display: inline-block;
    background: rgba(74, 159, 212, 0.18);
    color: var(--mm-brand-3);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
}

/* Trust dot */
.mm-trust-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mm-brand-3);
    vertical-align: middle;
    margin-right: 7px;
    flex-shrink: 0;
}

/* Stat / number display */
.mm-stat-num {
    font-family: Roboto, Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--mm-brand);
    line-height: 1;
}

.mm-dark .mm-stat-num {
    color: #ffffff;
}

/* =========================
   HERO — video wrapper
   ========================= */

/* Video hero — used when autoplay hero video is present */
.mm-hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

    .mm-hero-video-wrap video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Overlay to ensure text stays readable over video */
    .mm-hero-video-wrap::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(14, 37, 64, 0.72);
    }

/* =========================
   TRUST BAR
   ========================= */
.mm-trust-bar {
    background: var(--mm-chrome);
    border-bottom: 1px solid var(--mm-line);
    padding: 14px 0;
    overflow: hidden;
}

.mm-trust-bar-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--mm-muted);
}

    .mm-trust-bar-inner .mm-divider {
        display: inline-block;
        width: 1px;
        height: 18px;
        background: var(--mm-line-strong);
    }

/* =========================
   SEDATION GRID
   ========================= */
.mm-sedation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    overflow: hidden;
}

.mm-sedation-cell {
    padding: 24px 20px;
    border-right: 1px solid var(--mm-line);
    background: var(--mm-chrome);
}

    .mm-sedation-cell:last-child {
        border-right: none;
        border-left: 3px solid var(--mm-brand-2);
    }

    .mm-sedation-cell .mm-level {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--mm-brand-2);
        margin-bottom: 10px;
    }

/* =========================
   LOGO PARTNER ROW
   ========================= */
.mm-partner-row {
    display: flex;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mm-partner-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

    .mm-partner-cell:last-child {
        border-right: none;
    }

.mm-partner-abbr {
    font-family: Roboto, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(74, 159, 212, 0.15);
    border: 1px solid rgba(74, 159, 212, 0.3);
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    letter-spacing: 0.02em;
}

/* =========================
   STAR RATINGS
   ========================= */
.mm-stars {
    color: #C8870A;
    font-size: 14px;
    letter-spacing: 2px;
}

/* =========================
   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;
        }

    .mm-cta--call {
        background: var(--mm-brand-2);
    }

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

    .mm-cta--consult {
        background: var(--mm-cta-consult);
    }

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

    /* Stack sedation grid on mobile */
    .mm-sedation-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mm-sedation-cell:last-child {
        border-left: none;
        border-top: 3px solid var(--mm-brand-2);
    }

    /* Stack partner row on mobile */
    .mm-partner-row {
        flex-direction: column;
    }

    .mm-partner-cell {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

        .mm-partner-cell:last-child {
            border-bottom: none;
        }

    /* Trust bar wraps naturally on mobile */
    .mm-trust-bar-inner .mm-divider {
        display: none;
    }

    /* Stat numbers scale down */
    .mm-stat-num {
        font-size: 36px;
    }
}

