/* ============================================================
   MOBILNYMECHANIK.PL — DESIGN SYSTEM v1.0
   Emergency Auto Service Visual Identity
   ============================================================ */

/* Fonts: self-hosted via mm-self-host-fonts.php mu-plugin */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    /* ─── COLORS: Emergency Red (Primary CTA) ─── */
    --mm-red: #C0191C;
    --mm-red-dark: #8B0F11;
    --mm-red-darker: #6B0A0C;
    --mm-red-light: #FEF2F2;
    --mm-red-shadow: rgba(192, 25, 28, 0.4);

    /* ─── COLORS: Dark (Headers, Hero BG, Professional) ─── */
    --mm-dark: #0D1B2A;
    --mm-dark-mid: #1A3148;
    --mm-dark-light: #334155;

    /* ─── COLORS: Accent Orange (Prices, Secondary CTA) ─── */
    --mm-orange: #EA580C;
    --mm-orange-dark: #C2410C;
    --mm-orange-light: #FFF7ED;
    --mm-orange-shadow: rgba(234, 88, 12, 0.3);

    /* ─── COLORS: Success Green (Available, Active) ─── */
    --mm-green: #16A34A;
    --mm-green-light: #4ADE80;
    --mm-green-bg: #F0FDF4;
    --mm-green-dark: #15803D;

    /* ─── COLORS: Partner Blue (B2B CTA) ─── */
    --mm-blue: #1E40AF;
    --mm-blue-dark: #1E3A8A;
    --mm-blue-light: #DBEAFE;
    --mm-blue-bright: #3B82F6;

    /* ─── COLORS: Warning Yellow ─── */
    --mm-yellow: #F59E0B;
    --mm-yellow-bg: #FFFBEB;
    --mm-yellow-dark: #D97706;

    /* ─── COLORS: Neutrals ─── */
    --mm-white: #FFFFFF;
    --mm-gray-50: #F8FAFC;
    --mm-gray-100: #F1F5F9;
    --mm-gray-200: #E2E8F0;
    --mm-gray-300: #CBD5E1;
    --mm-gray-400: #94A3B8;
    --mm-gray-500: #64748B;
    --mm-gray-600: #475569;
    --mm-gray-700: #334155;
    --mm-gray-800: #1E293B;
    --mm-gray-900: #0F172A;

    /* ─── TYPOGRAPHY ─── */
    --mm-font: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mm-font-display: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
    --mm-font-stack: var(--mm-font);

    --mm-text-xs: 12px;
    --mm-text-sm: 13px;
    --mm-text-base: 15px;
    --mm-text-lg: 17px;
    --mm-text-xl: 20px;
    --mm-text-2xl: 24px;
    --mm-text-3xl: 30px;
    --mm-text-4xl: 36px;
    --mm-text-5xl: 48px;

    --mm-line-normal: 1.6;
    --mm-line-tight: 1.2;
    --mm-line-loose: 1.8;

    /* ─── SPACING ─── */
    --mm-space-xs: 4px;
    --mm-space-sm: 8px;
    --mm-space-md: 16px;
    --mm-space-lg: 24px;
    --mm-space-xl: 32px;
    --mm-space-2xl: 48px;
    --mm-space-3xl: 64px;
    --mm-space-4xl: 96px;

    /* ─── CARDS ─── */
    --mm-card-bg: #FFFFFF;
    --mm-card-border: #E5E7EB;
    --mm-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --mm-card-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    --mm-card-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
    --mm-card-radius: 12px;
    --mm-card-radius-sm: 8px;

    /* ─── INPUTS ─── */
    --mm-input-height: 48px;
    --mm-input-border: #DEE2E6;
    --mm-input-focus: #EA580C;
    --mm-input-radius: 8px;
    --mm-input-padding: 12px 16px;

    /* ─── LAYOUT ─── */
    --mm-container-sm: 720px;
    --mm-container-md: 960px;
    --mm-container-lg: 1200px;
    --mm-container-xl: 1400px;
    --mm-header-height: 72px;

    /* ─── TRANSITIONS ─── */
    --mm-transition: 0.2s ease;
    --mm-transition-slow: 0.3s ease;
    --mm-transition-fast: 0.15s ease;

    /* ─── Z-INDEX ─── */
    --mm-z-dropdown: 100;
    --mm-z-sticky: 200;
    --mm-z-fixed: 300;
    --mm-z-modal: 400;
    --mm-z-toast: 500;
}

