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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: #2c5da7;
}

.btn-primary {
    display: inline-block;
    background-color: #2c5da7;
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 14px rgba(44, 93, 167, 0.25);
}

.btn-primary:hover {
    background-color: #1e447a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 93, 167, 0.35);
}

.btn-ghost {
    display: inline-block;
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    color: #2c5da7;
    font-size: 1.6rem;
    font-weight: 800;
}

.logo p {
    color: #666;
    font-size: 0.85rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #2c5da7;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a6e 0%, #2c5da7 55%, #3b7dd8 100%);
    color: white;
    padding: 160px 0 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle grid texture over the hero */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content .accent {
    background: linear-gradient(90deg, #ffd166, #f4a261);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 34px;
    opacity: 0.92;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Section */
.services {
    padding: 90px 0;
    background-color: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 12px;
    color: #2c5da7;
}

.section-sub {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 50px;
    color: #666;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 34px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2c5da7, #3b7dd8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 26px;
    height: 26px;
}

.service-card h3 {
    color: #2c5da7;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.service-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.card-list {
    list-style: none;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed #e2e6ea;
}

.card-list li {
    padding: 5px 0;
    font-size: 0.9rem;
    color: #444;
}

.card-list li strong {
    color: #2c5da7;
}

/* About Section */
.about {
    padding: 90px 0;
    background-color: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    color: #2c5da7;
    margin-bottom: 24px;
    font-size: 2rem;
}

.about-content p {
    color: #555;
    margin-bottom: 16px;
}

/* Contact Section */
.contact {
    padding: 90px 0;
    background-color: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #2c5da7;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #2c5da7;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 12px;
}

.contact-info a {
    font-weight: 600;
}

.contact-aside {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    align-self: start;
}

.contact-aside p {
    margin-bottom: 18px;
    color: #555;
}

/* Footer */
footer {
    background-color: #23272e;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 28px 0;
}

.footer-tag {
    margin-top: 6px;
    font-size: 0.85rem;
    opacity: 0.6;
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 14px;
    }

    nav ul li {
        margin: 0 12px;
    }

    .hero {
        padding: 130px 0 80px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ── Page variants ─────────────────────────────── */
/* Compact hero for sub-pages */
.hero-compact {
    padding: 130px 0 70px;
}

.hero-compact .hero-content p {
    margin-bottom: 0;
}

/* Alternate section background */
.services-alt {
    background-color: #eef1f5;
}

/* Active nav link */
nav ul li a.active {
    color: #2c5da7;
    border-bottom: 2px solid #2c5da7;
    padding-bottom: 2px;
}

/* Dimmmed icon for parked/resting cards */
.card-icon-dim {
    background: linear-gradient(135deg, #8a94a6, #aeb6c4);
}

/* Status pills */
.status-live {
    color: #1a7f37;
    font-weight: 700;
}

.status-parked {
    color: #8a94a6;
    font-weight: 700;
}

/* Inline code in cards */
.service-card code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82em;
    background: #f0f2f5;
    border: 1px solid #e2e6ea;
    border-radius: 4px;
    padding: 1px 5px;
    color: #c0392b;
}