/* ============================================================
   Novalune Technologies — Global Styles
   Brand: Navy #1A3A5C | Accent #4A7AAA | BG #F5F7FA | Text #1A1A1A
   ============================================================ */

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

html {
    font-size: 16px;
}

body {
    font-family: Tahoma, 'Segoe UI', system-ui, sans-serif;
    color: #1A1A1A;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #4A7AAA;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ============================================================
   Layout helpers
   ============================================================ */

.section-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-main {
    min-height: calc(100vh - 64px - 72px);
}

/* ============================================================
   Navigation
   ============================================================ */

.site-nav {
    background: #1A3A5C;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand:hover {
    text-decoration: none;
}

.nav-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.nav-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.wordmark-primary {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #fff;
}

.wordmark-sub {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: #4A7AAA;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    color: #cdd9e5;
    padding: 0.45rem 0.85rem;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    text-decoration: none;
}

.nav-links a.nav-cta {
    background: #4A7AAA;
    color: #fff;
    margin-left: 0.5rem;
}

.nav-links a.nav-cta:hover {
    background: #3d6a96;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn-primary {
    display: inline-block;
    background: #4A7AAA;
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: #3d6a96;
    text-decoration: none;
    color: #fff;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   Hero — Home
   ============================================================ */

.hero {
    background: #1A3A5C;
    color: #fff;
    padding: 5rem 0;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.hero-sub {
    font-size: 1.1rem;
    color: #a8c4de;
    max-width: 560px;
    margin-bottom: 2rem;
}

/* ============================================================
   What We Do
   ============================================================ */

.what-we-do {
    background: #F5F7FA;
    padding: 3rem 0;
    border-bottom: 1px solid #e2e8ef;
}

.what-we-do p {
    font-size: 1.1rem;
    max-width: 680px;
    color: #444;
}

/* ============================================================
   Value Props / Cards
   ============================================================ */

.value-props {
    padding: 4rem 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.card {
    border: 1px solid #dde3eb;
    border-radius: 6px;
    padding: 1.75rem 1.5rem;
    background: #fff;
}

.card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1A3A5C;
    margin-bottom: 0.6rem;
}

.card p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.55;
}

/* ============================================================
   Who This Is For
   ============================================================ */

.who-for {
    background: #F5F7FA;
    padding: 4rem 0;
    border-top: 1px solid #e2e8ef;
}

.who-for h2 {
    font-size: 1.5rem;
    color: #1A3A5C;
    margin-bottom: 1rem;
}

.who-for p {
    max-width: 640px;
    color: #444;
    margin-bottom: 1rem;
}

.who-for .btn-primary {
    margin-top: 0.5rem;
}

/* ============================================================
   Page Hero (inner pages)
   ============================================================ */

.page-hero {
    background: #1A3A5C;
    color: #fff;
    padding: 3.5rem 0 3rem;
}

.page-hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.page-hero p {
    color: #a8c4de;
    max-width: 560px;
    font-size: 1rem;
}

/* ============================================================
   Services
   ============================================================ */

.services-list {
    padding: 4rem 0;
}

.service-item {
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8ef;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1A3A5C;
    margin-bottom: 0.6rem;
}

.service-item p {
    max-width: 680px;
    color: #444;
    font-size: 0.95rem;
}

.services-cta {
    background: #F5F7FA;
    border-top: 1px solid #e2e8ef;
    padding: 3.5rem 0;
}

.services-cta h2 {
    font-size: 1.4rem;
    color: #1A3A5C;
    margin-bottom: 0.75rem;
}

.services-cta p {
    max-width: 600px;
    color: #444;
    margin-bottom: 1.5rem;
}

/* ============================================================
   About
   ============================================================ */

.about-content {
    padding: 4rem 0;
}

.about-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A3A5C;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    color: #444;
    max-width: 640px;
    margin-bottom: 0.75rem;
}

.industry-list {
    list-style: disc;
    padding-left: 1.5rem;
    color: #444;
    margin-bottom: 1rem;
}

.industry-list li {
    margin-bottom: 0.3rem;
}

.about-footer-note {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.about-cta {
    background: #F5F7FA;
    border-top: 1px solid #e2e8ef;
    padding: 3rem 0;
}

/* ============================================================
   Contact
   ============================================================ */

.contact-section {
    padding: 4rem 0;
}

.contact-inner {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-direct h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #1A3A5C;
    margin-bottom: 0.75rem;
}

.contact-direct p {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.contact-form-wrap {
    max-width: 560px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1A1A1A;
}

.form-field input,
.form-field textarea {
    border: 1px solid #c5cdd8;
    border-radius: 4px;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1A1A1A;
    background: #fff;
    width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid #4A7AAA;
    outline-offset: 1px;
    border-color: #4A7AAA;
}

.form-field textarea {
    resize: vertical;
    min-height: 130px;
}

.required {
    color: #c0392b;
}

.form-error {
    background: #fdf0ef;
    border: 1px solid #e8b4b0;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: #8b2a23;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.validation-message {
    color: #c0392b;
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

.form-success {
    background: #eef6ee;
    border: 1px solid #a8d5a8;
    border-radius: 6px;
    padding: 2rem;
}

.form-success h2 {
    color: #2d6a2d;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.form-success p {
    color: #3a7a3a;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background: #1A3A5C;
    color: #a8c4de;
    padding: 1.5rem 0;
    font-size: 0.875rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-inner a {
    color: #a8c4de;
}

.footer-inner a:hover {
    color: #fff;
}

/* ============================================================
   Error UI
   ============================================================ */

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: #1A3A5C;
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    z-index: 1000;
    max-width: 340px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

#blazor-error-ui .reload {
    color: #4A7AAA;
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss {
    background: none;
    border: none;
    color: #a8c4de;
    cursor: pointer;
    margin-left: 0.75rem;
    font-size: 0.8rem;
}

.muted {
    color: #666;
    font-size: 0.875rem;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 680px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #1A3A5C;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-top: 1px solid #2a4e74;
        padding: 0.5rem 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1.5rem;
        border-radius: 0;
    }

    .nav-links a.nav-cta {
        margin-left: 0;
        border-radius: 0;
    }

    .site-nav {
        position: relative;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
