/* =========================================================
   THE WOUNDED LEGACY
   CATÁLOGO DE ÁRVORES GENEALÓGICAS
========================================================= */

:root {
    --tree-dark: #15182B;
    --tree-dark-2: #101321;
    --tree-dark-3: #0B0E1A;
    --tree-gold: #B29758;
    --tree-cream: #E8E2D5;
    --tree-text: #CBC6BD;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--tree-dark);
    color: var(--tree-text);
    font-family: 'Poppins', sans-serif;
}

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


/* HERO */

.trees-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        url('../images/hero.png')
        center 38% / cover no-repeat;
    border-bottom:
        1px solid
        rgba(178,151,88,.14);
}

.trees-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(8,12,28,.96),
            rgba(10,14,31,.84) 48%,
            rgba(12,16,33,.64)
        ),
        linear-gradient(
            to bottom,
            rgba(10,13,28,.22),
            rgba(21,24,43,.94)
        );
}

.trees-hero-inner {
    position: relative;
    z-index: 2;
    width:
        min(
            1180px,
            calc(100% - 70px)
        );
    margin: 0 auto;
    padding: 46px 0;
}

.trees-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--tree-gold);
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.trees-eyebrow span {
    width: 30px;
    height: 1px;
    background: rgba(178,151,88,.68);
}

.trees-hero h1 {
    margin: 0;
    color: var(--tree-cream);
    font-family: 'Cinzel', serif;
    font-size:
        clamp(
            42px,
            4vw,
            65px
        );
    line-height: 1.04;
    font-weight: 400;
    text-transform: uppercase;
}

.trees-hero h1 strong {
    display: block;
    color: var(--tree-gold);
    font-weight: 500;
}

.trees-title-divider {
    position: relative;
    width: 300px;
    height: 24px;
    margin: 14px 0;
}

.trees-title-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background:
        linear-gradient(
            to right,
            var(--tree-gold),
            transparent
        );
}

.trees-title-divider span {
    position: absolute;
    top: 50%;
    left: 34%;
    width: 8px;
    height: 8px;
    border:
        1px solid
        var(--tree-gold);
    transform:
        translateY(-50%)
        rotate(45deg);
}

.trees-hero p {
    max-width: 720px;
    margin: 0;
    color: #DDD6C8;
    font-size: 12px;
    line-height: 1.8;
}


/* PAGE */

.trees-page {
    width:
        min(
            1180px,
            calc(100% - 70px)
        );
    margin: 0 auto;
    padding: 58px 0 80px;
}

.trees-heading {
    display: grid;
    grid-template-columns:
        minmax(0,1fr)
        auto;
    align-items: end;
    gap: 30px;
    margin-bottom: 27px;
    padding-bottom: 25px;
    border-bottom:
        1px solid
        rgba(178,151,88,.14);
}

.section-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--tree-gold);
    font-family: 'Cinzel', serif;
    font-size: 8px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.trees-heading h2 {
    margin: 0 0 8px;
    color: var(--tree-cream);
    font-family: 'Cinzel', serif;
    font-size: 27px;
    font-weight: 500;
    text-transform: uppercase;
}

.trees-heading p {
    margin: 0;
    color: rgba(203,198,189,.66);
    font-size: 10px;
}

.trees-count {
    min-width: 105px;
    padding: 13px 17px;
    text-align: center;
    border:
        1px solid
        rgba(178,151,88,.17);
    background:
        rgba(12,15,28,.4);
    color: var(--tree-gold);
    font-family: 'Cinzel', serif;
    font-size: 21px;
}

.trees-count span {
    display: block;
    margin-top: 4px;
    color: rgba(203,198,189,.45);
    font-family: 'Poppins', sans-serif;
    font-size: 7px;
    letter-spacing: .55px;
    text-transform: uppercase;
}


/* SEARCH */

.trees-tools {
    margin-bottom: 25px;
}

.trees-search {
    width: 100%;
    display: grid;
    grid-template-columns:
        19px
        minmax(0,1fr)
        auto
        auto;
    align-items: center;
    gap: 10px;
    padding: 8px 9px 8px 13px;
    border:
        1px solid
        rgba(178,151,88,.18);
    background:
        rgba(12,15,28,.48);
}

.trees-search svg {
    width: 16px;
    height: 16px;
    fill: rgba(178,151,88,.68);
}

.trees-search input {
    width: 100%;
    height: 34px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tree-cream);
    font-size: 10px;
}

.trees-search button,
.trees-clear {
    min-height: 34px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border:
        1px solid
        rgba(178,151,88,.31);
    background:
        rgba(178,151,88,.075);
    color: var(--tree-gold);
    font-family: 'Cinzel', serif;
    font-size: 8px;
    letter-spacing: .6px;
    text-transform: uppercase;
    cursor: pointer;
}

.trees-clear {
    background: transparent;
    border-color:
        rgba(203,198,189,.13);
    color:
        rgba(203,198,189,.55);
}


/* GRID */

.houses-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );
    gap: 15px;
}

.house-card {
    min-width: 0;
}

.house-card-frame {
    height: 100%;
    display: grid;
    grid-template-columns:
        125px
        minmax(0,1fr);
    border:
        1px solid
        rgba(178,151,88,.21);
    background:
        linear-gradient(
            135deg,
            rgba(25,29,49,.94),
            rgba(16,19,34,.94)
        );
    overflow: hidden;
    transition:
        border-color .24s ease,
        transform .24s ease,
        box-shadow .24s ease;
}