/* ============================================================
   SKIP LINK (Accessibility)
   ============================================================ */
.mm-skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mm-dark);
    color: var(--mm-white);
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s ease;
}

.mm-skip-link:focus {
    top: 0;
    outline: none;
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--mm-font);
    font-size: var(--mm-text-base);
    color: var(--mm-gray-900);
    line-height: var(--mm-line-normal);
    background: var(--mm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--mm-font);
    font-weight: 800;
    color: var(--mm-gray-900);
    letter-spacing: -0.025em;
    line-height: var(--mm-line-tight);
    margin: 0 0 var(--mm-space-md);
}

h1 {
    font-size: var(--mm-text-4xl);
}

h2 {
    font-size: var(--mm-text-3xl);
}

h3 {
    font-size: var(--mm-text-2xl);
}

h4 {
    font-size: var(--mm-text-xl);
}

h5 {
    font-size: var(--mm-text-lg);
}

h6 {
    font-size: var(--mm-text-base);
}

p {
    margin: 0 0 var(--mm-space-md);
}

a {
    color: var(--mm-blue-bright);
    text-decoration: none;
    transition: color var(--mm-transition);
}

a:hover {
    color: var(--mm-blue-dark);
    opacity: 0.85;
}

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

strong,
b {
    font-weight: 700;
}

/* ============================================================
   CONTAINERS & LAYOUT
   ============================================================ */
.mm-container {
    max-width: var(--mm-container-sm);
    margin: 0 auto;
    padding: 0 20px;
}

.mm-container--md {
    max-width: var(--mm-container-md);
}

.mm-container--lg {
    max-width: var(--mm-container-lg);
}

.mm-container--xl {
    max-width: var(--mm-container-xl);
}

