/* =========================================
   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);
}


/* =========================================
   KRAZYDINZ
   SHARED COMPONENTS
========================================= */


/* -----------------------------------------
   HEADER
----------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;

    transition:
        background-color var(--transition-standard),
        border-color var(--transition-standard),
        backdrop-filter var(--transition-standard);
}


.site-header.is-scrolled {
    background: rgba(247, 246, 242, 0.88);

    border-bottom: 1px solid rgba(229, 227, 222, 0.8);

    backdrop-filter: blur(14px);
}


.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 88px;
}


/* -----------------------------------------
   BRAND
----------------------------------------- */

.brand {
    display: inline-flex;
    align-items: baseline;

    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;

    letter-spacing: -0.04em;
}


.brand-heavy {
    font-weight: 800;
}

/* -----------------------------------------
   BRAND LOGO IMAGE
----------------------------------------- */

/* -----------------------------------------
   BRAND LOGO IMAGE
----------------------------------------- */

.brand-logo {
    display: inline-flex;
    align-items: center;
}

.brand-logo-image {
    display: block;
    width: auto;
    height: 76px;
    object-fit: contain;

    opacity: 0;
    transform: translateX(-24px) scale(0.97);

    animation:
        krazyLogoEntrance 900ms
        cubic-bezier(0.22, 1, 0.36, 1)
        180ms forwards;

    transition:
        transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-logo:hover .brand-logo-image {
    transform: translateX(0) scale(1.025);
}

@keyframes krazyLogoEntrance {

    from {
        opacity: 0;
        transform: translateX(-24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

}

/* -----------------------------------------
   MAIN NAVIGATION
----------------------------------------- */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 32px;
}


.main-navigation a,
.footer-navigation a {
    position: relative;

    color: var(--kd-gray);

    font-size: 0.9rem;
    font-weight: 500;

    transition: color var(--transition-fast);
}


.main-navigation a::after {
    position: absolute;
    bottom: -6px;
    left: 0;

    width: 100%;
    height: 1px;

    content: "";

    background: var(--kd-coral);

    transform: scaleX(0);
    transform-origin: right;

    transition: transform var(--transition-standard);
}


.main-navigation a:hover,
.footer-navigation a:hover {
    color: var(--kd-charcoal);
}


.main-navigation a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* -----------------------------------------
   MOBILE MENU BUTTON
----------------------------------------- */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;

    background: transparent;

    cursor: pointer;
}


.menu-toggle span {
    display: block;

    width: 22px;
    height: 1.5px;

    background: var(--kd-charcoal);

    transition: transform var(--transition-standard);
}


/* -----------------------------------------
   TEXT LINK
----------------------------------------- */

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;

    transition: gap var(--transition-standard),
                color var(--transition-fast);
}


.text-link span {
    color: var(--kd-coral);

    transition: transform var(--transition-standard);
}


.text-link:hover {
    color: var(--kd-coral);
}


.text-link:hover span {
    transform: translate(4px, -4px);
}


/* -----------------------------------------
   FOOTER
----------------------------------------- */

.site-footer {
    position: relative;

    margin: 0;

    padding-top: 72px;
    padding-bottom: 32px;

    background: #34312E;
    color: var(--kd-ivory);

    border-top: 1px solid rgba(23, 23, 23, 0.25);
}


.site-footer::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

background: var(--kd-charcoal);
    
}


.footer-inner {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 48px;
}


.site-footer .brand {
    color: var(--kd-white);
    font-weight: 700;
}


.footer-brand p {
    max-width: 300px;

    margin-top: 16px;

    color: rgba(247, 246, 242, 0.58);

    font-size: 0.9rem;
}


.footer-navigation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.footer-navigation a {
    color: rgba(247, 246, 242, 0.72);

    transition: color var(--transition-fast);
}


.footer-navigation a:hover {
    color: var(--kd-white);
}


.footer-meta {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    color: rgba(247, 246, 242, 0.58);

    font-size: 0.8rem;
}


.footer-meta p {
    margin-bottom: 8px;
}

/* -----------------------------------------
   MOBILE COMPONENTS
----------------------------------------- */

@media (max-width: 767px) {

    .header-inner {
        min-height: 76px;
    }


    .menu-toggle {
        display: flex;
    }


    .main-navigation {
        position: absolute;

        top: calc(100% + 1px);
        left: 0;

        width: 100%;

        padding: 24px 20px 32px;

        flex-direction: column;
        align-items: flex-start;
        gap: 20px;

        background: var(--kd-ivory);

        border-bottom: 1px solid var(--kd-border);

        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);

        transition:
            opacity var(--transition-standard),
            transform var(--transition-standard);
    }


    .main-navigation.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }


    .menu-toggle.is-open span:first-child {
        transform: translateY(3.75px) rotate(45deg);
    }


    .menu-toggle.is-open span:last-child {
        transform: translateY(-3.75px) rotate(-45deg);
    }


    .footer-inner {
        grid-template-columns: 1fr;

        gap: 32px;
    }

}

html,
body {
    margin-bottom: 0;
    padding-bottom: 0;
}

