/* =========================================================
   NOMA
   Catálogo Digital — Página Inicial
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f2efe9;
    color: #171715;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

body,
button,
a {
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

:root {
    --bg: #f2efe9;
    --bg-soft: #e9e4dc;
    --dark: #171715;
    --dark-soft: #292825;
    --muted: #77736d;
    --line: rgba(23, 23, 21, 0.14);
    --accent: #8c6948;
    --accent-light: #b79b7d;

    --serif: "Playfair Display", serif;
    --sans: "Manrope", sans-serif;
    --mono: "DM Mono", monospace;
}

.container {
    width: min(1240px, calc(100% - 80px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;

    width: 100%;
    padding: 28px 0;

    transition:
        background 0.35s ease,
        padding 0.35s ease,
        border-color 0.35s ease;
}

.header.scrolled {
    position: fixed;

    padding: 19px 0;

    background: rgba(23, 23, 21, 0.94);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    line-height: 1;
}

.logo-main {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 500;

    letter-spacing: -0.05em;

    color: #f2efe9;
}

.logo-sub {
    margin-top: 5px;

    font-family: var(--mono);
    font-size: 7px;
    font-weight: 400;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: rgba(242, 239, 233, 0.72);
}


/* =========================================================
   NAV
========================================================= */

.nav {
    display: flex;
    align-items: center;

    gap: 34px;
}

.nav a {
    position: relative;

    color: #f2efe9;

    font-family: var(--mono);
    font-size: 9px;
    font-weight: 500;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    opacity: 0.9;

    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);

    transition:
        opacity 0.3s ease,
        color 0.3s ease;
}

.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 100%;
    height: 1px;

    background: currentColor;

    transform: scaleX(0);
    transform-origin: right;

    transition: transform 0.3s ease;
}

.nav a:hover {
    color: #d1b596;
    opacity: 1;
}

.nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: 850px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--dark);

    color: #f2efe9;
}

.hero-image {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(15, 15, 14, 0.88) 0%,
            rgba(15, 15, 14, 0.62) 42%,
            rgba(15, 15, 14, 0.25) 100%
        ),
        url("assets/hero.jpg");

    background-size: cover;
    background-position: center;

    transform: scale(1.02);

    animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {

    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1.02);
    }
}

.hero-content {
    position: relative;
    z-index: 2;

    padding-top: 80px;
}

.eyebrow {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 27px;

    font-family: var(--mono);
    font-size: 9px;

    letter-spacing: 0.18em;

    color: #d1b596;
}

.eyebrow::before {
    content: "";

    width: 30px;
    height: 1px;

    background: currentColor;

    opacity: 0.8;
}

.hero h1 {
    max-width: 720px;

    font-family: var(--serif);
    font-size: clamp(58px, 7vw, 94px);
    font-weight: 400;

    line-height: 0.98;

    letter-spacing: -0.055em;
}

.hero h1 em {
    font-style: italic;
    color: #d4bea3;
}

.hero-description {
    max-width: 470px;

    margin-top: 30px;

    color: rgba(242, 239, 233, 0.72);

    font-size: 14px;
    line-height: 1.8;
}

