/* ===== CSS Custom Properties ===== */
:root {
    --navy: #061B35;
    --blue: #0078C9;
    --blue-dark: #005fa3;
    --charcoal: #3F444A;
    --light-grey: #F5F7FA;
    --white: #FFFFFF;
    --text-primary: #2D3436;
    --text-muted: #6C757D;
    --border-color: #DEE2E6;
}

/* ===== Base ===== */
html {
    font-size: 15px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    /* Sticky footer: fill the viewport and push the footer to the bottom */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* ===== Navbar ===== */
.bg-navy {
    background-color: var(--navy) !important;
}

.navbar-logo {
    height: 28px;
    width: auto;
}

@media (min-width: 992px) {
    .navbar-logo {
        height: 32px;
    }
}

.navbar-dark .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    color: #FFFFFF !important;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--navy) 0%, #0a2e5c 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 0 2.5rem;
        text-align: center;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* ===== Buttons ===== */
.btn-primary {
    background-color: var(--blue);
    border-color: var(--blue);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--blue-dark);
    border-color: var(--blue-dark);
}

.btn-outline-light:hover {
    color: var(--navy);
}

.btn-navy {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.btn-navy:hover, .btn-navy:focus {
    background-color: #0a2e5c;
    border-color: #0a2e5c;
    color: var(--white);
}

/* ===== Section Utilities ===== */
.section-padding {
    padding: 4rem 0;
}

.bg-light-grey {
    background-color: var(--light-grey);
}

.section-heading {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.section-subheading {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* ===== Cards ===== */
.card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-color: rgba(0,120,201,0.1);
    color: var(--blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.product-card .card-img-top {
    height: 200px;
    object-fit: contain;
    background-color: var(--light-grey);
    padding: 0.5rem;
}

.product-card .card-img-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-grey);
    color: var(--text-muted);
    font-size: 3rem;
}

/* ===== Value Props / Steps ===== */
.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--blue);
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

/* ===== Comparison Table ===== */
.comparison-table-wrapper {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 70vh;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.comparison-table th,
.comparison-table td {
    padding: 0.6rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    min-width: 180px;
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: var(--white);
    border-right: 2px solid var(--border-color);
}

.comparison-table thead th:first-child {
    z-index: 2;
    background-color: var(--navy);
}

.comparison-table .group-header td:first-child {
    background-color: var(--light-grey);
}

.comparison-table thead th {
    background-color: var(--navy);
    color: var(--white);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.comparison-table thead th a {
    color: var(--white);
    text-decoration: none;
}

.comparison-table thead th a:hover {
    opacity: 0.85;
}

.comparison-table .group-header td {
    background-color: var(--light-grey);
    font-weight: 700;
    color: var(--navy);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
}

.comparison-table tbody tr:hover {
    background-color: rgba(0,120,201,0.04);
}

.comparison-table tbody tr:hover td:first-child {
    background-color: #f5f9fc;
}

/* Mobile comparison cards */
.comparison-cards { display: none; }

@media (max-width: 767px) {
    .comparison-table-wrapper { display: none; }
    .comparison-cards { display: block; }
}

.model-card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.model-card-header {
    background-color: var(--navy);
    color: var(--white);
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.model-card .spec-group-title {
    background-color: var(--light-grey);
    padding: 0.5rem 1.25rem;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-card .spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.model-card .spec-row:last-child {
    border-bottom: none;
}

.model-card .spec-label {
    color: var(--text-muted);
}

.model-card .spec-value {
    font-weight: 500;
}

/* ===== Applications Tags ===== */
.app-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    margin: 0.25rem;
    background-color: rgba(0,120,201,0.08);
    color: var(--blue);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== Feature List ===== */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--blue);
    position: absolute;
    left: 0;
}

/* ===== Breadcrumb ===== */
.breadcrumb-section {
    background-color: var(--light-grey);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ===== Contact Form ===== */
.contact-sidebar {
    background-color: var(--navy);
    color: var(--white);
    border-radius: 0.5rem;
    padding: 2rem;
}

.contact-sidebar h5 {
    margin-bottom: 1.5rem;
}

.contact-sidebar .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.contact-sidebar .contact-item i {
    margin-top: 0.2rem;
    margin-right: 0.75rem;
    color: var(--blue);
    width: 20px;
    text-align: center;
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--navy) 0%, #0a2e5c 100%);
    color: var(--white);
    padding: 3.5rem 0;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--navy);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
}

.footer-heading {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.7);
}

.text-light-muted {
    color: rgba(255,255,255,0.6) !important;
}

.footer-divider {
    border-color: rgba(255,255,255,0.15);
    margin: 2rem 0 1rem;
}

/* ===== About Page ===== */
.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

/* ===== Misc ===== */
.text-navy { color: var(--navy) !important; }
.text-blue { color: var(--blue) !important; }
.bg-navy { background-color: var(--navy) !important; }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--blue);
}
