/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #252525;
    background: #fff;
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid #e9e9e9;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    font-weight: 400;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 600;
    transition: opacity .2s;
}

.main-nav a:hover {
    opacity: .55;
}

.search-button,
.menu-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.search-button {
    font-size: 18px;
}

.menu-toggle {
    display: none;
    font-size: 25px;
}


/* =========================
   SEARCH
========================= */

.search-panel {
    display: none;
    padding: 20px 0;
    background: #f5f4ef;
}

.search-panel.active {
    display: block;
}

.search-form {
    display: flex;
    max-width: 700px;
    margin: auto;
}

.search-form input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    outline: none;
}

.search-form button {
    padding: 15px 25px;
    border: 0;
    background: #222;
    color: #fff;
    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    background: #f4f2eb;
    padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 {
    max-width: 650px;
    margin: 18px 0;
    font-size: clamp(44px, 5vw, 70px);
    line-height: 1.02;
    letter-spacing: -3px;
}

.hero p {
    max-width: 540px;
    color: #606060;
    font-size: 18px;
    margin-bottom: 30px;
}

.button {
    display: inline-block;
    padding: 14px 25px;
    background: #222;
    color: #fff;
    font-weight: 700;
    border-radius: 3px;
}

.hero-image {
    min-height: 500px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 90px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 35px;
}

.section-heading h2 {
    max-width: 700px;
    margin-top: 8px;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.section-heading > a {
    font-weight: 700;
}


/* =========================
   ARTICLES
========================= */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.article-card {
    background: #fff;
    border: 1px solid #e9e9e9;
    transition: transform .2s, box-shadow .2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,.07);
}

.article-image {
    height: 245px;
    overflow: hidden;
    background: #ddd;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 25px;
}

.article-category {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.article-content h3 {
    margin: 10px 0;
    font-size: 21px;
    line-height: 1.2;
}

.article-content p {
    color: #666;
    margin-bottom: 18px;
}

.article-content a {
    font-weight: 700;
}


/* =========================
   CATEGORIES
========================= */

.categories-section {
    padding: 90px 0;
    background: #f7f7f5;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.category-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #e9e9e9;
    transition: transform .2s, box-shadow .2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.category-card span {
    font-size: 30px;
}

.category-card h3 {
    margin: 15px 0 5px;
    font-size: 20px;
}

.category-card p {
    color: #777;
}


/* =========================
   POPULAR
========================= */

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #ddd;
}

.popular-item {
    display: flex;
    gap: 20px;
    padding: 30px 20px;
    border-bottom: 1px solid #ddd;
}

.popular-item > span {
    font-size: 28px;
    font-weight: 800;
}

.popular-item small {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.popular-item h3 {
    margin-top: 7px;
    font-size: 18px;
    line-height: 1.25;
}


/* =========================
   NEWSLETTER
========================= */

.newsletter {
    padding: 80px 0;
    background: #222;
    color: #fff;
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.newsletter h2 {
    max-width: 600px;
    margin: 12px 0;
    font-size: 38px;
    line-height: 1.1;
}

.newsletter p {
    color: #ccc;
}

.newsletter-form {
    min-width: 420px;
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 16px;
    border: 0;
    outline: none;
}

.newsletter-form button {
    padding: 16px 22px;
    border: 0;
    background: #fff;
    color: #222;
    font-weight: 700;
    cursor: pointer;
}


/* =========================
   ABOUT
========================= */

.about-section {
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.about-grid h2 {
    max-width: 550px;
    margin-top: 15px;
    font-size: 40px;
    line-height: 1.1;
}

.about-grid p {
    color: #666;
    margin-bottom: 18px;
}

.text-link {
    font-weight: 700;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    background: #111;
    color: #fff;
    padding-top: 65px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 55px;
}

.footer-logo {
    display: inline-block;
}

.site-footer p {
    max-width: 320px;
    color: #aaa;
    margin-top: 15px;
}

.site-footer h3 {
    margin-bottom: 15px;
    font-size: 15px;
}

.site-footer a:not(.logo) {
    display: block;
    color: #aaa;
    margin-bottom: 9px;
    font-size: 14px;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
}

.footer-bottom p {
    margin: 0;
    max-width: none;
    font-size: 13px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .main-nav {
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        padding: 20px;
        background: #fff;
        border-bottom: 1px solid #eee;

        display: none;
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .main-nav {
        order: 4;
    }

    .search-button {
        margin-left: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 350px;
    }

    .hero-image img {
        height: 350px;
    }

    .articles-grid,
    .categories-grid,
    .popular-grid {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form {
        min-width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 600px) {

    .header-inner {
        min-height: 70px;
    }

    .hero {
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .section,
    .categories-section {
        padding: 60px 0;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .articles-grid,
    .categories-grid,
    .popular-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-grid h2 {
        font-size: 32px;
    }

}
/* ========================================================
   PATCH MOBILE FINAL CASA JARDIN
======================================================== */

.section-heading > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 600px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: calc(100% - 32px);
        max-width: 100%;
    }

    .header-inner {
        min-height: 68px;
        gap: 12px;
    }

    .logo {
        font-size: 22px;
        white-space: nowrap;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        font-size: 24px;
    }

    .search-button {
        margin-left: 0;
    }

    .main-nav {
        top: 68px;
        width: 100%;
        padding: 15px 18px;
        background: #fff;
    }

    .main-nav a {
        width: 100%;
        padding: 12px 0;
        color: #252525;
        text-decoration: none;
        border-bottom: 1px solid #eee;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .section-heading > a {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 12px 18px;
        background: #222;
        color: #fff !important;
        border-radius: 4px;
    }

    .articles-grid,
    .categories-grid,
    .popular-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        width: 100%;
    }

    .article-card .article-image {
        height: auto;
    }

    .article-card .article-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: clamp(36px, 11vw, 46px);
        line-height: 1.04;
    }

    .hero-image,
    .hero-image img {
        height: auto;
        min-height: 0;
    }

    .hero-image img {
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .newsletter-form {
        width: 100%;
        min-width: 0;
    }
}


/* =========================================================
   SUBLINKS CASA JARDIN
========================================================= */

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-dropdown-arrow {
    display: inline-block;
    font-size: 11px;
    transition: transform .2s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);

    width: 250px;
    padding: 10px;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 6px;

    box-shadow: 0 18px 45px rgba(0,0,0,.12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;

    z-index: 2000;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav-dropdown-menu a {
    display: block;
    width: 100%;

    margin: 0 !important;
    padding: 11px 13px;

    color: #252525 !important;
    text-decoration: none;

    border-radius: 4px;

    font-size: 14px;
    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease;
}

.nav-dropdown-menu a:hover {
    background: #f4f2eb;
    color: #111 !important;
}

.nav-dropdown-all {
    margin-top: 7px !important;
    padding-top: 13px !important;

    border-top: 1px solid #e8e8e8;
    border-radius: 0 0 4px 4px !important;

    font-weight: 800 !important;
}

/* Desktop */

@media (min-width: 901px) {

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateX(-50%) translateY(0);
    }

    .nav-dropdown:hover .nav-dropdown-arrow,
    .nav-dropdown:focus-within .nav-dropdown-arrow {
        transform: rotate(180deg);
    }
}


/* =========================================================
   SUBLINKS MOBILE
========================================================= */

@media (max-width: 900px) {

    .nav-dropdown {
        width: 100%;
        display: block;
    }

    .nav-dropdown-trigger {
        width: 100%;
        display: flex !important;
        align-items: center;
        justify-content: space-between;

        padding: 13px 0 !important;
    }

    .nav-dropdown-menu {
        position: static;

        width: 100%;
        padding: 0 0 0 14px;

        transform: none;

        background: #f8f8f6;
        border: 0;
        border-radius: 0;

        box-shadow: none;

        opacity: 1;
        visibility: visible;

        pointer-events: auto;

        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown.open .nav-dropdown-arrow {
        transform: rotate(180deg);
    }

    .nav-dropdown-menu a {
        padding: 12px 14px !important;

        border-bottom: 1px solid #ececec !important;

        font-size: 14px !important;
    }

    .nav-dropdown-menu a:last-child {
        border-bottom: 0 !important;
    }

    .nav-dropdown-all {
        margin-top: 0 !important;
        border-top: 0 !important;
    }
}


/* Telas muito pequenas */

@media (max-width: 600px) {

    .nav-dropdown-menu {
        padding-left: 10px;
    }

    .nav-dropdown-menu a {
        font-size: 14px !important;
    }
}

