:root {
    --navy: #132238;
    --cyan: #d06432;
    --gold: #e09a72;
    --sand: #eee8de;
    --cream: #f7f4ee;
    --white: #ffffff;
    --ink: #1a1e24;
    --muted: #68707a;
    --line: #d8d0c4;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

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

a {
    color: inherit;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(250, 248, 243, 0.96);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-decoration: none;
}

.brand-mark {
    padding: 4px 7px;
    border-radius: 3px;
    background: var(--navy);
    color: var(--white);
    letter-spacing: 0;
}

.header nav {
    display: flex;
    gap: 25px;
}

.header nav a {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.header nav a:hover {
    color: var(--navy);
}

.header-button {
    padding: 9px 14px;
    background: var(--navy);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.section-label {
    display: block;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.hero {
    padding: 75px 0 0;
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    max-width: 760px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 6vw, 70px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -2.8px;
}

.hero h1 strong {
    color: var(--cyan);
    font-weight: 400;
}

.hero-content > p {
    max-width: 610px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 17px;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.button {
    display: inline-flex;
    text-decoration: none;
}

.primary {
    padding: 13px 18px;
    background: var(--navy);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
}

.text-link {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    text-underline-offset: 5px;
}

.quick-points {
    margin-top: 58px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.quick-points div {
    padding: 24px 28px 30px 0;
}

.quick-points div + div {
    padding-left: 28px;
    border-left: 1px solid var(--line);
}

.quick-points strong,
.quick-points span {
    display: block;
}

.quick-points strong {
    color: var(--navy);
    font-size: 13px;
}

.quick-points span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.services {
    padding: 85px 0;
    background: var(--sand);
}

.section-heading {
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    align-items: end;
    gap: 60px;
    margin-bottom: 42px;
}

.section-heading h2,
.about h2,
.contact h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.section-heading p {
    color: var(--muted);
    font-size: 14px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-grid article {
    min-height: 260px;
    padding: 25px;
    border: 1px solid var(--line);
    background: var(--cream);
}

.service-grid article > span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.service-grid h3 {
    margin: 48px 0 12px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.1;
}

.service-grid p {
    color: var(--muted);
    font-size: 13px;
}

.portfolio {
    padding: 85px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.portfolio-grid article {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--cream);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-grid article:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(19, 34, 56, 0.09);
}

.portfolio-thumb {
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--sand);
}

.portfolio-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.portfolio-grid article:hover .portfolio-thumb img {
    transform: scale(1.04);
}

.portfolio-grid article > span {
    display: block;
    margin: 22px 25px 0;
    color: var(--gold);
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.portfolio-grid h3 {
    margin: 12px 25px 10px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 400;
}

.portfolio-grid article > p {
    margin: 0 25px 25px;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 820px) {
    .portfolio-grid {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .portfolio-grid article {
        width: 100%;
        max-width: 390px;
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }
}

.process {
    padding: 90px 0;
}

.process-list {
    list-style: none;
    border-top: 1px solid var(--line);
}

.process-list li {
    display: grid;
    grid-template-columns: 60px 230px 1fr;
    gap: 25px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.process-list li > span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
}

.process-list strong {
    color: var(--navy);
    font-size: 14px;
}

.process-list p {
    color: var(--muted);
    font-size: 13px;
}

.about {
    padding: 90px 0;
    background: #132238;
    color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    gap: 80px;
    max-width: 870px;
}

.about img {
    display: block;
    width: 260px;
    height: 320px;
    border-radius: 4px;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.8);
}

.about h2 {
    max-width: 580px;
}

.about p {
    max-width: 610px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
}

.faq {
    padding: 90px 0;
}

.faq .section-heading {
    display: block;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
}

.faq details {
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.faq summary {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.faq details p {
    padding-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.contact {
    padding: 75px 0;
    background: var(--sand);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 60px;
}

.contact p {
    margin-top: 15px;
    color: var(--muted);
}

.whatsapp {
    min-width: 240px;
    padding: 14px 20px;
    flex-direction: column;
    background: var(--navy);
    color: var(--white);
}

.whatsapp small {
    color: rgba(255, 255, 255, 0.7);
}

.whatsapp strong {
    margin-top: 2px;
}

footer {
    padding: 25px 0;
    background: var(--cream);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

.footer-inner span {
    color: var(--navy);
    font-weight: 800;
    letter-spacing: 1px;
}

@media (max-width: 760px) {
    .header nav {
        display: none;
    }

    .hero {
        padding-top: 65px;
    }

    .hero h1 {
        font-size: 51px;
        letter-spacing: -2px;
    }

    .quick-points,
    .service-grid,
    .section-heading,
    .about-grid,
    .faq-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .quick-points div + div {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .service-grid article {
        min-height: 220px;
    }

    .process-list li {
        grid-template-columns: 35px 1fr;
    }

    .process-list li p {
        grid-column: 2;
    }

    .about-grid {
        gap: 40px;
    }

    .about img {
        width: 210px;
        height: 260px;
    }

    .whatsapp {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 28px);
    }

    .header-button {
        display: none;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary {
        justify-content: center;
    }

    .footer-inner {
        align-items: center;
        flex-direction: column;
        gap: 8px;
    }
}


.brand-mark {
    display: inline-flex;
    gap: 1px;
    padding: 5px 7px;
    border: 1px solid var(--navy);
    background: transparent;
}

.brand-mark b {
    color: var(--navy);
    font-style: normal;
}

.brand-mark i {
    color: var(--cyan);
    font-style: normal;
    font-weight: 800;
}

/* Refinamento visual do topo */

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.header-inner {
    min-height: 74px;
}

.header nav a {
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.header nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 1px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.header nav a:hover::after {
    transform: scaleX(1);
}

.header-button,
.primary {
    border-radius: 3px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-button:hover,
.primary:hover {
    background: #203652;
    transform: translateY(-2px);
}

.hero-content {
    position: relative;
}

.hero .section-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero .section-label::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--gold);
}

.hero h1 {
    max-width: 810px;
    line-height: 1;
    letter-spacing: -2.2px;
}

.hero h1 strong {
    position: relative;
    white-space: nowrap;
}

.hero h1 strong::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 5px;
    background: rgba(208, 100, 50, 0.16);
    z-index: -1;
}

.hero-content > p {
    max-width: 570px;
    line-height: 1.7;
}

.quick-points {
    counter-reset: highlights;
}

.quick-points div {
    position: relative;
    counter-increment: highlights;
    padding-top: 30px;
}

.quick-points div::before {
    content: "0" counter(highlights);
    display: block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.quick-points strong {
    margin-bottom: 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 400;
}

.hero-actions .text-link {
    position: relative;
    text-decoration: none;
}

.hero-actions .text-link::after {
    content: " →";
    color: var(--cyan);
}

@media (max-width: 760px) {
    .hero h1 strong {
        white-space: normal;
    }
}

.about-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.about-info span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    letter-spacing: 0.4px;
}

.about-content h2 {
    margin-bottom: 24px;
}


.whatsapp {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 13px;
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: #ffffff;
}

.whatsapp-text {
    display: flex;
    flex-direction: column;
}

.section-label,
.service-grid article > span,
.process-list li > span,
.quick-points div::before {
    font-family: Consolas, "Courier New", monospace;
}

.hero {
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(19, 34, 56, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 34, 56, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero::after {
    content: "</>";
    position: absolute;
    top: 90px;
    right: 8%;
    color: rgba(208, 100, 50, 0.07);
    font-family: Consolas, monospace;
    font-size: 150px;
    font-weight: 700;
    pointer-events: none;
}

.service-grid article {
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-grid article:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
}

.service-grid article::after {
    content: "{ }";
    position: absolute;
    right: 18px;
    bottom: 14px;
    color: rgba(19, 34, 56, 0.12);
    font-family: Consolas, monospace;
    font-size: 22px;
}

@media (max-width: 760px) {
    .hero::after {
        display: none;
    }
}

/* Hero com identidade de desenvolvimento */

.hero {
    padding: 85px 0 0;
    background: var(--navy);
    color: #ffffff;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    align-items: center;
    gap: 75px;
}

.hero-copy h1 {
    max-width: 650px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 6vw, 70px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -2.3px;
}

.hero-copy h1 strong {
    display: block;
    color: var(--cyan);
    font-weight: 400;
}

.hero-copy > p {
    max-width: 560px;
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 16px;
    line-height: 1.7;
}

.hero .primary {
    background: var(--cyan);
    color: #ffffff;
}

.hero .primary:hover {
    background: #b95027;
}

.hero .text-link {
    color: rgba(255, 255, 255, 0.8);
}

.code-window {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: #0a1424;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    font-family: Consolas, "Courier New", monospace;
}

.code-toolbar {
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff6b62; }
.code-dots span:nth-child(2) { background: #e8b34f; }
.code-dots span:nth-child(3) { background: #4fbd78; }

.code-body {
    padding: 28px 18px;
}

.code-body div {
    min-height: 29px;
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
}

.code-body i {
    color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    font-style: normal;
}

.code-body code {
    color: #dbe6f4;
    font-size: 12px;
}

.code-body code b {
    color: #55bdd2;
    font-weight: 400;
}

.code-body code em {
    color: #e7a07b;
    font-style: normal;
}

.code-body code strong {
    color: #e7a07b;
    font-weight: 400;
}

.code-status {
    padding: 11px 16px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.48);
    font-size: 9px;
}

.code-status span:first-child {
    color: #61c98b;
}

.hero .quick-points {
    margin-top: 75px;
    border-color: rgba(255, 255, 255, 0.13);
}

.hero .quick-points div + div {
    border-color: rgba(255, 255, 255, 0.13);
}

.hero .quick-points strong {
    color: #ffffff;
}

.hero .quick-points span {
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 850px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .code-window {
        width: 100%;
        max-width: 560px;
    }
}

.brand img {
    display: block;
    width: 245px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 500px) {
    .brand img {
        width: 190px;
        height: 48px;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    max-width: 870px;
    gap: 70px;
}

.about-grid > img {
    display: block;
    width: 260px;
    height: 320px;
    border-radius: 5px;
    object-fit: cover;
    object-position: center top;
}

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

    .about-grid > img {
        width: 220px;
        height: 275px;
    }
}

@media (max-width: 820px) {
    .quick-points,
    .section-heading,
    .service-grid article,
    .process,
    .about-content,
    .faq,
    .contact {
        text-align: center;
    }

    .quick-points div {
        padding: 24px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading p {
        max-width: 520px;
        margin: 15px auto 0;
    }

    .service-grid article {
        padding: 30px 22px;
    }

    .service-grid h3 {
        margin-top: 25px;
    }

    .process-list li {
        display: block;
        padding: 25px 12px;
    }

    .process-list li > span,
    .process-list strong,
    .process-list p {
        display: block;
    }

    .process-list strong {
        margin-top: 8px;
    }

    .process-list p {
        margin-top: 8px;
    }

    .about-content p {
        margin-right: auto;
        margin-left: auto;
    }

    .about-info {
        justify-content: center;
    }

    .faq details {
        text-align: center;
    }

    .contact-grid {
        justify-items: center;
    }

    .contact-grid > div {
        text-align: center;
    }

    .contact p {
        max-width: 500px;
        margin-right: auto;
        margin-left: auto;
    }

    .whatsapp {
        max-width: 360px;
        justify-content: center;
        text-align: left;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 820px) {
    .quick-points {
        max-width: 440px;
        margin-right: auto;
        margin-left: auto;
    }

    .service-grid {
        display: grid;
        justify-items: center;
    }

    .service-grid article {
        width: 100%;
        max-width: 390px;
        margin-right: auto;
        margin-left: auto;
    }

    .process-list {
        width: 100%;
        max-width: 540px;
        margin-right: auto;
        margin-left: auto;
    }

    .about-grid {
        display: grid;
        justify-items: center;
    }

    .about-grid > img {
        width: 230px !important;
        height: 290px !important;
        margin: 0 auto 10px !important;
    }

    .about-content {
        width: 100%;
        max-width: 540px;
        margin-right: auto;
        margin-left: auto;
    }

    .faq-grid {
        width: 100%;
        max-width: 540px;
        margin-right: auto;
        margin-left: auto;
    }

    .contact-grid {
        width: 100%;
        max-width: 540px;
        margin-right: auto;
        margin-left: auto;
    }
}

.brand picture {
    display: block;
}

.brand img {
    display: block;
    width: 315px;
    height: 66px;
    object-fit: contain;
    object-position: left center;
    transition: transform 0.25s ease;
}

.brand:hover img {
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .brand img {
        width: 205px !important;
        height: 54px !important;
    }
}

/* Refinamento visual v12 */

.header .brand img {
    width: 225px;
    height: 58px;
}

/* Símbolos dos serviços */

.service-grid article {
    overflow: hidden;
}

.service-grid article::after {
    display: none;
}

.service-grid article::before {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 30px;
    place-items: center;
    border: 1px solid rgba(208, 100, 50, 0.32);
    border-radius: 50%;
    color: var(--cyan);
    background: rgba(208, 100, 50, 0.06);
    font-family: Consolas, "Courier New", monospace;
    font-size: 15px;
    transition: 0.25s ease;
}

.service-grid article:nth-child(1)::before {
    content: "</>";
}

.service-grid article:nth-child(2)::before {
    content: "↗";
    font-size: 22px;
}

.service-grid article:nth-child(3)::before {
    content: "{ }";
}

.service-grid article:hover::before {
    color: #ffffff;
    background: var(--cyan);
    transform: rotate(-5deg);
}

.service-grid article:hover {
    box-shadow: 0 18px 45px rgba(19, 34, 56, 0.09);
}

/* Linha do processo */

.process-list {
    position: relative;
}

.process-list::before {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 16px;
    width: 1px;
    background: linear-gradient(
        var(--cyan),
        rgba(208, 100, 50, 0.15)
    );
}

.process-list li {
    position: relative;
}

.process-list li > span {
    position: relative;
    z-index: 1;
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    color: var(--cyan);
    background: var(--cream);
}

/* FAQ */

.faq details {
    transition: background 0.2s ease;
}

.faq details:hover {
    background: rgba(208, 100, 50, 0.035);
}

.faq summary {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--cyan);
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details[open] {
    padding-right: 14px;
    padding-left: 14px;
    background: rgba(208, 100, 50, 0.045);
}

/* WhatsApp flutuante */

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: 10px;
    padding: 11px 17px 11px 12px;
    border-radius: 50px;
    color: #ffffff;
    background: #25d366;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}

.floating-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-3px);
}

.floating-whatsapp svg {
    width: 31px;
    height: 31px;
}

/* Remove numeração automática */
.quick-points div::before {
    display: none !important;
    content: none !important;
}




/* ==========================================
   GALERIA HM ORIGENS - V2
========================================== */

.gallery-page .portfolio {
    padding: 110px 0 90px !important;
    min-height: auto !important;
    background:
        radial-gradient(circle at 80% 0%, rgba(208,100,50,.08), transparent 28%),
        #f8f7f3;
}

/* TOPO */

.gallery-page .gallery-heading {
    max-width: 880px !important;
    margin: 0 auto 55px !important;
    text-align: center;
    display: block !important;
}

.gallery-page .gallery-kicker {
    display: inline-block;
    margin: 0 0 18px !important;
    color: #d06432;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .20em;
}

.gallery-page .gallery-heading h1 {
    max-width: 850px !important;
    margin: 0 auto 22px !important;
    color: #132238;
    font-size: clamp(42px, 4.6vw, 66px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.045em;
}

.gallery-page .gallery-heading > p {
    max-width: 650px !important;
    margin: 0 auto !important;
    color: #687386;
    font-size: 17px;
    line-height: 1.7;
}

/* GRID */

.gallery-page .portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    margin-top: 0 !important;
}

/* CARD */

.gallery-page .portfolio-grid article {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(19,34,56,.08) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.gallery-page .portfolio-grid article:hover {
    transform: translateY(-5px);
    border-color: rgba(208,100,50,.30) !important;
    box-shadow: 0 22px 45px rgba(19,34,56,.10) !important;
}

/* IMAGEM */

.gallery-page .portfolio-thumb {
    width: 100%;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden;
    background: #ecebe7;
}

.gallery-page .portfolio-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
    transition: transform .35s ease;
}

.gallery-page .portfolio-grid article:hover .portfolio-thumb img {
    transform: scale(1.025);
}

/* TEXTOS DOS CARDS */

.gallery-page .portfolio-grid article > span {
    display: block;
    margin: 20px 22px 8px !important;
    color: #d06432;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.gallery-page .portfolio-grid article h3 {
    margin: 0 22px 10px !important;
    color: #132238;
    font-size: 21px;
    line-height: 1.2;
}

.gallery-page .portfolio-grid article p {
    margin: 0 22px 24px !important;
    color: #687386;
    font-size: 14px;
    line-height: 1.6;
}

/* TABLET */

@media (max-width: 1050px) {

    .gallery-page .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}

/* CELULAR */

@media (max-width: 680px) {

    .gallery-page .portfolio {
        padding: 85px 0 60px !important;
    }

    .gallery-page .gallery-heading {
        margin-bottom: 35px !important;
        text-align: left;
    }

    .gallery-page .gallery-heading h1 {
        font-size: 40px !important;
        line-height: 1.03 !important;
    }

    .gallery-page .gallery-heading > p {
        font-size: 16px;
    }

    .gallery-page .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

}

/* FIM GALERIA HM ORIGENS - V2 */

/* MOLDURA DOS PROJETOS */

.gallery-page .portfolio-grid article {
    border: 2px solid rgba(19, 34, 56, 0.16) !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    padding: 8px !important;
    box-shadow: 0 10px 28px rgba(19, 34, 56, 0.06) !important;
}

.gallery-page .portfolio-thumb {
    border-radius: 13px !important;
}

.gallery-page .portfolio-grid article:hover {
    border-color: rgba(208, 100, 50, 0.55) !important;
    box-shadow: 0 18px 38px rgba(19, 34, 56, 0.12) !important;
}

/* FIM MOLDURA DOS PROJETOS */

/* PREVIEW ANIMADO HM ORIGENS */

.gallery-page .portfolio-grid article {
    cursor: pointer;
    position: relative;
}

.gallery-page .portfolio-thumb {
    position: relative;
    overflow: hidden !important;
    background: #e9ebee;
}

/* Barra superior estilo navegador */
.gallery-page .portfolio-thumb::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 5;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    box-shadow:
        13px 0 0 rgba(255,255,255,.62),
        26px 0 0 rgba(255,255,255,.38);
    opacity: .8;
    pointer-events: none;
}

/* Imagem base */
.gallery-page .portfolio-thumb img {
    display: block;
    width: 100%;
    will-change: transform;
    transform-origin: center top;
}

/* Prints compridos de sites */
.gallery-page article.can-scroll .portfolio-thumb img {
    height: auto !important;
    max-width: none;
    object-fit: initial !important;
    transform: translateY(0);
    transition:
        transform var(--preview-duration, 5s) cubic-bezier(.22,.61,.36,1);
}

/* Mouse no desktop */
@media (hover: hover) and (pointer: fine) {

    .gallery-page article.can-scroll:hover .portfolio-thumb img {
        transform: translateY(var(--preview-shift, 0px));
    }

    .gallery-page article.static-preview:hover .portfolio-thumb img {
        transform: scale(1.08) translate3d(-1.2%, -1%, 0);
    }
}

/* Clique ou toque */
.gallery-page article.can-scroll.is-previewing .portfolio-thumb img {
    transform: translateY(var(--preview-shift, 0px));
}

.gallery-page article.static-preview .portfolio-thumb img {
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 2.8s cubic-bezier(.22,.61,.36,1);
}

.gallery-page article.static-preview.is-previewing .portfolio-thumb img {
    transform: scale(1.08) translate3d(-1.2%, -1%, 0);
}

/* Moldura ganha vida */
.gallery-page .portfolio-grid article:hover,
.gallery-page .portfolio-grid article.is-previewing {
    border-color: rgba(208,100,50,.7) !important;
    box-shadow:
        0 20px 45px rgba(19,34,56,.13),
        0 0 0 1px rgba(208,100,50,.12) !important;
}

/* Indicador de preview */
.gallery-preview-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 6;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 8px 11px;
    border-radius: 999px;

    color: #fff;
    background: rgba(19,34,56,.88);
    backdrop-filter: blur(7px);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;

    opacity: 0;
    transform: translateY(5px);
    transition: .25s ease;

    pointer-events: none;
}

.gallery-preview-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d06432;
}

.gallery-page .portfolio-grid article:hover .gallery-preview-hint,
.gallery-page .portfolio-grid article.is-previewing .gallery-preview-hint {
    opacity: 1;
    transform: translateY(0);
}

.gallery-page article.is-previewing .gallery-preview-dot {
    animation: galleryPulse 1.1s infinite;
}

@keyframes galleryPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.7);
        opacity: .45;
    }
}

@media (max-width: 680px) {

    .gallery-preview-hint {
        opacity: .9;
        transform: none;
    }
}

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

    .gallery-page .portfolio-thumb img {
        transition-duration: .2s !important;
    }

    .gallery-preview-dot {
        animation: none !important;
    }
}

/* FIM PREVIEW ANIMADO HM ORIGENS */

/* MOVIMENTO INTERNO GALERIA V2 */

.gallery-page .portfolio-thumb {
    position: relative;
    isolation: isolate;
}

/* brilho que atravessa o projeto */
.gallery-demo-shine {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

.gallery-demo-shine::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -60%;
    width: 32%;
    height: 140%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.22),
        transparent
    );
    transform: skewX(-18deg);
    opacity: 0;
}

/* linha de varredura */
.gallery-demo-scan {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(208,100,50,.8),
        transparent
    );
    box-shadow: 0 0 12px rgba(208,100,50,.35);
}

/* cursor simulando navegação */
.gallery-demo-cursor {
    position: absolute;
    z-index: 9;
    top: 30%;
    left: 24%;
    width: 17px;
    height: 22px;
    opacity: 0;
    pointer-events: none;

    filter: drop-shadow(0 2px 3px rgba(0,0,0,.3));

    transform:
        translate(-50%, -50%)
        rotate(-18deg);

    transition: opacity .25s ease;
}

.gallery-demo-cursor::before {
    content: "";
    position: absolute;
    inset: 0;

    clip-path: polygon(
        0 0,
        100% 68%,
        58% 72%,
        77% 100%,
        61% 100%,
        44% 74%,
        0 100%
    );

    background: #ffffff;
    border: 1px solid #132238;
}

/* clique */
.gallery-demo-click {
    position: absolute;
    z-index: 8;

    width: 12px;
    height: 12px;

    margin-left: -6px;
    margin-top: -6px;

    border: 2px solid rgba(208,100,50,.85);
    border-radius: 50%;

    opacity: 0;
    pointer-events: none;
}

/* movimento ambiente */
.gallery-page .portfolio-grid article .portfolio-thumb img {
    transform-origin: center center;
}

/* animação completa no desktop */
@media (hover: hover) and (pointer: fine) {

    .gallery-page .portfolio-grid article:hover .gallery-demo-cursor {
        opacity: 1;
        animation: demoCursorMove 5.5s ease-in-out infinite;
    }

    .gallery-page .portfolio-grid article:hover .gallery-demo-scan {
        opacity: .65;
        animation: demoScan 3.6s ease-in-out infinite;
    }

    .gallery-page .portfolio-grid article:hover .gallery-demo-shine::before {
        opacity: 1;
        animation: demoShine 4.2s ease-in-out infinite;
    }

    .gallery-page .portfolio-grid article:hover .gallery-demo-click {
        animation: demoClick 5.5s ease-in-out infinite;
    }

}

/* no celular fica ativo ao tocar */
.gallery-page .portfolio-grid article.is-previewing .gallery-demo-cursor {
    opacity: 1;
    animation: demoCursorMove 5.5s ease-in-out infinite;
}

.gallery-page .portfolio-grid article.is-previewing .gallery-demo-scan {
    opacity: .65;
    animation: demoScan 3.6s ease-in-out infinite;
}

.gallery-page .portfolio-grid article.is-previewing .gallery-demo-shine::before {
    opacity: 1;
    animation: demoShine 4.2s ease-in-out infinite;
}

.gallery-page .portfolio-grid article.is-previewing .gallery-demo-click {
    animation: demoClick 5.5s ease-in-out infinite;
}

/* APP / DASHBOARD - câmera passeando */
.gallery-page article.static-preview:hover .portfolio-thumb img,
.gallery-page article.static-preview.is-previewing .portfolio-thumb img {
    animation: appCamera 7s ease-in-out infinite !important;
}

/* cursor */
@keyframes demoCursorMove {

    0% {
        top: 28%;
        left: 20%;
        transform: translate(-50%,-50%) rotate(-18deg);
    }

    18% {
        top: 39%;
        left: 55%;
    }

    36% {
        top: 63%;
        left: 72%;
    }

    52% {
        top: 53%;
        left: 38%;
    }

    70% {
        top: 72%;
        left: 61%;
    }

    86% {
        top: 34%;
        left: 79%;
    }

    100% {
        top: 28%;
        left: 20%;
        transform: translate(-50%,-50%) rotate(-18deg);
    }
}

/* clique sincronizado */
@keyframes demoClick {

    0%, 33%, 39%, 67%, 73%, 100% {
        opacity: 0;
        transform: scale(.5);
    }

    35% {
        top: 63%;
        left: 72%;
        opacity: .9;
        transform: scale(.5);
    }

    38% {
        top: 63%;
        left: 72%;
        opacity: 0;
        transform: scale(2.4);
    }

    69% {
        top: 72%;
        left: 61%;
        opacity: .9;
        transform: scale(.5);
    }

    72% {
        top: 72%;
        left: 61%;
        opacity: 0;
        transform: scale(2.4);
    }
}

/* linha atravessando a interface */
@keyframes demoScan {

    0% {
        top: 7%;
        opacity: 0;
    }

    15% {
        opacity: .55;
    }

    80% {
        opacity: .35;
    }

    100% {
        top: 94%;
        opacity: 0;
    }
}

/* reflexo */
@keyframes demoShine {

    0%, 20% {
        left: -60%;
        opacity: 0;
    }

    35% {
        opacity: .9;
    }

    65% {
        left: 130%;
        opacity: .45;
    }

    100% {
        left: 130%;
        opacity: 0;
    }
}

/* movimento especial para apps */
@keyframes appCamera {

    0% {
        transform: scale(1.01) translate(0,0);
    }

    25% {
        transform: scale(1.09) translate(-1.5%, -1%);
    }

    50% {
        transform: scale(1.06) translate(1.4%, -1.8%);
    }

    75% {
        transform: scale(1.10) translate(-1%, 1%);
    }

    100% {
        transform: scale(1.01) translate(0,0);
    }
}

/* leve profundidade interna */
.gallery-page .portfolio-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;

    box-shadow:
        inset 0 0 35px rgba(19,34,56,.05),
        inset 0 -20px 35px rgba(19,34,56,.04);
}

/* acessibilidade */
@media (prefers-reduced-motion: reduce) {

    .gallery-demo-cursor,
    .gallery-demo-scan,
    .gallery-demo-shine::before,
    .gallery-demo-click,
    .gallery-page .portfolio-thumb img {
        animation: none !important;
    }

}

/* FIM MOVIMENTO INTERNO GALERIA V2 */
