/**
 * Tactical Legacy Theme - Main Stylesheet
 * 
 * Complete design system implementation based on brand guidelines
 * 
 * @package Tactical_Legacy
 * @since 1.0.0
 */

/* ==========================================================================
   CSS VARIABLES - Design System Tokens
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-navy: #0B1F2A;
    --color-gold: #C8A96A;
    --color-white: #FFFFFF;
    --color-olive: #4A5D52;
    --color-light-gray: #F2F4F6;
    
    /* Extended Color Palette */
    --color-navy-light: #1a3440;
    --color-navy-dark: #061218;
    --color-gold-light: #d4bc8a;
    --color-gold-dark: #a38c52;
    --color-gray-100: #F8F9FA;
    --color-gray-200: #E9ECEF;
    --color-gray-300: #DEE2E6;
    --color-gray-400: #CED4DA;
    --color-gray-500: #ADB5BD;
    --color-gray-600: #6C757D;
    --color-gray-700: #495057;
    --color-gray-800: #343A40;
    --color-gray-900: #212529;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-xs: 0.75rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    --font-size-h5: 1.125rem;
    --font-size-h6: 1rem;
    
    --line-height-base: 1.6;
    --line-height-heading: 1.2;
    
    /* Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(11, 31, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(11, 31, 42, 0.1), 0 2px 4px -1px rgba(11, 31, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(11, 31, 42, 0.1), 0 4px 6px -2px rgba(11, 31, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(11, 31, 42, 0.1), 0 10px 10px -5px rgba(11, 31, 42, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Container Width */
    --container-width: 1200px;
    --container-padding: 1.5rem;
    
    /* Breakpoints (for reference in media queries) */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
}

/* ==========================================================================
   LAYOUT - Container & Grid System
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-fluid {
    width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

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

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

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

.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

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

.align-items-start {
    align-items: start;
}

.align-items-end {
    align-items: end;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

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

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); }
h6 { font-size: var(--font-size-h6); }

p {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: 400;
    line-height: 1.7;
}

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

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

strong, b {
    font-weight: 600;
}

/* Responsive Typography */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.75rem;
        --font-size-h3: 1.25rem;
        --font-size-h4: 1.125rem;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    line-height: 1.5;
}

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

.btn-primary:hover {
    background-color: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--color-navy-light);
    border-color: var(--color-navy-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.btn-outline-primary:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-navy);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

.btn-block {
    display: block;
    width: 100%;
}

.button-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.button-group .btn {
    flex: 0 1 auto;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
}

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

.card-image {
    margin: calc(var(--spacing-lg) * -1) calc(var(--spacing-lg) * -1) var(--spacing-md);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 0;
}

.card-title {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-h4);
}

.card-title a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color var(--transition-base);
}

.card-title a:hover {
    color: var(--color-gold);
}

.card-excerpt {
    margin-bottom: var(--spacing-md);
    color: var(--color-gray-700);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
    padding: var(--spacing-xxl) 0;
}

.section-light {
    background-color: var(--color-gray-100);
}

.section-gray {
    background-color: var(--color-light-gray);
}

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

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

.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-gray-600);
    max-width: 700px;
    margin: 0 auto;
}

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

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

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding-text .site-title {
    margin: 0;
    font-size: var(--font-size-h4);
    font-weight: 700;
    letter-spacing: 1px;
}

.site-branding-text .site-title a {
    color: var(--color-navy);
    text-decoration: none;
}

.site-branding-text .site-description {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-gold);
    font-weight: 600;
}

.custom-logo-link img {
    max-height: 60px;
    width: auto;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: color var(--transition-base);
}

.nav-menu a:hover {
    color: var(--color-gold);
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: var(--color-gold);
}

/* Dropdown Menu */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs) 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1001;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    padding: 0.75rem 1.25rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10001;
    width: 44px;
    height: 44px;
}

.menu-toggle-icon {
    display: block;
    width: 28px;
    height: 20px; /* ← FIXED: Container height, not a line */
    position: relative;
    margin: auto;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--color-navy);
    border-radius: 2px;
    transition: all 0.3s ease;
    left: 0;
}

.menu-toggle-icon::before {
    top: 0;
}

.menu-toggle-icon::after {
    bottom: 0;
}

.menu-toggle-icon span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--color-navy);
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    left: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: var(--shadow-xl);
        padding: var(--spacing-xl) var(--spacing-lg);
        flex-direction: column;
        align-items: flex-start;
        transition: right var(--transition-base);
        overflow-y: auto;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-menu a {
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid var(--color-gray-200);
    }
    
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: var(--spacing-md);
        display: none;
    }
    
    .nav-menu li:hover > .sub-menu {
        display: block;
    }
    
    .header-cta {
        width: 100%;
        margin-top: var(--spacing-md);
    }
    
    .header-cta .btn {
        width: 100%;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-olive) 100%);
    color: var(--color-white);
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(11, 31, 42, 0.9) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(11, 31, 42, 0.9) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(11, 31, 42, 0.9) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(11, 31, 42, 0.9) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(11, 31, 42, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 1px;
}

