/* ================================================
   BASE CSS - Exact values from nanitransformers.com
   Extracted from Elementor Kit (post-10.css)
   ================================================ */

:root {
    /* Global Colors - Exact from Elementor Kit */
    --e-global-color-primary: #616379;
    --e-global-color-secondary: #222334;
    --e-global-color-text: #FFFFFF;
    --e-global-color-accent: #FFFFFF2B;
    --color-red: #D31F0D;
    --color-red-dark: #B51717;
    --color-red-darker: #760000;
    --color-red-bright: #EA1B07;
    --color-yellow: #FCD900;
    --color-border: #DCDCDE;
    --color-bg-light: #F5F4F5;
    --color-dark: #0A0B14;
    --color-dark-heading: #222334;
    --color-body: #616379;
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* Container */
    --container-max-width: 1280px;

    /* Typography - Desktop */
    --font-primary: "Roboto Slab", Sans-serif;
    --font-body: "Montserrat", Sans-serif;
    --font-inter: "Inter", Sans-serif;
    --font-raleway: "Raleway", Sans-serif;

    /* H1: Roboto Slab */
    --h1-size: 56px;
    --h1-weight: 700;
    --h1-line-height: 1.2;
    --h1-letter-spacing: -0.5px;

    /* H2: Roboto Slab */
    --h2-size: 42px;
    --h2-weight: 700;
    --h2-line-height: 1.3;
    --h2-letter-spacing: -0.5px;

    /* H3: Roboto Slab */
    --h3-size: 34px;
    --h3-weight: 700;
    --h3-line-height: 1.38;
    --h3-letter-spacing: -0.5px;

    /* H4: Roboto Slab */
    --h4-size: 25px;
    --h4-weight: 400;
    --h4-line-height: 1.3em;
    --h4-letter-spacing: -0.5px;

    /* H5: Roboto Slab */
    --h5-size: 20px;
    --h5-weight: 700;
    --h5-line-height: 1.4em;
    --h5-letter-spacing: -0.5px;

    /* H6: Roboto Slab */
    --h6-size: 14px;
    --h6-weight: 600;
    --h6-line-height: 1em;
    --h6-letter-spacing: 1px;

    /* Body text: Montserrat */
    --body-size: 18px;
    --body-weight: 400;
    --body-line-height: 1.7;

    /* Button: Inter */
    --btn-font: "Inter", Sans-serif;
    --btn-size: 12px;
    --btn-weight: 500;
    --btn-transform: uppercase;
    --btn-line-height: 1em;
    --btn-letter-spacing: 1px;

    /* Counter numbers: Roboto Slab */
    --counter-size: 69px;
    --counter-weight: 700;
    --counter-line-height: 1em;
    --counter-letter-spacing: -1px;

    /* Widget spacing */
    --widget-spacing: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-header: 1000;
    --z-overlay: 1500;
    --z-modal: 2000;
    --z-toast: 2500;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--body-size);
    font-weight: var(--body-weight);
    line-height: var(--body-line-height);
    color: var(--color-body);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
    margin: 0;
}

/* Typography - Exact from Elementor Kit */
h1 {
    font-family: var(--font-primary);
    font-size: var(--h1-size);
    font-weight: var(--h1-weight);
    line-height: var(--h1-line-height);
    letter-spacing: var(--h1-letter-spacing);
    color: var(--color-dark-heading);
    margin-bottom: 20px;
}

h2 {
    font-family: var(--font-primary);
    font-size: var(--h2-size);
    font-weight: var(--h2-weight);
    line-height: var(--h2-line-height);
    letter-spacing: var(--h2-letter-spacing);
    color: var(--color-dark-heading);
    margin-bottom: 20px;
}

h3 {
    font-family: var(--font-primary);
    font-size: var(--h3-size);
    font-weight: var(--h3-weight);
    line-height: var(--h3-line-height);
    letter-spacing: var(--h3-letter-spacing);
    color: var(--color-dark-heading);
    margin-bottom: 16px;
}

h4 {
    font-family: var(--font-primary);
    font-size: var(--h4-size);
    font-weight: var(--h4-weight);
    line-height: var(--h4-line-height);
    letter-spacing: var(--h4-letter-spacing);
    color: var(--color-dark-heading);
    margin-bottom: 16px;
}

