/* NxCorp | css/base.css
   Colours, reset, header, navigation, buttons
   Load order matters: files are linked in index.html in this order. */

/* ================= PROJECT FILE MAP =================
   index.html                 page content (HTML)
   css/  base, hero, sections, chatbot, blog, pricing-services, preview,
         theme, notice, contact-form, responsive (loads last, all-device fixes)
   js/   config (your number, emails, keys), mail, chatbot, contact-form, main
   images/  pravin.jpg, og-image.jpg, favicon.svg
   Each section is still marked "SECTION: NAME" inside its file. Use Ctrl+F.
   ==================================================== */

/*
 * NxCorp website styles
 * Colours live in :root at the top, change them there.
 *
 * ================= SECTION MAP (how to edit in future) =================
 * Every section has its own marked block in 3 places: CSS, HTML, JS.
 * Use Ctrl+F and search:  SECTION: <NAME>  . Change only inside that block.
 *
 *   CHATBOT          chat icon, chat window, replies, prices  (has START / END)
 *   HEADER           logo (click = home, see JS: LOGO HOME CLICK), menu, dark mode button
 *   NOTICE BAR       top announcement strip
 *   HERO             top banner of the page
 *   WORK             portfolio cards, LIVE PREVIEW WINDOW
 *   SERVICES         what we do
 *   PROCESS          how we work
 *   PRICING          price tabs and cards
 *   BLOG             articles, BLOG READER popup (nav link Blog, id="blog")
 *   SEO              search + share tags in <head> (SECTION: SEO), sitemap.xml, robots.txt, og-image.jpg
 *   ABOUT            about us and photo
 *   CONTACT          contact form
 *   FOOTER           bottom of the page
 *   PRELOADER        loading screen
 * =======================================================================
 */

/* ========== SECTION: COLOURS AND BASIC SETUP (CSS) ========== */
:root {
    --bg: #f6f7fd;
    --ink: #0e1130;
    --mute: #585d7c;
    --blue: #4f46e5;
    --card: #fff;
    --line: #d9dbea;
    --pop: #ff6b3d;
    --lilac: #e7e8ff;
    --hero-g: #e2e3ff;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top,0px);
    padding-bottom: env(safe-area-inset-bottom,0px);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0d0e1f;
        --ink: #eceeff;
        --mute: #a3a8cc;
        --blue: #818cf8;
        --card: #171830;
        --line: #2a2c4d;
        --lilac: #25264f;
        --hero-g: #1c1d44;
    }
}

:root[data-theme="dark"] {
    --bg: #0d0e1f;
    --ink: #eceeff;
    --mute: #a3a8cc;
    --blue: #818cf8;
    --card: #171830;
    --line: #2a2c4d;
    --lilac: #25264f;
    --hero-g: #1c1d44;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.6 'DM Sans',system-ui,sans-serif;
}

h1,
h2,
h3 {
    font-family: 'Bricolage Grotesque','DM Sans',system-ui,sans-serif;
    line-height: 1.05;
    letter-spacing: -.03em;
    margin: 0;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--pop);
    outline-offset: 3px;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px;
}

.mono {
    font: 500 13px 'JetBrains Mono',ui-monospace,monospace;
    color: var(--blue);
    letter-spacing: .02em;
}

/* ========== SECTION: HEADER AND NAVIGATION (CSS) ========== */
header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: color-mix(in srgb,var(--bg) 92%,transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}

.logo {
    font: 800 24px 'Bricolage Grotesque',sans-serif;
    letter-spacing: -.04em;
    text-decoration: none;
}

.logo b {
    color: var(--blue);
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    color: var(--mute);
}

nav a:hover {
    color: var(--ink);
}

/* ========== SECTION: BUTTONS (CSS) ========== */
.btn {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;
    border: 0;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
}

.btn.alt {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}

nav .btn {
    padding: 8px 18px;
    font-size: 14.5px;
    color: #fff;
}