.site-footer {
    margin-bottom: 0;
}

.site-footer > :last-child {
    margin-bottom: 0;
}

/* -----------------------------------------
   FOOTER LOGO
----------------------------------------- */

.footer-logo {
    display: inline-flex;
    align-items: center;
}

.footer-logo-image {
    display: block;

    width: auto;
    height: 76px;

    object-fit: contain;
}

/* =========================================
   KRAZYDINZ CONTACT PAGE
========================================= */


/* -----------------------------------------
   CONTACT HERO
----------------------------------------- */

/* -----------------------------------------
   CONTACT HEADER
----------------------------------------- */

.site-header {
    background: #F7F6F2;
    border-bottom: 1px solid var(--kd-border);
}

.site-header.is-scrolled {
    background: #F7F6F2;
    border-bottom: 1px solid var(--kd-border);
    backdrop-filter: none;
}
.contact-hero {
    padding-top: 190px;
    padding-bottom: 140px;
}


.contact-hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(320px, 0.6fr);

    gap: 80px;

    align-items: end;
}


.contact-hero-heading {
    min-width: 0;
}


.contact-hero-title {
    margin-top: 28px;

    font-family: var(--font-display);

    font-size: clamp(4rem, 7vw, 7.5rem);
    font-weight: 700;

    letter-spacing: -0.06em;
    line-height: 0.96;
}


.contact-hero-title > span {
    display: block;
}


.contact-hero-title-muted {
    color: var(--kd-gray);
}


.contact-hero-copy {
    max-width: 520px;

    padding-bottom: 12px;

    color: var(--kd-gray);

    font-size: 1.08rem;
    line-height: 1.7;
}


.contact-hero-copy p {
    margin-bottom: 24px;
}


.contact-hero-copy p:last-child {
    margin-bottom: 0;
}


.contact-hero-lead {
    color: var(--kd-charcoal);

    font-size: 1.3rem;
    font-weight: 500;

    line-height: 1.55;
}


/* -----------------------------------------
   PROJECT INQUIRY
----------------------------------------- */

.contact-inquiry {
    padding-block: 140px;

    background: #F1E9E5;

    border-top: 1px solid var(--kd-border);
}


.contact-inquiry-grid {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.7fr)
        minmax(0, 1.3fr);

    gap: clamp(72px, 9vw, 140px);

    align-items: start;
}


/* -----------------------------------------
   PROJECT INQUIRY INTRO
----------------------------------------- */

.contact-inquiry-intro {
    max-width: 460px;
}


.contact-inquiry-title {
    margin-top: 28px;

    color: var(--kd-charcoal);

    font-family: var(--font-display);

    font-size: clamp(2.8rem, 4.5vw, 5rem);
    font-weight: 700;

    letter-spacing: -0.055em;
    line-height: 1;
}


.contact-inquiry-title span {
    display: block;

    color: var(--kd-gray);
}


.contact-inquiry-description {
    max-width: 400px;

    margin-top: 32px;

    color: var(--kd-gray);

    font-size: 1rem;
    line-height: 1.7;
}


/* -----------------------------------------
   WHAT HAPPENS NEXT
----------------------------------------- */

.contact-next {
    margin-top: 72px;

    border-top: 1px solid rgba(23, 23, 23, 0.16);
}


.contact-next-label {
    padding-block: 18px;

    color: var(--kd-charcoal);

    font-family: var(--font-display);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.contact-next-item {
    display: grid;

    grid-template-columns: 44px 1fr;

    gap: 16px;

    padding-block: 20px;

    border-top: 1px solid rgba(23, 23, 23, 0.12);
}


.contact-next-item > span {
    color: var(--kd-coral);

    font-family: var(--font-display);

    font-size: 0.75rem;
    font-weight: 700;
}


.contact-next-item p {
    margin: 0;

    color: var(--kd-charcoal);

    font-size: 0.94rem;
    line-height: 1.5;
}


/* -----------------------------------------
   CONTACT FORM
----------------------------------------- */

.contact-form-wrap {
    width: 100%;
}


.contact-form {
    display: flex;
    flex-direction: column;

    gap: 30px;
}


.contact-form-row {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
}


.contact-field {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


.contact-field label {
    color: var(--kd-charcoal);

    font-family: var(--font-display);

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.04em;
}


.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;

    padding: 16px 18px;

    color: var(--kd-charcoal);
    background: rgba(255, 255, 255, 0.48);

    border: 1px solid rgba(23, 23, 23, 0.18);
    border-radius: 12px;

    outline: none;

    font: inherit;

    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}


.contact-field input,
.contact-field select {
    min-height: 56px;
}


.contact-field textarea {
    min-height: 180px;

    resize: vertical;

    line-height: 1.6;
}


.contact-field textarea::placeholder {
    color: rgba(107, 107, 107, 0.7);
}


.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
    border-color: rgba(23, 23, 23, 0.32);
}


.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    background: rgba(255, 255, 255, 0.72);

    border-color: var(--kd-coral);

    box-shadow: 0 0 0 3px rgba(232, 93, 74, 0.10);
}


