@layer reset, basics, layouts, modules, utilities;

@font-face {
    font-family: 'Neutra Text';
    src: url('../assets/fonts/NeutraText-Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neutra Text';
    src: url('../assets/fonts/NeutraText-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-dark: #2a3538;
    --color-dark-soft: #36444a;
    --color-yellow: #fdc121;
    --color-yellow-dark: #b68502;
    --color-sand: #f4f1ea;
    --color-text-button: #333333;
    --font-family-base: 'Neutra Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --limiter: 77.5rem;
    --gutter: 1.5rem;
    --section-space: clamp(4rem, 8vw, 7.5rem);
}

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

    ul,
    ol {
        list-style: none;
    }

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

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

    button {
        background: none;
        border: 0;
        cursor: pointer;
    }
}

@layer basics {
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 5rem;
    }

    body {
        font-family: var(--font-family-base);
        font-size: 1.1875rem;
        line-height: 1.7;
        letter-spacing: 0.0156rem;
        color: var(--color-dark);
        background: white;
    }

    p + p {
        margin-top: 1.25rem;
    }

    a {
        color: inherit;
    }

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

    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }
    }
}

@layer layouts {
    .l-header {
        position: sticky;
        top: 0;
        z-index: 10;
        padding-block: 1rem;
        background: white;
        border-bottom: 1px solid var(--color-sand);
    }

    .l-header__inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .l-header__logo {
        display: block;
    }

    .l-header__list {
        display: flex;
        align-items: center;
        gap: 2rem;
        font-size: 1.0625rem;
        letter-spacing: 0.0313rem;
    }

    .l-header__list a {
        text-decoration: none;
        transition: color 0.2s;
    }

    .l-header__list a:hover {
        color: var(--color-yellow-dark);
    }

    .l-header__list .l-header__cta {
        padding: 0.625rem 1.25rem;
        background: var(--color-yellow);
        border-radius: 3rem;
    }

    .l-header__list .l-header__cta:hover {
        color: white;
        background: var(--color-dark);
    }

    .l-footer {
        padding-block: 2rem;
        font-size: 1rem;
        letter-spacing: 0.0313rem;
        color: white;
        background: var(--color-dark);
        border-top: 1px solid var(--color-dark-soft);
    }

    .l-footer__inner {
        font-style: normal;
        text-align: right;
    }

    @media screen and (max-width: 840px) {
        .l-header__inner {
            flex-wrap: nowrap;
        }

        .l-header__logo img {
            width: 10rem;
            height: auto;
        }

        .l-header__list li:not(:last-child) {
            display: none;
        }

        .l-header__list .l-header__cta {
            display: block;
            padding: 0.625rem 1.125rem;
        }

        .l-footer__inner {
            text-align: left;
        }
    }
}

