/* =========================================================
   NEXA TECH LAB — BASE STYLES
   Project: Welcome Oven
   File: base.css

   Purpose:
   Global reset, typography, layout foundation,
   accessibility, and reusable page structure.
   ========================================================= */


/* =========================================================
   1. GOOGLE FONTS
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Poppins:wght@500;600;700&display=swap');


/* =========================================================
   2. GLOBAL RESET
   ========================================================= */

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


/* =========================================================
   3. HTML & BODY
   ========================================================= */

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

body {
    min-height: 100vh;

    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);

    color: var(--color-dark-grey);
    background-color: var(--color-white);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    overflow-x: hidden;
}


/* =========================================================
   4. HEADINGS
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-black);
    line-height: var(--line-height-heading);
    font-weight: var(--font-weight-semibold);
}


/* =========================================================
   5. TYPOGRAPHY
   ========================================================= */

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
}

h5 {
    font-size: var(--font-size-h5);
}

p {
    margin-bottom: 1rem;
}

small {
    font-size: var(--font-size-small);
}


/* =========================================================
   6. LINKS
   ========================================================= */

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

a:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 4px;
}


/* =========================================================
   7. IMAGES
   ========================================================= */

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


/* =========================================================
   8. LISTS
   ========================================================= */

ul,
ol {
    list-style: none;
}


/* =========================================================
   9. BUTTONS & FORM ELEMENTS
   ========================================================= */

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

button {
    border: none;
    cursor: pointer;
}


/* =========================================================
   10. CONTAINER
   ========================================================= */

.ntl-container {
    width: min(
        var(--container-width),
        calc(100% - (var(--container-padding) * 2))
    );

    margin-inline: auto;
}


/* =========================================================
   11. SECTION FOUNDATION
   ========================================================= */

.ntl-section {
    padding-block: var(--section-spacing-desktop);
}


/* =========================================================
   12. SECTION BACKGROUND VARIANTS
   ========================================================= */

.ntl-section--light {
    background-color: var(--color-light-grey);
}

.ntl-section--white {
    background-color: var(--color-white);
}

.ntl-section--blue {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.ntl-section--dark {
    background-color: var(--color-black);
    color: var(--color-white);
}


/* =========================================================
   13. SECTION HEADER
   ========================================================= */

.ntl-section-header {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: 60px;
    text-align: center;
}

.ntl-section-header h2 {
    margin-bottom: 20px;
}

.ntl-section-header p {
    max-width: 680px;
    margin-inline: auto;
}


/* =========================================================
   14. ACCESSIBILITY — KEYBOARD FOCUS
   ========================================================= */

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


/* =========================================================
   15. TEXT SELECTION
   ========================================================= */

::selection {
    color: var(--color-white);
    background-color: var(--color-primary);
}


/* =========================================================
   16. 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;
        scroll-behavior: auto !important;
    }

}