.hero-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    color: var(--color-gray-200);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
}

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */

.service-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.service-card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.service-card-title {
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-sm);
    color: var(--color-navy);
}

.service-card-description {
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-md);
}

.service-card-features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
    text-align: left;
}

.service-card-features li {
    padding: 0.5rem 0;
    color: var(--color-gray-700);
    border-bottom: 1px solid var(--color-gray-200);
}

.service-card-features li:last-child {
    border-bottom: none;
}

.service-card-link {
    display: inline-block;
    margin-top: var(--spacing-md);
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-base);
}

.service-card-link:hover {
    color: var(--color-gold-dark);
}

/* Service Detail Pages */
.service-detail {
    margin-bottom: var(--spacing-xxl);
}

.service-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-gold);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-sm);
}

.service-title {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-md);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.service-features li {
    padding: 0.75rem 0;
    font-size: var(--font-size-lg);
    color: var(--color-gray-700);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonial-section {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
}

.testimonial-wrapper {
    margin-bottom: var(--spacing-xl);
}

.testimonial-quote-mark {
    font-size: 5rem;
    line-height: 1;
    color: var(--color-gold);
    font-family: Georgia, serif;
    margin-bottom: var(--spacing-sm);
}

.testimonial-quote {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.testimonial-author-name {
    margin-bottom: 0.25rem;
    color: var(--color-gold);
}

.testimonial-author-title {
    font-size: var(--font-size-sm);
    color: var(--color-gray-300);
}

.testimonial-cta-box {
    display: flex;
    align-items: center;
}

.cta-box {
    background-color: rgba(200, 169, 106, 0.1);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
}

.cta-box h3 {
    margin-bottom: var(--spacing-md);
}

.cta-box p {
    margin-bottom: var(--spacing-lg);
}

.cta-note {
    font-size: var(--font-size-sm);
    color: var(--color-gray-300);
    margin-top: var(--spacing-sm);
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
}

.testimonial-card-stars {
    color: var(--color-gold);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
}

.testimonial-card-quote {
    font-style: italic;
    margin-bottom: var(--spacing-md);
    color: var(--color-gray-200);
}

.testimonial-card-author {
    font-size: var(--font-size-sm);
}

.testimonial-card-author strong {
    color: var(--color-white);
}

.testimonial-card-author small {
    color: var(--color-gray-400);
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

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

.stat-card {
    padding: var(--spacing-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gold);
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-base);
    color: var(--color-gray-700);
    font-weight: 600;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-olive) 100%);
    color: var(--color-white);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--font-size-h2);
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.cta-description {
    margin-bottom: var(--spacing-xl);
    color: var(--color-gray-200);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ==========================================================================
   BLOG & POSTS
   ========================================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.blog-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: var(--spacing-lg);
}

.blog-card-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-sm);
}

.blog-card-title {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-sm);
}

.blog-card-title a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color var(--transition-base);
}

.blog-card-title a:hover {
    color: var(--color-gold);
}

.blog-card-excerpt {
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-md);
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-light-gray);
    color: var(--color-navy);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
}

.category-badge:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.read-more-link {
    color: var(--color-gold);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-base);
}

.read-more-link:hover {
    color: var(--color-gold-dark);
}

/* Single Post */
.post-hero,
.page-hero {
    margin-bottom: var(--spacing-xl);
}

.post-hero-image img,
.page-hero img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.post-content-wrapper,
.page-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.entry-header {
    margin-bottom: var(--spacing-xl);
}

.entry-title {
    margin-bottom: var(--spacing-md);
}

.entry-meta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.entry-content {
    font-size: var(--font-size-base);
    line-height: 1.8;
}

.entry-content > * {
    margin-bottom: var(--spacing-lg);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--spacing-xl);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.entry-content ul,
.entry-content ol {
    padding-left: var(--spacing-lg);
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-gold);
    padding-left: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    font-style: italic;
    color: var(--color-gray-700);
}

.entry-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--color-gray-200);
}

.tags-links {
    margin-bottom: var(--spacing-md);
}

.tags-links a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background-color: var(--color-light-gray);
    color: var(--color-navy);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
}

.tags-links a:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

