/* =========================================
   NOIVO TECH — GLOBAL DESIGN SYSTEM
   BUSINESS GROWTH BRAND EDITION
========================================= */

/* =========================================
   1. BRAND COLORS & DESIGN TOKENS
========================================= */

:root {
    --color-primary: #102747;
    --color-primary-light: #1D416F;

    --color-accent: #1769D2;
    --color-accent-light: #EAF3FF;

    --color-highlight: #8FC5FF;

    --color-text: #182230;
    --color-muted: #667085;

    --color-background: #FFFFFF;
    --color-surface: #F0F5FC;
    --color-border: #DFE7F1;

    --color-footer-text: #DCE6F4;
    --color-footer-muted: #C3D0E2;

    --container-width: 1200px;

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 22px;

    --shadow-card: 0 8px 30px rgba(16, 39, 71, 0.07);
    --shadow-header: 0 4px 18px rgba(16, 39, 71, 0.05);
}

/* =========================================
   2. RESET & BASE
========================================= */

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

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

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-background);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #8FC5FF;
    outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--color-primary);
    line-height: 1.2;
}

main {
    min-height: 55vh;
}

/* =========================================
   3. SHARED LAYOUT
========================================= */

.container {
    width: min(var(--container-width), calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding-block: 80px;
}

.section-muted {
    background: var(--color-surface);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 16px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.7px;
}

.section-heading p {
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* =========================================
   4. BRAND
========================================= */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 800;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-text strong {
    color: var(--color-primary);
    font-size: 17px;
    letter-spacing: 1px;
}

.brand-text small {
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15px;
}

/* =========================================
   5. HEADER
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 26px);
}

.desktop-nav a {
    position: relative;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
    color: var(--color-accent);
}

.desktop-nav a[aria-current="page"]::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--color-accent);
    content: "";
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

/* =========================================
   6. BUTTONS
========================================= */

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #1258B0;
    border-color: #1258B0;
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(16, 39, 71, 0.16);
}

/* Header and mobile CTA */

.site-header .header-cta,
.site-header .mobile-navigation-cta {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
}

.site-header .header-cta:hover,
.site-header .mobile-navigation-cta:hover {
    background: #1258B0;
    border-color: #1258B0;
    color: #FFFFFF;
}

/* =========================================
   7. MOBILE MENU TOGGLE
========================================= */

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    background: #FFFFFF;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--color-primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   8. MOBILE NAVIGATION
========================================= */

.mobile-navigation[hidden] {
    display: none !important;
}

.mobile-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 999;
    border-top: 1px solid var(--color-border);
    background: #FFFFFF;
    box-shadow: 0 14px 24px rgba(16, 39, 71, 0.09);
}

.mobile-navigation-inner {
    display: flex;
    width: min(var(--container-width), calc(100% - 40px));
    flex-direction: column;
    gap: 0;
    margin-inline: auto;
    padding: 12px 0 20px;
}

.mobile-navigation-inner > a:not(.btn) {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 13px 2px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-primary);
    font-weight: 600;
}

.mobile-navigation-inner > a:not(.btn):hover,
.mobile-navigation-inner > a[aria-current="page"]:not(.btn) {
    color: var(--color-accent);
}

.mobile-navigation-inner > a[aria-current="page"]:not(.btn) {
    font-weight: 750;
}

.mobile-navigation-cta {
    margin-top: 16px;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* =========================================
   9. REUSABLE CARDS
========================================= */

.card {
    padding: 26px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: #FFFFFF;
    box-shadow: var(--shadow-card);
}

/* =========================================
   10. FOOTER
========================================= */

.site-footer {
    margin-top: 80px;
    padding: 64px 0 22px;
    background: var(--color-primary);
    color: var(--color-footer-text);
}

.site-footer .brand-mark {
    flex-shrink: 0;
    background: #FFFFFF;
    color: var(--color-primary);
}

.site-footer .brand-text strong {
    color: #FFFFFF;
}

.site-footer .brand-text small {
    color: var(--color-footer-muted);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 0.85fr 1fr 1.3fr;
    align-items: start;
    gap: 42px;
    padding-bottom: 42px;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.footer-description {
    max-width: 310px;
    margin: 20px 0 16px;
    color: var(--color-footer-muted);
}

.footer-contact-link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    color: #FFFFFF;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-contact-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    flex-shrink: 0;
}

.footer-links,
.footer-company {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.site-footer h3 {
    margin: 0 0 10px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 750;
}

.footer-links a {
    color: var(--color-footer-muted);
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-legal-links a:hover,
.footer-back-top:hover {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-company-name {
    color: #FFFFFF !important;
    font-weight: 700;
}

.footer-company p {
    margin: 0 0 8px;
    color: var(--color-footer-muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-address {
    max-width: 290px;
}

/* =========================================
   11. FOOTER LEGAL & ENGAGEMENT
========================================= */

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 6px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-legal-heading {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 750;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.footer-legal-links a {
    color: var(--color-footer-muted);
    font-size: 13px;
}

/* =========================================
   12. FOOTER BOTTOM
========================================= */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom p {
    margin: 0;
    color: var(--color-footer-muted);
    font-size: 13px;
}

.footer-back-top {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================
   13. RESPONSIVE — TABLET / SMALL DESKTOP
========================================= */

@media (max-width: 1100px) {

    .header-inner {
        gap: 16px;
    }

    .desktop-nav {
        gap: 14px;
    }

    .desktop-nav a {
        font-size: 13px;
    }

    .header-actions .btn {
        padding-inline: 14px;
        font-size: 13px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px;
    }
}

/* =========================================
   14. RESPONSIVE — MOBILE NAVIGATION
========================================= */

@media (max-width: 900px) {

    .desktop-nav,
    .header-cta {
        display: none;
    }

    .header-inner {
        min-height: 72px;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* =========================================
   15. RESPONSIVE — TABLET
========================================= */

@media (max-width: 800px) {

    .section {
        padding-block: 56px;
    }

    .site-footer {
        margin-top: 56px;
        padding-top: 44px;
    }
}

/* =========================================
   16. RESPONSIVE — MOBILE
========================================= */

@media (max-width: 560px) {

    .container {
        width: min(100% - 32px, var(--container-width));
    }

    .brand {
        gap: 9px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-legal {
        margin-top: 0;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .card {
        padding: 20px;
    }
}

/* =========================================
   17. HOMEPAGE GROWTH BRAND STYLING
========================================= */

#main-content .section-heading h2 {
    letter-spacing: -0.7px;
}

#main-content .section-heading p {
    font-size: 16px;
    line-height: 1.7;
}

/* Hero heading highlight */

#main-content .hero h1 span {
    color: var(--color-highlight);
}

/* =========================================
   18. ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================
   19. MOBILE GROWTH BRAND ADJUSTMENTS
========================================= */

@media (max-width: 560px) {

    #main-content .hero h1 {
        font-size: clamp(32px, 9vw, 42px);
        letter-spacing: -1px;
    }

    #main-content .section-heading {
        margin-bottom: 30px;
    }
}
