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

/* =========================
   FONTS — self-hosted woff2
   No external requests.
   ========================= */

/* Inter — body / UI */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/inter-800.woff2') format('woff2'); }

/* Playfair Display — headings */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/playfair-display-400.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/playfair-display-600.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/playfair-display-700.woff2') format('woff2'); }

/* =========================
   TOKENS
   ========================= */
:root {
    --mm-brand: #3773a1;         /* PFL primary blue — header, nav, footer */
    --mm-brand-2: #9ebbc2;       /* PFL accent — links, buttons */
    --mm-brand-3: #5d876f;       /* consultation green (retained from MMM) */
    --mm-brand-3-hover: #4f7460;

    --mm-ink: #2a2a2a;
    --mm-muted: #667085;

    --mm-chrome: #ffffff;
    --mm-surface: #f6f9fc;
    --mm-line: #dde6f0;
    --mm-line-strong: #cfd9e5;

    --mm-focus: #3773a1;

    /* 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: "Inter", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    color: var(--mm-ink);
    background: var(--mm-chrome);
    line-height: 1.65;
    accent-color: var(--mm-brand-2);
    margin: 0;
}

@media (min-width: 1024px) {
    body { font-size: 17px; }
}

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

@media (prefers-reduced-motion: no-preference) {
    html:focus-within { scroll-behavior: smooth; }
}

/* =========================
   TYPOGRAPHY
   ========================= */

/* Headings — Playfair Display */
h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif;
    font-weight: 600;
    color: var(--mm-brand);
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2.1rem, 6vw, 3.4rem);
    margin-top: 1em;
    margin-bottom: 0.75em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin-bottom: 0.5em;
}

h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--mm-ink);
    margin-bottom: 0.5em;
}

/* Buttons and site title keep Inter */
.site-title,
.main-title,
.button,
.wp-block-button__link,
button,
input[type="submit"] {
    font-family: "Inter", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
}

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

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

/* Utility */
.no-wrap { white-space: nowrap; }
ol, ul { margin: 0 0 1.5em 1.25em; }

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

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

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

/* =========================
   HEADER
   ========================= */

/* Fallback: ensure header background shows even before delayed JS runs */
#masthead,
header.site-header,
.site-header,
.main-navigation .main-nav ul li a,
.main-navigation .menu-bar-items {
    background-color: var(--mm-brand);
}

.site-header {
    background: var(--mm-brand);
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.inside-header { padding: 6px 16px; }

@media (min-width: 768px) {
    .inside-header { padding: 8px 40px; }
}

.main-title {
    font-size: clamp(1.25rem, 2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    display: inline-block;
}

.main-title a,
.main-title a:hover {
    color: var(--mm-brand-2);
    text-decoration: none;
}

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

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

.main-navigation .main-nav ul li > a,
.main-navigation .menu-bar-items {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 160ms ease;
}

.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: #fff;
}

.main-navigation .main-nav ul ul li a { color: #fff; }
.main-navigation ul ul { width: 250px; }

@media (max-width: 768px) {
    .main-navigation .menu-toggle,
    .main-navigation .menu-toggle:hover {
        color: #fff;
        background: transparent;
        border: 0;
    }
}

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

.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="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
   ========================= */
.one-container .site-content {
    padding: 0 28px;
}

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

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

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

/* =========================
   WIDGETS / SIDEBAR
   ========================= */
.widget-area .widget {
    padding: 0;
    margin-bottom: 2em;
}

/* =========================
   FOOTER
   ========================= */
.site-footer,
.footer-widgets,
.site-info {
    background: var(--mm-brand);
    color: #fff;
    border-top: none;
}

.site-footer {
    border-top: 1px solid rgba(255,255,255,0.15);
}

.widget-title { color: #fff; }
.footer-widgets { padding: 1em 0; }
.footer-widgets .widget { margin-bottom: 5px; }
.footer-widgets a { color: #fff; }
.footer-widgets a:hover { color: #000; }
.footer-widget-3 { display: none; }


.footer-bar {
	padding-bottom: 28px;
}

.footer-bar .footer-bar-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.footer-bar .footer-bar-navigation a {
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-right: 1px solid rgba(255,255,255,0.2);
    line-height: 1;
    transition: color 160ms ease;
}

.footer-bar .footer-bar-navigation li:last-child a {
    border-right: none;
}

.footer-bar .footer-bar-navigation a:hover,
.footer-bar .footer-bar-navigation a:focus {
    color: #fff;
    text-decoration: none;
}

.site-info {
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 0.5em 0 1em;
}

.site-info a { color: var(--mm-brand-2); }
.site-info a:hover { color: #000; }

.inside-site-info { display: block; }

/* =========================
   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: "Inter", 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);
    }

    .mm-cta--call:hover,
    .mm-cta--call:focus,
    .mm-cta--call:active {
        background: var(--mm-brand-2);
        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;
    }
}
