/*
    iChaves Software House theme
    Camada de identidade visual sobre o template original, preservando o CMS.
*/
:root {
    --ichaves-ink: #151515;
    --ichaves-graphite: #292522;
    --ichaves-muted: #6f6761;
    --ichaves-line: #eadfd4;
    --ichaves-paper: #fff8ec;
    --ichaves-cream: #fffaf3;
    --ichaves-orange: #ff6a00;
    --ichaves-orange-dark: #c84d00;
    --ichaves-gold: #ffc43d;
    --ichaves-rust: #6e3a22;
    --ichaves-mint: var(--ichaves-orange);
    --ichaves-mint-dark: var(--ichaves-orange-dark);
    --ichaves-blue: var(--ichaves-rust);
    --theme-color1: var(--ichaves-gold);
    --bg-theme-color1: var(--ichaves-gold);
    --theme-color2: var(--ichaves-ink);
    --bg-theme-color2: var(--ichaves-ink);
}

body {
    color: var(--ichaves-graphite);
    background: #fffaf3;
}

.main-header.header-style-two .header-top {
    background: var(--ichaves-ink);
}

.main-header.header-style-two .header-lower,
.sticky-header {
    border-bottom: 1px solid rgba(16, 32, 39, 0.08);
    box-shadow: 0 10px 35px rgba(16, 32, 39, 0.06);
}

.main-menu .navigation > li > a {
    letter-spacing: 0;
    text-transform: none;
}

.main-header .info-btn small {
    color: var(--ichaves-mint);
}

.theme-btn.btn-style-one {
    background: var(--ichaves-mint);
    color: #fff;
}

.theme-btn.btn-style-one:before {
    background: var(--ichaves-ink);
}

.ichaves-hero {
    position: relative;
    overflow: hidden;
    padding: 170px 0 96px;
    background:
        linear-gradient(112deg, rgba(21, 21, 21, 0.96) 0%, rgba(76, 43, 25, 0.91) 54%, rgba(255, 106, 0, 0.78) 100%),
        var(--ichaves-hero-image, none);
    background-size: cover;
    background-position: center;
}

.ichaves-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 250, 243, 0), #fffaf3);
    pointer-events: none;
}

.ichaves-hero .auto-container {
    position: relative;
    z-index: 1;
}

.ichaves-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 54px;
    align-items: center;
}

.ichaves-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff1d5;
    background: rgba(255, 255, 255, 0.10);
    font-size: 13px;
    font-weight: 700;
}

.ichaves-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ichaves-gold);
}

.ichaves-hero__title {
    max-width: 780px;
    margin: 22px 0 22px;
    color: #fff;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: 0;
}

.ichaves-hero__text {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
    line-height: 1.7;
}

.ichaves-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.ichaves-btn,
.ichaves-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 22px;
    border-radius: 6px;
    font-weight: 800;
    line-height: 1;
}

.ichaves-btn {
    background: var(--ichaves-gold);
    color: #23160d;
}

.ichaves-btn:hover {
    color: #23160d;
    transform: translateY(-1px);
}

.ichaves-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.ichaves-btn-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.ichaves-hero__panel {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 24px;
    background: rgba(248, 252, 249, 0.94);
    box-shadow: 0 28px 80px rgba(5, 18, 24, 0.30);
}

.ichaves-product-card {
    padding: 26px;
    border-radius: 8px;
    background: #fff;
}

.ichaves-product-card__label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--ichaves-mint-dark);
    font-size: 13px;
    font-weight: 800;
}

.ichaves-product-card h3 {
    margin-bottom: 12px;
    color: var(--ichaves-ink);
    font-size: 30px;
    line-height: 1.15;
}

.ichaves-product-card p {
    color: var(--ichaves-muted);
    line-height: 1.7;
}

.ichaves-check-list {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
}

.ichaves-check-list li {
    display: flex;
    gap: 10px;
    color: var(--ichaves-graphite);
    font-weight: 700;
}

.ichaves-check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Pro";
    color: var(--ichaves-mint);
}

.ichaves-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.ichaves-metric {
    padding: 14px;
    border-radius: 6px;
    background: var(--ichaves-paper);
}