.mm-container--full {
    max-width: 100%;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.mm-section {
    padding: var(--mm-space-3xl) 20px;
}

.mm-section--sm {
    padding: var(--mm-space-2xl) 20px;
}

.mm-section--lg {
    padding: var(--mm-space-4xl) 20px;
}

.mm-section--white {
    background: var(--mm-white);
}

.mm-section--gray {
    background: var(--mm-gray-50);
}

.mm-section--dark {
    background: var(--mm-dark);
    color: var(--mm-white);
}

.mm-section--dark h1,
.mm-section--dark h2,
.mm-section--dark h3,
.mm-section--dark h4 {
    color: var(--mm-white);
}

.mm-section--gradient {
    background: linear-gradient(135deg, var(--mm-dark) 0%, var(--mm-dark-mid) 100%);
    color: var(--mm-white);
}

/* Section Headers */
.mm-section-header {
    text-align: center;
    margin-bottom: var(--mm-space-2xl);
}

.mm-section-title {
    font-size: var(--mm-text-3xl);
    font-weight: 800;
    margin: 0 0 var(--mm-space-sm);
}

.mm-section-subtitle {
    font-size: var(--mm-text-lg);
    color: var(--mm-gray-500);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mm-section--dark .mm-section-subtitle {
    color: var(--mm-gray-400);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.mm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: var(--mm-font);
    font-size: var(--mm-text-lg);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--mm-transition);
    border: none;
    line-height: 1;
    white-space: nowrap;
}

.mm-btn:hover {
    text-decoration: none;
}

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

/* Emergency Button (Primary CTA) */
.mm-btn--emergency {
    background: linear-gradient(135deg, var(--mm-red) 0%, var(--mm-red-dark) 100%);
    color: var(--mm-white);
    box-shadow: 0 4px 14px var(--mm-red-shadow);
}

.mm-btn--emergency:hover {
    background: linear-gradient(135deg, var(--mm-red-dark) 0%, var(--mm-red-darker) 100%);
    box-shadow: 0 6px 20px var(--mm-red-shadow);
    transform: translateY(-2px);
    color: var(--mm-white);
}

/* Primary Button (Orange) */
.mm-btn--primary {
    background: linear-gradient(135deg, var(--mm-orange) 0%, var(--mm-orange-dark) 100%);
    color: var(--mm-white);
    box-shadow: 0 4px 14px var(--mm-orange-shadow);
}

.mm-btn--primary:hover {
    box-shadow: 0 6px 20px var(--mm-orange-shadow);
    transform: translateY(-2px);
    color: var(--mm-white);
}

/* Secondary Button (Outline Red) */
.mm-btn--outline {
    background: transparent;
    color: var(--mm-red);
    border: 2px solid var(--mm-red);
}

.mm-btn--outline:hover {
    background: var(--mm-red);
    color: var(--mm-white);
    border-color: var(--mm-red);
}

/* White Button */
.mm-btn--white {
    background: var(--mm-white);
    color: var(--mm-dark);
    box-shadow: var(--mm-card-shadow);
}

.mm-btn--white:hover {
    background: var(--mm-gray-50);
    color: var(--mm-dark);
    box-shadow: var(--mm-card-shadow-md);
}

/* Ghost Button */
.mm-btn--ghost {
    background: transparent;
    color: var(--mm-gray-600);
    border: 1px solid var(--mm-gray-300);
}

.mm-btn--ghost:hover {
    background: var(--mm-gray-700);
    color: var(--mm-white);
    border-color: var(--mm-gray-700);
}

/* Partner Button (Blue) */
.mm-btn--partner {
    background: linear-gradient(135deg, var(--mm-blue) 0%, var(--mm-blue-dark) 100%);
    color: var(--mm-white);
}

.mm-btn--partner:hover {
    transform: translateY(-2px);
    color: var(--mm-white);
}

/* Button Sizes */
.mm-btn--sm {
    padding: 10px 20px;
    font-size: var(--mm-text-base);
    border-radius: 8px;
}

.mm-btn--lg {
    padding: 18px 36px;
    font-size: var(--mm-text-xl);
}

.mm-btn--full {
    width: 100%;
}

/* Button with Icon */
.mm-btn__icon {
    font-size: 1.2em;
}

/* ============================================================
   CARDS
   ============================================================ */
.mm-card {
    background: var(--mm-card-bg);
    border: 1px solid var(--mm-card-border);
    border-radius: var(--mm-card-radius);
    box-shadow: var(--mm-card-shadow);
    padding: 28px 24px;
    transition: box-shadow var(--mm-transition), transform var(--mm-transition);
}

.mm-card:hover {
    box-shadow: var(--mm-card-shadow-md);
}

.mm-card--interactive:hover {
    transform: translateY(-4px);
    box-shadow: var(--mm-card-shadow-lg);
}

.mm-card--flat {
    box-shadow: none;
    border: 1px solid var(--mm-gray-200);
}

.mm-card--compact {
    padding: 20px;
}

.mm-card--dark {
    background: var(--mm-dark-mid);
    border-color: var(--mm-dark-light);
    color: var(--mm-white);
}

/* ============================================================
   BADGES
   ============================================================ */
.mm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--mm-text-xs);
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mm-badge--red {
    background: var(--mm-red-light);
    color: var(--mm-red);
}

.mm-badge--orange {
    background: var(--mm-orange-light);
    color: var(--mm-orange);
}

.mm-badge--green {
    background: var(--mm-green-bg);
    color: var(--mm-green);
}

.mm-badge--blue {
    background: var(--mm-blue-light);
    color: var(--mm-blue);
}

.mm-badge--yellow {
    background: var(--mm-yellow-bg);
    color: var(--mm-yellow-dark);
}