@layer modules {
    .m-hero {
        position: relative;
        display: grid;
        min-height: max(32rem, calc(100vh - 7rem));
        min-height: max(32rem, calc(100svh - 7rem));
        color: white;
    }

    .m-hero__image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
    }

    .m-hero__wrap {
        position: relative;
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        padding-block: 3rem;
    }

    .m-hero__card {
        max-width: 36rem;
        padding: clamp(1.5rem, 3vw, 2.75rem);
        background: var(--color-dark);
    }

    .m-hero__eyebrow {
        margin-bottom: 1rem;
        font-size: 0.9375rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--color-yellow);
    }

    .m-hero__title {
        font-size: clamp(2rem, calc(3.4vw + 0.125rem), 2.875rem);
        font-weight: 700;
        line-height: 1.2;
    }

    .m-hero__text {
        margin-top: 1.25rem;
    }

    .m-hero__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: 2rem;
    }

    .m-button {
        display: inline-block;
        padding: 0.875rem 1.75rem;
        font-size: 1.0625rem;
        text-decoration: none;
        color: var(--color-dark);
        background: var(--color-yellow);
        border: 1px solid var(--color-yellow);
        border-radius: 3rem;
        transition:
            background 0.2s,
            color 0.2s,
            border-color 0.2s;
    }

    .m-button:hover {
        color: white;
        background: var(--color-yellow-dark);
        border-color: var(--color-yellow-dark);
    }

    .m-button--ghost {
        color: white;
        background: transparent;
        border-color: white;
    }

    .m-button--ghost:hover {
        color: var(--color-dark);
        background: white;
        border-color: white;
    }

    .m-section {
        padding-block: var(--section-space);
    }

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

    .m-section__intro {
        max-width: 46rem;
        margin-bottom: 3.5rem;
    }

    .m-eyebrow {
        margin-bottom: 1rem;
        font-size: 0.9375rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--color-yellow-dark);
    }

    .m-section--dark .m-eyebrow {
        color: var(--color-yellow);
    }

    .m-title {
        font-size: clamp(1.875rem, calc(3vw + 0.125rem), 2.625rem);
        font-weight: 700;
        line-height: 1.25;
    }

    .m-section__intro .m-title {
        margin-bottom: 1.25rem;
    }

    .m-lead {
        font-size: clamp(1.3125rem, calc(1.6vw + 0.125rem), 1.5rem);
        line-height: 1.6;
    }

    .m-split {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: clamp(2rem, 6vw, 6rem);
        align-items: start;
    }

    .m-split__head {
        position: sticky;
        top: 7rem;
    }

    .m-split__body .m-button {
        margin-top: 2rem;
    }

    .m-steps {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .m-steps__item {
        padding: 1.75rem 1.5rem 2rem;
        background: var(--color-dark-soft);
        border-top: 0.1875rem solid var(--color-yellow);
    }

    .m-steps__number {
        display: block;
        margin-bottom: 2rem;
        font-size: 1rem;
        letter-spacing: 0.12em;
        color: var(--color-yellow);
    }

    .m-steps__title {
        margin-bottom: 0.75rem;
        font-size: 1.5rem;
        font-weight: 700;
    }

    .m-quote {
        padding-block: var(--section-space);
        background: var(--color-sand);
    }

    .m-quote__block {
        max-width: 54rem;
        margin-inline: auto;
        text-align: center;
    }

    .m-quote__block p {
        font-size: clamp(1.625rem, calc(2.8vw + 0.125rem), 2.375rem);
        line-height: 1.4;
    }

    .m-quote__block cite {
        display: block;
        margin-top: 1.5rem;
        font-size: 1.0625rem;
        font-style: normal;
        letter-spacing: 0.08em;
        color: var(--color-yellow-dark);
    }

    .m-checklist {
        display: grid;
        gap: 0.875rem;
        margin-block: 2rem;
    }

    .m-checklist li {
        position: relative;
        padding-left: 2rem;
    }

    .m-checklist li::before {
        content: '';
        position: absolute;
        top: 0.55rem;
        left: 0;
        width: 0.875rem;
        height: 0.875rem;
        background: var(--color-yellow);
        border-radius: 50%;
    }

    .m-contact__quote {
        margin-top: 3rem;
        padding-left: 1.25rem;
        border-left: 0.1875rem solid var(--color-yellow);
    }

    .m-contact__quote cite {
        display: block;
        margin-top: 0.5rem;
        font-size: 1.0625rem;
        font-style: normal;
        color: var(--color-yellow);
    }

    .m-contact__item {
        display: grid;
        gap: 0.5rem;
        padding-block: 1.75rem;
        border-top: 1px solid var(--color-dark-soft);
    }

    .m-contact__item:last-child {
        border-bottom: 1px solid var(--color-dark-soft);
    }

    .m-contact__label {
        font-size: 0.9375rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--color-yellow);
    }

    .m-contact__value {
        font-size: clamp(1.5rem, calc(2.4vw + 0.125rem), 2.125rem);
        font-style: normal;
        line-height: 1.35;
        text-decoration: none;
    }

    a.m-contact__value:hover {
        color: var(--color-yellow);
    }

    @media screen and (max-width: 840px) {
        .m-split {
            grid-template-columns: minmax(0, 1fr);
        }

        .m-split__head {
            position: static;
        }

        .m-steps {
            grid-template-columns: minmax(0, 1fr);
        }

        .m-hero__wrap {
            padding-block: 0;
            align-items: flex-end;
        }

        .m-hero__card {
            margin-inline: calc(var(--gutter) * -1);
            max-width: none;
        }
    }
}

@layer utilities {
    .u-limiter {
        width: min(100%, var(--limiter));
        margin-inline: auto;
        padding-inline: var(--gutter);
    }

    [data-reveal] {
        opacity: 0;
        transform: translateY(1.5rem);
        transition:
            opacity 0.6s ease,
            transform 0.6s ease;
    }

    [data-reveal].is-visible,
    .no-js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    @media (prefers-reduced-motion: reduce) {
        [data-reveal] {
            opacity: 1;
            transform: none;
            transition: none;
        }
    }
}