.ichaves-metric strong {
    display: block;
    color: var(--ichaves-ink);
    font-size: 22px;
}

.ichaves-metric span {
    color: var(--ichaves-muted);
    font-size: 12px;
    line-height: 1.35;
}

.ichaves-section {
    padding: 96px 0;
}

.ichaves-section--soft {
    background: var(--ichaves-paper);
}

.ichaves-section__head {
    max-width: 760px;
    margin-bottom: 42px;
}

.ichaves-section__kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--ichaves-mint-dark);
    font-weight: 800;
}

.ichaves-section__head h2 {
    margin-bottom: 14px;
    color: var(--ichaves-ink);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
}

.ichaves-section__head p {
    color: var(--ichaves-muted);
    font-size: 18px;
    line-height: 1.7;
}

.ichaves-services-grid,
.ichaves-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ichaves-service-card,
.ichaves-ecosystem-card {
    min-height: 100%;
    border: 1px solid var(--ichaves-line);
    border-radius: 8px;
    background: #fff;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ichaves-service-card {
    padding: 30px;
}

.ichaves-service-card:hover,
.ichaves-ecosystem-card:hover {
    border-color: rgba(31, 143, 107, 0.38);
    box-shadow: 0 18px 45px rgba(16, 32, 39, 0.10);
    transform: translateY(-3px);
}

.ichaves-service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 6px;
    color: #fff;
    background: var(--ichaves-mint);
    font-size: 24px;
}

.ichaves-service-card h3,
.ichaves-ecosystem-card h3 {
    color: var(--ichaves-ink);
    font-size: 22px;
    line-height: 1.25;
}

.ichaves-service-card p,
.ichaves-ecosystem-card p {
    color: var(--ichaves-muted);
    line-height: 1.7;
}

.ichaves-service-card a {
    display: inline-flex;
    margin-top: 12px;
    color: var(--ichaves-mint-dark);
    font-weight: 800;
}

.ichaves-ecosystem-card {
    overflow: hidden;
}

.ichaves-ecosystem-card__top {
    padding: 26px 26px 0;
}

.ichaves-ecosystem-card__bar {
    height: 8px;
    background: linear-gradient(90deg, var(--ichaves-mint), var(--ichaves-blue), var(--ichaves-gold));
}

.ichaves-contact-interest {
    width: 100%;
    height: 58px;
    padding: 14px 18px;
    border: 1px solid #e1e6dc;
    border-radius: 0;
    color: #707070;
    background: #fff;
}

@media (max-width: 991px) {
    .ichaves-hero {
        padding: 130px 0 76px;
    }

    .ichaves-hero__grid,
    .ichaves-services-grid,
    .ichaves-ecosystem-grid {
        grid-template-columns: 1fr;
    }

    .ichaves-hero__panel {
        max-width: 620px;
    }
}

@media (max-width: 575px) {
    .ichaves-hero {
        padding: 112px 0 62px;
    }

    .ichaves-hero__title {
        font-size: 40px;
    }

    .ichaves-hero__text {
        font-size: 16px;
    }

    .ichaves-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ichaves-btn,
    .ichaves-btn-secondary {
        width: 100%;
    }

    .ichaves-metrics {
        grid-template-columns: 1fr;
    }

    .ichaves-section {
        padding: 68px 0;
    }
}

/* Image hardening for CMS-managed media. */
.logo img,
.nav-logo img,
.main-footer .logo img {
    width: auto;
    max-width: 190px;
    max-height: 64px;
    object-fit: contain;
}

.main-header .logo img,
.sticky-header .logo img {
    max-height: 58px;
}

