/* ==========================================================================
   Base Styles - CSS Variables, Reset, and Utilities
   ========================================================================== */

/* CSS Variables
   ========================================================================== */
:root {
    /* Brand Colors (Customizable via Theme Options) */
    --primary-color: #fd5f17;
    --secondary-color: #131e4a;
    --accent-color: #009a00;

    /* Fixed Colors */
    --text-color: #333333;
    --text-muted: #777777;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --dark-background: #0a172b;
    --danger-color: #ff1a1a;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.8;

    /* Spacing Scale */
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 30px;
    --spacing-lg: 50px;
    --spacing-xl: 80px;
    --spacing-xxl: 100px;

    /* Container */
    --container-max-width: 1200px;
    --container-padding: 15px;

    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 15px 40px rgba(253, 95, 23, 0.2);
}

/* CSS Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: 64px;
    line-height: 1.1;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

h4 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

h5 {
    font-size: 18px;
    font-weight: 600;
}

h6 {
    font-size: 16px;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

/* Container
   ========================================================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Section Spacing
   ========================================================================== */
.section {
    padding: var(--spacing-xxl) 0;
}

p.section-desc {
    margin-bottom: var(--spacing-sm);
}

.section-title {
    margin-bottom: var(--spacing-sm);
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--secondary-color);
}

.btn-outline-dark {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-dark:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* Cards
   ========================================================================== */
.card {
    background: #fff;
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border-radius: 0;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-primary);
}

.card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background-color: rgba(253, 95, 23, 0.1);
    color: var(--primary-color);
}

.card-icon svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.card-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Grid System
   ========================================================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
}

.col-2 {
    width: 50%;
}

.col-3 {
    width: 33.333%;
}

.col-4 {
    width: 25%;
}

/* Form Elements
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 14px;
    font-family: var(--font-family);
    transition: var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Utilities
   ========================================================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.bg-light {
    background-color: var(--background-light);
}

.bg-dark {
    background-color: var(--dark-background);
    color: #fff;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mt-5 {
    margin-top: var(--spacing-xl);
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

/* 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: 0;
}

/* WordPress Core Alignment
   ========================================================================== */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100%;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}