/* =========================================
   KRAZYDINZ
   BASE DESIGN SYSTEM
========================================= */


/* -----------------------------------------
   DESIGN TOKENS
----------------------------------------- */

:root {

    /* Colors */

    --kd-ivory: #F7F6F2;
    --kd-charcoal: #171717;
    --kd-gray: #6B6B6B;
    --kd-white: #FFFFFF;
    --kd-coral: #E85D4A;
    --kd-border: #E5E3DE;


    /* Typography */

    --font-display: "Manrope", sans-serif;
    --font-body: "DM Sans", sans-serif;


    /* Layout */

    --container-width: 1280px;

    --container-padding-desktop: 32px;
    --container-padding-tablet: 24px;
    --container-padding-mobile: 20px;


    /* Radius */

    --radius-card: 20px;
    --radius-input: 12px;
    --radius-button: 10px;


    /* Motion */

    --transition-fast: 150ms ease;
    --transition-standard: 300ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 700ms cubic-bezier(0.22, 1, 0.36, 1);


    /* Shadows */

    --shadow-soft:
        0 4px 20px rgba(23, 23, 23, 0.04);

    --shadow-hover:
        0 12px 35px rgba(23, 23, 23, 0.08);

}


/* -----------------------------------------
   RESET
----------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background: var(--kd-ivory);
    color: var(--kd-charcoal);

    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


img,
svg {
    display: block;
    max-width: 100%;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    border: 0;
}


a {
    color: inherit;
    text-decoration: none;
}


p,
h1,
h2,
h3,
h4 {
    margin-top: 0;
}


h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
}


/* -----------------------------------------
   CONTAINER
----------------------------------------- */

.container {
    width: min(
        100% - (var(--container-padding-desktop) * 2),
        var(--container-width)
    );

    margin-inline: auto;
}


/* -----------------------------------------
   SECTIONS
----------------------------------------- */

.section {
    position: relative;
}


/* -----------------------------------------
   TYPOGRAPHY
----------------------------------------- */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 24px;

    color: var(--kd-gray);

    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;

    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}


.eyebrow-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: var(--kd-coral);
}


.section-title {
    max-width: 900px;

    margin-bottom: 32px;

    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.03;
}


.section-title span {
    display: block;

    color: var(--kd-gray);
}


.section-description {
    max-width: 650px;

    color: var(--kd-gray);

    font-size: 1.125rem;
    line-height: 1.65;
}


/* -----------------------------------------
   FOCUS STATES
----------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--kd-coral);
    outline-offset: 4px;
}


/* -----------------------------------------
   RESPONSIVE CONTAINER
----------------------------------------- */

@media (max-width: 1023px) {

    .container {
        width: min(
            100% - (var(--container-padding-tablet) * 2),
            var(--container-width)
        );
    }

}


@media (max-width: 767px) {

    .container {
        width: min(
            100% - (var(--container-padding-mobile) * 2),
            var(--container-width)
        );
    }

}


/* =========================================
   KRAZYDINZ
   ANIMATION SYSTEM V1
========================================= */

[data-animate] {
    --animation-delay: 0ms;

    opacity: 0;

    transition:
        opacity 800ms
            cubic-bezier(0.22, 1, 0.36, 1)
            var(--animation-delay),

        transform 1100ms
            cubic-bezier(0.22, 1, 0.36, 1)
            var(--animation-delay);
}


/* -----------------------------------------
   FROM BELOW / BRING UP
----------------------------------------- */

[data-animate="up"] {
    transform:
        translate3d(0, 28px, 0);
    
}


/* -----------------------------------------
   FROM ABOVE / BRING DOWN
----------------------------------------- */

[data-animate="down"] {
    transform:
        translate3d(0, -28px, 0);
}


/* -----------------------------------------
   FROM LEFT
----------------------------------------- */

[data-animate="left"] {
    transform:
        translate3d(-36px, 0, 0);
}


/* -----------------------------------------
   FROM RIGHT
----------------------------------------- */

[data-animate="right"] {
    transform:
        translate3d(36px, 0, 0);
}


/* -----------------------------------------
   SOFT SCALE
----------------------------------------- */

[data-animate="scale"] {
    transform:
        scale(0.965);
}


/* -----------------------------------------
   FINAL / VISIBLE STATE
----------------------------------------- */

[data-animate].is-visible {
    opacity: 1;

    transform:
        translate3d(0, 0, 0)
        scale(1);
}


