/*
         * PATH: wwwroot/css/site.css
         * Novaris Costa Rica
         * Colors: Navy #0D2B55 | Blue #1A5F9E | Orange #F5931E
         * Add to _Layout <head>:
         *   <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet"/>
         */

/* ============================================================
           0. CSS VARIABLES
           ============================================================ */
:root {
    --nvr-navy: #0D2B55;
    --nvr-navy-mid: #0F3A72;
    --nvr-blue: #1A5F9E;
    --nvr-blue-mid: #2176B8;
    --nvr-orange: #F5931E;
    --nvr-orange-dk: #D97A0E;
    --nvr-white: #FFFFFF;
    --nvr-light: #F4F7FB;
    --nvr-gray: #6B7280;
    --nvr-gray-light: #E5EAF2;
    --nvr-dark: #1A202C;
    --nvr-green: #10B981;
    --nvr-shadow: 0 4px 24px rgba(13,43,85,0.10);
    --nvr-shadow-lg: 0 12px 48px rgba(13,43,85,0.18);
    --nvr-radius: 12px;
    --nvr-radius-lg: 20px;
    --nvr-transition: all 0.3s ease;
}

/* ============================================================
           1. BASE
           ============================================================ */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--nvr-dark);
    background-color: var(--nvr-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--nvr-navy);
}

p {
    line-height: 1.7;
}

a {
    transition: var(--nvr-transition);
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-7 {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

.nvr-section-label {
    display: inline-block;
    color: var(--nvr-orange);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.nvr-section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--nvr-navy);
    margin-bottom: 1rem;
}

.nvr-section-subtitle {
    color: var(--nvr-gray);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
}

.nvr-text-gradient {
    background: linear-gradient(90deg, var(--nvr-orange) 0%, #FFB347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
           2. BUTTONS
           ============================================================ */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.65rem 1.6rem;
    transition: var(--nvr-transition);
    text-decoration: none;
}

.nvr-btn-primary {
    background: linear-gradient(135deg, var(--nvr-orange), var(--nvr-orange-dk));
    color: var(--nvr-white) !important;
    border: none;
    box-shadow: 0 4px 14px rgba(245,147,30,0.35);
}

    .nvr-btn-primary:hover {
        background: linear-gradient(135deg, var(--nvr-orange-dk), #c06800);
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(245,147,30,0.45);
        color: var(--nvr-white) !important;
    }

.nvr-btn-outline {
    background: transparent;
    color: var(--nvr-navy) !important;
    border: 2px solid var(--nvr-navy);
}

    .nvr-btn-outline:hover {
        background: var(--nvr-navy);
        color: var(--nvr-white) !important;
        transform: translateY(-2px);
    }

.nvr-btn-white {
    background: var(--nvr-white);
    color: var(--nvr-navy) !important;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

    .nvr-btn-white:hover {
        background: var(--nvr-light);
        transform: translateY(-2px);
        color: var(--nvr-navy) !important;
    }

/* ============================================================
           3. NAVBAR
           ============================================================ */
.nvr-navbar {
    background-color: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    transition: var(--nvr-transition);
}

    .nvr-navbar.scrolled {
        box-shadow: var(--nvr-shadow);
    }

.nvr-logo {
    height: 42px;
    width: auto;
}

.nvr-nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--nvr-navy) !important;
    padding: 0.45rem 0.8rem !important;
    border-radius: 6px;
    transition: var(--nvr-transition);
}

    .nvr-nav-link:hover,
    .nvr-nav-link:focus {
        color: var(--nvr-orange) !important;
        background-color: rgba(245,147,30,0.08);
    }

    .nvr-nav-link.active {
        color: var(--nvr-orange) !important;
        background-color: rgba(245,147,30,0.10);
    }

.nvr-dropdown {
    border: none;
    border-radius: var(--nvr-radius);
    box-shadow: var(--nvr-shadow);
    padding: 0.4rem 0;
    min-width: 140px;
}

    .nvr-dropdown .dropdown-item {
        font-family: 'Montserrat', sans-serif;
        font-size: 0.88rem;
        font-weight: 600;
        padding: 0.5rem 1rem;
        color: var(--nvr-navy);
        transition: var(--nvr-transition);
    }

        .nvr-dropdown .dropdown-item:hover {
            background-color: var(--nvr-light);
            color: var(--nvr-orange);
        }

    .nvr-dropdown form {
        margin: 0;
    }

        .nvr-dropdown form button {
            width: 100%;
            text-align: left;
            background: none;
            border: none;
            cursor: pointer;
        }

/* ============================================================
           4. HERO
           ============================================================ */
.nvr-hero {
    background: linear-gradient(135deg, var(--nvr-navy) 0%, var(--nvr-navy-mid) 50%, #133180 100%);
    position: relative;
    overflow: hidden;
    padding: 7rem 0 5rem;
}

    .nvr-hero::before {
        content: '';
        position: absolute;
        top: -30%;
        right: -8%;
        width: 580px;
        height: 580px;
        background: radial-gradient(circle, rgba(245,147,30,0.18) 0%, transparent 65%);
        pointer-events: none;
    }

    .nvr-hero::after {
        content: '';
        position: absolute;
        bottom: -20%;
        left: -8%;
        width: 460px;
        height: 460px;
        background: radial-gradient(circle, rgba(26,95,158,0.28) 0%, transparent 65%);
        pointer-events: none;
    }

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

.nvr-hero-badge {
    display: inline-block;
    background: rgba(245,147,30,0.16);
    border: 1px solid rgba(245,147,30,0.40);
    color: var(--nvr-orange);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.nvr-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: var(--nvr-white);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.nvr-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 2.25rem;
}

.nvr-cards-stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 340px;
    margin: auto;
}

.nvr-float-card {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--nvr-radius);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--nvr-white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    animation: nvr-float 4s ease-in-out infinite;
}

    .nvr-float-card:nth-child(2) {
        animation-delay: 0.7s;
        margin-left: 1.8rem;
    }

    .nvr-float-card:nth-child(3) {
        animation-delay: 1.4s;
    }

    .nvr-float-card i {
        font-size: 1.5rem;
        color: var(--nvr-orange);
        min-width: 26px;
        flex-shrink: 0;
    }

@keyframes nvr-float {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ============================================================
           5. STATS
           ============================================================ */
.nvr-stats {
    background-color: var(--nvr-navy);
}

.nvr-stat-item {
    padding: 2.5rem 1.25rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
}

    .nvr-stat-item:last-child {
        border-right: none;
    }

.nvr-stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--nvr-orange);
    line-height: 1;
    display: block;
}