.house-card:hover .house-card-frame {
    transform: translateY(-2px);
    border-color:
        rgba(178,151,88,.44);
    box-shadow:
        0 12px 28px
        rgba(0,0,0,.17);
}

.house-card-coat {
    min-height: 285px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 17px;
    background:
        radial-gradient(
            circle,
            rgba(178,151,88,.08),
            transparent 58%
        ),
        #0D111E;
    border-right:
        1px solid
        rgba(178,151,88,.15);
}

.house-card-coat img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.house-card-monogram {
    color:
        rgba(178,151,88,.44);
    font-family:
        'Cinzel Decorative',
        serif;
    font-size: 46px;
}

.house-card-content {
    min-width: 0;
    padding: 17px;
}

.house-card-label {
    display: block;
    margin-bottom: 4px;
    color:
        rgba(178,151,88,.52);
    font-size: 6.5px;
    letter-spacing: .75px;
    text-transform: uppercase;
}

.house-card h3 {
    margin: 0;
    color: var(--tree-cream);
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 500;
}

.house-card-divider {
    position: relative;
    width: 100%;
    height: 17px;
    margin: 3px 0 7px;
}

.house-card-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 120px;
    height: 1px;
    background:
        linear-gradient(
            to right,
            rgba(178,151,88,.64),
            transparent
        );
}

.house-card-divider span {
    position: absolute;
    top: 50%;
    left: 43px;
    width: 5px;
    height: 5px;
    border:
        1px solid
        rgba(178,151,88,.7);
    transform:
        translateY(-50%)
        rotate(45deg);
}

.house-card-motto {
    min-height: 38px;
    margin: 0 0 12px;
    color:
        rgba(232,226,213,.75);
    font-family: 'Cinzel', serif;
    font-size: 9px;
    line-height: 1.55;
    font-style: italic;
}


.house-card-facts {
    display: grid;
    grid-template-columns:
        minmax(0,.8fr)
        minmax(0,1.2fr);
    gap: 12px;
    margin-bottom: 10px;
    padding:
        9px 0 10px;
    border-top:
        1px solid
        rgba(178,151,88,.09);
    border-bottom:
        1px solid
        rgba(178,151,88,.09);
}

.house-card-facts > div {
    min-width: 0;
}

.house-card-facts small {
    display: block;
    margin-bottom: 3px;
    color:
        rgba(178,151,88,.48);
    font-size: 5.8px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.house-card-facts strong {
    display: -webkit-box;
    overflow: hidden;
    color:
        rgba(232,226,213,.82);
    font-family: 'Cinzel', serif;
    font-size: 7.7px;
    line-height: 1.4;
    font-weight: 500;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.house-card-meta {
    display: grid;
    grid-template-columns:
        minmax(0,1fr)
        auto
        auto;
    gap: 10px;
    padding-top: 0;
}

.house-card-meta small {
    display: block;
    margin-bottom: 3px;
    color:
        rgba(178,151,88,.45);
    font-size: 5.8px;
    letter-spacing: .5px;
}

.house-card-meta strong {
    display: block;
    overflow: hidden;
    color:
        rgba(232,226,213,.78);
    font-family: 'Cinzel', serif;
    font-size: 8px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.house-card-action {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    color: var(--tree-gold);
    font-family: 'Cinzel', serif;
    font-size: 7px;
    letter-spacing: .45px;
    text-transform: uppercase;
}

.trees-empty {
    padding: 70px 30px;
    text-align: center;
    border:
        1px solid
        rgba(178,151,88,.15);
    background:
        rgba(13,16,29,.42);
}

.trees-empty > span {
    color:
        rgba(178,151,88,.58);
    font-size: 24px;
}

.trees-empty h3 {
    margin: 10px 0;
    color: var(--tree-cream);
    font-family: 'Cinzel', serif;
    font-size: 23px;
}

.trees-empty p {
    color:
        rgba(203,198,189,.62);
    font-size: 9px;
}


/* RESPONSIVE */

@media (max-width: 1100px) {

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

}

@media (max-width: 760px) {

    .trees-hero-inner,
    .trees-page {
        width:
            calc(100% - 36px);
    }

    .trees-heading {
        grid-template-columns:
            1fr;
    }

    .trees-count {
        width: 100%;
    }

    .houses-grid {
        grid-template-columns:
            1fr;
    }

}

@media (max-width: 520px) {

    .trees-hero-inner,
    .trees-page {
        width:
            calc(100% - 26px);
    }

    .trees-search {
        grid-template-columns:
            18px
            minmax(0,1fr);
    }

    .trees-search button,
    .trees-clear {
        grid-column:
            1 / -1;
    }

    .house-card-frame {
        grid-template-columns:
            100px
            minmax(0,1fr);
    }

    .house-card-coat {
        min-height: 270px;
    }

    .house-card-facts {
        grid-template-columns: 1fr;
        gap: 7px;
    }

}


/* FULL HD */

@media
(min-width: 1600px)
and (min-height: 900px)
and (max-height: 1200px) {

    .trees-hero-inner,
    .trees-page {
        width:
            min(
                1280px,
                calc(100% - 90px)
            );
    }

    .trees-hero {
        min-height: 340px;
    }

}
