/*
Theme Name: Max Property Finance
Theme URI: https://maxpropertyfinance.co.uk
Author: Max Property Finance Team
Author URI: https://maxpropertyfinance.co.uk
Description: Professional, secure, and SEO-optimized WordPress theme for Max Property Finance - Property Development Finance Solutions. Built with Bootstrap 5, mobile-responsive, and fully customizable through WordPress Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: max-property-finance
Domain Path: /languages
Tags: business, finance, property, bootstrap, responsive, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks

Max Property Finance WordPress Theme, Copyright 2024
Max Property Finance is distributed under the terms of the GNU GPL
*/

/**
 * CSS Variables for Theme Colors and Spacing
 * These can be customized via WordPress Customizer
 */
:root {
    /* Brand Colors */
    --mpf-primary-color: #98b332;
    --mpf-primary-hover: #7a9028;
    --mpf-primary-light: #b8d362;
    --mpf-primary-dark: #6d801e;
    
    --mpf-secondary-color: #034d66;
    --mpf-secondary-hover: #023a4d;
    --mpf-secondary-light: #045d7d;
    --mpf-secondary-dark: #022e3d;
    
    /* Neutral Colors */
    --mpf-white: #ffffff;
    --mpf-black: #000000;
    --mpf-light-gray: #f8f9fa;
    --mpf-gray: #6c757d;
    --mpf-dark-gray: #333333;
    --mpf-text-color: #555555;
    --mpf-border-color: #dee2e6;
    
    /* Status Colors */
    --mpf-success: #28a745;
    --mpf-warning: #ffc107;
    --mpf-danger: #dc3545;
    --mpf-info: #17a2b8;
    
    /* Typography */
    --mpf-font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --mpf-font-size-base: 16px;
    --mpf-line-height-base: 1.6;
    --mpf-heading-font-weight: 700;
    
    /* Spacing */
    --mpf-spacing-xs: 0.25rem;
    --mpf-spacing-sm: 0.5rem;
    --mpf-spacing-md: 1rem;
    --mpf-spacing-lg: 1.5rem;
    --mpf-spacing-xl: 3rem;
    
    /* Border Radius */
    --mpf-border-radius: 0.375rem;
    --mpf-border-radius-lg: 0.5rem;
    
    /* Shadows */
    --mpf-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --mpf-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --mpf-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Transitions */
    --mpf-transition-base: all 0.3s ease-in-out;
}

/**
 * Base Typography
 */
body {
    font-family: var(--mpf-font-family);
    font-size: var(--mpf-font-size-base);
    line-height: var(--mpf-line-height-base);
    color: var(--mpf-text-color);
    background-color: var(--mpf-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: var(--mpf-heading-font-weight);
    color: var(--mpf-secondary-color);
    line-height: 1.3;
    margin-bottom: var(--mpf-spacing-md);
}

h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }
}

/**
 * Links
 */
a {
    color: var(--mpf-primary-color);
    text-decoration: none;
    transition: var(--mpf-transition-base);
}

a:hover,
a:focus {
    color: var(--mpf-primary-hover);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--mpf-primary-color);
    outline-offset: 2px;
}

/**
 * Buttons
 */
.btn {
    border-radius: var(--mpf-border-radius);
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    transition: var(--mpf-transition-base);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--mpf-primary-color);
    border-color: var(--mpf-primary-color);
    color: var(--mpf-white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--mpf-primary-hover);
    border-color: var(--mpf-primary-hover);
    color: var(--mpf-white);
    transform: translateY(-2px);
    box-shadow: var(--mpf-shadow);
}

.btn-secondary {
    background-color: var(--mpf-secondary-color);
    border-color: var(--mpf-secondary-color);
    color: var(--mpf-white);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--mpf-secondary-hover);
    border-color: var(--mpf-secondary-hover);
    color: var(--mpf-white);
    transform: translateY(-2px);
    box-shadow: var(--mpf-shadow);
}

.btn-outline-primary {
    border-color: var(--mpf-primary-color);
    color: var(--mpf-primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--mpf-primary-color);
    border-color: var(--mpf-primary-color);
    color: var(--mpf-white);
}

/**
 * Forms
 */
.form-control,
.form-select {
    border-radius: var(--mpf-border-radius);
    border: 1px solid var(--mpf-border-color);
    padding: 0.625rem 0.875rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mpf-primary-color);
    box-shadow: 0 0 0 0.2rem rgba(152, 179, 50, 0.25);
}

/**
 * Layout Utilities
 */
.section-padding {
    padding: var(--mpf-spacing-xl) 0;
}

.section-padding-lg {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 2rem 0;
    }
    .section-padding-lg {
        padding: 3rem 0;
    }
}

/**
 * WordPress Core Classes
 */
.alignleft {
    float: left;
    margin-right: var(--mpf-spacing-md);
    margin-bottom: var(--mpf-spacing-md);
}

.alignright {
    float: right;
    margin-left: var(--mpf-spacing-md);
    margin-bottom: var(--mpf-spacing-md);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--mpf-spacing-md);
}

.alignwide {
    max-width: 1200px;
}

.alignfull {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/**
 * Accessibility
 */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--mpf-light-gray);
    border-radius: var(--mpf-border-radius);
    box-shadow: var(--mpf-shadow);
    clip: auto !important;
    color: var(--mpf-secondary-color);
    display: block;
    font-size: 1rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/**
 * Skip Link
 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--mpf-primary-color);
    color: var(--mpf-white);
    padding: 8px;
    text-decoration: none;
    z-index: 100001;
}

.skip-link:focus {
    top: 0;
}

/**
 * Loading State
 */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--mpf-primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/**
 * Print Styles
 */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    img {
        page-break-inside: avoid;
    }

    h2,
    h3,
    p {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/**
 * Dark Mode Support (Optional - can be enabled via customizer)
 */
@media (prefers-color-scheme: dark) {
    body.dark-mode-enabled {
        --mpf-text-color: #e0e0e0;
        --mpf-white: #1a1a1a;
        --mpf-light-gray: #2a2a2a;
        --mpf-dark-gray: #e0e0e0;
        background-color: var(--mpf-white);
        color: var(--mpf-text-color);
    }
}