/* -----------------------------------------
   SUBMIT BUTTON
----------------------------------------- */

.contact-form-submit {
    padding-top: 10px;
}


.contact-submit {
    display: inline-flex;

    align-items: center;
    justify-content: space-between;

    gap: 32px;

    min-width: 320px;

    padding: 18px 22px;

    color: var(--kd-white);
    background: var(--kd-coral);

    border: 0;
    border-radius: 10px;

    cursor: pointer;

    font-family: var(--font-display);

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.04em;

    transition:
        transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 300ms ease;
}


.contact-submit:hover {
    transform: translateY(-2px);

    filter: brightness(0.94);
}


.contact-submit-arrow {
    font-size: 1.2rem;

    transition:
        transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}


.contact-submit:hover .contact-submit-arrow {
    transform: translateX(5px);
}


.contact-form-privacy {
    margin-top: 16px;

    color: var(--kd-gray);

    font-size: 0.78rem;
    line-height: 1.5;
}


/* -----------------------------------------
   HONEYPOT
----------------------------------------- */

.contact-honeypot {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
}


/* -----------------------------------------
   CLOSING STATEMENT
----------------------------------------- */

.contact-closing {
    position: relative;

    overflow: hidden;

    padding-block: 150px;

    background: var(--kd-charcoal);
}


.contact-closing-inner {
    position: relative;
}


.contact-closing-eyebrow {
    color: rgba(247, 246, 242, 0.58);
}


.contact-closing-title {
    max-width: 1050px;

    margin-top: 38px;

    font-family: var(--font-display);

    font-size: clamp(3.8rem, 7vw, 7.4rem);
    font-weight: 700;

    letter-spacing: -0.06em;
    line-height: 0.98;
}


.contact-closing-title > span {
    display: block;

    color: var(--kd-ivory);
}


.contact-closing-title .contact-closing-accent {
    margin-top: 38px;

    color: var(--kd-coral);
}

.contact-closing-line {
    width: 100%;

    margin-top: 72px;

    border-top: 1px solid rgba(247, 246, 242, 0.18);
}

/* -----------------------------------------
   FORM STATUS MESSAGE
----------------------------------------- */

.contact-status {
    display: none;

    margin-bottom: 30px;

    padding: 20px 22px;

    border-radius: 12px;

    font-size: 0.95rem;
    line-height: 1.6;
}


.contact-status.is-visible {
    display: block;
}


.contact-status.is-success {
    color: #8A3328;
    background: #FBEDEC;
    border: 1px solid rgba(138, 51, 40, 0.18);
}


.contact-status.is-error {
    color: #8A3328;
    background: #FBEDEC;

    border: 1px solid rgba(138, 51, 40, 0.18);
}


.contact-status strong {
    display: block;

    margin-bottom: 4px;

    font-family: var(--font-display);

    font-weight: 700;
}

/* =========================================
   TABLET
   1023PX AND BELOW
========================================= */

@media (max-width: 1023px) {


    /* CONTACT HERO */

    .contact-hero {
        padding-top: 160px;
        padding-bottom: 110px;
    }


    .contact-hero-grid {
        grid-template-columns: 1fr;

        gap: 56px;
    }


    .contact-hero-copy {
        max-width: 620px;
    }


    /* PROJECT INQUIRY */

    .contact-inquiry {
        padding-block: 110px;
    }


    .contact-inquiry-grid {
        grid-template-columns: 1fr;

        gap: 72px;
    }


    .contact-inquiry-intro {
        max-width: 620px;
    }


    .contact-next {
        max-width: 520px;

        margin-top: 52px;
    }


    /* CLOSING STATEMENT */

    .contact-closing {
        padding-block: 120px;
    }


    .contact-closing-title {
        max-width: 850px;
    }

}


/* =========================================
   MOBILE
   767PX AND BELOW
========================================= */

@media (max-width: 767px) {


    /* CONTACT HERO */

    .contact-hero {
        padding-top: 130px;
        padding-bottom: 90px;
    }


    .contact-hero-grid {
        gap: 44px;
    }


    .contact-hero-title {
        font-size: clamp(3.2rem, 15vw, 5rem);
    }


    .contact-hero-copy {
        font-size: 1rem;
    }


    .contact-hero-lead {
        font-size: 1.18rem;
    }


    /* PROJECT INQUIRY */

    .contact-inquiry {
        padding-block: 90px;
    }


    .contact-inquiry-grid {
        gap: 56px;
    }


    .contact-inquiry-title {
        font-size: clamp(2.7rem, 12vw, 4rem);
    }


    .contact-next {
        margin-top: 48px;
    }


    /* CONTACT FORM */

    .contact-form {
        gap: 26px;
    }


    .contact-form-row {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    .contact-submit {
        width: 100%;
        min-width: 0;
    }


    /* CLOSING STATEMENT */

    .contact-closing {
        padding-block: 90px;
    }


    .contact-closing-title {
        margin-top: 30px;

        font-size: clamp(3rem, 13vw, 4.8rem);

        line-height: 1;
    }


    .contact-closing-line {
        margin-top: 52px;
    }

}