/* Premium one-page landing page for Eme's Baked Goods. */

:root {
    --em-cream: #f7f3ec;
    --em-cream-dark: #eee5d8;
    --em-ink: #181512;
    --em-charcoal: #3f3b36;
    --em-muted: #766e64;
    --em-gold: #b98548;
    --em-cocoa: #5a351f;
    --em-blush: #f2d4ca;
    --em-white: #fffaf3;
    --em-border: rgba(24, 21, 18, 0.1);
    --em-shadow-soft: 0 1.4rem 3rem rgba(64, 48, 35, 0.08);
    --em-shadow-lift: 0 1.8rem 4rem rgba(64, 48, 35, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--em-cream);
    color: var(--em-ink);
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.home-page-main {
    background:
        radial-gradient(circle at 10% 0%, rgba(242, 212, 202, 0.7), transparent 28rem),
        radial-gradient(circle at 90% 18%, rgba(185, 133, 72, 0.16), transparent 24rem),
        linear-gradient(180deg, var(--em-cream) 0%, #fbf8f2 48%, var(--em-cream-dark) 100%);
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

.home-page-main::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 4.5rem 4.5rem;
    content: "";
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.em-eyebrow {
    color: var(--em-cocoa);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.4;
    margin: 0 0 0.9rem;
    text-transform: uppercase;
}

.em-button {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    justify-content: center;
    min-height: 3.1rem;
    overflow: hidden;
    padding: 0.9rem 1.35rem;
    position: relative;
    text-decoration: none;
    touch-action: manipulation;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.em-button::before {
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    content: "";
    height: 160%;
    left: -75%;
    position: absolute;
    top: -30%;
    transform: rotate(12deg);
    transition: left 520ms ease;
    width: 45%;
}

.em-button:hover,
.em-button:focus-visible {
    transform: translateY(-2px);
}

.em-button:hover::before,
.em-button:focus-visible::before {
    left: 130%;
}

.em-button--dark {
    background: var(--em-ink);
    box-shadow: 0 1rem 2.2rem rgba(24, 21, 18, 0.18);
    color: var(--em-white);
}

.em-button--light {
    background: rgba(255, 250, 243, 0.74);
    border: 1px solid rgba(24, 21, 18, 0.14);
    color: var(--em-ink);
}

.em-card-link {
    color: var(--em-blush);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-top: 1.05rem;
    text-decoration: none;
    text-transform: uppercase;
}

.em-card-link::after {
    content: "->";
    margin-left: 0.45rem;
    transition: transform 180ms ease;
}

.em-card-link:hover::after,
.em-card-link:focus-visible::after {
    transform: translateX(0.25rem);
}

.em-reveal-ready [data-em-reveal] {
    opacity: 0;
    transform: translateY(1.4rem) scale(0.985);
    transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--em-reveal-delay, 0ms);
    will-change: opacity, transform;
}

.em-reveal-ready [data-em-reveal].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.em-text-link {
    color: var(--em-cocoa);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-top: 1.15rem;
    text-decoration: none;
    text-transform: uppercase;
}

.em-text-link::after {
    content: "->";
    margin-left: 0.5rem;
    transition: transform 180ms ease;
}

.em-text-link:hover::after {
    transform: translateX(0.25rem);
}

.em-section-heading {
    margin: 0 auto 2.3rem;
    max-width: 46rem;
    padding: 0 1.25rem;
    text-align: center;
}

.em-section-heading--left {
    margin-left: 0;
    padding: 0;
    text-align: left;
}

.em-section-heading h2,
.em-catering__intro h2,
.em-cta h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.25rem, 10vw, 5.5rem);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 0.95;
    margin: 0;
}

.em-section-heading p:not(.em-eyebrow),
.em-catering__intro p,
.em-cta p {
    color: var(--em-muted);
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    line-height: 1.75;
    margin: 1.1rem 0 0;
}

.em-hero {
    display: grid;
    min-height: 100svh;
}

.em-hero__media {
    height: min(72vh, 42rem);
    overflow: hidden;
    position: relative;
}

.em-hero__media::after {
    background:
        linear-gradient(180deg, rgba(24, 21, 18, 0) 48%, rgba(24, 21, 18, 0.24) 100%),
        radial-gradient(circle at 25% 20%, rgba(255, 250, 243, 0.34), transparent 22rem);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.em-hero__media img,
.em-story__portrait img,
.em-product-card img,
.em-service-card img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.em-hero__floating-card {
    background: rgba(255, 250, 243, 0.84);
    border: 1px solid rgba(255, 250, 243, 0.52);
    border-radius: 1.25rem;
    bottom: 1rem;
    box-shadow: 0 1.4rem 3.2rem rgba(24, 21, 18, 0.2);
    color: var(--em-ink);
    left: 1rem;
    max-width: min(18rem, calc(100% - 2rem));
    padding: 1rem;
    position: absolute;
    z-index: 1;
}

.em-hero__floating-card span {
    color: var(--em-cocoa);
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.em-hero__floating-card strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
}

.em-hero__content {
    align-content: center;
    display: grid;
    justify-items: center;
    padding: clamp(3.5rem, 12vw, 8rem) 1.25rem;
    position: relative;
    text-align: center;
}

.em-hero__content::before {
    background: rgba(255, 250, 243, 0.86);
    border: 1px solid rgba(24, 21, 18, 0.08);
    border-radius: 999px;
    content: "";
    height: 18rem;
    position: absolute;
    top: 2rem;
    width: 18rem;
    z-index: 0;
}

.em-hero__content > * {
    position: relative;
    z-index: 1;
}

.em-hero h1 {
    color: var(--em-charcoal);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 16vw, 8rem);
    font-weight: 500;
    letter-spacing: -0.08em;
    line-height: 0.84;
    margin: 0;
    max-width: 11ch;
}

.em-hero h1 span {
    display: block;
    font-style: italic;
}

.em-hero__lede {
    color: var(--em-muted);
    font-size: clamp(1.05rem, 3vw, 1.4rem);
    line-height: 1.7;
    margin: 1.35rem auto 0;
    max-width: 39rem;
}

.em-hero__actions,
.em-cta__actions {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.8rem;
    width: min(100%, 25rem);
}

.em-hero__proof {
    color: var(--em-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 0.65rem;
    justify-content: center;
    letter-spacing: 0.08em;
    margin-top: 1.4rem;
    text-transform: uppercase;
}

.em-hero__proof span {
    background: rgba(255, 250, 243, 0.74);
    border: 1px solid rgba(24, 21, 18, 0.09);
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
}

.em-story,
.em-products,
.em-catering,
.em-proof {
    padding: clamp(4.5rem, 12vw, 8rem) 1.25rem;
}

.em-story {
    margin: 0 auto;
    max-width: 76rem;
}

.em-story__grid {
    display: grid;
    gap: 1rem;
}

.em-story__card,
.em-story__portrait,
.em-press,
.em-mix,
.em-service-card,
.em-cta {
    background: rgba(255, 250, 243, 0.74);
    border: 1px solid var(--em-border);
    border-radius: 1.8rem;
    box-shadow: var(--em-shadow-soft);
    overflow: hidden;
}

.em-story__card {
    padding: clamp(1.35rem, 5vw, 2.2rem);
}

.em-story__card h3,
.em-mix h3,
.em-service-card h3,
.em-product-card h3 {
    color: var(--em-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 6vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0;
}

.em-story__card p,
.em-product-card p,
.em-mix p,
.em-service-card p {
    color: var(--em-muted);
    line-height: 1.7;
    margin: 1rem 0 0;
}

.em-story__metrics {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.4rem;
}

.em-story__metrics span {
    background: rgba(185, 133, 72, 0.12);
    border: 1px solid rgba(185, 133, 72, 0.18);
    border-radius: 1rem;
    color: var(--em-muted);
    font-size: 0.78rem;
    line-height: 1.3;
    padding: 0.85rem;
}

.em-story__metrics strong {
    color: var(--em-ink);
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.em-story__portrait {
    min-height: 29rem;
    position: relative;
}

.em-story__portrait figcaption {
    background: rgba(24, 21, 18, 0.76);
    border-radius: 999px;
    bottom: 1rem;
    color: var(--em-white);
    font-size: 0.78rem;
    left: 1rem;
    padding: 0.7rem 1rem;
    position: absolute;
    right: 1rem;
    text-align: center;
}

.em-story__card--quote {
    align-content: end;
    background: var(--em-ink);
    color: var(--em-white);
    display: grid;
}

.em-story__card--quote p {
    color: var(--em-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 8vw, 3.8rem);
    letter-spacing: -0.06em;
    line-height: 0.98;
    margin: 0;
}

.em-story__card--quote span {
    color: rgba(255, 250, 243, 0.72);
    display: block;
    margin-top: 1.2rem;
}

.em-press {
    align-items: center;
    display: grid;
    gap: 1.2rem;
    margin-top: 1rem;
    padding: 1.2rem;
}

.em-press strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.05;
}

.em-press img {
    height: auto;
    max-width: 100%;
}

.em-products {
    background:
        radial-gradient(circle at 18% 10%, rgba(242, 212, 202, 0.15), transparent 24rem),
        radial-gradient(circle at 82% 75%, rgba(185, 133, 72, 0.18), transparent 28rem),
        var(--em-ink);
    color: var(--em-white);
    position: relative;
}

.em-products .em-section-heading h2,
.em-products .em-section-heading p:not(.em-eyebrow) {
    color: var(--em-white);
}

.em-products .em-section-heading p:not(.em-eyebrow) {
    opacity: 0.72;
}

.em-product-grid {
    display: grid;
    gap: 1rem;
    margin: 0 auto;
    max-width: 76rem;
}

.em-product-card {
    background: rgba(255, 250, 243, 0.08);
    border: 1px solid rgba(255, 250, 243, 0.12);
    border-radius: 1.5rem;
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    min-height: 10rem;
    overflow: hidden;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.em-product-card__image {
    overflow: hidden;
}

.em-product-card__image img,
.em-service-card img,
.em-story__portrait img,
.em-hero__media img {
    transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 700ms ease;
}

.em-product-card__body {
    padding: 1.1rem;
}

.em-product-card__body span {
    color: var(--em-blush);
    display: block;
    font-weight: 900;
    margin-bottom: 0.55rem;
}

.em-product-card h3 {
    color: var(--em-white);
    font-size: 1.35rem;
}

.em-product-card p {
    color: rgba(255, 250, 243, 0.68);
    font-size: 0.9rem;
}

.em-mix {
    display: grid;
    gap: 1rem;
    margin: 1rem auto 0;
    max-width: 76rem;
    padding: 1rem;
}

.em-mix__image {
    align-items: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(242, 212, 202, 0.95), transparent 18rem),
        var(--em-cream);
    border-radius: 1.15rem;
    display: flex;
    justify-content: center;
    min-height: 20rem;
    overflow: hidden;
    position: relative;
}

.em-mix__image::after {
    background: linear-gradient(120deg, transparent, rgba(255, 250, 243, 0.45), transparent);
    content: "";
    height: 120%;
    left: -60%;
    pointer-events: none;
    position: absolute;
    top: -10%;
    transform: rotate(14deg);
    width: 40%;
    z-index: 2;
}

.em-mix__image img {
    height: auto;
    max-height: 24rem;
    max-width: 90%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.em-mix__content {
    padding: 0.5rem 0.35rem 0.8rem;
}

.em-mix__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.2rem 0 1.4rem;
}

.em-mix__meta span {
    background: rgba(185, 133, 72, 0.14);
    border-radius: 999px;
    color: var(--em-cocoa);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.55rem 0.75rem;
    text-transform: uppercase;
}

.em-catering {
    margin: 0 auto;
    max-width: 80rem;
}

.em-catering__intro {
    margin-bottom: 2rem;
    max-width: 58rem;
}

.em-catering__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.4rem;
}

.em-catering__tags span {
    background: rgba(255, 250, 243, 0.72);
    border: 1px solid rgba(24, 21, 18, 0.1);
    border-radius: 999px;
    color: var(--em-cocoa);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    padding: 0.65rem 0.85rem;
    text-transform: uppercase;
}

.em-catering__grid {
    display: grid;
    gap: 1rem;
}

.em-service-card {
    display: grid;
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.em-service-card > img {
    overflow: hidden;
}

.em-service-card img {
    aspect-ratio: 1 / 0.76;
}

.em-service-card div {
    padding: clamp(1.25rem, 4vw, 2rem);
}

.em-service-card span {
    color: var(--em-cocoa);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.em-proof {
    padding-top: 0;
}

.em-proof__strip {
    display: grid;
    gap: 1rem;
    grid-auto-flow: column;
    margin: 0 -1.25rem;
    overflow-x: auto;
    padding: 0 1.25rem 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.em-proof__strip::-webkit-scrollbar {
    display: none;
}

.em-proof__strip img {
    background: var(--em-white);
    border: 1px solid rgba(24, 21, 18, 0.1);
    border-radius: 1.3rem;
    box-shadow: 0 1rem 2rem rgba(64, 48, 35, 0.08);
    max-width: 18rem;
    scroll-snap-align: center;
    transition: box-shadow 220ms ease, transform 220ms ease;
    width: 78vw;
}

.em-cta {
    align-items: center;
    display: grid;
    gap: 1.5rem;
    margin: 2.5rem auto 0;
    max-width: 76rem;
    padding: clamp(1.6rem, 6vw, 4rem);
}

@media (hover: hover) and (pointer: fine) {
    .em-product-card:hover,
    .em-product-card:focus-within,
    .em-service-card:hover,
    .em-service-card:focus-within,
    .em-proof__strip img:hover {
        box-shadow: var(--em-shadow-lift);
        transform: translateY(-0.35rem);
    }

    .em-product-card:hover {
        border-color: rgba(255, 250, 243, 0.24);
    }

    .em-product-card:hover img,
    .em-service-card:hover img,
    .em-story__portrait:hover img,
    .em-hero__media:hover img {
        filter: saturate(1.04);
        transform: scale(1.045);
    }

    .em-mix:hover .em-mix__image::after {
        animation: em-shine 900ms ease forwards;
    }
}

@keyframes em-shine {
    from {
        left: -60%;
    }

    to {
        left: 130%;
    }
}

@media (max-width: 639px) {
    .em-button {
        width: 100%;
    }

    .em-hero {
        min-height: auto;
    }

    .em-hero__content {
        padding-top: 3rem;
    }

    .em-hero__floating-card {
        bottom: 0.85rem;
        left: 0.85rem;
        padding: 0.85rem;
    }

    .em-hero__floating-card strong {
        font-size: 1.12rem;
    }

    .em-story__metrics {
        grid-template-columns: 1fr;
    }

    .em-product-card {
        border-radius: 1.25rem;
    }

    .em-service-card,
    .em-cta,
    .em-mix,
    .em-story__card,
    .em-story__portrait,
    .em-press {
        border-radius: 1.35rem;
    }
}

@media (min-width: 640px) {
    .em-hero__actions,
    .em-cta__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: auto;
    }

    .em-product-card {
        grid-template-columns: 11rem 1fr;
    }
}

@media (min-width: 900px) {
    .em-hero {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }

    .em-hero__media {
        height: auto;
        min-height: 100vh;
        order: 2;
    }

    .em-hero__floating-card {
        bottom: 2rem;
        left: 2rem;
    }

    .em-hero__content {
        justify-items: start;
        padding-left: clamp(2rem, 5vw, 5rem);
        padding-right: clamp(2rem, 5vw, 5rem);
        text-align: left;
    }

    .em-hero__proof {
        justify-content: flex-start;
    }

    .em-story__grid {
        grid-template-columns: 0.85fr 1.15fr;
    }

    .em-story__portrait {
        grid-row: span 2;
    }

    .em-press,
    .em-mix,
    .em-cta {
        grid-template-columns: 0.95fr 1.05fr;
    }

    .em-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .em-product-card {
        grid-template-columns: 1fr;
    }

    .em-product-card__image img {
        aspect-ratio: 1 / 0.86;
        height: auto;
    }

    .em-product-card__body {
        padding: 1.4rem;
    }

    .em-mix {
        margin-top: 1.2rem;
        padding: 1.25rem;
    }

    .em-mix__content {
        align-self: center;
        padding: clamp(1rem, 4vw, 3rem);
    }

    .em-catering__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .em-service-card--large {
        grid-row: span 2;
    }

    .em-service-card--large img {
        aspect-ratio: auto;
        min-height: 32rem;
    }

    .em-proof__strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-flow: row;
        margin: 0 auto;
        max-width: 76rem;
        overflow: visible;
        padding: 0;
    }

    .em-proof__strip img {
        max-width: none;
        width: 100%;
    }
}

@media (min-width: 900px) and (max-width: 1099px) {
    .em-hero {
        grid-template-columns: 1fr;
    }

    .em-hero__media {
        height: min(64vh, 38rem);
        min-height: 0;
        order: 0;
    }

    .em-hero__content {
        justify-items: center;
        text-align: center;
    }

    .em-hero__proof {
        justify-content: center;
    }
}

@media (min-width: 1100px) {
    .em-hero {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }

    .em-hero__media {
        height: auto;
        min-height: 100vh;
        order: 2;
    }

    .em-hero__floating-card {
        bottom: 2rem;
        left: 2rem;
    }

    .em-hero__content {
        justify-items: start;
        padding-left: clamp(2rem, 5vw, 5rem);
        padding-right: clamp(2rem, 5vw, 5rem);
        text-align: left;
    }

    .em-hero__proof {
        justify-content: flex-start;
    }
}

@media (min-width: 1180px) {
    .em-hero h1 {
        font-size: clamp(6rem, 8.2vw, 10.5rem);
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .em-reveal-ready [data-em-reveal] {
        opacity: 1;
        transform: none;
    }
}