.mm-badge--dark {
    background: var(--mm-dark);
    color: var(--mm-white);
}

.mm-badge--white {
    background: rgba(255, 255, 255, 0.15);
    color: var(--mm-white);
}

/* Pulse animation for live/available */
.mm-badge--pulse::before {
    content: '';
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* ============================================================
   TAGS
   ============================================================ */
.mm-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--mm-gray-100);
    color: var(--mm-gray-700);
    font-size: var(--mm-text-sm);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--mm-gray-200);
    text-decoration: none;
    transition: all var(--mm-transition);
}

.mm-tag:hover {
    background: var(--mm-gray-200);
    color: var(--mm-gray-800);
    text-decoration: none;
}

.mm-tag--link {
    color: var(--mm-blue-bright);
    border-color: var(--mm-blue-light);
    background: var(--mm-blue-light);
}

.mm-tag--link:hover {
    background: var(--mm-blue);
    color: var(--mm-white);
    border-color: var(--mm-blue);
}

/* ============================================================
   AVATARS
   ============================================================ */
.mm-avatar {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mm-gray-600), var(--mm-gray-800));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--mm-white);
    box-shadow: var(--mm-card-shadow);
    overflow: hidden;
    flex-shrink: 0;
    color: var(--mm-white);
    font-weight: 700;
}

