/********** home.html **********/



.home {
    --home-card-title-size: clamp(1.12rem, 2vw, 1.25rem);
    --home-card-text-size: 1rem;
    --home-card-title-line-height: 1.18;
    --home-card-text-line-height: 1.5;

    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: calc(100vh - var(--header-height) - 18rem);
    animation: fadeIn 0.3s ease-out 0s forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(26rem, 58vh, 40rem);
    position: relative;
    margin-bottom: 1.25rem;
    overflow: hidden;
    padding: 3rem 0;
    background-color: #182e55;
    background-image: url("../svg/home-hero-day.edda5ea62a4d.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[data-apus-theme="dark"] .hero {
    background-color: #142b1b;
    background-image: url("../svg/home-hero-night.098ba3d6856c.svg");
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    position: relative;
    max-width: 95%;
    width: calc(80rem - 2rem);
    padding: 0 clamp(0.75rem, 3vw, 2rem);
}

.hero h1 {
    font-family: 'Roboto', 'Signika', 'Arsenal', sans-serif;
    color: #ffffff;
    font-size: clamp(2.5rem, 3.5vw + 1rem, 4rem);
    letter-spacing: -0.025em;
    font-weight: 500;
    line-height: 1.08;
    max-width: 15ch;
    margin: 0 0 1.25rem;
    text-wrap: balance;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-family: 'Roboto', 'Roboto-Condensed', 'Signika', 'Arsenal', sans-serif;
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0;
    margin: 0 0 2rem;
    text-align: left;
    line-height: 1.65;
    max-width: 37ch;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Keep the original shared button styles below. */
.button-container {
    display: flex;
    justify-content: center; 
    gap: 1.5rem; 
    align-items: center;
}

.home :is(.button1, .button2, .button3) {
    padding: 0.5rem 1.5rem;
    color: var(--action-primary-text);
    border-radius: var(--radius-control);
    background: var(--action-primary-bg);
    text-decoration: none;
    font-family: 'Signika', 'Arsenal', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    letter-spacing: 0;
    border: none;
    cursor: pointer;
}
.home :is(.button1, .button2, .button3):hover {
    background-color: var(--action-primary-hover);
    color: var(--action-primary-text);
    text-decoration: none;
    box-shadow: -4px 4px 12px rgba(0,0,0,0.15);
}
.home :is(.button1, .button2, .button3):focus-visible {
    outline: 2px solid var(--control-focus);
    outline-offset: 3px;
}
.button1 {
    animation: fadeIn 1s ease-out 0s forwards;
    box-shadow: -4px 4px 16px rgba(0,0,0,0.2);
}

@media (max-width: 928px) {
    .hero-container {
        width: 90%;
        margin: 0;
    }
}



@media (max-width: 768px) {
    .hero {
        background-position: 24% center;
    }
}

/* home-services1 */
.home-services1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0.75rem 0 3rem;
    position: relative;
}

.home-services1-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(80rem - 2rem);
    max-width: 95%;
    margin: 0 auto;
    gap: 0.75rem;
}

.home-services1-intro {
    width: 100%;
    text-align: center;
    margin: 0.35rem 0 0.5rem;
    color: var(--text-primary);
}

.home-services1-intro span {
    display: inline-block;
    font-family: 'Roboto', 'Signika', 'Arsenal', sans-serif;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.home-services1-intro h2 {
    font-family: 'Roboto', 'Signika', 'Arsenal', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -1px;
    font-weight: 500;
    line-height: 1.08;
    margin: 0 0 1.5rem;
    color: var(--text-primary);
}

.home-services1-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin: 0 auto;
    align-items: start;
}

.home-services1-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    width: 100%;
    text-align: center;
}

.home-services1-card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 7.5rem;
    overflow: hidden;
    border-radius: var(--radius-card);
}

.home-services1-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.home-services1-card-media--illustration img {
    object-fit: contain;
}

.home-services1-card-content {
    width: 100%;
    padding: 0.7rem 0.35rem 0;
    text-align: center;
}

.home-services1-card-content h3 {
    font-family: 'Roboto', 'Roboto-Condensed', 'Signika', 'Arsenal', sans-serif;
    font-size: var(--home-card-title-size);
    font-weight: 500;
    color: var(--text-primary);
    line-height: var(--home-card-title-line-height);
    margin: 0 0 0.4rem;
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: auto;
}