.nvr-stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.60);
    margin-top: 0.45rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
           6. SERVICE CARDS
           ============================================================ */
.nvr-services-bg {
    background-color: var(--nvr-light);
}

.nvr-service-card {
    background: var(--nvr-white);
    border-radius: var(--nvr-radius-lg);
    padding: 2.25rem;
    box-shadow: var(--nvr-shadow);
    transition: var(--nvr-transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .nvr-service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--nvr-blue), var(--nvr-blue-mid));
        opacity: 0;
        transition: var(--nvr-transition);
    }

    .nvr-service-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--nvr-shadow-lg);
    }

        .nvr-service-card:hover::before {
            opacity: 1;
        }

    .nvr-service-card.featured {
        background: linear-gradient(145deg, var(--nvr-navy), var(--nvr-navy-mid));
        box-shadow: 0 12px 40px rgba(13,43,85,0.30);
    }

        .nvr-service-card.featured::before {
            background: linear-gradient(90deg, var(--nvr-orange), #FFB347);
            opacity: 1;
        }

        .nvr-service-card.featured h3 {
            color: var(--nvr-white);
        }

        .nvr-service-card.featured p {
            color: rgba(255,255,255,0.72);
        }

        .nvr-service-card.featured .nvr-card-link {
            color: var(--nvr-orange);
        }

.nvr-service-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: var(--nvr-orange);
    color: var(--nvr-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
}

.nvr-service-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--nvr-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

    .nvr-service-icon.hosting {
        background: rgba(26,95,158,0.10);
        color: var(--nvr-blue);
    }

    .nvr-service-icon.mail {
        background: rgba(245,147,30,0.14);
        color: var(--nvr-orange);
    }

    .nvr-service-icon.software {
        background: rgba(13,43,85,0.08);
        color: var(--nvr-navy);
    }

.nvr-service-card.featured .nvr-service-icon.mail {
    background: rgba(245,147,30,0.22);
}

.nvr-service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
}

.nvr-service-card p {
    font-size: 0.95rem;
    color: var(--nvr-gray);
    flex-grow: 1;
}

