/* Rege-IT Solutions | Global shared styles */

/* ==========================================
   ROOT
========================================== */

:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --primary: #081226;
    --secondary: #12233f;

    --accent: #0ea5e9;
    --accent-strong: #0284c7;
    --accent-dark: #0369a1;
    --accent-soft: #38bdf8;

    --text: #1e293b;
    --text-soft: #475569;
    --muted: #64748b;
    --muted-light: #94a3b8;

    --border: #dbe4ee;
    --border-strong: #cbd5e1;

    --white: #ffffff;
    --dark: #020817;
    --dark-surface: #081226;
    --dark-surface-soft: #0b1730;

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    --shadow-sm:
        0 10px 20px rgba(2, 132, 199, 0.18);

    --shadow-md:
        0 18px 36px rgba(15, 23, 42, 0.08);

    --shadow-lg:
        0 24px 50px rgba(2, 8, 23, 0.20);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 18px;

    --text-xs: 0.78rem;
    --text-sm: 0.92rem;
    --text-base: 1rem;
    --text-lg: 1.08rem;
    --text-xl: 1.4rem;
    --text-2xl: 3rem;
    --text-display: 4rem;
}

/* ==========================================
   RESET AND GLOBAL
========================================== */

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

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

html {
    max-width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    max-width: 100%;
    overflow-x: clip;

    background: var(--bg);
    color: var(--text);

    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

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

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

button {
    font: inherit;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: auto;
}

.container-wide {
    width: 94%;
    max-width: 1320px;
    margin: auto;
}

section {
    position: relative;
    scroll-margin-top: 110px;
}

.section-label {
    color: var(--accent-strong);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.section-heading {
    margin-bottom: 60px;
}

.section-heading h2 {
    max-width: 860px;
    color: var(--primary);
    font-size: var(--text-2xl);
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.section-heading p {
    max-width: 800px;
    color: var(--text-soft);
    font-size: 1.05rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: block;
    border-radius: 8px;
}

@media (max-width: 640px) {
    .logo-mark {
        width: 28px;
        height: 28px;
        border-radius: 7px;
    }
}

@media (max-width: 360px) {
    .nav-inner {
        gap: 12px;
        min-width: 0;
    }

    .logo {
        gap: 8px;
        min-width: 0;
    }

    .logo span {
        max-width: calc(100vw - 112px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        letter-spacing: 0.14em;
    }

    .logo-mark {
        width: 28px;
        height: 28px;
        border-radius: 7px;
    }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.skip-link {
    position: absolute;
    top: -70px;
    left: 20px;
    z-index: 1000;

    background: var(--primary);
    color: var(--white);

    padding: 12px 18px;
    border-radius: var(--radius-sm);

    text-decoration: none;
}

.skip-link:focus {
    top: 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.38);
    outline-offset: 3px;
}

/* ==========================================
   NAVIGATION
========================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(244, 246, 249, 0.96);
    border-bottom: 1px solid transparent;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.site-nav {
    padding: 42px 0 20px;
}

.nav-inner {
    position: relative;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 32px;
    min-width: 0;
}

.logo {
    color: var(--accent-strong);

    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 3px;

    min-width: 0;
    white-space: nowrap;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    min-width: 0;
}

.nav-links a {
    position: relative;

    color: var(--muted);

    font-size: 0.95rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--primary);
}

.nav-links a.is-active::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;

    height: 2px;

    background: var(--accent-strong);
    border-radius: 999px;
}

.mobile-nav-toggle {
    display: none;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-strong);
    border-radius: 10px;

    background: var(--surface);
    color: var(--primary);

    cursor: pointer;
}

.mobile-nav-toggle span,
.mobile-nav-toggle span::before,
.mobile-nav-toggle span::after {
    display: block;

    width: 20px;
    height: 2px;

    background: currentColor;
    border-radius: 2px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.mobile-nav-toggle span {
    position: relative;
}

.mobile-nav-toggle span::before,
.mobile-nav-toggle span::after {
    content: "";

    position: absolute;
    left: 0;
}

.mobile-nav-toggle span::before {
    top: -6px;
}

.mobile-nav-toggle span::after {
    top: 6px;
}

.mobile-nav-toggle[aria-expanded="true"] span {
    background: transparent;
}

.mobile-nav-toggle[aria-expanded="true"] span::before {
    transform:
        translateY(6px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] span::after {
    transform:
        translateY(-6px) rotate(-45deg);
}

/* ==========================================
   BUTTONS
========================================== */

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 56px;
    padding: 16px 34px;

    border-radius: var(--radius-sm);

    font-weight: 700;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--accent-strong);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: #94a3b8;
}

/* ==========================================
   FOOTER
========================================== */

.footer {
    background: #eef2f7;

    border-top: 1px solid var(--border);

    padding: 54px 0 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;

    gap: 50px;

    padding-bottom: 36px;
}

.footer-brand h2 {
    color: var(--primary);

    font-size: 1rem;
    letter-spacing: 2px;

    margin-bottom: 12px;
}

.footer-brand p {
    max-width: 420px;

    color: var(--muted);

    font-size: 0.9rem;
}

.footer-column h3 {
    color: var(--primary);

    font-size: 0.78rem;
    letter-spacing: 1.2px;

    text-transform: uppercase;

    margin-bottom: 14px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: var(--muted);

    font-size: 0.9rem;

    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-strong);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
    flex-wrap: wrap;

    padding-top: 24px;

    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--muted);
    font-size: 0.84rem;
}

.footer-bottom a {
    color: var(--accent-strong);

    font-weight: 700;

    text-decoration: none;
}

/* ==========================================
   REDUCED MOTION
========================================== */

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

    html {
        scroll-behavior: auto;
    }

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