h5 {
    font-family: var(--font-primary);
    font-size: var(--h5-size);
    font-weight: var(--h5-weight);
    line-height: var(--h5-line-height);
    letter-spacing: var(--h5-letter-spacing);
    color: var(--color-dark-heading);
    margin-bottom: 12px;
}

h6 {
    font-family: var(--font-primary);
    font-size: var(--h6-size);
    font-weight: var(--h6-weight);
    line-height: var(--h6-line-height);
    letter-spacing: var(--h6-letter-spacing);
    text-transform: uppercase;
    color: var(--color-red-dark);
    margin-bottom: 8px;
}

p {
    margin-bottom: 16px;
    line-height: var(--body-line-height);
    color: var(--color-body);
}

a {
    color: var(--color-body);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-red-dark);
}

ul, ol {
    list-style: none;
}

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

/* Screen-reader-only utility (accessible but visually hidden) */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================================
   GLOBAL NO-CROP POLICY
   No image may be cropped at any resolution. object-fit:
   contain always fits the ENTIRE image inside its box
   (adding empty space if needed) instead of cropping it.
   This !important rule overrides every object-fit: cover
   used across the site, so images are never clipped.
   ================================================ */
img {
    object-fit: contain !important;
    object-position: center !important;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    background: none;
}

input, textarea, select {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5em;
    color: var(--color-body);
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-bg-light);
    outline: none;
}

input:focus, textarea:focus, select:focus {
    color: var(--color-body);
    background-color: var(--color-white);
    border-color: var(--color-red-darker);
}

label {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5em;
    color: var(--color-body);
}

/* Selection */
::selection {
    background-color: var(--color-red);
    color: var(--color-white);
}

/* ------------------------------------------------
   Responsive typography
   The 1024px and 767px steps are the exact Elementor
   values. The extra steps in between/below exist so
   type scales smoothly instead of jumping.
   ------------------------------------------------ */

/* Laptop 1366px */
@media (max-width: 1366px) {
    :root {
        --h1-size: 44px;
        --h2-size: 36px;
        --h3-size: 29px;
        --counter-size: 62px;
    }
}

/* Small laptop 1200px */
@media (max-width: 1200px) {
    :root {
        --h1-size: 40px;
        --h2-size: 33px;
        --h3-size: 27px;
        --h4-size: 23px;
        --counter-size: 56px;
    }
}

/* Tablet - exact Elementor values */
@media (max-width: 1024px) {
    :root {
        --h1-size: 37px;
        --h2-size: 31px;
        --h3-size: 25px;
        --h4-size: 21px;
        --h5-size: 18px;
        --h6-size: 13px;
        --body-size: 15px;
        --btn-size: 12px;
        --counter-size: 49px;
        --container-max-width: 1024px;
    }
}

/* Tablet portrait 992px */
@media (max-width: 992px) {
    :root {
        --h1-size: 34px;
        --h2-size: 29px;
        --counter-size: 46px;
    }
}

/* Mobile - exact Elementor values */
@media (max-width: 767px) {
    :root {
        --h1-size: 28px;
        --h2-size: 25px;
        --h3-size: 22px;
        --h4-size: 20px;
        --h5-size: 16px;
        --h6-size: 12px;
        --body-size: 14px;
        --btn-size: 11px;
        --counter-size: 39px;
        --container-max-width: 767px;
    }
}

/* Small mobile 480px */
@media (max-width: 480px) {
    :root {
        --h1-size: 26px;
        --h2-size: 23px;
        --h3-size: 20px;
        --counter-size: 36px;
    }
}

/* 390px */
@media (max-width: 390px) {
    :root {
        --h1-size: 24px;
        --h2-size: 21px;
        --h3-size: 19px;
        --counter-size: 33px;
    }
}

/* 360px / 320px */
@media (max-width: 360px) {
    :root {
        --h1-size: 22px;
        --h2-size: 20px;
        --h3-size: 18px;
        --body-size: 13px;
        --counter-size: 30px;
    }
}

/* Tighten heading tracking on small screens - the
   desktop negative letter-spacing is too aggressive
   once the type gets small */
@media (max-width: 767px) {
    h1 { letter-spacing: -0.6px; }
    h2 { letter-spacing: -0.7px; }
    h3 { letter-spacing: -0.5px; }
    h4, h5 { letter-spacing: -0.3px; }
}
