/*
 Theme Name:   MMM DJR
 Theme URI:    https://djrecords.com
 Description:  GeneratePress child theme — DJ Records
 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 — DJ Records
   ========================= */
:root {
    --mm-brand: #1a5f8a;          /* deep DJR blue — nav anchor, headings */
    --mm-brand-2: #2c9acf;        /* DJR signature blue — header, footer, primary CTA */
    --mm-brand-3: #d4a017;        /* refined gold — secondary CTA, link hover on dark */
    --mm-brand-3-hover: #b8890e;
    --mm-ink: #1f2937;
    --mm-muted: #667085;
    --mm-chrome: #ffffff;
    --mm-surface: #f6f9fc;
    --mm-line: #dde6f0;
    --mm-line-strong: #cfd9e5;
    --mm-focus: #2c9acf;
    /* 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;
}

/* =========================
   GLOBAL OVERFLOW GUARD
   Prevents horizontal scroll caused by alignfull + scrollbar gutter
   ========================= */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    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);
    overflow-x: hidden;
}

/* =========================
   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 — signature blue
   !important on background to survive FlyingPress Used CSS stripping.
   ========================= */
.site-header,
.inside-header {
    background: var(--mm-brand-2) !important;
}

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

/* =========================
   NAVIGATION — deep blue, white text
   !important on background and text color so FlyingPress Used CSS
   doesn't strip them during critical-CSS extraction (these rules
   apply at-rest, before hover, so they must survive stripping).
   ========================= */
.main-navigation,
.main-navigation .inside-navigation {
    background: var(--mm-brand) !important;
    border: none;
    box-shadow: none;
}

.main-navigation .main-nav ul li > a,
.main-navigation .menu-bar-items,
.main-navigation .menu-toggle {
    color: #ffffff !important;
    font-weight: 600;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus-within > a {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Current-page indicator (gold underline / gold left-border).
   Scoped with :not([href*="#"]) so hash-anchor menu items that resolve
   to the homepage URL (e.g. /#do-we-buy, /#anywhere-in-the-USA) do NOT
   light up alongside the actual current page. */
@media (min-width: 769px) {
    .main-navigation .main-nav ul li.current_page_item > a:not([href*="#"]) {
        box-shadow: inset 0 -3px 0 0 var(--mm-brand-3);
        background: rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 768px) {
    .main-navigation .main-nav ul li.current_page_item > a:not([href*="#"]) {
        box-shadow: inset 3px 0 0 0 var(--mm-brand-3);
        background: rgba(255, 255, 255, 0.12);
    }
}

/* Submenus — white background for readability */
.main-navigation ul ul {
    background: #ffffff;
    border: 1px solid var(--mm-line);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.main-navigation ul ul li > a {
    color: var(--mm-brand) !important;
}

.main-navigation ul ul li:hover > a,
.main-navigation ul ul li:focus-within > a {
    background: var(--mm-surface);
    color: var(--mm-brand);
}

.main-navigation .menu-toggle {
    background: transparent;
    border: 0;
}

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

/* alignfull — width: 100vw with viewport-edge negative margin.
   Body overflow-x:hidden above prevents the horizontal scroll this normally creates. */
.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 — signature blue, matches header
   !important on background since the footer is below-the-fold on
   initial paint, so FlyingPress Used CSS often strips these rules.
   ========================= */
.site-footer,
.footer-widgets,
.site-info {
    background: var(--mm-brand-2) !important;
    color: #ffffff;
    border-top: none;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.footer-widgets h1,
.footer-widgets h2,
.footer-widgets h3,
.footer-widgets h4,
.footer-widgets h5,
.footer-widgets h6 {
    color: #ffffff;
}

.site-info a,
.footer-widgets a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.site-info a:hover,
.footer-widgets a:hover,
.site-info a:focus,
.footer-widgets a:focus {
    color: var(--mm-brand-3);
    text-decoration-color: var(--mm-brand-3);
}

/* Footer form inputs: keep white background for legibility on blue */
.site-footer input[type="text"],
.site-footer input[type="email"],
.site-footer input[type="tel"],
.site-footer textarea,
.footer-widgets input[type="text"],
.footer-widgets input[type="email"],
.footer-widgets input[type="tel"],
.footer-widgets textarea {
    background: #ffffff;
    color: var(--mm-ink);
}

/* =========================
   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);
        color: #fff;
    }

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