/* CSS Reset and Variables */
:root {
    --color-primary: #0a2540; /* Technical Navy */
    --color-secondary: #0070f3; /* Water Blue */
    --color-accent: #e24a36; /* Red for CTA */
    --color-text: #333333;
    --color-text-light: #555555;
    --color-bg: #f9fbfd; /* Clean crisp background */
    --color-white: #ffffff;
    --color-border: #eaeaea;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 { 
    color: var(--color-primary); 
    line-height: 1.2; 
    margin-bottom: 1rem; 
}
h1 { font-size: 2.5rem; margin-top: 1rem; }
h2 { 
    font-size: 2rem; 
    margin-top: 2rem; 
    border-bottom: 2px solid var(--color-secondary); 
    padding-bottom: 0.5rem; 
    display: inline-block; 
}
h3 { font-size: 1.5rem; margin-top: 1.5rem; }
p, ul, ol { margin-bottom: 1.2rem; }
ul { padding-left: 1.5rem; }
a { color: var(--color-secondary); text-decoration: none; transition: var(--transition); }
a:hover { text-decoration: underline; }

/* Layout & Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
    background: var(--color-white);
    border-bottom: 4px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}
.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}
.primary-navigation .nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}
.primary-navigation a, .dropdown-toggle {
    color: var(--color-primary);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: var(--font-main);
    padding: 0.5rem 0;
}
.primary-navigation a:hover, .dropdown-toggle:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    list-style: none;
    min-width: 320px;
    border-radius: 6px;
    padding: 0.5rem 0;
    z-index: 100;
    border: 1px solid var(--color-border);
}
.dropdown-menu li a {
    display: block;
    padding: 0.85rem 1.5rem;
    color: var(--color-text);
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover {
    background: var(--color-bg);
    color: var(--color-secondary);
    padding-left: 2rem; /* nice hover effect */
}
.dropdown.active .dropdown-menu { display: block; }
.dropdown-toggle .arrow { 
    font-size: 0.8rem; 
    margin-left: 4px; 
    transition: transform 0.3s; 
    display: inline-block;
}
.dropdown.active .arrow { transform: rotate(180deg); }

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: var(--color-secondary);
    color: var(--color-white);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    transition: var(--transition);
    min-height: 44px; /* Accessible touch target */
    border: none;
    font-size: 1.1rem;
}
.button:hover { 
    background: #005bb5; 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.button.header-btn {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 14px rgba(226, 74, 54, 0.4);
    padding: 0.8rem 1.8rem;
}
.button.header-btn:hover {
    background-color: #c93b28;
    box-shadow: 0 6px 18px rgba(226, 74, 54, 0.6);
}
.button.outline {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}
.button.outline:hover { 
    background: var(--color-secondary); 
    color: var(--color-white); 
}
.button.large { padding: 1.2rem 2.5rem; font-size: 1.25rem; }
.button.block { width: 100%; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 10px;
}
.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    position: relative;
    transition: var(--transition);
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
    left: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Breadcrumbs */
.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}
.breadcrumb li::after { content: '→'; margin-left: 0.5rem; color: #ccc; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--color-text-light); }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-white) 0%, #e6f0ff 100%);
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-border);
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin-bottom: 2rem;
}
.hero-cta { margin-top: 2rem; }

/* Main Content */
.content-section {
    padding: 3rem 0;
    background: var(--color-white);
}
.content-container {
    max-width: 800px;
    margin: 0 auto; /* Properly center content */
}
.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    background: var(--color-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}
.faq { margin-bottom: 1.5rem; }
.faq h4 { color: var(--color-primary); margin-bottom: 0.5rem; font-size: 1.1rem; }
.faq:last-child { margin-bottom: 0; }

/* CTA Block */
.cta-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 8px;
    text-align: center;
}
.cta-section p { font-size: 1.2rem; margin-bottom: 1.5rem; }

/* Footer */
.site-footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}
.site-footer a { color: #8bb4e6; }
.site-footer a:hover { color: var(--color-white); }
.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}
.footer-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.875rem;
    color: #a0aec0;
}
.footer-bottom p { margin-bottom: 0.5rem; }

/* Sticky Mobile CTA */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    padding: 10px 15px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    display: none; /* hidden on desktop */
}

/* Responsive */
@media (min-width: 1025px) {
    body { padding-bottom: 0 !important; } 
}

@media (max-width: 1024px) {
    body { padding-bottom: 80px; } /* Space for sticky bar */

    .menu-toggle { display: block; }
    .header-call { display: none; }
    
    .primary-navigation {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    .primary-navigation.active { display: block; }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 1rem;
    }
    .nav-links li { width: 100%; border-bottom: 1px solid var(--color-border); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a, .dropdown-toggle {
        display: block;
        padding: 1rem 0;
        width: 100%;
        text-align: left;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        background: var(--color-bg);
        border-radius: 0;
        border-left: 4px solid var(--color-border);
        min-width: 100%;
        border-top: none;
        border-right: none;
        border-bottom: none;
    }
    
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .sticky-mobile-cta { display: block; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .hero-section { padding: 2.5rem 0; }
    .content-section { padding: 2.5rem 0; }
}