.mm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-avatar--48 {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.mm-avatar--64 {
    width: 64px;
    height: 64px;
    font-size: 24px;
}

.mm-avatar--80 {
    width: 80px;
    height: 80px;
    font-size: 28px;
}

.mm-avatar--100 {
    width: 100px;
    height: 100px;
    font-size: 36px;
}

.mm-avatar--120 {
    width: 120px;
    height: 120px;
    font-size: 42px;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.mm-form-group {
    margin-bottom: var(--mm-space-lg);
}

.mm-label {
    display: block;
    font-size: var(--mm-text-sm);
    font-weight: 600;
    color: var(--mm-gray-700);
    margin-bottom: 8px;
}

.mm-input,
.mm-select,
.mm-textarea {
    font-family: var(--mm-font);
    font-size: var(--mm-text-base);
    border: 2px solid var(--mm-gray-200);
    border-radius: var(--mm-input-radius);
    padding: var(--mm-input-padding);
    width: 100%;
    transition: border-color var(--mm-transition), box-shadow var(--mm-transition);
    background: var(--mm-white);
    color: var(--mm-gray-900);
}

.mm-input:focus,
.mm-select:focus,
.mm-textarea:focus {
    outline: none;
    border-color: var(--mm-orange);
    box-shadow: 0 0 0 4px var(--mm-orange-light);
}

.mm-input::placeholder,
.mm-textarea::placeholder {
    color: var(--mm-gray-400);
}

.mm-input {
    height: var(--mm-input-height);
}

.mm-textarea {
    min-height: 120px;
    resize: vertical;
}

.mm-select {
    height: var(--mm-input-height);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.mm-hint {
    font-size: var(--mm-text-sm);
    color: var(--mm-gray-500);
    margin-top: 6px;
}

.mm-error {
    font-size: var(--mm-text-sm);
    color: var(--mm-red);
    margin-top: 6px;
}

/* ============================================================
   STARS RATING
   ============================================================ */
.mm-stars {
    color: var(--mm-yellow);
    letter-spacing: 2px;
    font-size: var(--mm-text-lg);
}

.mm-stars--sm {
    font-size: var(--mm-text-base);
    letter-spacing: 1px;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.mm-breadcrumbs {
    padding: var(--mm-space-md) 0;
    font-size: var(--mm-text-sm);
    color: var(--mm-gray-500);
}

.mm-breadcrumbs a {
    color: var(--mm-gray-500);
    text-decoration: none;
}

.mm-breadcrumbs a:hover {
    color: var(--mm-gray-700);
    opacity: 0.85;
}

.mm-breadcrumbs span {
    margin: 0 8px;
    color: var(--mm-gray-400);
}

.mm-breadcrumbs strong {
    color: var(--mm-gray-700);
    font-weight: 600;
}

/* ============================================================
   ALERTS
   ============================================================ */
.mm-alert {
    padding: var(--mm-space-md) var(--mm-space-lg);
    border-radius: var(--mm-card-radius-sm);
    margin-bottom: var(--mm-space-lg);
    font-size: var(--mm-text-base);
    display: flex;
    align-items: flex-start;
    gap: var(--mm-space-md);
}

.mm-alert--success {
    background: var(--mm-green-bg);
    color: var(--mm-green-dark);
    border-left: 4px solid var(--mm-green);
}

.mm-alert--error {
    background: var(--mm-red-light);
    color: var(--mm-red-dark);
    border-left: 4px solid var(--mm-red);
}

.mm-alert--warning {
    background: var(--mm-yellow-bg);
    color: var(--mm-yellow-dark);
    border-left: 4px solid var(--mm-yellow);
}

.mm-alert--info {
    background: var(--mm-blue-light);
    color: var(--mm-blue-dark);
    border-left: 4px solid var(--mm-blue);
}

/* ============================================================
   PHONE LINK (CTA)
   ============================================================ */
.mm-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--mm-text-2xl);
    font-weight: 800;
    color: var(--mm-white);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.mm-phone:hover {
    color: var(--mm-orange);
    text-decoration: none;
}

.mm-phone--dark {
    color: var(--mm-dark);
}

.mm-phone--dark:hover {
    color: var(--mm-red);
}

.mm-phone__icon {
    font-size: 1.2em;
}

/* ============================================================
   GRID HELPERS
   ============================================================ */
.mm-grid {
    display: grid;
    gap: var(--mm-space-lg);
}

.mm-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.mm-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.mm-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
    .mm-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .mm-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {

    .mm-grid--4,
    .mm-grid--3,
    .mm-grid--2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
/* Text */
.mm-text--muted {
    color: var(--mm-gray-500);
}

.mm-text--success {
    color: var(--mm-green);
}

.mm-text--danger {
    color: var(--mm-red);
}

.mm-text--accent {
    color: var(--mm-orange);
}

.mm-text--white {
    color: var(--mm-white);
}

.mm-text--xs {
    font-size: var(--mm-text-xs);
}

.mm-text--sm {
    font-size: var(--mm-text-sm);
}

.mm-text--base {
    font-size: var(--mm-text-base);
}

.mm-text--lg {
    font-size: var(--mm-text-lg);
}

.mm-text--xl {
    font-size: var(--mm-text-xl);
}

.mm-text--2xl {
    font-size: var(--mm-text-2xl);
}

.mm-text--3xl {
    font-size: var(--mm-text-3xl);
}

.mm-text--center {
    text-align: center;
}

.mm-text--left {
    text-align: left;
}

.mm-text--right {
    text-align: right;
}

.mm-text--bold {
    font-weight: 700;
}

.mm-text--extrabold {
    font-weight: 800;
}

/* Spacing */
.mm-mt-0 {
    margin-top: 0;
}

.mm-mt-sm {
    margin-top: var(--mm-space-sm);
}

.mm-mt-md {
    margin-top: var(--mm-space-md);
}

.mm-mt-lg {
    margin-top: var(--mm-space-lg);
}

.mm-mt-xl {
    margin-top: var(--mm-space-xl);
}

.mm-mt-2xl {
    margin-top: var(--mm-space-2xl);
}

.mm-mb-0 {
    margin-bottom: 0;
}

.mm-mb-sm {
    margin-bottom: var(--mm-space-sm);
}

.mm-mb-md {
    margin-bottom: var(--mm-space-md);
}

.mm-mb-lg {
    margin-bottom: var(--mm-space-lg);
}

.mm-mb-xl {
    margin-bottom: var(--mm-space-xl);
}

.mm-mb-2xl {
    margin-bottom: var(--mm-space-2xl);
}

/* Display */
.mm-hidden {
    display: none !important;
}

.mm-block {
    display: block;
}

.mm-flex {
    display: flex;
}

.mm-inline-flex {
    display: inline-flex;
}

.mm-grid-display {
    display: grid;
}

/* Flex */
.mm-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mm-flex-col {
    display: flex;
    flex-direction: column;
}

.mm-gap-sm {
    gap: var(--mm-space-sm);
}

.mm-gap-md {
    gap: var(--mm-space-md);
}

.mm-gap-lg {
    gap: var(--mm-space-lg);
}

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

@media (min-width: 768px) {
    .mm-hidden-desktop {
        display: none !important;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mm-animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

.mm-animate-fadeInUp {
    animation: fadeInUp 0.4s ease-out;
}

.mm-animate-slideInRight {
    animation: slideInRight 0.3s ease-out;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   RESPONSIVE TYPOGRAPHY
   ============================================================ */
@media (max-width: 767px) {
    :root {
        --mm-text-3xl: 24px;
        --mm-text-4xl: 30px;
        --mm-text-5xl: 36px;
        --mm-space-2xl: 36px;
        --mm-space-3xl: 48px;
    }

    h1 {
        font-size: var(--mm-text-3xl);
    }

    h2 {
        font-size: var(--mm-text-2xl);
    }

    .mm-section {
        padding: var(--mm-space-2xl) 16px;
    }

    .mm-container {
        padding: 0 16px;
    }
}

/* ============================================================
   THEME OVERRIDES (GeneratePress compatibility)
   ============================================================ */

/* Force full-width containers */
.grid-container,
.site,
.container.hfeed {
    max-width: 100% !important;
    width: 100% !important;
}

/* Remove default GP margins */
.site-content .mm-section:first-child {
    margin-top: 0;
}

/* Override GP link colors */
.mm-section--dark a:not(.mm-btn) {
    color: var(--mm-orange);
}

.mm-section--dark a:not(.mm-btn):hover {
    color: var(--mm-white);
}

/* Fix GP container issues */
.mm-no-sidebar .site-content,
.mm-no-sidebar #primary,
.mm-no-sidebar .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix excessive entry-content margins (GeneratePress override) */
.entry-content {
    margin-top: 0 !important;
}

.inside-article .entry-content {
    margin: 0 !important;
}

.mm-no-sidebar #secondary,
.mm-no-sidebar .sidebar,
.mm-no-sidebar aside.widget-area {
    display: none !important;
}

/* Hide GP page header when custom hero */
.mm-custom-hero .entry-header,
.mm-custom-hero .page-header,
.mm-custom-hero .inside-article>header {
    display: none !important;
}

/* Remove GP article padding for full-width sections */
.mm-full-width .inside-article {
    padding: 0 !important;
}

/* Static pages - GP float/sidebar override (layout in pages.css) */
.mm-static-page .site-content,
.mm-static-page .content-area,
.mm-static-page #primary,
.mm-static-page main,
.mm-static-page article,
.mm-static-page .entry-content {
    width: 100% !important;
    float: none !important;
}

/* 404 page - complete GP override */
body.error404 .site-content,
body.error404 .content-area,
body.error404 #primary,
body.error404 main,
body.error404 .inside-article {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* Blog single post - complete GP override */
.mm-blog-single .site-content,
.mm-blog-single .content-area,
.mm-blog-single #primary,
.mm-blog-single main,
.mm-blog-single article,
.mm-blog-single .inside-article,
.mm-blog-single .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

.mm-blog-single .grid-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Blog archive - complete GP override */
.mm-blog-archive .site-content,
.mm-blog-archive .content-area,
.mm-blog-archive #primary,
.mm-blog-archive main,
.mm-blog-archive article,
.mm-blog-archive .inside-article,
.mm-blog-archive .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

.mm-blog-archive .grid-container {
    max-width: 100% !important;
    padding: 0 !important;
}