@layer modules {
    /* Header */
    .l-header {
        transition:
            padding 0.3s ease,
            box-shadow 0.3s ease;
    }

    .l-header.is-scrolled {
        box-shadow: 0 0.5rem 1.5rem rgba(42, 53, 56, 0.08);
    }

    .l-header__logo img {
        transition: transform 0.3s ease;
    }

    .l-header__logo:hover img {
        transform: scale(1.04);
    }

    .l-header__list a:not(.l-header__cta) {
        position: relative;
        padding-block: 0.25rem;
    }

    .l-header__list a:not(.l-header__cta)::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 2px;
        background: var(--color-yellow);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease;
    }

    .l-header__list a:not(.l-header__cta):hover::after,
    .l-header__list a.is-active::after {
        transform: scaleX(1);
        transform-origin: left;
    }

    .l-header__list .l-header__cta {
        transition:
            background 0.2s,
            color 0.2s,
            transform 0.2s;
    }

    .l-header__list .l-header__cta:hover {
        transform: translateY(-2px);
    }

    /* Hero entrance */
    .m-hero__image {
        animation: hero-zoom 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .m-hero__card > * {
        animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
        animation-delay: calc(0.25s + var(--i, 0) * 0.12s);
    }

    .m-hero__card > :nth-child(1) { --i: 0; }
    .m-hero__card > :nth-child(2) { --i: 1; }
    .m-hero__card > :nth-child(3) { --i: 2; }
    .m-hero__card > :nth-child(4) { --i: 3; }

    @keyframes hero-zoom {
        from {
            transform: scale(1.08);
        }
        to {
            transform: scale(1);
        }
    }

    @keyframes rise {
        from {
            opacity: 0;
            transform: translateY(1.25rem);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }

    /* Checklist */
    .m-checklist li::before {
        transform: scale(0);
        transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
        transition-delay: calc(0.2s + var(--i, 0) * 0.1s);
    }

    .is-visible .m-checklist li::before,
    .m-checklist.is-visible li::before {
        transform: scale(1);
    }

    .m-checklist li {
        transition: transform 0.25s ease;
    }

    .m-checklist li:hover {
        transform: translateX(0.375rem);
    }

    /* Quote */
    .m-quote__block p {
        position: relative;
    }

    .m-quote__block p::before {
        content: '“';
        display: block;
        margin-bottom: -1rem;
        font-size: 5rem;
        line-height: 1;
        color: var(--color-yellow);
    }

    /* Contact rows */
    .m-contact__item {
        position: relative;
        transition: padding 0.3s ease;
    }

    .m-contact__item::after {
        content: '';
        position: absolute;
        top: -1px;
        left: 0;
        width: 100%;
        height: 1px;
        background: var(--color-yellow);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease;
    }

    .m-contact__item:has(a):hover {
        padding-left: 1rem;
    }

    .m-contact__item:has(a):hover::after {
        transform: scaleX(1);
    }

    a.m-contact__value {
        width: fit-content;
        transition: color 0.2s;
    }

    /* Footer links */
    .l-footer a {
        text-decoration-color: transparent;
        text-underline-offset: 0.25rem;
        transition: text-decoration-color 0.2s;
    }

    .l-footer a:hover {
        text-decoration: underline;
        text-decoration-color: var(--color-yellow);
    }

    @media screen and (max-width: 840px) {
        .l-header__list a:not(.l-header__cta)::after {
            display: none;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .m-hero__image,
        .m-hero__card > * {
            animation: none;
        }

        .m-checklist li::before {
            transform: scale(1);
            transition: none;
        }
    }
}

@layer modules {
    .m-hero picture {
        position: absolute;
        inset: 0;
        overflow: hidden;
    }

    .m-hero__image {
        object-position: 50% 50%;
    }

    .m-figure {
        margin-top: clamp(3rem, 6vw, 5rem);
    }

    .m-figure--garden {
        margin-top: 0;
        margin-bottom: clamp(3rem, 6vw, 5rem);
    }

    .m-figure__image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        object-position: 60% 55%;
    }

    .m-figure--garden .m-figure__image {
        object-position: 50% 55%;
    }

    @media screen and (max-width: 840px) {
        .m-figure__image {
            aspect-ratio: 4 / 3;
        }

        .m-hero__image {
            object-position: 45% 50%;
        }
    }
}

@layer modules {
    .m-notice {
        padding-block: 0.625rem;
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
        color: white;
        background: var(--color-dark);
    }

    .m-notice .u-limiter {
        display: block;
    }

    .m-contact__text {
        margin-top: 1.25rem;
    }

    .m-contact__button {
        margin-top: 2rem;
    }
}

@layer modules {
    .m-notice__item {
        display: block;
        width: min(100%, var(--limiter));
        margin-inline: auto;
        padding-inline: var(--gutter);
    }

    .m-notice__item + .m-notice__item {
        display: none;
    }

    @media screen and (max-width: 840px) {
        /* Hero: image on top, card below, so the photo stays visible */
        .m-hero {
            display: block;
            min-height: 0;
        }

        .m-hero picture {
            position: relative;
            inset: auto;
            display: block;
            aspect-ratio: 4 / 3;
        }

        .m-hero__wrap {
            display: block;
            padding-block: 0;
        }

        /* Notice: marquee */
        .m-notice {
            overflow: hidden;
            padding-inline: 0;
            text-align: left;
        }

        .m-notice__track {
            display: flex;
            width: max-content;
            animation: marquee 28s linear infinite;
        }

        .m-notice__item {
            flex: none;
            width: auto;
            margin: 0;
            padding: 0 3rem 0 0;
            white-space: nowrap;
        }

        .m-notice__item + .m-notice__item {
            display: block;
        }
    }

    @keyframes marquee {
        to {
            transform: translateX(-50%);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .m-notice__track {
            animation: none;
        }
    }
}