.hero-button {
    display: inline-flex;
    align-items: center;

    margin-top: 38px;

    padding: 15px 24px;

    border: 1px solid rgba(242, 239, 233, 0.35);

    font-family: var(--mono);
    font-size: 9px;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.hero-button:hover {
    background: #f2efe9;

    color: var(--dark);

    border-color: #f2efe9;
}


/* =========================================================
   SECTION LABEL
========================================================= */

.section-label {
    display: flex;
    align-items: center;

    gap: 12px;

    font-family: var(--mono);
    font-size: 8px;

    letter-spacing: 0.15em;
    text-transform: uppercase;

    color: var(--muted);
}

.section-label span:first-child {
    color: var(--accent);
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    padding: 150px 0 160px;
}

.intro-grid {
    display: grid;

    grid-template-columns: 0.35fr 1fr;

    gap: 80px;
}

.intro-content {
    max-width: 900px;

    margin-left: auto;
}

.intro h2 {
    max-width: 760px;

    font-family: var(--serif);
    font-size: clamp(50px, 6vw, 78px);
    font-weight: 400;

    line-height: 0.98;

    letter-spacing: -0.05em;
}

.intro h2 em {
    color: var(--accent);

    font-style: italic;
}

.intro-content p {
    max-width: 540px;

    margin-top: 38px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.9;
}

.intro-content p + p {
    margin-top: 18px;
}


/* =========================================================
   CATEGORIES
========================================================= */

.categories {
    padding: 120px 0 150px;

    background: var(--bg-soft);
}

.section-heading {
    display: grid;

    grid-template-columns: 0.35fr 1fr;

    gap: 80px;
}

.section-heading h2 {
    max-width: 680px;

    font-family: var(--serif);
    font-size: clamp(48px, 5.5vw, 72px);
    font-weight: 400;

    line-height: 1;

    letter-spacing: -0.05em;
}

.section-heading h2 em {
    font-style: italic;
    color: var(--accent);
}


/* =========================================================
   CATEGORY GRID
========================================================= */

.category-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    margin-top: 90px;

    border-top: 1px solid var(--line);
}

.category-card {
    min-height: 230px;

    padding: 25px 22px;

    border-right: 1px solid var(--line);

    display: flex;
    flex-direction: column;

    transition:
        background 0.35s ease,
        transform 0.35s ease;
}

.category-card:first-child {
    border-left: 1px solid var(--line);
}

.category-card span {
    font-family: var(--mono);
    font-size: 8px;

    color: var(--accent);
}

.category-card h3 {
    margin-top: auto;

    font-family: var(--serif);
    font-size: 30px;
    font-weight: 400;
}

.category-card p {
    margin-top: 8px;

    color: var(--muted);

    font-size: 11px;
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.45);

    transform: translateY(-5px);
}


/* =========================================================
   PRODUCTS — DESTAQUES
========================================================= */

.products {
    padding: 150px 0 170px;
}

.products-heading {
    align-items: start;
}


/* GRID */

.product-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 60px;
    row-gap: 90px;

    margin-top: 90px;
}


/*
   IMPORTANTE:
   Os produtos da seção de destaques ficam
   todos alinhados. Não existe deslocamento
   vertical nos cards pares.
*/

.products .product-card {
    margin-top: 0;
}

.products .product-card:nth-child(even) {
    margin-top: 0;
}


/* IMAGE */

.product-image {
    position: relative;

    display: block;

    overflow: hidden;

    aspect-ratio: 4 / 5;

    background: #ddd7ce;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.045);
}


/* INFO */

.product-info {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 25px;

    padding-top: 22px;
}

.product-category {
    display: block;

    font-family: var(--mono);
    font-size: 8px;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--accent);
}

.product-info h3 {
    margin-top: 7px;

    font-family: var(--serif);
    font-size: 30px;
    font-weight: 400;

    line-height: 1.05;

    letter-spacing: -0.03em;
}

.product-info p {
    margin-top: 9px;

    font-family: var(--mono);
    font-size: 10px;

    color: var(--muted);
}


/* BUTTON */

