:root {
    /* Color Palette */
    --primary-blue: #003366;
    --accent-fire: #FF4500;
    --accent-fire-gradient: linear-gradient(135deg, #FF4500 0%, #FFD700 100%);

    /* Light Mode Defaults */
    --bg-body: #ffffff;
    --bg-header: #f8f9fa;
    --text-main: #333333;
    --text-muted: #666666;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    /* Dark Mode Overrides */
    --bg-body: #121212;
    --bg-header: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --card-bg: #1e1e1e;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    /* Adjust primary blue for better visibility on dark if needed, 
       but keeping brand color is usually preferred. 
       Maybe add a glow? */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
    color: #4da6ff;
    /* Lighter blue for dark mode */
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-fire);
}

/* Header */
.site-header {
    background-color: var(--bg-header);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    font-weight: 500;
    color: var(--text-main);
}

.main-navigation a:hover {
    color: var(--accent-fire);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

[data-theme="dark"] .theme-toggle {
    border-color: var(--accent-fire);
    color: var(--accent-fire);
}

.theme-toggle:hover {
    background: var(--primary-blue);
    color: white;
}

/* Hero Section */
.hero {
    background: var(--bg-header);
    padding: 5rem 2rem;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    /* Placeholder */
    background-size: cover;
    background-position: center;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    display: inline-block;
    background: var(--accent-fire-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    color: white;
}

/* Services Grid */
.services-section {
    padding: 4rem 2rem;
    background: var(--bg-body);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-fire);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s;
    border-top: 4px solid var(--primary-blue);
}

.service-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent-fire);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-fire);
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background: #002244;
    /* Darker blue */
    color: white;
    padding: 3rem 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: var(--accent-fire);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #a0a0a0;
}

/* Fix footer links contrast */
.site-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
    opacity: 0.8;
}

.site-footer a:hover {
    color: var(--accent-fire);
    opacity: 1;
}