/*
Theme Name: MOA Theme
Theme URI: https://myofficeaddress.co.uk
Author: My Office Address
Author URI: https://myofficeaddress.co.uk
Description: Custom theme for My Office Address - a virtual address service for UK businesses.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moa-theme
*/

/* ============================================
   Design System - CSS Variables
   ============================================ */

:root {
    /* Primary Colors */
    --moa-primary: #232f5d;        /* Navy Blue - RGB: 35/47/93 */
    --moa-secondary: #1877bd;      /* Blue - RGB: 24/119/189 */
    --moa-accent: #b73118;          /* Orange-Red - RGB: 183/49/24 */
    
    /* Neutral Colors */
    --moa-dark: #101526;
    --moa-muted: #5a6386;
    --moa-light: #f5f7fb;
    --moa-white: #ffffff;
    --moa-grey-light: #f8f9fa;
    --moa-grey: #6c757d;
    --moa-grey-dark: #343a40;
    
    /* Typography */
    --moa-font-heading: 'Museo Sans Cond', 'Museo Sans Condensed', 'Museo Sans', 'Inter', 'Segoe UI', sans-serif;
    --moa-font-body: 'Museo Sans', 'Inter', 'Segoe UI', sans-serif;
    --moa-font-logo: 'Museo Sans Cond', 'Museo Sans Condensed', 'Museo Sans', sans-serif;
    
    /* Spacing */
    --moa-spacing-xs: 0.5rem;
    --moa-spacing-sm: 1rem;
    --moa-spacing-md: 1.5rem;
    --moa-spacing-lg: 2rem;
    --moa-spacing-xl: 3rem;
    --moa-spacing-2xl: 4rem;
    
    /* Border Radius */
    --moa-radius-sm: 0.25rem;
    --moa-radius-md: 0.5rem;
    --moa-radius-lg: 0.75rem;
    --moa-radius-xl: 1rem;
    
    /* Shadows */
    --moa-shadow-sm: 0 1px 3px rgba(35, 47, 93, 0.1);
    --moa-shadow-md: 0 4px 6px rgba(35, 47, 93, 0.1);
    --moa-shadow-lg: 0 15px 35px -15px rgba(35, 47, 93, 0.35);
}

/* ============================================
   Page Pattern - Top Left Decorative Element
   ============================================ */

.moa-page-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 311px;
    height: 405px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.moa-page-pattern svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 767px) {
    .moa-page-pattern {
        width: 200px;
        height: 260px;
    }
}

.moa-page-pattern--badges {
    top: 500px;
    left: 0;
    width: 134px;
    height: 169px;
}

@media (max-width: 767px) {
    .moa-page-pattern--badges {
        width: 100px;
        height: 126px;
        top: 400px;
    }
}

@media (min-width: 1024px) {
    .moa-page-pattern--badges {
        top: 600px;
    }
}

.moa-page-pattern--hero-right {
    top: 100px;
    left: 40%;
    width: 761px;
    height: 709px;
}

@media (max-width: 767px) {
    .moa-page-pattern--hero-right {
        width: 400px;
        height: 372px;
        top: 80px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .moa-page-pattern--hero-right {
        width: 500px;
        height: 465px;
        top: 90px;
    }
}

/* ============================================
   Reset & Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--moa-font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--moa-grey-dark);
    background-color: var(--moa-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--moa-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--moa-primary);
    margin-bottom: var(--moa-spacing-md);
}

.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor h1,
.elementor-widget-text-editor h2,
.elementor-widget-text-editor h3,
.elementor-widget-text-editor h4,
.elementor-widget-text-editor h5,
.elementor-widget-text-editor h6,
.moa-subheading,
.subheading {
    font-family: var(--moa-font-heading);
}

body,
p,
li,
span,
label,
input,
select,
textarea,
button {
    font-family: var(--moa-font-body);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

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

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--moa-spacing-md);
    color: var(--moa-grey);
}

a {
    color: var(--moa-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--moa-primary);
}

/* ============================================
   Layout
   ============================================ */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* ============================================
   Buttons
   ============================================ */

.moa-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--moa-font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--moa-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.moa-btn-primary {
    background-color: var(--moa-primary);
    color: var(--moa-white);
}

.moa-btn-primary:hover {
    background-color: var(--moa-dark);
    color: var(--moa-white);
}

.moa-btn-secondary {
    background-color: var(--moa-secondary);
    color: var(--moa-white);
}

.moa-btn-secondary:hover {
    background-color: var(--moa-primary);
    color: var(--moa-white);
}

.moa-btn-accent {
    background-color: var(--moa-accent);
    color: var(--moa-white);
}

.moa-btn-accent:hover {
    background-color: #9a2814;
    color: var(--moa-white);
}

/* ============================================
   Utility Classes
   ============================================ */

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

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--moa-spacing-xs); }
.mb-2 { margin-bottom: var(--moa-spacing-sm); }
.mb-3 { margin-bottom: var(--moa-spacing-md); }
.mb-4 { margin-bottom: var(--moa-spacing-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--moa-spacing-xs); }
.mt-2 { margin-top: var(--moa-spacing-sm); }
.mt-3 { margin-top: var(--moa-spacing-md); }
.mt-4 { margin-top: var(--moa-spacing-lg); }