.product-button {
    flex-shrink: 0;

    padding: 10px 15px;

    border: 1px solid var(--line);

    background: transparent;

    color: var(--dark);

    font-family: var(--mono);
    font-size: 8px;

    letter-spacing: 0.04em;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.product-button:hover {
    background: var(--dark);

    color: #f2efe9;

    border-color: var(--dark);
}


/* =========================================================
   BOTÃO VER TODOS
========================================================= */

.products-footer {
    display: flex;
    justify-content: center;

    margin-top: 110px;
}

.view-all-button {
    display: inline-flex;
    align-items: center;

    gap: 16px;

    padding: 16px 24px;

    border: 1px solid var(--dark);

    background: transparent;

    color: var(--dark);

    font-family: var(--mono);
    font-size: 8px;

    letter-spacing: 0.1em;
    text-transform: uppercase;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        gap 0.3s ease;
}

.view-all-button span {
    font-size: 14px;

    transition: transform 0.3s ease;
}

.view-all-button:hover {
    gap: 22px;

    background: var(--dark);

    color: #f2efe9;
}

.view-all-button:hover span {
    transform: translate(3px, -3px);
}


/* =========================================================
   HOW IT WORKS
========================================================= */

.how {
    padding: 140px 0;

    background: var(--dark);

    color: #f2efe9;
}

.steps {
    margin-top: 80px;

    border-top: 1px solid rgba(242, 239, 233, 0.16);
}

.step {
    display: grid;

    grid-template-columns: 55px 1fr;

    gap: 25px;

    padding: 32px 0;

    border-bottom: 1px solid rgba(242, 239, 233, 0.16);
}

.step > span {
    font-family: var(--mono);
    font-size: 9px;

    color: #d1b596;
}

.step h3 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
}

.step p {
    max-width: 420px;

    margin-top: 9px;

    color: rgba(242, 239, 233, 0.55);

    font-size: 12px;
    line-height: 1.7;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    padding: 150px 0 160px;
}

.about-grid {
    display: grid;

    grid-template-columns: 0.35fr 1fr;

    gap: 80px;
}

.about-content {
    max-width: 900px;
}

.about-content h2 {
    max-width: 760px;

    font-family: var(--serif);
    font-size: clamp(48px, 5.8vw, 76px);
    font-weight: 400;

    line-height: 0.98;

    letter-spacing: -0.05em;
}

.about-content p {
    max-width: 540px;

    margin-top: 38px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.9;
}

.about-content p + p {
    margin-top: 18px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    padding: 170px 0;

    background: #ded8cf;
}

.contact-inner {
    max-width: 900px;

    margin: 0 auto;

    text-align: center;
}

.contact-inner .section-label {
    justify-content: center;
}

.contact-inner h2 {
    margin-top: 60px;

    font-family: var(--serif);
    font-size: clamp(54px, 7vw, 92px);
    font-weight: 400;

    line-height: 0.96;

    letter-spacing: -0.055em;
}

.contact-inner p {
    max-width: 480px;

    margin: 30px auto 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.8;
}

