/* ===== Omnit Brand Design System ===== */

:root {
    --omnit-navy: #0D2C54;
    --omnit-navy-dark: #091E3A;
    --omnit-navy-light: #1A4A7A;
    --omnit-teal: #00A5B5;
    --omnit-teal-dark: #008A97;
    --omnit-teal-light: #E0F7FA;
    --omnit-gray-light: #F5F7FA;
    --omnit-gray: #6B7280;
    --omnit-gray-dark: #374151;
    --omnit-white: #FFFFFF;
    --omnit-text: #1F2937;
    --omnit-radius: 8px;
    --omnit-shadow: 0 2px 12px rgba(13, 44, 84, 0.08);
    --omnit-shadow-lg: 0 8px 32px rgba(13, 44, 84, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--omnit-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--omnit-navy);
    line-height: 1.2;
    margin-top: 0;
}

a {
    color: var(--omnit-teal);
    transition: color 0.2s;
}

a:hover {
    color: var(--omnit-teal-dark);
}

img {
    max-width: 100%;
    height: auto;
}

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

.text-center {
    text-align: center;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--omnit-gray-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-text {
    font-size: 1.1rem;
    color: var(--omnit-gray-dark);
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
    line-height: 1.8;
}

/* ===== Hero Section ===== */

.hero {
    background: linear-gradient(135deg, var(--omnit-navy) 0%, var(--omnit-navy-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 7rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(0, 165, 181, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    opacity: 0.85;
}

.hero-icon svg {
    width: 100%;
    height: 100%;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* ===== Page Hero (sub-pages) ===== */

.page-hero {
    background: linear-gradient(135deg, var(--omnit-navy) 0%, var(--omnit-navy-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 5rem 2rem 4rem;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--omnit-radius);
    transition: all 0.25s;
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--omnit-teal);
    color: #fff;
    border-color: var(--omnit-teal);
}

.btn-primary:hover {
    background: var(--omnit-teal-dark);
    border-color: var(--omnit-teal-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 165, 181, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--omnit-teal);
    border-color: var(--omnit-teal);
}

.btn-outline:hover {
    background: var(--omnit-teal);
    color: #fff;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-white {
    background: #fff;
    color: var(--omnit-navy);
    border-color: #fff;
}

.btn-white:hover {
    background: var(--omnit-teal-light);
    border-color: var(--omnit-teal-light);
    color: var(--omnit-navy);
    transform: translateY(-1px);
}

/* ===== Cards ===== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.card {
    background: #fff;
    border-radius: var(--omnit-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--omnit-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--omnit-shadow-lg);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--omnit-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ===== CTA Section ===== */

.section-cta {
    background: linear-gradient(135deg, var(--omnit-teal) 0%, var(--omnit-teal-dark) 100%);
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: #fff;
    border-radius: var(--omnit-radius);
    padding: 2.5rem;
    box-shadow: var(--omnit-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--omnit-shadow-lg);
}

.service-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-content p {
    color: var(--omnit-gray);
    line-height: 1.7;
    margin: 0;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--omnit-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--omnit-shadow-lg);
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--omnit-gray);
    margin: 0 0 1rem;
}

.contact-card .btn {
    margin-top: auto;
}

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

.contact-form-wrapper {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--omnit-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--omnit-navy);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1.5px solid rgba(13, 44, 84, 0.12);
    border-radius: var(--omnit-radius);
    background: var(--omnit-gray-light);
    color: var(--omnit-text);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--omnit-teal);
    box-shadow: 0 0 0 3px rgba(0, 165, 181, 0.1);
    background: #fff;
}

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

.form-success {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--omnit-navy);
    font-size: 1.05rem;
    line-height: 1.6;
}

.form-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: var(--omnit-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Honeypot field — invisible to humans, bots fill it in */
.form-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.contact-form-wrapper .btn-primary {
    width: 100%;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.phone-code {
    width: 120px;
    flex-shrink: 0;
    cursor: pointer;
}

.phone-number {
    flex: 1;
    min-width: 0;
}

.field-error {
    color: #991b1b;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: block;
}

/* ===== Content blocks ===== */

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

.content-block p {
    color: var(--omnit-gray-dark);
    font-size: 1.1rem;
    line-height: 1.8;
}

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

@media (max-width: 768px) {
    .hero {
        padding: 5rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .page-hero {
        padding: 3.5rem 1.5rem 3rem;
    }

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

    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .phone-input-group {
        flex-direction: column;
    }

    .phone-code {
        width: 100%;
    }
}

/* ===== Form defaults (Blazor) ===== */

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: none;
}

.invalid {
    outline: none;
    border-color: #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZ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LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}