/*
Theme Name: M Squared
Author: Matt Mattioli
Description: Custom theme for M Digital Studio - Clean, modern, and optimized
Version: 2.0
*/

/* === CSS VARIABLES === */
:root {
    --color-brand-blue: #2746f8;
    --color-slate-900: #1e293b;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-400: #94a3b8;
    --color-slate-200: #e2e8f0;
    --color-white: #ffffff;
    --color-bg-light: #f7f7fe;
    
    --font-family: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

/* === BODY & BASE STYLES === */
body {
    font-family: var(--font-family);
    background-color: var(--color-bg-light);
    color: var(--color-slate-900);
    overflow-x: hidden;
    line-height: 1.6;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--color-brand-blue);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-slate-700);
}

/* === BUTTONS === */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    background-color: var(--color-brand-blue);
    color: var(--color-white);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-slate-900);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    background-color: transparent;
    color: var(--color-brand-blue);
    font-weight: 600;
    border: 2px solid var(--color-brand-blue);
    transition: all var(--transition-speed);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--color-brand-blue);
    color: var(--color-white);
}

/* === NAVIGATION === */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav a {
    color: var(--color-slate-700);
    font-weight: 500;
    transition: color var(--transition-speed);
}

nav a:hover {
    color: var(--color-brand-blue);
}

/* === LAYOUT === */
.max-w-7xl {
    max-width: 80rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* === WORDPRESS BLOCKS === */
.entry-content {
    margin-top: 2rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }
}

@media (min-width: 769px) {
    .visible-mobile {
        display: none;
    }
}

/* === ACCESSIBILITY === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-slate-200);
    border-radius: 0.375rem;
    color: var(--color-slate-700);
}

.pagination a:hover {
    background-color: var(--color-brand-blue);
    color: var(--color-white);
}

.pagination .current {
    background-color: var(--color-brand-blue);
    color: var(--color-white);
}