.home-services1-card-content p {
    font-family: 'Roboto', 'Roboto-Condensed', 'Signika', 'Arsenal', sans-serif;
    font-size: var(--home-card-text-size);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: var(--home-card-text-line-height);
    margin: 0;
    overflow-wrap: break-word;
    hyphens: auto;
}

.home-services1-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.home-services1-actions .button2 {
    grid-column: 2;
    justify-self: center;
    margin-top: 1.5rem;
}

@media (max-width: 928px) {
    .home {
        --home-card-title-size: clamp(1rem, 1vw + 0.9rem, 1.125rem);
        --home-card-text-size: clamp(0.82rem, 0.3vw + 0.8rem, 0.9rem);
    }
}

@media (max-width: 628px) {
    .home-services1 {
        margin-bottom: 0.85rem;
    }

    .home-services1-container,
    .home-services1-grid,
    .home-services1-actions {
        gap: 0.6rem;
    }

    .home-services1-card-media {
        border-radius: var(--radius-media);
        max-height: 6rem;
    }

    .home-services1-card-content {
        padding: 0.5rem 0.15rem 0;
    }
}

@media (max-width: 1024px) {
    .home-services1-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 360px) {
    .home-services1-grid,
    .home-services1-actions {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .home-services1-card:last-child {
        grid-column: 1 / -1;
        width: calc((100% - 0.6rem) / 2);
        justify-self: center;
    }

    .home-services1-actions .button2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 360px) {
    .home-services1-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-services1-card,
    .home-services1-card:last-child {
        width: min(100%, 16rem);
        justify-self: center;
    }
}


.home-about {
    position: relative;
    width: 100%;
    min-height: clamp(26rem, 58vh, 40rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url("/static/images/drone_jangada.bb50e4768176.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-about-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.437) 35%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
}

.home-about-container {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 4rem) 0;
}

.home-about-content {
    width: min(480px, 100%);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    color: #ffffff;
    padding: 2rem;
}

.home-about-kicker {
    display: inline-block;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.92;
}

.home-about-title {
    margin: 0;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    line-height: 1.08;
    font-weight: 500;
    max-width: 16ch;
}

.home-about-text {
    margin: 0;
    max-width: 37ch;
    color: rgba(255, 255, 255, 0.94);
    font-family: 'Roboto', 'Roboto-Condensed', 'Signika', 'Arsenal', sans-serif;
    font-size: clamp(1rem, 2vw, 1.12rem);
    font-weight: 300;
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: 0;
    text-align: left;
    line-height: 1.87rem;
}

.home-about .button3 { width: fit-content; display: inline-block; }

@media (max-width: 768px) {

    .hero {
        margin-bottom: 0.75rem;
    }

    .home-about {
        min-height: clamp(320px, 68vw, 520px);
        background-position: center;
    }

    .home-about-container {
        width: min(100% - 24px, 1200px);
        padding: 2rem 0;
    }

    .home-about-content {
        width: 100%;
        gap: 0.5rem;
        padding: 1.25rem;
    }

    .home-about-title {
        max-width: 100%;
    }

    .home-about-text {
        max-width: 100%;
        font-size: clamp(0.82rem, 0.3vw + 0.8rem, 0.9rem);
        line-height: 1.5;
        text-align: left;
        padding: 0 0.5rem;
        margin: 0;
    }


}


 /* divider-gradient */
 .divider-gradient-1 {
    height: 0.75rem;
    background-image: linear-gradient(to right, #4F4A44, #F4F1EC);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}






/* whose */
.whoses-home {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    text-align: center;
    background: #F4F1EC;
    color: #333;
    padding: 2.75rem 1.25rem 3rem;
    box-sizing: border-box;
}

.whoses-home h2 {
    font-family: 'Roboto', 'Signika', 'Arsenal', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -1px;
    font-weight: 500;
    color: #2F2B27;
    display: inline;
    margin: 0 0 2rem 0;
    line-height: 1.08;
}

.whoses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem 0.9rem;
    text-align: center;
    justify-content: center;
    align-content: start;
    max-width: 95%;
    width: calc(80rem - 2rem);
    margin: 0 auto;
}

.whose-item {
    display: grid;
    grid-template-rows: 5rem 3.25rem auto;
    row-gap: 0.7rem;
    align-items: start;
    justify-items: center;
    text-align: center;
    color: #333;
    min-height: 14rem;
    position: relative;
    transition: 0.2s ease-in-out;
    overflow: hidden;
    padding: 0.25rem 0;
}

.whose-image {
    width: 100%;
    height: 5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
}

.whose-item h4 {
    font-family: 'Roboto', 'Roboto-Condensed', 'Signika', 'Arsenal', sans-serif;
    font-size: var(--home-card-title-size);
    font-weight: 500;
    color: var(--text-primary);
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    line-height: var(--home-card-title-line-height);
    text-align: center;
}

.whose-item p {
    font-family: 'Roboto', 'Roboto-Condensed', 'Signika', 'Arsenal', sans-serif;
    font-size: var(--home-card-text-size);
    font-weight: 300;
    color: var(--text-secondary);
    text-align: justify;
    text-indent: 0rem;
    padding: 0 0.9rem;
    margin: 0;
    align-self: start;
    line-height: var(--home-card-text-line-height);
}

.whose-item-1 .whose-image {
    background-image: url("../svg/2d-internationalization.a1869877f305.svg");
}

.whose-item-2 .whose-image {
    background-image: url("../svg/icons-main_licenciamento.93cfd4010c9e.svg");
}

.whose-item-3 .whose-image {
    background-image: url("../svg/iso-farmer-2-optimized.92f246416158.svg");
}

.whose-item-4 .whose-image {
    background-image: url("../svg/obras-infraestrutura-compact.5c2fdbd2b931.svg");
}

.whose-item-5 .whose-image {
    background-image: url("../svg/shape-geometric-blue-1.067c461362c6.svg");
}

@media (max-width: 928px) {
    .whoses-home {
        padding: 2.5rem 1rem 3rem;
    }

    .whoses-home h2 {
        margin-bottom: 1.75rem;
    }

    .whoses-grid {
        max-width: 100%;
        width: 100%;
        gap: 0.9rem 0.75rem;
    }

    .whose-item {
        grid-template-rows: 4rem 2.9rem auto;
        row-gap: 0.8rem;
        min-height: 13.5rem;
        padding: 0.25rem 0;
    }

    .whose-image {
        width: 100%;
        height: 4rem;
    }

    .whose-item h4 {
        min-height: 2.9rem;
    }

    .whose-item p {
        text-align: left;
        padding: 0 0.6rem;
    }
}

@media (max-width: 640px) {
    .whoses-home {
        padding: 1.75rem 0.75rem 2.25rem;
    }

    .whoses-home h2 {
        margin-bottom: 1.25rem;
    }

    .whoses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 0.6rem;
    }

    .whose-item {
        grid-template-rows: 3.25rem 2.5rem auto;
        row-gap: 0.5rem;
        min-height: 10.75rem;
        padding: 0.2rem 0;
    }

    .whose-item:last-child {
        grid-column: 1 / -1;
        width: 50%;
        justify-self: center;
    }

    .whose-image {
        height: 3.25rem;
    }

    .whose-item h4 {
        min-height: 2.5rem;
    }

    .whose-item p {
        padding: 0 0.4rem;
    }
}

@media (max-width: 360px) {
    .whoses-grid {
        grid-template-columns: 1fr;
    }

    .whose-item:last-child {
        grid-column: auto;
        width: 100%;
    }
}



/* content-home */
.home-blog {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #d3d3d3;
    padding-bottom: 4rem;
    flex: 1 1 auto;
}


.home-blog > p {
    font-family: 'Roboto', 'Signika', 'Arsenal', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    color: #333;
    letter-spacing: -1px;
    margin-top: 1.75rem;
    margin-bottom: 1.5rem;
    display: inline;
    line-height: 1.08;
}

@media (max-width: 520px) {
    .home-blog {
        padding-bottom: 2.75rem;
    }

    .home-blog > p {
        margin-top: 1.5rem;
        margin-bottom: 1.1rem;
    }
}