/* Post Navigation */
.post-navigation {
    margin-top: var(--spacing-xxl);
    padding: var(--spacing-xl) 0;
    border-top: 2px solid var(--color-gray-200);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.nav-title {
    display: block;
    color: var(--color-navy);
    font-weight: 600;
    transition: color var(--transition-base);
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: var(--color-gold);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    margin: var(--spacing-xxl) 0;
}

.pagination-list {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.pagination-list li {
    display: inline-block;
}

.pagination-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    text-align: center;
    background-color: var(--color-white);
    color: var(--color-navy);
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
}

.pagination-list a:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.pagination-list .active a {
    background-color: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.pagination-ellipsis {
    padding: 0.5rem 0.75rem;
    color: var(--color-gray-600);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-navy);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    font-family: var(--font-body);
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.1);
}

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

.form-note {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
}

.search-submit {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

/* Contact Page Specific */
.contact-info-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-info-content h4 {
    margin-bottom: 0.25rem;
}

.contact-info-content a {
    color: var(--color-gold);
    text-decoration: none;
}

.contact-info-content a:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.faq-item {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
}

.faq-answer {
    color: var(--color-gray-700);
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.footer-widgets {
    padding: var(--spacing-xxl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.footer-widget-area .widget {
    margin-bottom: var(--spacing-lg);
}

.footer-widget-area .widget-title {
    color: var(--color-gold);
    font-size: var(--font-size-h5);
    margin-bottom: var(--spacing-md);
}

.footer-widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-area ul li {
    margin-bottom: 0.5rem;
}

.footer-widget-area a {
    color: var(--color-gray-300);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-widget-area a:hover {
    color: var(--color-gold);
}

.site-info {
    padding: var(--spacing-lg) 0;
}

.site-info-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.copyright {
    color: var(--color-gray-400);
    font-size: var(--font-size-sm);
}

.footer-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: var(--spacing-md);
}

.footer-menu a {
    color: var(--color-gray-300);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-menu a:hover {
    color: var(--color-gold);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-white);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-link:hover {
    background-color: var(--color-gold);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }
    
    .site-info-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Spacing Utilities */
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-xxl { margin-top: var(--spacing-xxl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-xxl { margin-bottom: var(--spacing-xxl); }

.pt-xs { padding-top: var(--spacing-xs); }
.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }
.pt-xxl { padding-top: var(--spacing-xxl); }

.pb-xs { padding-bottom: var(--spacing-xs); }
.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }
.pb-xxl { padding-bottom: var(--spacing-xxl); }

/* Display Utilities */
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

/* Flexbox Utilities */
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

/* Color Utilities */
.text-primary { color: var(--color-navy); }
.text-accent { color: var(--color-gold); }
.text-muted { color: var(--color-gray-600); }
.text-white { color: var(--color-white); }

.bg-primary { background-color: var(--color-navy); }
.bg-accent { background-color: var(--color-gold); }
.bg-light { background-color: var(--color-light-gray); }
.bg-white { background-color: var(--color-white); }

/* Misc Utilities */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Responsive Utilities */
@media (max-width: 768px) {
    .d-md-none { display: none; }
    .d-md-block { display: block; }
}

/* ==========================================================================
   PRICING CARDS (Services Page)
   ========================================================================== */

.pricing-card {
    position: relative;
    text-align: center;
    padding: var(--spacing-xl);
}

.pricing-card.featured {
    border: 3px solid var(--color-gold);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background-color: var(--color-gold);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.pricing-header {
    margin-bottom: var(--spacing-lg);
}

.pricing-header h3 {
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-xs);
}

.pricing-description {
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
}

.pricing-features {
    margin-bottom: var(--spacing-xl);
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   ABOUT PAGE SPECIFIC
   ========================================================================== */

.about-hero {
    padding: var(--spacing-xxl) 0;
}

.feature-card {
    padding: var(--spacing-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.approach-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.step-card {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    padding: var(--spacing-lg);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-h3);
    font-weight: 700;
}

.step-content h3 {
    margin-bottom: var(--spacing-sm);
}

.value-card {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.value-card h4 {
    color: var(--color-gold);
    margin-bottom: var(--spacing-xs);
}

/* ==========================================================================
   IMAGE PLACEHOLDERS
   ========================================================================== */

.image-placeholder {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-olive) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--font-size-lg);
    min-height: 300px;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

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

@media (max-width: 768px) {
    :root {
        --spacing-xxl: 3rem;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .menu-toggle,
    .cta-section,
    .testimonial-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}






/* Services Grid */
.services-section {
    padding: 5rem 20px;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 3rem;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Service Detail Page */
.service-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 20px;
}

.service-detail h1 {
    font-size: 2.8rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

.service-detail h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin: 2rem 0 1rem;
}

.service-detail h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin: 1.5rem 0 1rem;
}

.benefits-list {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.benefits-list ul {
    list-style: none;
    padding: 0;
}