.nvr-feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

    .nvr-feature-list li {
        font-size: 0.9rem;
        color: var(--nvr-gray);
        padding: 0.3rem 0 0.3rem 1.35rem;
        position: relative;
    }

        .nvr-feature-list li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 7px;
            height: 7px;
            background: var(--nvr-orange);
            border-radius: 50%;
        }

.nvr-service-card.featured .nvr-feature-list li {
    color: rgba(255,255,255,0.68);
}

.nvr-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--nvr-blue);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    margin-top: 1.4rem;
    text-decoration: none;
    transition: var(--nvr-transition);
}

    .nvr-card-link:hover {
        color: var(--nvr-orange);
        gap: 0.7rem;
    }

/* ============================================================
           7. WHY NOVARIS
           ============================================================ */
.nvr-why-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

    .nvr-why-item > i {
        font-size: 1.5rem;
        color: var(--nvr-orange);
        min-width: 28px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .nvr-why-item strong {
        font-family: 'Montserrat', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        color: var(--nvr-navy);
        display: block;
        margin-bottom: 0.25rem;
    }

    .nvr-why-item p {
        font-size: 0.92rem;
        color: var(--nvr-gray);
        margin: 0;
    }

.nvr-why-visual {
    background: linear-gradient(135deg, var(--nvr-navy), var(--nvr-navy-mid));
    border-radius: var(--nvr-radius-lg);
    min-height: 360px;
    position: relative;
    overflow: hidden;
}

    .nvr-why-visual::before {
        content: '';
        position: absolute;
        top: -25%;
        right: -20%;
        width: 320px;
        height: 320px;
        background: radial-gradient(circle, rgba(245,147,30,0.22), transparent 68%);
    }

.nvr-why-badge {
    position: absolute;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.20);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--nvr-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.7rem 1.2rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

    .nvr-why-badge i {
        color: var(--nvr-orange);
    }

.nvr-why-badge--bottom {
    bottom: 2.5rem;
    left: 2rem;
}

.nvr-why-badge--top {
    top: 2.5rem;
    right: 2rem;
}

/* ============================================================
           8. CALL TO ACTION
           ============================================================ */
.nvr-cta {
    background: linear-gradient(135deg, var(--nvr-navy) 0%, var(--nvr-navy-mid) 55%, var(--nvr-blue) 100%);
    position: relative;
    overflow: hidden;
}

    .nvr-cta::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 640px;
        height: 420px;
        background: radial-gradient(ellipse, rgba(245,147,30,0.18), transparent 70%);
        pointer-events: none;
    }

    .nvr-cta h2 {
        color: var(--nvr-white);
        margin-bottom: 1rem;
        position: relative;
    }

    .nvr-cta p {
        color: rgba(255,255,255,0.72);
        font-size: 1.1rem;
        max-width: 500px;
        margin: 0 auto 2rem;
        position: relative;
    }

/* ============================================================
           9. CONTACT PAGE
           ============================================================ */
.nvr-contact-hero {
    background: linear-gradient(135deg, var(--nvr-navy), var(--nvr-navy-mid));
    padding: 8rem 0 4.5rem;
    text-align: center;
}

    .nvr-contact-hero h1 {
        color: var(--nvr-white);
    }

    .nvr-contact-hero p {
        color: rgba(255,255,255,0.72);
        margin-top: 0.5rem;
    }

.nvr-contact-form {
    background: var(--nvr-white);
    border-radius: var(--nvr-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--nvr-shadow-lg);
}

.nvr-form-group label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.84rem;
    color: var(--nvr-navy);
    margin-bottom: 0.4rem;
    display: block;
}

.nvr-form-group .form-control,
.nvr-form-group .form-select {
    border: 2px solid var(--nvr-gray-light);
    border-radius: 8px;
    padding: 0.68rem 1rem;
    font-size: 0.95rem;
    color: var(--nvr-dark);
    transition: var(--nvr-transition);
}

    .nvr-form-group .form-control:focus,
    .nvr-form-group .form-select:focus {
        border-color: var(--nvr-blue);
        box-shadow: 0 0 0 3px rgba(26,95,158,0.12);
        outline: none;
    }

.nvr-contact-info-box {
    background: linear-gradient(145deg, var(--nvr-navy), var(--nvr-navy-mid));
    border-radius: var(--nvr-radius-lg);
    padding: 2.5rem;
    height: 100%;
}