.contact-button {
    display: inline-flex;
    align-items: center;

    gap: 15px;

    margin-top: 38px;

    padding: 16px 25px;

    background: var(--dark);

    color: #f2efe9;

    font-family: var(--mono);
    font-size: 9px;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.contact-button:hover {
    background: var(--accent);

    transform: translateY(-2px);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 75px 0 25px;

    background: #121211;

    color: #f2efe9;
}

.footer-inner {
    display: grid;

    grid-template-columns: 1fr auto;

    gap: 50px;

    padding-bottom: 55px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links {
    display: flex;
    align-items: flex-start;

    gap: 26px;

    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(242, 239, 233, 0.55);

    font-family: var(--mono);
    font-size: 8px;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: #f2efe9;
}

.footer-bottom {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 22px;

    color: rgba(242, 239, 233, 0.35);

    font-family: var(--mono);
    font-size: 7px;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* =========================================================
   REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(28px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .container {
        width: min(100% - 50px, 900px);
    }

    .nav {
        gap: 22px;
    }

    .intro-grid,
    .about-grid {
        grid-template-columns: 0.3fr 1fr;

        gap: 45px;
    }

    .section-heading {
        grid-template-columns: 0.3fr 1fr;

        gap: 45px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        border-bottom: 1px solid var(--line);
    }

    .category-card:nth-child(2) {
        border-right: 0;
    }

    .product-grid {
        column-gap: 35px;
        row-gap: 70px;
    }

    .products .product-card,
    .products .product-card:nth-child(even) {
        margin-top: 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-links {
        gap: 20px;
    }

    .footer-bottom {
        grid-column: auto;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .container {
        width: calc(100% - 36px);
    }


    /* HEADER */

    .header {
        padding: 21px 0;
    }

    .header.scrolled {
        padding: 17px 0;
    }

    .logo-main {
        font-size: 1.55rem;
    }

    .logo-sub {
        font-size: 6px;
    }

    .nav {
        gap: 13px;
    }

    .nav a {
        font-size: 7px;

        letter-spacing: 0.05em;
    }


    /* HERO */

    .hero {
        min-height: 760px;
    }

    .hero-image {
        background:
            linear-gradient(
                180deg,
                rgba(15, 15, 14, 0.52) 0%,
                rgba(15, 15, 14, 0.72) 60%,
                rgba(15, 15, 14, 0.90) 100%
            ),
            url("assets/hero.jpg");

        background-position: 58% center;
    }

    .hero-content {
        padding-top: 80px;
    }

    .hero h1 {
        font-size: clamp(50px, 14vw, 70px);
    }

    .hero-description {
        font-size: 13px;
    }


    /* INTRO */

    .intro {
        padding: 100px 0;
    }

    .intro-grid,
    .about-grid {
        display: block;
    }

    .intro-content {
        margin-top: 55px;
    }

    .intro h2 {
        font-size: clamp(44px, 13vw, 62px);
    }


    /* CATEGORIES */

    .categories {
        padding: 90px 0 100px;
    }

    .section-heading {
        display: block;
    }

    .section-heading h2 {
        margin-top: 35px;

        font-size: clamp(44px, 13vw, 60px);
    }

    .category-grid {
        grid-template-columns: 1fr;

        margin-top: 55px;
    }

    .category-card {
        min-height: 150px;

        border-left: 1px solid var(--line);
        border-right: 1px solid var(--line);
    }

    .category-card:nth-child(2) {
        border-right: 1px solid var(--line);
    }


    /* PRODUCTS */

    .products {
        padding: 100px 0 110px;
    }

    .products-heading {
        display: block;
    }

    .view-all {
        margin-top: 35px;
    }

    .product-grid {
        grid-template-columns: 1fr;

        gap: 70px;

        margin-top: 60px;
    }

    .products .product-card,
    .products .product-card:nth-child(even) {
        margin-top: 0;
    }

    .product-image {
        aspect-ratio: 4 / 5;
    }

    .product-info {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

    .product-info h3 {
        font-size: 27px;
    }

    .product-button {
        padding: 9px 12px;
    }

    .products-footer {
        margin-top: 70px;
    }


    /* HOW */

    .how {
        padding: 100px 0;
    }

    .steps {
        margin-top: 55px;
    }

    .step {
        grid-template-columns: 35px 1fr;

        gap: 15px;
    }

    .step h3 {
        font-size: 23px;
    }


    /* ABOUT */

    .about {
        padding: 100px 0;
    }

    .about-content {
        margin-top: 55px;
    }

    .about-content h2 {
        font-size: clamp(44px, 13vw, 62px);
    }


    /* CONTACT */

    .contact {
        padding: 110px 0;
    }

    .contact-inner h2 {
        margin-top: 40px;

        font-size: clamp(48px, 14vw, 68px);
    }


    /* FOOTER */

    .footer {
        padding-top: 60px;
    }

    .footer-inner {
        gap: 40px;

        padding-bottom: 45px;
    }

    .footer-links {
        display: grid;

        grid-template-columns: repeat(2, 1fr);

        gap: 18px;
    }

    .footer-bottom {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }
}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 420px) {

    .nav {
        gap: 9px;
    }

    .nav a {
        font-size: 6.5px;
    }

    .hero {
        min-height: 700px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .product-grid {
        gap: 55px;
    }

    .product-info h3 {
        font-size: 25px;
    }

    .contact-inner h2 {
        font-size: 49px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

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