.service-block .image,
.service-block-new-1 .image,
.news-block .image,
.project-block-home3 .image-box,
.team-block .image,
.pricing-block .image {
    overflow: hidden;
    background: linear-gradient(135deg, #fff8ec, #eadfd4);
}

.service-block .image,
.service-block-new-1 .image {
    aspect-ratio: 4 / 3;
}

.news-block .image {
    aspect-ratio: 16 / 9;
}

.team-block .image {
    aspect-ratio: 1 / 1;
}

.service-block .image img,
.service-block-new-1 .image img,
.news-block .image img,
.project-block-home3 img,
.team-block .image img,
.portfolio-block img,
.post-single__image img,
.sidebar__post-image img,
.services-details__content > img,
.pricing-block .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.services-details__content > img {
    aspect-ratio: 16 / 7;
    border-radius: 8px;
    background: linear-gradient(135deg, #151515, #ff6a00);
}

.post-single__image img {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}

.sidebar__post-image {
    width: 82px;
    height: 82px;
    overflow: hidden;
    border-radius: 6px;
    background: #fff8ec;
}

.clients-section .client-block a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    padding: 18px;
    border: 1px solid rgba(16, 32, 39, 0.08);
    border-radius: 8px;
    background: #fff;
}

.clients-section .client-block img {
    width: 100%;
    max-width: 160px;
    max-height: 58px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.76;
}

.contact-section .outer-box > .image img {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
}

.is-fallback-image {
    object-fit: contain !important;
    padding: 18px;
    background: #fff8ec;
}

/* Professional Ichaves refinements: remove legacy template strips/blocks. */
.main-header .main-box {
    max-width: 1240px;
    margin: 0 auto;
    gap: 26px;
    justify-content: space-between;
}

.main-header .main-box .nav-outer {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.main-menu .navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 18px;
}

.main-menu .navigation > li {
    margin-right: 0;
}

.main-menu .navigation > li > a {
    color: var(--ichaves-ink);
    font-weight: 600;
}

.main-menu .navigation > li.current > a,
.main-menu .navigation > li > a:hover {
    color: var(--ichaves-ink);
}

.main-menu .navigation > li.current > a::before,
.main-menu .navigation > li > a::before {
    background: var(--ichaves-gold);
}

@media (min-width: 1200px) {
    .main-menu .navigation {
        flex-wrap: nowrap;
    }
}

@media (max-width: 1199px) {
    .main-header .main-box {
        padding: 0 18px;
    }
}

.services-section-home3 {
    padding: 68px 0 88px !important;
    background: #fffaf3;
}

.service-block-new-3.at-home6 {
    margin-top: 0 !important;
}

.service-block-new-3 .inner-box {
    min-height: 238px;
    padding: 30px 24px;
    border: 1px solid var(--ichaves-line);
    border-top: 4px solid var(--ichaves-orange);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(21, 21, 21, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-block-new-3 .inner-box::before {
    display: none !important;
    content: none !important;
}

.service-block-new-3 .inner-box:hover {
    border-color: rgba(255, 106, 0, 0.34);
    box-shadow: 0 24px 70px rgba(21, 21, 21, 0.12);
    transform: translateY(-4px);
}

.service-block-new-3 .icon {
    display: none;
}

.service-block-new-3 .title,
.service-block-new-3 .title a,
.service-block-new-3 .inner-box:hover .title,
.service-block-new-3 .inner-box:hover .title a {
    color: var(--ichaves-ink);
}

.service-block-new-3 .title {
    margin-bottom: 14px;
    font-size: 20px;
    line-height: 1.18;
}

.service-block-new-3 .text,
.service-block-new-3 .inner-box:hover .text {
    color: var(--ichaves-muted);
    font-size: 15px;
    line-height: 1.65;
}

.service-block-new-1 .inner-box,
.service-block .inner-box {
    overflow: hidden;
    border: 1px solid var(--ichaves-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(21, 21, 21, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-block-new-1 .inner-box:hover,
.service-block .inner-box:hover {
    border-color: rgba(255, 106, 0, 0.32);
    box-shadow: 0 26px 75px rgba(21, 21, 21, 0.12);
    transform: translateY(-4px);
}

.service-block-new-1 .image-box,
.service-block .inner-box .image-box {
    min-height: 0;
    background: #fff8ec;
}

.service-block-new-1 .image-box::before,
.service-block-new-1 .image-box .image::after,
.service-block-new-1 .image-box .icon-box::before,
.service-block-new-1 .image-box .icon-box::after,
.service-block .inner-box::before,
.service-block .inner-box .image-box .image::before,
.service-block .inner-box .hover-content::before,
.project-block-home3 .image-box .image::before,
.project-block-home3 .image-box .image::after {
    display: none !important;
    content: none !important;
}

.service-block-new-1 .image-box .icon-box,
.service-block .inner-box .content-box .icon,
.service-block .inner-box .hover-content .icon {
    display: none !important;
}

.service-block-new-1 .image,
.service-block .inner-box .image-box .image {
    aspect-ratio: 16 / 10;
    margin: 0;
    background: linear-gradient(135deg, #fff8ec, #eadfd4);
}

.service-block-new-1 .image img,
.service-block .inner-box .image-box .image img {
    display: block;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover;
    object-position: center;
    transform: none !important;
}

.service-block-new-1 .content-box,
.service-block .inner-box .content-box {
    position: relative;
    inset: auto;
    right: auto;
    bottom: auto;
    width: auto;
    padding: 26px 28px 28px;
    background: #fff;
    box-shadow: none;
    opacity: 1 !important;
    visibility: visible !important;
}

.service-block-new-1 .content-box .title,
.service-block .inner-box .content-box .title {
    margin-bottom: 12px;
    color: var(--ichaves-ink);
    font-size: 22px;
    line-height: 1.2;
}

.service-block-new-1 .content-box .title a,
.service-block .inner-box .content-box .title a {
    color: inherit;
}

.service-block-new-1 .content-box .text,
.service-block .inner-box .content-box .text {
    display: block;
    margin-bottom: 18px;
    color: var(--ichaves-muted);
    font-size: 15px;
    line-height: 1.75;
}

.service-block-new-1 .content-box .read-more,
.service-block .inner-box .content-box .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ichaves-orange-dark);
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.service-block-new-1 .content-box .read-more i,
.service-block .inner-box .content-box .read-more i {
    color: inherit;
}

.service-block .inner-box .hover-content {
    display: none !important;
}

.service-block .inner-box:hover .image-box .image::before,
.service-block .inner-box:hover .content-box,
.service-block .inner-box:hover .hover-content {
    opacity: 1;
    visibility: visible;
}

.service-block,
.service-block-new-1 {
    margin-bottom: 34px;
}

.project-block-home3 .image-box .image {
    background: #fff8ec;
}

.project-block-home3 .caption-box {
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(21, 21, 21, 0.10);
}

.project-block-home3 .caption-box::before {
    background: var(--ichaves-gold);
}

.page-title::before {
    background: linear-gradient(90deg, rgba(21, 21, 21, 0.84), rgba(110, 58, 34, 0.66), rgba(255, 106, 0, 0.18));
}

.clients-section .client-block img {
    filter: none;
    opacity: 1;
}

.clients-section .client-block a {
    border-color: rgba(234, 223, 212, 0.95);
    background: #fffaf3;
}

.footer-upper {
    background: #151515;
}

.footer-upper .contact-info-block .inner {
    min-height: 80px;
    padding-left: 98px;
}

.footer-upper .contact-info-block .inner::before {
    background-color: #eadfd4;
    opacity: .18;
}

.footer-upper .contact-info-block .inner .icon,
.contact-info-block .icon {
    position: absolute;
    left: 0;
    top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #24201d;
    color: var(--ichaves-gold);
    font-size: 24px;
    line-height: 1;
}

.footer-upper .contact-info-block .inner:hover .icon,
.contact-info-block .inner:hover .icon {
    border-radius: 16px;
    background: var(--ichaves-orange);
    color: #fff;
}

.footer-upper .contact-info-block .inner .sub-title {
    color: #a69c94;
}

.footer-upper .contact-info-block .inner .text,
.footer-upper .contact-info-block .inner .text a {
    color: #fff;
}

.main-footer .widgets-section {
    background-color: #17181b;
}

.main-footer .widgets-section .bg-pattern-6,
.main-footer .bg-pattern-6 {
    opacity: .34;
}

.scroll-to-top {
    background: var(--ichaves-orange);
}

@media (max-width: 991px) {
    .services-section-home3 {
        padding-top: 54px !important;
    }

    .service-block-new-3 .inner-box {
        min-height: auto;
    }
}

@media (max-width: 575px) {
    .footer-upper .contact-info-block .inner {
        padding-left: 0;
        text-align: center;
    }

    .footer-upper .contact-info-block .inner .icon,
    .contact-info-block .icon {
        position: relative;
        top: auto;
        margin: 0 auto 16px;
    }
}