.nvr-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

    .nvr-contact-info-item:last-child {
        margin-bottom: 0;
    }

    .nvr-contact-info-item i {
        font-size: 1.35rem;
        color: var(--nvr-orange);
        min-width: 24px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .nvr-contact-info-item strong {
        font-family: 'Montserrat', sans-serif;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: rgba(255,255,255,0.55);
        display: block;
        margin-bottom: 0.25rem;
    }

    .nvr-contact-info-item span {
        color: var(--nvr-white);
        font-size: 0.95rem;
    }

.nvr-alert-success {
    background: #ECFDF5;
    border-left: 4px solid var(--nvr-green);
    border-radius: 8px;
    color: #065F46;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

    .nvr-alert-success i {
        font-size: 1.25rem;
        color: var(--nvr-green);
        flex-shrink: 0;
    }

/* ============================================================
           10. FOOTER
           ============================================================ */
.nvr-footer {
    background-color: var(--nvr-navy);
    color: rgba(255,255,255,0.70);
}

.nvr-footer-logo {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nvr-footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.nvr-footer-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--nvr-white);
    margin-bottom: 1rem;
}

.nvr-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .nvr-footer-links li a {
        color: rgba(255,255,255,0.62);
        font-size: 0.9rem;
        display: inline-block;
        padding: 0.22rem 0;
        text-decoration: none;
        transition: var(--nvr-transition);
    }

        .nvr-footer-links li a:hover {
            color: var(--nvr-orange);
            transform: translateX(4px);
        }

.nvr-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .nvr-footer-contact li {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        font-size: 0.9rem;
        color: rgba(255,255,255,0.62);
        padding: 0.3rem 0;
    }

    .nvr-footer-contact i {
        color: var(--nvr-orange);
        font-size: 1rem;
        min-width: 16px;
        margin-top: 3px;
        flex-shrink: 0;
    }

.nvr-footer-divider {
    border-color: rgba(255,255,255,0.10);
    margin: 0;
}

.nvr-social-links {
    display: flex;
    gap: 0.65rem;
}

    .nvr-social-links a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,0.20);
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,0.62);
        font-size: 0.95rem;
        text-decoration: none;
        transition: var(--nvr-transition);
    }

        .nvr-social-links a:hover {
            background-color: var(--nvr-orange);
            border-color: var(--nvr-orange);
            color: var(--nvr-white);
            transform: translateY(-3px);
        }

/* ============================================================
           11. SERVICES PAGE
           ============================================================ */
.nvr-services-hero {
    background: linear-gradient(135deg, var(--nvr-navy), var(--nvr-navy-mid));
    padding: 8rem 0 4.5rem;
    text-align: center;
}

    .nvr-services-hero h1 {
        color: var(--nvr-white);
    }

    .nvr-services-hero p {
        color: rgba(255,255,255,0.72);
        margin-top: 0.5rem;
    }

.nvr-service-row:nth-child(even) {
    background-color: var(--nvr-light);
}

.nvr-service-icon-xl {
    width: 100%;
    min-height: 280px;
    background: linear-gradient(135deg, var(--nvr-navy), var(--nvr-navy-mid));
    border-radius: var(--nvr-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .nvr-service-icon-xl::before {
        content: '';
        position: absolute;
        top: -20%;
        right: -15%;
        width: 250px;
        height: 250px;
        background: radial-gradient(circle, rgba(245,147,30,0.22), transparent 65%);
    }

    .nvr-service-icon-xl i {
        font-size: 5rem;
        color: var(--nvr-orange);
        position: relative;
        z-index: 1;
    }

/* ============================================================
           12. RESPONSIVE
           ============================================================ */
@media (max-width: 991.98px) {
    .nvr-hero {
        padding: 6rem 0 4rem;
    }

    .nvr-hero-content {
        text-align: center;
    }

    .nvr-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .nvr-hero-content .d-flex {
        justify-content: center;
    }

    .nvr-stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

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

@media (max-width: 767.98px) {
    .nvr-service-card {
        padding: 1.5rem;
    }

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

    .nvr-contact-info-box {
        padding: 1.5rem;
    }

    .nvr-why-visual {
        min-height: 220px;
    }

    .nvr-cards-stack {
        display: none;
    }
}
