/* ==========================================================================
   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(var(--primary-color-rgb), 0.2);
}

/* Unified breadcrumb row below title areas */
.page-breadcrumb-row {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.page-breadcrumb-row .container {
    min-height: 48px;
    display: flex;
    align-items: center;
}

.page-breadcrumb-row .breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.page-breadcrumb-row svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-color);
    flex-shrink: 0;
}

.page-breadcrumb-row a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-breadcrumb-row a:hover {
    color: var(--primary-color);
}

.page-breadcrumb-row .separator {
    color: #cbd5e1;
    margin: 0 5px;
}

.page-breadcrumb-row .current {
    color: #64748b;
}

/* Floating contact buttons */
.floating-contact-bar {
    position: fixed;
    right: 24px;
    top: 50%;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-50%);
}

.floating-contact-item {
    --floating-contact-color: var(--primary-color);
    position: relative;
    width: 52px;
    height: 52px;
}

.floating-contact-item:nth-child(6n + 1) {
    --floating-contact-color: #25d366;
}

.floating-contact-item:nth-child(6n + 2) {
    --floating-contact-color: #2563eb;
}

.floating-contact-item:nth-child(6n + 3) {
    --floating-contact-color: #f97316;
}

.floating-contact-item:nth-child(6n + 4) {
    --floating-contact-color: #111827;
}

.floating-contact-item:nth-child(6n + 5) {
    --floating-contact-color: #06b6d4;
}

.floating-contact-item:nth-child(6n) {
    --floating-contact-color: #8b5cf6;
}

.floating-contact-button {
    position: relative;
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--floating-contact-color);
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-contact-button:hover {
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
}

.floating-contact-icon {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    fill: none;
}

.floating-contact-panel {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 1;
    min-width: 210px;
    height: 52px;
    padding: 0 68px 0 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--floating-contact-color);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scaleX(0.28);
    transform-origin: right center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-contact-item:hover .floating-contact-panel,
.floating-contact-item:focus-within .floating-contact-panel {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
}

@media (max-width: 768px) {
    .floating-contact-bar {
        right: 16px;
        top: auto;
        bottom: 82px;
        gap: 10px;
        transform: none;
    }

    .floating-contact-item,
    .floating-contact-button {
        width: 46px;
        height: 46px;
    }

    .floating-contact-icon {
        width: 22px;
        height: 22px;
    }

    .floating-contact-panel {
        display: none;
    }
}

/* 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: var(--global-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: var(--global-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(var(--primary-color-rgb), 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: var(--global-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);
}
