/* styles.css - MMTECH */
:root {
    --color-primary: #ff0000;
    --color-secondary: #000000;
    --color-accent: #ffffff;
    --color-success: #a6a6a6;
    --color-background: #FFFAF0;
    --color-text: #000000;
    --color-card: #FFFFFF;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --radius: 20px;
    --transition: all 0.3s ease;
    --gradient: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

body {
    background: url('../../images/fundovermelho.webp') center/cover no-repeat;
    margin: 0;
    min-height: 100vh;

    background-color: rgba(0, 0, 0, 0.7);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    background-blend-mode: darken;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER */
header {
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
    height: 230px;
    min-height: 230px;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.logo-container,
nav,
.logo,
nav ul {
    position: relative;
    z-index: 2;
}

.menu-toggle {
    display: none;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.logo-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
    border: 3px solid white;
}

.logo h1,
.brand-title {
    font-size: 2.5rem;
    color: white;
    text-shadow:
        -1px -1px 0 #555,
        1px -1px 0 #555,
        -1px 1px 0 #555,
        1px 1px 0 #555,
        3px 3px 0 rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin-top: -25px;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 50px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    background: rgb(240,240,240);
    color: var(--color-primary);
    transform: translateY(-5px);
}

/* MAIN CONTENT */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.section-title {
    font-size: 2rem;
    margin: 2rem 0 1.5rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 15px;
}

.icone-peq {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    filter: sepia(1) saturate(1000%) hue-rotate(200deg);
}

/* PÁGINAS */
.page-content {
    display: none;
    animation: fadeIn 0.5s ease;
    margin-top: 60px;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.page-description {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: #555;
}

.member-info {
    padding: 25px;
}

.member-name {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.member-role {
    color: var(--color-primary);
    font-weight: bold;
    margin-bottom: 15px;
}

.member-traits {
    margin-top: 15px;
    color: var(--color-primary);
    font-size: 0.9rem;
}

/* CONTATO */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 3rem 0;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--color-card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.contact-info h3,
.contact-form h3 {
    color: var(--color-text);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-icon2 {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-icon3 {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--color-secondary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-note {
    font-size: 0.85rem;
    color: #000000;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-secondary);
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
}

.btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(104,104,104, 0.3);
}

footer {
    background: linear-gradient(300deg, #650000, var(--color-secondary));
    color: white;
    padding: 2.25rem 1.5rem;
    text-align: center;
}

footer .logo {
    justify-content: center;
    margin-bottom: 20px;
}

footer .logo-image {
    width: 80px;
    height: 80px;
}

footer .logo h2 {
    font-size: 2rem;
}

.footer-description {
    margin: 20px auto 30px;
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 2rem 0;
}

.social-link {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: white;
    color: var(--color-primary);
    transform: translateY(-5px);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 2rem 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-weight: bold;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.copyright {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.copyright .fa-heart {
    color: #919191;
    margin: 0 5px;
}

.footer-inner {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
}

.footer-column {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
}

.footer-column-left {
    align-items: flex-start;
    text-align: left;
}

.footer-column-right {
    align-items: flex-end;
    text-align: right;
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {

    .logo h1,
    .brand-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        min-height: 180px;
        padding: 1rem;
    }

    .logo-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .logo {
        justify-content: center;
    }

    .logo-image {
        width: 100px;
        height: 100px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .logo h1,
    .brand-title {
        font-size: 1.8rem;
        text-align: center;
    }

    nav ul {
        gap: 10px;
    }

    nav a {
        padding: 8px 15px;
        font-size: 1rem;
    }

    main {
        padding: 1.5rem;
    }

    .contact-container {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem;
    }

    .logo h1,
    .brand-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        flex-wrap: wrap;
    }


    .team-container {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 20px;
    }

    .modal-stats {
        flex-direction: column;
        gap: 10px;
    }
}

.container {
    max-width: 1400px;
    /* largura máxima do site */
    margin: 0 auto;
    /* centraliza na tela */
    padding: 0 20px;
    /* espaço interno (respiro lateral) */

    border: 1px solid #a3a3a3;
    /* borda preta fina */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* sombra leve */
    background-color: #ffffff;
    /* importante para destacar a sombra */
}

.site-header,
.hero {
    margin-left: -20px;
    margin-right: -20px;
}

.hero {
    margin: 0 -20px 1rem;
    padding: 10rem;
    height: 20vh;
    background: url('../../images/fundo1.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.8);
    /* fundo escuro transparente */
    padding: 20px 40px;
    border-radius: 8px;
}

.sobre {
    background: #fff;
    padding: 80px 0;
}

.sobre-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 0 20px;
}

/* IMAGEM */
.sobre-imagem {
    flex: 1;
    height: 400px;
    background: url('../../images/fundo2.webp') center/cover no-repeat;
    border-radius: 10px;
}

/* TEXTO */
.sobre-conteudo {
    flex: 1;
}

.sobre-conteudo h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.sobre-destaque {
    font-weight: 600;
    margin-bottom: 15px;
}

.sobre-conteudo p {
    margin-bottom: 15px;
    color: #000000;
    line-height: 1.6;
}

/* BOTÃO */
.btn-primary {
    display: flex;
    margin-top: 10px;
    padding: 12px 25px;
    background: rgb(80,80,80);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    justify-content: center;
}

ul {
    padding-left: 50px;
    /* ajuste o valor */
}

.coluna.texto hr {
    border: none;
    height: 2px;
    width: 60px;
    background: red;
    margin: 10px 0 20px 0;
}

.secao-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* colunas */
.coluna {
    flex: 1;
}

/* imagem */
.secao-imagem {
    width: 100%;
    height: 400px;
    background: url('../../images/fundo2.webp') center/cover no-repeat;
    border-radius: 10px;
}

.secao-imagem2 {
    width: 100%;
    height: 400px;
    background: url('../../images/fundo4.webp') center/cover no-repeat;
    border-radius: 10px;
}

.seguro {
    background: #fff;
    padding: 80px 0;
}

.seguro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 0 20px;
}

/* IMAGEM */
.seguro-imagem {
    flex: 1;
    height: 400px;
    background: url('../../images/fundo3.webp') center/cover no-repeat;
    border-radius: 10px;
}

/* TEXTO */
.seguro-conteudo {
    flex: 1;
}

.seguro-conteudo h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.seguro-destaque {
    font-weight: 600;
    margin-bottom: 15px;
}

.seguro-conteudo p {
    margin-bottom: 15px;
    color: #000000;
    line-height: 1.6;
}

.servicos {
    padding: 60px 20px;
    background: #ffffff;
    color: #000000;
}

.servicos h2 {
    text-align: center;
    margin-bottom: 10px;
}

.servicos hr {
    width: 60px;
    height: 3px;
    background: red;
    border: none;
    margin: 0 auto 40px;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card-servico {
    text-decoration: none;
    color: inherit;
}

.card-conteudo {
    background: #afafaf;
    padding: 25px;
    border-radius: 12px;
    height: 100%;
    transition: 0.3s ease;
    border: 1px solid #2a2a2a;
}

.card-conteudo:hover {
    transform: translateY(-5px);
    border-color: red;
}

.card-conteudo h3 {
    margin-bottom: 15px;
    color: red;
}

.card-conteudo p {
    margin-bottom: 12px;
    line-height: 1.5;
}

.card-conteudo ul {
    margin: 15px 0;
    padding-left: 18px;
}

.card-conteudo ul li {
    margin-bottom: 8px;
}

.card-imagem {
    margin-top: 15px;
    overflow: hidden;
    border-radius: 10px;
}

.card-imagem img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.3s ease;
}

.card-conteudo:hover .card-imagem img {
    transform: scale(1.05);
}

/* Ajustes finais MMTECH */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 1rem;
    height: auto;
    min-height: 230px;
}

.logo-container {
    justify-content: center;
}

.logo {
    margin-top: 0;
}

.logo-text {
    color: #ffffff;
}

.eyebrow,
.hero-kicker,
.section-kicker {
    color: #000000;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.logo h1,
.brand-title {
    line-height: 1;
}

.logo-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

nav ul {
    margin-top: 0;
}

main {
    padding-top: 1rem;
}

.page-content {
    margin-top: 0;
}

.hero {
    min-height: 520px;
    height: auto;
    padding: clamp(3rem, 8vw, 8rem) 1.5rem;
    border-radius: 18px;
}

.hero-content {
    max-width: 900px;
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary,
.btn {
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.btn-primary {
    align-items: center;
    background: #5c5c5c;
    display: inline-flex;
    gap: 0.5rem;
    width: fit-content;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn:hover {
    filter: brightness(1.08);
    transform: translateY(-3px);
}

.btn-secondary {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    display: inline-flex;
    justify-content: center;
    padding: 12px 25px;
}

.sobre,
.secao,
.seguro,
.servicos {
    border-radius: 18px;
}

.section-heading {
    margin: 0 auto 2.5rem;
    max-width: 850px;
    text-align: center;
}

.section-heading h2,
.secao h2,
.seguro h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.feature-list,
.diferenciais {
    padding-left: 1.25rem;
}

.feature-list li,
.diferenciais li {
    margin-bottom: 0.8rem;
}

.secao-container,
.sobre-container,
.seguro-container {
    align-items: center;
}

.secao-imagem2 {
    background: url('../../images/fundo3.webp') center/cover no-repeat;
}

.card-servico {
    display: block;
}

.card-conteudo {
    background: #f5f5f5;
    border-color: #dedede;
    color: #111;
}

.card-conteudo h3 {
    font-size: 1.5rem;
    color: #c90000;
}

.card-placeholder {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(120, 0, 0, 0.88), rgba(0, 0, 0, 0.88)),
        url('../../images/fundo2.webp') center/cover no-repeat;
    color: #fff;
    display: flex;
    min-height: 220px;
    padding: 2rem;
    text-align: center;
}

.card-placeholder span {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    width: 100%;
}

.contact-heading {
    margin-top: 2rem;
}

.faq-section {
    background: #fff;
    border-radius: 18px;
    padding: 60px 20px;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    margin: 0 auto;
    max-width: 1200px;
}

.faq-item {
    background: #f8f8f8;
    border: 1px solid #e2e2e2;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}

.faq-question {
    align-items: center;
    background: transparent;
    border: none;
    color: #b80000;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.3rem 1.5rem;
    text-align: left;
    width: 100%;
}

.faq-question i {
    color: #b80000;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding: 0 1.5rem;
}

.faq-item.is-open .faq-answer {
    opacity: 1;
    padding: 0 1.5rem 1.4rem;
}

.faq-answer p {
    margin: 0;
}

.faq-item h3,
.faq-item .faq-question span {
    color: #b80000;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.contact-details h4 {
    margin-bottom: 0.35rem;
}

.contact-details a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--color-primary);
}

.contact-note {
    margin-bottom: 1.5rem;
}

.optional-field {
    color: #777;
    font-size: 0.85rem;
    font-weight: 500;
}

.hp-field {
    left: -9999px;
    opacity: 0;
    position: absolute;
}

.form-feedback {
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    min-height: 1.5rem;
    padding: 0.75rem 1rem;
}

.form-feedback:empty {
    display: none;
}

.form-feedback[data-type="info"] {
    background: #f4f4f4;
    color: #494949;
}

.form-feedback[data-type="success"] {
    background: #f4f4f4;
    color: #525252;
}

.form-feedback[data-type="error"] {
    background: #fdecec;
    color: #ad1111;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

footer {
    padding: 3rem 1rem;
}

.footer-logo {
    justify-content: center;
}

footer .logo-text {
    text-align: left;
}

@media (min-width: 769px) {
    footer {
        padding: 2.25rem 1.5rem;
    }

    .footer-logo {
        justify-content: flex-start;
        margin-bottom: 0.85rem;
    }

    .footer-description {
        margin: 0;
        max-width: 500px;
    }

    .social-links {
        justify-content: flex-end;
        margin: 0 0 1rem;
    }

    .footer-links {
        gap: 16px;
        justify-content: flex-end;
        margin: 0 0 1rem;
        max-width: 420px;
    }

    .copyright {
        margin-top: 0;
    }
}

@media (max-width: 900px) {

    .sobre-container,
    .secao-container,
    .seguro-container {
        flex-direction: column;
    }

    .sobre-imagem,
    .secao-imagem2,
    .seguro-imagem {
        min-height: 300px;
        width: 100%;
    }

    .coluna {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-column-left,
    .footer-column-right {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 10px;
    }

    .site-header {
        background-position: center top;
        min-height: auto;
        padding: 0.75rem 0.5rem 0.65rem;
        row-gap: 0.7rem;
    }

    .logo {
        justify-content: center;
        text-align: center;
        gap: 0.65rem;
    }

    .logo-image {
        height: 64px;
        margin: 0;
        width: 64px;
    }

    .logo-text {
        width: auto;
    }

    .eyebrow,
    .logo-subtitle {
        display: none;
    }

    .logo h1,
    .brand-title {
        font-size: 1.55rem;
    }

    nav {
        margin-inline: -0.5rem;
        overflow-x: auto;
        padding: 0 0.5rem 0.15rem;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav ul {
        flex-wrap: nowrap;
        gap: 0.45rem;
        justify-content: flex-start;
        min-width: max-content;
    }

    nav a {
        font-size: 0.78rem;
        gap: 0.35rem;
        padding: 0.5rem 0.72rem;
    }

    main {
        padding: 1rem 0.5rem;
    }

    .hero {
        min-height: auto;
    }

    .hero-actions,
    .btn-primary,
    .btn-secondary,
    .btn {
        width: 100%;
    }

    .contact-item {
        flex-direction: column;
    }

    footer .logo-text {
        text-align: center;
    }
}

/* SEO: mantém todas as seções renderizadas para indexação e navegação por rolagem. */
.page-content {
    display: block;
    margin-top: 0;
    scroll-margin-top: 250px;
}

@media (max-width: 640px) {
    .page-content {
        scroll-margin-top: 140px;
    }
}

/* Imagens otimizadas com fallback */
body {
    background-image: image-set(url('../../images/fundovermelho.webp') type('image/webp'));
}

.hero {
    background-image: image-set(url('../../images/fundo1.webp') type('image/webp'));
}

.sobre-imagem {
    background-image: image-set(url('../../images/fundo2.webp') type('image/webp'));
}

.seguro-imagem {
    background-image: image-set(url('../../images/fundo3.webp') type('image/webp'));
}

.secao-imagem2 {
    background-image: image-set(url('../../images/fundo4.webp') type('image/webp'));
}

.card-placeholder {
    background-image:
        linear-gradient(135deg, rgba(120, 0, 0, 0.88), rgba(0, 0, 0, 0.88)),
        image-set(url('../../images/fundo2.webp') type('image/webp'));
}

.card-imagem {
    display: block;
}


/* Override final do layout atualizado */
.site-header {
    position: relative;
    top: auto;
}

nav a,
.btn,
.btn-primary,
.btn-secondary,
.contact-icon {
    background: #3a3a3a;
}

.contact-icon2 {
    background: #383838;
}

.contact-icon3 {
    background: #8d8d8d;
}

.btn-secondary {
    border-color: #c40000;
}

.card-conteudo,
.story-card,
.faq-item,
.contact-info,
.contact-form {
    will-change: auto;
}

/* Refinos visuais solicitados */
.site-header {
    align-items: center;
    align-content: start;
    background-position: center top;
    display: flex;
    justify-content: space-between;
    min-height: 110px;
    padding: 0.75rem 1.5rem;
    position: relative;
    top: auto;
    z-index: 5;
}

.logo-container {
    flex: 0 1 auto;
    justify-content: flex-start;
}

.logo {
    align-items: center;
    gap: 0.9rem;
}

.logo-image {
    border-radius: 24px;
    height: 88px;
    margin-right: 0;
    width: 88px;
}

.logo-text {
    max-width: 320px;
    padding-top: 0;
}

.eyebrow {
    color: #ffffff;
    opacity: 0.82;
}

.brand-title {
    display: none;
}

.logo-subtitle {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

#mainNav {
    flex: 1 1 auto;
}

nav ul {
    align-items: center;
    justify-content: flex-end;
}

nav a {
    background: #c40000;
    box-shadow: 0 10px 22px rgba(120, 0, 0, 0.22);
}

nav a:hover,
nav a.active {
    background: #9f0000;
    color: #fff;
}

.btn,
.btn-primary,
.btn-secondary {
    background: #c40000;
    border: 1px solid #c40000;
    box-shadow: 0 12px 24px rgba(120, 0, 0, 0.2);
    color: #fff;
}

.btn-secondary {
    background: #c40000;
    color: #fff;
}

.btn-budget {
    background: #646464;
    border-color: #646464;
}

.btn-budget:hover {
    background: #4e4e4e;
    border-color: #4e4e4e;
    color: #fff;
}

.btn-team {
    align-items: center;
    background:
        linear-gradient(135deg, #243cff 0%, #0077ff 54%, #00b8ff 100%);
    border: 0;
    border-radius: 999px 999px 999px 20px;
    box-shadow:
        0 18px 38px rgba(0, 119, 255, 0.32),
        0 0 0 1px rgba(224, 250, 255, 0.26) inset,
        0 0 44px rgba(0, 184, 255, 0.24);
    color: #e8fbff;
    font-size: clamp(0.92rem, 1.5vw, 1.04rem);
    gap: 0.75rem;
    isolation: isolate;
    letter-spacing: 0.08em;
    min-height: 58px;
    overflow: hidden;
    padding: 1rem 1.1rem 1rem 1.7rem;
    position: relative;
    text-shadow: 0 1px 12px rgba(8, 19, 43, 0.38);
    transform: translateZ(0);
    transition:
        box-shadow 0.32s ease,
        filter 0.32s ease,
        transform 0.32s ease;
}

.btn-team::before {
    background: linear-gradient(115deg, transparent 0%, rgba(224, 250, 255, 0.74) 45%, transparent 70%);
    bottom: -35%;
    content: "";
    left: -58%;
    pointer-events: none;
    position: absolute;
    top: -35%;
    transform: skewX(-18deg);
    transition: left 0.72s ease;
    width: 44%;
}

.btn-team:hover {
    background:
        linear-gradient(135deg, #172fd6 0%, #0067df 52%, #00a7ea 100%);
    box-shadow:
        0 24px 54px rgba(0, 119, 255, 0.44),
        0 0 0 1px rgba(224, 250, 255, 0.34) inset,
        0 0 62px rgba(0, 184, 255, 0.38);
    color: #e8fbff;
    filter: none;
    transform: translateY(-4px) scale(1.02);
}

.btn-team:hover::before {
    left: 118%;
}

.btn-team i {
    align-items: center;
    background: rgba(3, 30, 86, 0.32);
    border: 1px solid rgba(166, 230, 255, 0.36);
    border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(224, 250, 255, 0.24);
    color: #c9f7ff;
    display: inline-flex;
    height: 2.3rem;
    justify-content: center;
    margin-left: 0.15rem;
    position: relative;
    width: 2.3rem;
    z-index: 1;
}

.hero {
    align-items: stretch;
    background-position: center;
    border-radius: 0;
    min-height: 560px;
    overflow: hidden;
    position: relative;
}

.hero-content {
    background: linear-gradient(135deg, rgba(7, 7, 7, 0.82), rgba(42, 0, 0, 0.72));
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
    content: '';
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: scale(1.04);
    transition: opacity 0.9s ease, transform 1.1s ease;
}

.hero.is-visible::after {
    opacity: 1;
    transform: scale(1);
}

.hero.is-visible .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-kicker,
.section-kicker {
    color: #9f0000;
}

.automacao-intro,
.storyline {
    background: #fff;
    border-radius: 18px;
    margin: 2rem 0;
    padding: 60px 20px;
}

.highlights,
.cases-section,
.clientes-section {
    background: #fff;
    border-radius: 18px;
    margin: 2rem 0;
    padding: 48px 20px;
}

.highlights {
    background: rgb(0, 0, 0);
    border-radius: 0;
    margin-left: -20px;
    margin-right: -20px;
    padding: 48px 20px;
}

.highlights-heading {
    color: #fff;
    margin: 0 auto 1.5rem;
    max-width: 1200px;
    text-align: center;
}

.highlights-heading h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin: 0;
}

.highlights-grid,
.cases-grid,
.clientes-grid {
    display: grid;
    gap: 1.25rem;
    margin: 0 auto;
    max-width: 1200px;
}

.highlights-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 1.1rem 0 0;
}

.highlight-card {
    background: linear-gradient(180deg, #fafafa, #f1f1f1);
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.05);
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.highlight-card:hover {
    border-color: #c60000;
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.highlight-value {
    color: #000000;
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: color 0.35s ease, text-shadow 0.35s ease, transform 0.35s ease;
}

.highlight-label {
    color: #000000;
    font-size: 1.05rem;
    font-weight: 600;
    transition: color 0.35s ease, letter-spacing 0.35s ease;
}

.clientes-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.cases-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.case-card {
    background: #fff;
    border: 1px solid rgba(15, 15, 15, 0.08);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    color: inherit;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    text-align: left;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.case-card:hover {
    border-color: rgba(182, 0, 0, 0.35);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.14);
    transform: translateY(-6px);
}

.case-image {
    aspect-ratio: 4 / 3;
    background: #ececec;
    overflow: hidden;
}

.case-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    width: 100%;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 1rem;
}

.case-badge {
    background: rgba(182, 0, 0, 0.1);
    border-radius: 999px;
    color: #b60000;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    padding: 0.35rem 0.65rem;
}

.case-content h3 {
    color: #151515;
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.case-content p {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.clientes-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.cliente-placeholder {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(15, 15, 15, 0.08);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: center;
    min-height: 112px;
    padding: 1rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cliente-placeholder:hover {
    border-color: rgba(182, 0, 0, 0.35);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.cliente-placeholder img {
    display: block;
    height: 68px;
    max-width: 150px;
    object-fit: contain;
    width: 100%;
}

.card-conteudo,
.story-card,
.highlight-card,
.faq-item,
.contact-info,
.contact-form {
    border-radius: 20px;
}

.youtube-section {
    background: #000;
    border-radius: 28px;
    color: #fff;
    margin: 1.5rem 0;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4rem) 20px;
}

.youtube-shell {
    align-items: stretch;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.6fr);
    margin: 0 auto;
    max-width: 1240px;
}

.youtube-copy {
    align-content: center;
    display: grid;
    gap: 1rem;
}

.youtube-copy h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    margin: 0;
}

.youtube-copy p {
    color: rgba(255, 255, 255, 0.86);
    margin: 0;
}

.youtube-channel-link {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    color: #000000;
    display: inline-flex;
    font-weight: 800;
    gap: 0.6rem;
    justify-content: center;
    padding: 0.9rem 1.2rem;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    width: fit-content;
}

.youtube-channel-link:hover {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
    transform: translateY(-3px);
}

.youtube-carousel-wrap {
    background: rgba(200, 1, 1, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    min-width: 0;
    padding: 1rem;
}

.youtube-carousel-header {
    align-items: center;
    display: flex;
    font-weight: 800;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.youtube-carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.youtube-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 42px;
}

.youtube-nav:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.youtube-carousel {
    display: grid;
    gap: 1rem;
    grid-auto-columns: minmax(280px, 340px);
    grid-auto-flow: column;
    overflow-x: auto;
    padding: 0.2rem 0.1rem 0.9rem;
    scroll-snap-type: x mandatory;
    scrollbar-color: #fff rgba(255, 255, 255, 0.14);
    scrollbar-width: thin;
}

.youtube-video-card,
.youtube-empty-card {
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
    color: #181818;
    overflow: hidden;
    scroll-snap-align: start;
}

.youtube-video-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: left;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.youtube-video-card:hover {
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.2);
    transform: translateY(-6px);
}

.youtube-thumb {
    aspect-ratio: 16 / 9;
    background: #1b1b1b;
    display: block;
    overflow: hidden;
    position: relative;
}

.youtube-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    width: 100%;
}

.youtube-video-card:hover .youtube-thumb img {
    transform: scale(1.05);
}

.youtube-play {
    align-items: center;
    background: #b60000;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 54px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
}

.youtube-duration {
    background: rgba(0, 0, 0, 0.78);
    border-radius: 999px;
    bottom: 0.7rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.28rem 0.55rem;
    position: absolute;
    right: 0.7rem;
}

.youtube-video-body {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.youtube-video-body strong {
    color: #141414;
    display: -webkit-box;
    font-size: 1rem;
    line-height: 1.25;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.youtube-stats {
    color: #555;
    display: grid;
    gap: 0.4rem;
    font-size: 0.88rem;
}

.youtube-stats span {
    align-items: center;
    display: flex;
    gap: 0.45rem;
}

.youtube-empty-card {
    align-content: center;
    display: grid;
    gap: 0.75rem;
    min-height: 260px;
    padding: 1.5rem;
}

.youtube-empty-card i {
    color: #d40000;
    font-size: 2.2rem;
}

.youtube-empty-card h3,
.youtube-empty-card p {
    margin: 0;
}

.youtube-empty-card a {
    color: #b60000;
    font-weight: 800;
}

body.youtube-player-open {
    overflow: hidden;
}

.youtube-player-modal {
    inset: 0;
    position: fixed;
    z-index: 1400;
}

.youtube-player-backdrop {
    background: rgba(0, 0, 0, 0.76);
    inset: 0;
    position: absolute;
}

.youtube-player-dialog {
    background: #050505;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    display: flex;
    flex-direction: column;
    inset: 1.5vh 1.5vw;
    overflow: hidden;
    position: absolute;
}

.youtube-player-header {
    align-items: center;
    background: linear-gradient(90deg, #8b0000, #151515);
    color: #fff;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 58px;
    padding: 0.75rem 1rem;
}

.youtube-player-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.youtube-player-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.youtube-player-frame {
    border: 0;
    flex: 1;
    min-height: calc(97vh - 58px);
    width: 100%;
}

footer {
    margin: 1.5rem -20px 0;
}

@media (max-width: 900px) {
    .youtube-shell {
        grid-template-columns: 1fr;
    }

    .youtube-channel-link {
        width: 100%;
    }

    .youtube-carousel {
        grid-auto-columns: minmax(270px, 72vw);
    }

    .site-header {
        flex-wrap: wrap;
        min-height: 76px;
        padding: 0.55rem 1rem;
    }

    .logo-image {
        height: 64px;
        width: 64px;
    }

    .menu-toggle {
        align-items: center;
        background: #b60000;
        border: 0;
        border-radius: 14px;
        cursor: pointer;
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
        height: 44px;
        justify-content: center;
        margin-left: auto;
        width: 46px;
    }

    .menu-toggle span {
        background: #fff;
        border-radius: 999px;
        display: block;
        height: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
        width: 22px;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    #mainNav {
        display: none;
        flex-basis: 100%;
    }

    #mainNav.is-open {
        display: block;
    }

    #mainNav ul {
        align-items: stretch;
        background: rgba(15, 15, 15, 0.94);
        border-radius: 18px;
        flex-direction: column;
        gap: 0.45rem;
        margin-top: 0.8rem;
        padding: 0.75rem;
    }

    #mainNav a {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 14px;
    }

    .site-header,
    .hero,
    .highlights,
    footer {
        margin-left: -14px;
        margin-right: -14px;
    }

    .hero {
        min-height: 520px;
        padding: 3rem 14px;
    }

    .automacao-intro,
    .storyline,
    .sobre,
    .servicos,
    .faq-section,
    .cases-section,
    .clientes-section {
        border-radius: 18px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .scroll-showcase {
        border-radius: 18px;
        margin-inline: 0;
        padding: 0.8rem;
    }

    .scroll-showcase-cases {
        max-height: 700px;
    }

    .scroll-showcase-clients {
        max-height: 330px;
    }

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

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

    .cliente-placeholder {
        min-height: 96px;
        padding: 0.75rem;
    }

    .cliente-placeholder img {
        height: 58px;
        max-width: 120px;
    }
}

/* Final navigation and opening carousel polish */
#home,
#quem-somos,
#cases-sucesso,
#servicos,
#faq,
#contact {
    scroll-margin-top: 108px;
}

.site-header {
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 40, 40, 0.24), transparent 32%),
        linear-gradient(135deg, rgba(5, 5, 5, 0.94), rgba(40, 0, 0, 0.92) 52%, rgba(12, 12, 12, 0.94));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transition: background-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

#mainNav a {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    letter-spacing: 0;
}

#mainNav a:hover,
#mainNav a.active {
    background: #c40000;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 28px rgba(196, 0, 0, 0.28);
    color: #fff;
    transform: translateY(-2px);
}

.site-callout {
    min-height: 680px;
    padding-top: 2rem;
}

.site-callout-grid {
    gap: 1.5rem;
}

.site-callout-content {
    gap: 0.8rem;
    max-width: 900px;
}

.site-callout-logo {
    background: rgba(0, 0, 0, 0.36);
    border-radius: 22px;
    height: 112px;
    object-fit: contain;
    padding: 0.55rem 1.1rem;
    width: 300px;
}

.site-callout h2 {
    gap: 0.65rem;
    letter-spacing: 0;
}

.site-callout-word>span {
    font-size: 4rem;
    letter-spacing: 0;
    transform: none;
}

.site-callout-separator {
    font-size: 2.2rem;
    line-height: 1;
}

.site-callout-subtitle {
    font-size: 1.35rem;
}

.site-callout-service {
    font-size: 1.05rem;
}

.reveal-once {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: auto;
}

.reveal-once.is-revealed {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

@media (max-width: 900px) {

    #home,
    #quem-somos,
    #cases-sucesso,
    #servicos,
    #faq,
    #contact {
        scroll-margin-top: 92px;
    }

    .site-callout {
        min-height: 640px;
        padding-top: 1.4rem;
    }

    .site-callout-logo {
        height: 92px;
        width: 250px;
    }

    .site-callout-word>span {
        font-size: 2.8rem;
    }

}

@media (max-width: 640px) {
    .site-callout {
        min-height: 600px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-callout-logo {
        height: 78px;
        width: 218px;
    }

    .site-callout h2 {
        gap: 0.28rem;
    }

    .site-callout-word>span {
        font-size: 1.35rem;
    }

    .site-callout-separator {
        font-size: 1rem;
    }

    .site-callout-subtitle {
        font-size: 0.86rem;
    }

    .site-callout-service {
        font-size: 0.78rem;
    }

}

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

    .reveal-once {
        transition: none;
    }
}

/* Standard red hover for Nossa História cards */
.highlights .highlight-card:hover {
    background: #c40000;
    border-color: #c40000;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.24);
    transform: translateY(-14px) scale(1.035);
}

.highlights .highlight-card:hover .highlight-value {
    color: #fff;
    text-shadow: none;
    transform: scale(1.06);
}

.highlights .highlight-card:hover .highlight-label {
    color: #fff;
    letter-spacing: 0.04em;
}

/* Opening customer journey */
.site-callout {
    align-items: center;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 40, 40, 0.42), transparent 28%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.14), transparent 25%),
        radial-gradient(circle at 62% 82%, rgba(196, 0, 0, 0.44), transparent 30%),
        linear-gradient(135deg, #050505, #280000 48%, #0c0c0c);
    animation: calloutLava 16s ease-in-out infinite alternate;
    background-size: 140% 140%, 120% 120%, 150% 150%, 100% 100%;
    border-radius: 0 0 28px 28px;
    color: #fff;
    display: flex;
    justify-content: center;
    margin: 0 -20px 0;
    min-height: clamp(360px, 52vw, 620px);
    overflow: hidden;
    padding: clamp(1.35rem, 4vw, 3.2rem) 20px clamp(3rem, 8vw, 7rem);
    position: relative;
    text-align: center;
}

@keyframes calloutLava {
    0% {
        background-position: 0% 20%, 100% 0%, 45% 100%, center;
    }

    50% {
        background-position: 32% 72%, 64% 32%, 88% 58%, center;
    }

    100% {
        background-position: 100% 54%, 18% 82%, 20% 8%, center;
    }
}

.site-callout::before,
.site-callout::after {
    border-radius: 999px;
    content: "";
    filter: blur(2px);
    position: absolute;
    transform: scale(0.7);
    transition: opacity 0.9s ease, transform 1.1s ease;
}

.site-callout::before {
    background: rgba(196, 0, 0, 0.28);
    height: 260px;
    left: -80px;
    top: 12%;
    width: 260px;
}

.site-callout::after {
    background: rgba(255, 255, 255, 0.08);
    bottom: -110px;
    height: 320px;
    right: -80px;
    width: 320px;
}

.site-callout.is-visible::before,
.site-callout.is-visible::after {
    opacity: 1;
    transform: scale(1);
}

.site-callout-overlay {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62)),
        radial-gradient(circle at 28% 48%, rgba(255, 31, 31, 0.2), transparent 22%),
        radial-gradient(circle at 75% 48%, rgba(196, 0, 0, 0.24), transparent 32%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.44));
    inset: 0;
    position: absolute;
}

.site-callout-overlay::before,
.site-callout-overlay::after {
    border-radius: 999px;
    content: "";
    filter: blur(26px);
    mix-blend-mode: screen;
    opacity: 0.34;
    position: absolute;
}

.site-callout-overlay::before {
    animation: lavaBlobOne 12s ease-in-out infinite alternate;
    background: #ff1f1f;
    height: 260px;
    left: 42%;
    top: 10%;
    width: 160px;
}

.site-callout-overlay::after {
    animation: lavaBlobTwo 15s ease-in-out infinite alternate;
    background: #ffffff;
    bottom: 8%;
    height: 180px;
    right: 22%;
    width: 120px;
}

@keyframes lavaBlobOne {
    from {
        transform: translate3d(-40px, 40px, 0) rotate(12deg) scale(0.85);
    }

    to {
        transform: translate3d(80px, 160px, 0) rotate(-18deg) scale(1.25);
    }
}

@keyframes lavaBlobTwo {
    from {
        transform: translate3d(20px, -30px, 0) rotate(-8deg) scale(0.8);
    }

    to {
        transform: translate3d(-120px, -120px, 0) rotate(20deg) scale(1.18);
    }
}

.site-callout-grid {
    align-items: center;
    display: grid;
    gap: clamp(1.75rem, 4vw, 3.2rem);
    grid-template-columns: 1fr;
    max-width: 1240px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.site-callout-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 3vw, 1.75rem);
    justify-self: center;
    max-width: 980px;
    opacity: 0;
    position: relative;
    text-align: center;
    transform: translateY(34px) scale(0.98);
    transition: opacity 0.9s ease, transform 0.9s ease;
    z-index: 2;
}

.site-callout.is-visible .site-callout-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.site-callout-logo {
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 46px;
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.4),
        0 0 62px rgba(255, 31, 31, 0.32);
    display: block;
    height: clamp(165px, 17vw, 255px);
    margin: 0 auto;
    object-fit: cover;
    width: clamp(165px, 17vw, 255px);
}

.site-callout-copy {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: clamp(0.7rem, 2vw, 1.2rem);
    min-width: 0;
    width: 100%;
}

.site-callout-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
}

.site-callout-kicker {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(0.8rem, 1.6vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.22em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.site-callout h2 {
    align-items: center;
    color: #fff;
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(0.45rem, 1.1vw, 0.85rem);
    justify-content: center;
    margin: 0;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.58);
    white-space: nowrap;
}

.site-callout-word {
    display: inline-flex;
}

.site-callout-word>span {
    display: inline;
    font-size: clamp(2rem, 4.8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.site-callout-separator {
    align-self: center;
    font-size: clamp(1.7rem, 4vw, 3.6rem);
}

.site-callout strong {
    color: #ff1f1f;
    font-weight: 900;
    padding: 0 0.16em;
    text-shadow: 0 0 20px rgba(255, 31, 31, 0.45);
}

.site-callout-subtitle,
.site-callout-service {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.35;
    margin: 0;
    text-transform: uppercase;
}

.site-callout-subtitle {
    font-size: clamp(1.15rem, 2.4vw, 1.75rem);
}

.site-callout-service {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(0.95rem, 1.9vw, 1.25rem);
    margin-top: 0.35rem;
}

@media (max-width: 900px) {
    .site-callout-content {
        gap: 1rem;
        max-width: 100%;
    }

    .site-callout-logo {
        border-radius: 28px;
        height: clamp(84px, 18vw, 140px);
        width: clamp(84px, 18vw, 140px);
    }

    .site-callout h2 {
        gap: 0.45rem;
    }

    .site-callout-copy {
        gap: 0.9rem;
    }

    .site-callout-word>span {
        font-size: clamp(1.55rem, 5vw, 3rem);
    }

    .site-callout-separator {
        font-size: clamp(1.25rem, 4vw, 2.4rem);
    }
}

@media (max-width: 640px) {
    .site-callout {
        margin-left: -14px;
        margin-right: -14px;
        min-height: auto;
        padding: 1.5rem 14px 3rem;
    }

    .site-callout-grid {
        grid-template-columns: 1fr;
    }

    .site-callout-content {
        gap: 0.8rem;
    }

    .site-callout-logo {
        border-radius: 22px;
        height: 96px;
        width: 96px;
    }

    .site-callout h2 {
        gap: 0.25rem;
    }

    .site-callout-copy {
        gap: 0.65rem;
    }

    .site-callout-word>span {
        font-size: clamp(1rem, 4.4vw, 1.35rem);
        letter-spacing: -0.045em;
    }

    .site-callout-separator {
        font-size: 1rem;
        padding: 0;
    }

    .site-callout-subtitle {
        font-size: clamp(0.78rem, 3.4vw, 1rem);
    }

    .site-callout-service {
        font-size: clamp(0.72rem, 3vw, 0.9rem);
    }

    .automacao-intro-texto h2 {
        white-space: normal;
    }

    .cases-section .section-heading h2 {
        white-space: normal;
    }

    .storyline .section-heading h2 {
        white-space: normal;
    }

    .storyline-grid {
        gap: 2rem;
        grid-template-columns: 1fr;
    }

    .storyline-grid::before {
        background: linear-gradient(180deg, transparent, rgba(196, 0, 0, 0.32), transparent);
        bottom: 5%;
        height: auto;
        left: 42px;
        right: auto;
        top: 5%;
        transform: none;
        width: 3px;
    }

    .storyline-grid .story-card:not(:last-child)::after {
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 18px solid #c40000;
        border-bottom: 0;
        bottom: -1.5rem;
        left: 39px;
        right: auto;
        top: auto;
        transform: none;
    }
}

.cases-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.scroll-showcase {
    background: linear-gradient(180deg, rgba(246, 246, 246, 0.96), rgba(236, 236, 236, 0.96));
    border: 1px solid #dedede;
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    margin: 0 auto;
    max-width: 1240px;
    overflow-y: auto;
    padding: 1.25rem;
    scrollbar-color: #b70000 rgba(0, 0, 0, 0.08);
    scrollbar-width: thin;
}

.scroll-showcase::-webkit-scrollbar {
    width: 12px;
}

.scroll-showcase::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
}

.scroll-showcase::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d00000, #8c0000);
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
}

.scroll-showcase-cases {
    max-height: 980px;
}

.scroll-showcase-clients {
    max-height: 420px;
}

.case-card {
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.98), rgba(241, 241, 241, 0.98));
    border: 1px solid #e1e1e1;
    border-radius: 18px;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    padding: 0;
    text-align: left;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.case-card:hover {
    border-color: #c40000;
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.case-image {
    aspect-ratio: 4 / 3;
    background: #eaeaea;
    overflow: hidden;
}

.case-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    width: 100%;
}

.case-card:hover .case-image img {
    transform: scale(1.04);
}

.case-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.35rem;
}

.case-badge {
    align-self: flex-start;
    background: rgba(196, 0, 0, 0.12);
    border-radius: 999px;
    color: #9f0000;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.75rem;
    text-transform: uppercase;
}

.case-content h3 {
    color: #9f0000;
    font-size: 1.2rem;
    line-height: 1.15;
}

.case-content p {
    color: #333;
    margin: 0;
}

.cliente-placeholder {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(250, 250, 250, 0.98), rgba(241, 241, 241, 0.98));
    border: 1px dashed #cfcfcf;
    border-radius: 18px;
    color: #666;
    display: flex;
    justify-content: center;
    min-height: 120px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.cliente-placeholder:hover {
    border-color: #c40000;
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.cliente-placeholder img {
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
    height: 74px;
    margin: 0 auto;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

body.case-viewer-open {
    overflow: hidden;
}

.case-viewer-modal {
    inset: 0;
    position: fixed;
    z-index: 1300;
}

.case-viewer-backdrop {
    background: rgba(0, 0, 0, 0.72);
    inset: 0;
    position: absolute;
}

.case-viewer-dialog {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    inset: 4vh 4vw;
    overflow: hidden;
    position: absolute;
}

.case-viewer-header {
    align-items: center;
    background: linear-gradient(180deg, #8b0000, #5c0000);
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.case-viewer-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.case-viewer-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.1rem;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.case-viewer-frame {
    background: #111;
    border: none;
    flex: 1;
    width: 100%;
}

.automacao-intro-container {
    align-items: stretch;
    display: flex;
    gap: 40px;
    margin: 0 auto;
    max-width: 1200px;
}

.automacao-intro-texto,
.automacao-intro-visual {
    flex: 1;
}

.automacao-intro-texto h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.automacao-intro-texto p {
    margin-bottom: 1.4rem;
}

.automacao-intro-texto p:last-child {
    margin-bottom: 0;
}

.automacao-intro-imagem {
    background: url('../../images/fundo3.webp') center/cover no-repeat;
    border-radius: 28px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    min-height: 360px;
}

.automacao-intro-visual {
    display: grid;
    align-content: start;
    gap: 1.15rem;
    min-width: 0;
}

.automacao-mini-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

.automation-mini-card {
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.96), rgba(0, 0, 0, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    margin: 0;
    overflow: hidden;
}

.automation-mini-card img {
    aspect-ratio: 1;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.automation-context-panel {
    background:
        radial-gradient(circle at 100% 0%, rgba(196, 0, 0, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(0, 0, 0, 0.93));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: clamp(1.15rem, 2vw, 1.55rem);
}

.automation-context-panel h3 {
    color: #fff;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.18;
    margin: 0 0 0.85rem;
}

.automation-context-panel p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    margin: 0 0 0.85rem;
}

.automation-context-panel p:last-child {
    margin-bottom: 0;
}

.storyline-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 0 auto;
    max-width: 1200px;
}

.story-card,
.faq-item,
.contact-info,
.contact-form,
.card-conteudo,
.cliente-placeholder,
.highlight-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.story-card {
    background: linear-gradient(180deg, #fafafa, #f2f2f2);
    border: 1px solid #e4e4e4;
    border-radius: 18px;
    padding: 1.5rem;
}

.story-card h3 {
    color: #9f0000;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

/* Flowchart layout for project process */
.storyline-grid {
    align-items: stretch;
    gap: clamp(2.5rem, 4vw, 4rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
}

.storyline-grid::before {
    background: linear-gradient(90deg, transparent, rgba(196, 0, 0, 0.28), transparent);
    content: "";
    height: 3px;
    left: 8%;
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}

.storyline-grid .story-card {
    isolation: isolate;
    min-height: 100%;
    position: relative;
    z-index: 1;
}

.storyline-grid .story-card:not(:last-child)::after {
    border-bottom: 12px solid transparent;
    border-left: 18px solid #c40000;
    border-top: 12px solid transparent;
    content: "";
    filter: drop-shadow(0 0 12px rgba(196, 0, 0, 0.32));
    position: absolute;
    right: calc(-1 * clamp(1.65rem, 2.7vw, 2.6rem));
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.card-servico:hover .card-conteudo,
.story-card:hover,
.faq-item:hover,
.contact-info:hover,
.contact-form:hover {
    border-color: #c40000;
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.card-conteudo:hover .card-imagem img {
    transform: scale(1.07);
}

.card-conteudo:hover .card-placeholder {
    transform: scale(1.03);
}

.card-placeholder {
    background:
        linear-gradient(135deg, rgba(20, 20, 20, 0.2), rgba(120, 0, 0, 0.2)),
        url('../../images/fundo4.webp') center/cover no-repeat;
    justify-content: flex-end;
    min-height: 260px;
}

.card-placeholder span {
    background: rgba(0, 0, 0, 0.58);
    border-radius: 16px;
    padding: 1rem 1.2rem;
}

.whatsapp-widget {
    bottom: 18px;
    left: 18px;
    position: fixed;
    z-index: 120;
}

.back-to-top {
    align-items: center;
    background: #c40000;
    border: none;
    border-radius: 999px;
    bottom: 20px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    height: 52px;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 20px;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
    width: 52px;
    z-index: 121;
}

.back-to-top:hover {
    filter: brightness(1.08);
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.whatsapp-trigger,
.whatsapp-send,
.whatsapp-close {
    border: none;
    cursor: pointer;
    font: inherit;
}

.whatsapp-trigger,
.whatsapp-send {
    align-items: center;
    background: #858585;
    border-radius: 999px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
    color: #fff;
    display: inline-flex;
    gap: 0.65rem;
    padding: 0.95rem 1.2rem;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.whatsapp-trigger:hover,
.whatsapp-send:hover {
    filter: brightness(1.06);
    transform: translateY(-3px);
}

.whatsapp-panel {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 22px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
    margin-top: 0.85rem;
    max-width: 320px;
    overflow: hidden;
    padding: 1rem;
}

.whatsapp-panel-header {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.whatsapp-panel-header p {
    color: #666;
    font-size: 0.92rem;
    margin-top: 0.3rem;
}

.whatsapp-close {
    background: transparent;
    color: #333;
    font-size: 1.2rem;
    padding: 0.2rem;
}

.whatsapp-label {
    color: #333;
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.whatsapp-input {
    border: 1px solid #ddd;
    border-radius: 14px;
    font: inherit;
    min-height: 110px;
    padding: 0.85rem 0.95rem;
    resize: vertical;
    width: 100%;
}

.whatsapp-input:focus {
    border-color: #858585;
    outline: none;
}

.whatsapp-send {
    justify-content: center;
    margin-top: 0.85rem;
    width: 100%;
}

.secao-container,
.sobre-container,
.seguro-container,
.contact-container {
    align-items: stretch;
}

@media (max-width: 900px) {
    .site-header {
        padding: 0.75rem 1rem;
    }

    .logo-image {
        height: 72px;
        width: 72px;
    }

    .logo-subtitle {
        font-size: 0.88rem;
    }

    .automacao-intro-container {
        flex-direction: column;
    }

    .automacao-intro-imagem {
        min-height: 320px;
        width: 100%;
    }

    .automacao-intro-visual {
        width: 100%;
    }

    .automacao-mini-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0;
        padding-inline: 0;
    }
}

@media (max-width: 640px) {

    .site-header,
    .hero {
        margin-left: -14px;
        margin-right: -14px;
    }

    .site-header {
        display: grid;
        padding: 0.75rem 0;
    }

    .logo {
        align-items: center;
        text-align: left;
    }

    .logo-image {
        border-radius: 18px;
        height: 84px;
        width: 84px;
    }

    .logo-text {
        width: auto;
    }

    .eyebrow {
        display: block;
        font-size: 0.7rem;
    }

    .logo-subtitle {
        display: block;
        font-size: 0.9rem;
    }

    .menu-toggle {
        align-items: center;
        background: #c40000;
        border: none;
        border-radius: 14px;
        box-shadow: 0 12px 24px rgba(120, 0, 0, 0.2);
        cursor: pointer;
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
        justify-content: center;
        margin: 0 0 0 auto;
        padding: 0.8rem;
        position: relative;
        z-index: 4;
    }

    .menu-toggle span {
        background: #fff;
        border-radius: 999px;
        display: block;
        height: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
        width: 22px;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    #mainNav {
        display: none;
        margin: 0;
        overflow: visible;
        padding: 0;
        width: 100%;
    }

    #mainNav.is-open {
        display: block;
    }

    #mainNav ul {
        align-items: stretch;
        background: rgba(15, 15, 15, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        box-shadow: 0 20px 34px rgba(0, 0, 0, 0.18);
        flex-direction: column;
        gap: 0.45rem;
        margin-top: 0.9rem;
        min-width: 0;
        padding: 0.75rem;
        width: 100%;
    }

    #mainNav a {
        font-size: 0.9rem;
        justify-content: flex-start;
        width: 100%;
    }

    .container,
    main,
    .automacao-intro,
    .storyline,
    .highlights,
    .cases-section,
    .clientes-section,
    .sobre,
    .servicos,
    .faq-section,
    .seguro,
    .section-heading,
    .automacao-intro-container,
    .storyline-grid,
    .highlights-grid,
    .cases-grid,
    .clientes-grid,
    .sobre-container,
    .secao-container,
    .seguro-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .container {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    main {
        padding: 1rem 0;
    }

    .hero,
    .hero-content,
    .card-conteudo,
    .story-card,
    .highlight-card,
    .case-card,
    .cliente-placeholder,
    .contact-info,
    .contact-form,
    .faq-item {
        border-radius: 0;
    }

    .hero {
        margin-bottom: 0.75rem;
        padding: 3rem 0;
    }

    .hero-content {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-content,
    .card-conteudo,
    .story-card,
    .highlight-card,
    .case-card,
    .cliente-placeholder,
    .contact-info,
    .contact-form,
    .faq-item,
    .automacao-intro-texto,
    .sobre-conteudo,
    .seguro-conteudo,
    .coluna.texto {
        padding-left: 14px;
        padding-right: 14px;
    }

    .whatsapp-widget {
        bottom: 14px;
        left: 14px;
        right: 14px;
    }

    .back-to-top {
        bottom: 84px;
        right: 14px;
    }

    .whatsapp-trigger {
        justify-content: center;
        width: 100%;
    }

    .whatsapp-panel {
        max-width: none;
        width: 100%;
    }

    .case-viewer-dialog {
        border-radius: 0;
        inset: 0;
    }

    .scroll-showcase {
        border-radius: 18px;
        padding: 0.85rem;
    }

    .scroll-showcase-cases {
        max-height: 760px;
    }

    .scroll-showcase-clients {
        max-height: 320px;
    }
}

/* Final single-page overrides: keep all SEO sections visible and stabilize the layout. */
.page-content,
.page-content.active {
    display: block;
    margin-top: 0;
    scroll-margin-top: 24px;
}

#home,
#servicos,
#diferenciais,
#faq,
#contact {
    scroll-margin-top: 24px;
}

body {
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    overflow: hidden;
    padding: 0 20px;
}

main {
    max-width: none;
    padding: 0 0 2rem;
}

.site-header {
    align-items: center;
    border-radius: 0;
    display: flex;
    gap: 1rem;
    height: auto;
    justify-content: space-between;
    margin: 0 -20px;
    min-height: 88px;
    padding: 0.65rem 1.5rem;
    position: fixed;
    top: 0;
    width: min(1400px, calc(100% - 40px));
    z-index: 1200;
}

main {
    padding-top: 88px;
}

.logo-container {
    flex: 0 0 auto;
}

.logo {
    align-items: center;
    gap: 0.85rem;
    margin-top: 0;
}

.logo-image {
    border-radius: 20px;
    height: 74px;
    width: 74px;
}

.logo-text {
    display: block;
}

#mainNav {
    display: block;
    flex: 1 1 auto;
    margin: 0;
}

#mainNav ul {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

#mainNav a {
    background: #b60000;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.9rem;
    gap: 0.45rem;
    line-height: 1;
    padding: 0.72rem 0.95rem;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

#mainNav a:hover,
#mainNav a.active {
    background: #0f0f0f;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
    color: #fff;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
}

.hero {
    border-radius: 0 0 28px 28px;
    margin: 0 -20px 1.5rem;
    min-height: 560px;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}

.hero-content {
    border-radius: 24px;
    margin-inline: auto;
    max-width: 930px;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.automacao-intro,
.storyline,
.sobre,
.servicos,
.faq-section,
.cases-section,
.clientes-section {
    border-radius: 22px;
    margin: 1.5rem 0;
    padding: clamp(2rem, 5vw, 4rem) 20px;
}

.highlights {
    border-radius: 0;
    margin: 1.5rem -20px;
    padding-inline: 20px;
}

.section-heading {
    margin-inline: auto;
    max-width: 860px;
    padding-inline: 0;
}

.cases-section .section-heading {
    max-width: 1120px;
}

.cases-section .section-heading h2 {
    font-size: clamp(2rem, 3.4vw, 3rem);
    white-space: nowrap;
}

.storyline .section-heading {
    max-width: 1120px;
}

.storyline .section-heading h2 {
    font-size: clamp(2rem, 3.4vw, 3rem);
    white-space: nowrap;
}

.storyline-grid,
.servicos-grid,
.cases-grid,
.clientes-grid {
    padding-inline: 0;
}

.scroll-showcase {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 15, 15, 0.08);
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    margin: 0 auto;
    max-width: 1240px;
    overflow: auto;
    padding: 1rem;
}

.scroll-showcase-cases {
    max-height: 760px;
}

.scroll-showcase-clients {
    max-height: 360px;
}

.cases-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.case-card {
    background: #fff;
    border: 1px solid rgba(15, 15, 15, 0.08);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    color: inherit;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    text-align: left;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.case-card:hover {
    border-color: rgba(182, 0, 0, 0.35);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.14);
    transform: translateY(-6px);
}

.case-image {
    aspect-ratio: 4 / 3;
    background: #ececec;
    overflow: hidden;
}

.case-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    width: 100%;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    display: block;
    padding: 1rem;
}

.case-badge {
    background: rgba(182, 0, 0, 0.1);
    border-radius: 999px;
    color: #b60000;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    padding: 0.35rem 0.65rem;
}

.case-content h3 {
    color: #151515;
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.case-content p {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.clientes-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.cliente-placeholder {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(15, 15, 15, 0.08);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: center;
    min-height: 112px;
    padding: 1rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cliente-placeholder:hover {
    border-color: rgba(182, 0, 0, 0.35);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.cliente-placeholder img {
    display: block;
    filter: none;
    height: 68px;
    max-width: 150px;
    object-fit: contain;
    width: 100%;
}

.card-conteudo,
.story-card,
.highlight-card,
.faq-item,
.contact-info,
.contact-form {
    border-radius: 20px;
}

footer {
    margin: 1.5rem -20px 0;
}

@media (max-width: 900px) {
    .site-header {
        flex-wrap: wrap;
        min-height: 76px;
        padding: 0.55rem 1rem;
        width: calc(100% - 28px);
    }

    main {
        padding-top: 76px;
    }

    .logo-image {
        height: 64px;
        width: 64px;
    }

    .menu-toggle {
        align-items: center;
        background: #b60000;
        border: 0;
        border-radius: 14px;
        cursor: pointer;
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
        height: 44px;
        justify-content: center;
        margin-left: auto;
        width: 46px;
    }

    .menu-toggle span {
        background: #fff;
        border-radius: 999px;
        display: block;
        height: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
        width: 22px;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    #mainNav {
        display: none;
        flex-basis: 100%;
    }

    #mainNav.is-open {
        display: block;
    }

    #mainNav ul {
        align-items: stretch;
        background: rgba(15, 15, 15, 0.94);
        border-radius: 18px;
        flex-direction: column;
        gap: 0.45rem;
        margin-top: 0.8rem;
        padding: 0.75rem;
    }

    #mainNav a {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 14px;
    }

    .site-header,
    .hero,
    .highlights,
    footer {
        margin-left: -14px;
        margin-right: -14px;
    }

    .hero {
        min-height: 520px;
        padding: 3rem 14px;
    }

    .automacao-intro,
    .storyline,
    .sobre,
    .servicos,
    .faq-section,
    .cases-section,
    .clientes-section,
    .youtube-section {
        border-radius: 18px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .youtube-shell {
        grid-template-columns: 1fr;
    }

    .youtube-channel-link {
        width: 100%;
    }

    .youtube-carousel-wrap {
        border-radius: 18px;
        padding: 0.8rem;
    }

    .youtube-carousel {
        grid-auto-columns: minmax(250px, 86vw);
    }

    .youtube-player-dialog {
        border-radius: 0;
        inset: 0;
    }

    .youtube-player-frame {
        min-height: calc(100vh - 58px);
    }

    .hero-content,
    .card-conteudo,
    .story-card,
    .highlight-card,
    .case-card,
    .cliente-placeholder,
    .contact-info,
    .contact-form,
    .faq-item,
    .automacao-intro-texto,
    .sobre-conteudo {
        border-radius: 16px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .case-card {
        padding: 0;
    }

    .scroll-showcase {
        border-radius: 18px;
        margin-inline: 0;
        padding: 0.8rem;
    }

    .scroll-showcase-cases {
        max-height: 700px;
    }

    .scroll-showcase-clients {
        max-height: 330px;
    }

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

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

    .cliente-placeholder {
        min-height: 96px;
        padding: 0.75rem;
    }

    .cliente-placeholder img {
        height: 58px;
        max-width: 120px;
    }
}

/* End-of-file overrides: opening carousel and smart header */
#home,
#quem-somos,
#cases-sucesso,
#servicos,
#faq,
#contact {
    scroll-margin-top: 108px;
}

.site-header {
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 40, 40, 0.24), transparent 32%),
        linear-gradient(135deg, rgba(5, 5, 5, 0.94), rgba(40, 0, 0, 0.92) 52%, rgba(12, 12, 12, 0.94));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transition: background-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

#mainNav a {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    letter-spacing: 0;
}

#mainNav a:hover,
#mainNav a.active {
    background: #c40000;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 28px rgba(196, 0, 0, 0.28);
    color: #fff;
    transform: translateY(-2px);
}

.site-callout {
    min-height: 680px;
    padding-top: 2rem;
}

.site-callout-grid {
    gap: 1.5rem;
}

.site-callout-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 900px;
    text-align: center;
}

.site-callout-logo {
    background: rgba(0, 0, 0, 0.36);
    border-radius: 22px;
    height: 112px;
    margin: 0 auto;
    object-fit: contain;
    padding: 0.55rem 1.1rem;
    width: 300px;
}

.site-callout-copy {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
}

.site-callout-details {
    text-align: center;
}

.site-callout h2 {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    justify-content: center;
    letter-spacing: 0;
    margin: 0;
    white-space: nowrap;
}

.site-callout-word {
    display: inline-flex;
    height: auto;
    width: auto;
}

.site-callout-word>span {
    display: inline;
    font-size: 4rem;
    letter-spacing: 0;
    line-height: 0.95;
    transform: none;
}

.site-callout-separator {
    font-size: 2.2rem;
    line-height: 1;
}

.site-callout-subtitle {
    font-size: 1.35rem;
}

.site-callout-service {
    font-size: 1.05rem;
}

@media (max-width: 900px) {

    #home,
    #quem-somos,
    #cases-sucesso,
    #servicos,
    #faq,
    #contact {
        scroll-margin-top: 92px;
    }

    .site-callout {
        min-height: 640px;
        padding-top: 1.4rem;
    }

    .site-callout-logo {
        height: 92px;
        width: 250px;
    }

    .site-callout-word>span {
        font-size: 2.8rem;
    }
}

@media (max-width: 640px) {
    .site-callout {
        min-height: 600px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-callout-logo {
        height: 78px;
        width: 218px;
    }

    .site-callout h2 {
        gap: 0.28rem;
    }

    .site-callout-word>span {
        font-size: 1.35rem;
    }

    .site-callout-separator {
        font-size: 1rem;
    }

    .site-callout-subtitle {
        font-size: 0.86rem;
    }

    .site-callout-service {
        font-size: 0.78rem;
    }
}

/* Latest visual refinements */
html,
body {
    background-color: #030303;
    background-image: url('../../images/fundopreto.webp');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

body {
    background-attachment: fixed;
}

.site-callout-logo {
    height: 104px;
    object-fit: cover;
    object-position: center center;
    padding: 0;
    width: 304px;
}

@media (max-width: 900px) {
    .site-callout-logo {
        height: 86px;
        width: 252px;
    }
}

@media (max-width: 640px) {
    body {
        background-attachment: scroll;
    }

    .site-callout-logo {
        height: 72px;
        width: 218px;
    }
}

/* Production and mobile hardening for FTP deployment */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    width: 100%;
}

body {
    min-width: 0;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

.container {
    margin-inline: auto;
    max-width: 1400px;
    overflow-x: clip;
    padding-inline: 20px;
    width: 100%;
}

.site-header {
    left: 50%;
    margin: 0;
    max-width: 1400px;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
}

main {
    padding-top: 88px;
}

.site-callout,
.hero,
.highlights,
.youtube-section,
.automacao-intro,
.storyline,
.sobre,
.cases-section,
.clientes-section,
.servicos,
.faq-section,
#contact,
footer {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.site-callout {
    min-height: auto;
    overflow: hidden;
    padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 7vw, 5rem);
}

.site-callout-grid,
.hero-content,
.section-heading,
.storyline-grid,
.servicos-grid,
.scroll-showcase,
.contact-container,
.sobre-container,
.automacao-intro-container {
    max-width: 100%;
}

.site-callout-logo {
    flex: 0 0 auto;
}

.site-callout h2 {
    max-width: 100%;
}

.cases-grid,
.clientes-grid {
    min-width: 0;
}

.form-control,
input,
select,
textarea,
button {
    max-width: 100%;
}

@media (max-width: 1100px) {
    #mainNav a {
        font-size: 0.82rem;
        padding: 0.68rem 0.72rem;
    }
}

@media (max-width: 900px) {
    .container {
        padding-inline: 14px;
    }

    .site-header {
        border-radius: 0;
        left: 0;
        min-height: 76px;
        padding: 0.55rem 14px;
        transform: none;
        width: 100%;
    }

    main {
        padding-top: 76px;
    }

    .logo-image {
        height: 58px;
        width: 58px;
    }

    .logo-text {
        display: none;
    }

    .menu-toggle {
        flex: 0 0 46px;
    }

    #mainNav {
        flex-basis: 100%;
        width: 100%;
    }

    #mainNav.is-open {
        display: block;
    }

    #mainNav ul {
        max-height: calc(100vh - 92px);
        overflow-y: auto;
    }

    .site-callout {
        padding: 1.35rem 0.75rem 2.2rem;
    }

    .sobre-container,
    .automacao-intro-container,
    .contact-container {
        flex-direction: column;
    }

    .section-heading h2,
    .cases-section .section-heading h2,
    .storyline .section-heading h2,
    .automacao-intro-texto h2 {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .container {
        padding-inline: 12px;
    }

    .site-header {
        padding-inline: 12px;
    }

    .site-callout {
        border-radius: 0 0 18px 18px;
        padding: 1rem 0.25rem 1.8rem;
    }

    .site-callout-logo {
        height: 72px;
        width: min(218px, 78vw);
    }

    .site-callout h2 {
        gap: 0.24rem;
        line-height: 1.1;
    }

    .site-callout-word>span {
        font-size: clamp(1rem, 4.6vw, 1.32rem);
    }

    .hero {
        min-height: auto;
        padding: 2.4rem 0.75rem;
    }

    .hero-content,
    .card-conteudo,
    .story-card,
    .highlight-card,
    .case-card,
    .cliente-placeholder,
    .contact-info,
    .contact-form,
    .faq-item,
    .automacao-intro-texto,
    .sobre-conteudo {
        padding-left: 12px;
        padding-right: 12px;
    }

    .servicos-grid,
    .storyline-grid,
    .cases-grid,
    .clientes-grid {
        grid-template-columns: 1fr;
    }

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

    .whatsapp-widget {
        left: 12px;
        max-width: calc(100vw - 24px);
        right: auto;
    }

    .back-to-top {
        bottom: 84px;
        right: 12px;
    }
}

.whatsapp-trigger {
    text-decoration: none;
    width: auto;
}

@media (max-width: 640px) {
    .whatsapp-widget {
        bottom: 12px;
        left: 12px;
        right: auto;
        width: auto;
    }

    .whatsapp-trigger {
        border-radius: 999px;
        height: 3.25rem;
        justify-content: center;
        padding: 0;
        width: 3.25rem;
    }

    .whatsapp-trigger span {
        display: none;
    }

    .whatsapp-trigger i {
        font-size: 1.35rem;
    }
}

/* Edge-to-edge layout, render optimization and fluid mobile pass */
:root {
    --site-frame: clamp(6px, 0.7vw, 12px);
    --site-gutter: clamp(14px, 3vw, 32px);
}

.container {
    border-left: var(--site-frame) solid transparent;
    border-right: var(--site-frame) solid transparent;
    box-shadow: 0 0 38px rgba(0, 0, 0, 0.28);
    max-width: 1440px;
    padding-inline: 0;
}

.site-header {
    border-left: var(--site-frame) solid transparent;
    border-right: var(--site-frame) solid transparent;
    max-width: 1440px;
    width: min(1440px, 100%);
}

.page-content,
.site-callout,
.hero,
.highlights,
.youtube-section,
.automacao-intro,
.storyline,
.sobre,
.cases-section,
.clientes-section,
.servicos,
.faq-section,
#contact,
footer {
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.site-callout,
.hero,
.highlights,
.youtube-section,
.automacao-intro,
.storyline,
.sobre,
.cases-section,
.clientes-section,
.servicos,
.faq-section,
#contact {
    padding-left: 0;
    padding-right: 0;
}

.site-callout-grid,
.hero-content,
.highlights-grid,
.youtube-shell,
.automacao-intro-container,
.storyline .section-heading,
.storyline-grid,
.sobre-container,
.cases-section .section-heading,
.scroll-showcase,
.clientes-section .section-heading,
.servicos .section-heading,
.servicos-grid,
.faq-section .section-heading,
.faq-grid,
.contact-heading,
.contact-container {
    margin-left: auto;
    margin-right: auto;
    width: min(calc(100% - (var(--site-gutter) * 2)), 1240px);
}

.site-callout-grid {
    width: min(calc(100% - (var(--site-gutter) * 2)), 1120px);
}

.case-card,
.card-servico,
.story-card,
.highlight-card,
.faq-item,
.cliente-placeholder,
.contact-info,
.contact-form,
.youtube-video-card {
    contain: layout paint;
}

.youtube-section,
.automacao-intro,
.storyline,
.sobre,
.cases-section,
.clientes-section,
.servicos,
.faq-section,
#contact,
footer {
    content-visibility: auto;
    contain-intrinsic-size: 760px;
}

.reveal-once {
    transform: translateY(14px);
    transition-duration: 0.52s;
}

@media (max-width: 900px) {
    :root {
        --site-frame: 6px;
        --site-gutter: 16px;
    }

    .site-header {
        border-left-width: var(--site-frame);
        border-right-width: var(--site-frame);
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-callout-grid,
    .hero-content,
    .highlights-grid,
    .youtube-shell,
    .automacao-intro-container,
    .storyline .section-heading,
    .storyline-grid,
    .sobre-container,
    .cases-section .section-heading,
    .scroll-showcase,
    .clientes-section .section-heading,
    .servicos .section-heading,
    .servicos-grid,
    .faq-section .section-heading,
    .faq-grid,
    .contact-heading,
    .contact-container {
        width: min(calc(100% - (var(--site-gutter) * 2)), 100%);
    }

}

@media (max-width: 640px) {
    :root {
        --site-frame: 4px;
        --site-gutter: 12px;
    }

    main {
        padding-top: 72px;
    }

    .site-header {
        min-height: 72px;
    }

    .site-callout {
        padding-top: 0.9rem;
        padding-bottom: 1.4rem;
    }

    .youtube-section,
    .automacao-intro,
    .storyline,
    .sobre,
    .cases-section,
    .clientes-section,
    .servicos,
    .faq-section,
    #contact,
    footer {
        contain-intrinsic-size: 620px;
    }
}

.site-callout-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: clamp(1.9rem, 4vw, 3.4rem);
    min-width: clamp(1.9rem, 4vw, 3.4rem);
    height: clamp(1.9rem, 4vw, 3.4rem);
}

.site-callout-separator img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 42, 42, 0.42));
}

.site-callout h2 {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.28rem, 1vw, 0.72rem);
    width: 100%;
}

.site-callout-word>span {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .site-callout-separator {
        width: clamp(1rem, 6vw, 1.4rem);
        min-width: clamp(1rem, 6vw, 1.4rem);
        height: clamp(1rem, 6vw, 1.4rem);
    }

    .site-callout h2 {
        width: 100%;
        gap: clamp(0.16rem, 1.4vw, 0.32rem);
    }
}

.smart-home-plan-section {
    background:
        radial-gradient(circle at 18% 10%, rgba(196, 0, 0, 0.28), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(8, 8, 8, 0.98));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
    padding: clamp(3rem, 7vw, 6rem) 0;
    position: relative;
}

.smart-home-plan-section::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
    opacity: 0.5;
    pointer-events: none;
    position: absolute;
}

.smart-home-plan-shell {
    margin: 0 auto;
    position: relative;
    width: min(calc(100% - (var(--site-gutter) * 2)), 1240px);
    z-index: 1;
}

.smart-home-plan-heading {
    margin: 0 auto clamp(1.6rem, 4vw, 2.6rem);
    max-width: min(1120px, 100%);
    text-align: center;
}

.smart-home-plan-heading h2 {
    color: #fff;
    font-size: clamp(2rem, 4.6vw, 4rem);
    letter-spacing: -0.045em;
    line-height: 0.98;
    margin: 0.35rem 0 1rem;
    text-transform: uppercase;
}

.smart-home-plan-heading p {
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.75;
    margin: 0 auto;
    max-width: min(980px, 100%);
}

.smart-home-theme-toggle {
    align-items: center;
    appearance: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(196, 0, 0, 0.14);
    color: rgba(255, 255, 255, 0.76);
    cursor: pointer;
    display: inline-grid;
    font-size: 0.82rem;
    font-weight: 900;
    gap: 0.25rem;
    grid-template-columns: 1fr 1fr;
    letter-spacing: 0.02em;
    margin-top: 1.25rem;
    overflow: hidden;
    padding: 0.28rem;
    position: relative;
    text-transform: uppercase;
}

.smart-home-theme-toggle::before {
    background: linear-gradient(135deg, #c40000, #ff3f3f);
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(196, 0, 0, 0.36);
    content: "";
    inset: 0.28rem auto 0.28rem 0.28rem;
    position: absolute;
    transition: transform 0.28s ease;
    width: calc(50% - 0.28rem);
}

.smart-home-theme-toggle span {
    padding: 0.58rem 0.86rem;
    position: relative;
    transition: color 0.22s ease;
    z-index: 1;
}

.smart-home-theme-toggle span:first-child {
    color: #fff;
}

.smart-home-theme-toggle.is-light-mode::before {
    transform: translateX(calc(100% + 0.25rem));
}

.smart-home-theme-toggle.is-light-mode span:first-child {
    color: rgba(255, 255, 255, 0.62);
}

.smart-home-theme-toggle.is-light-mode span:last-child {
    color: #fff;
}

.smart-home-theme-toggle:focus-visible {
    outline: 3px solid rgba(255, 64, 64, 0.5);
    outline-offset: 4px;
}

.smart-home-map {
    --active-x: 50%;
    --active-y: 50%;
    aspect-ratio: 1717 / 916;
    background: #060606;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: clamp(18px, 3vw, 34px);
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.58),
        0 0 0 1px rgba(196, 0, 0, 0.22),
        inset 0 0 42px rgba(255, 255, 255, 0.05);
    overflow: visible;
    position: relative;
}

.smart-home-map::after {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
        radial-gradient(circle at var(--active-x) var(--active-y), rgba(255, 42, 42, 0.28), transparent 16%);
    content: "";
    inset: 0;
    opacity: 0.45;
    pointer-events: none;
    position: absolute;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.smart-home-map-inner {
    height: 100%;
    position: relative;
    transform-origin: var(--active-x) var(--active-y);
    transition: transform 0.58s cubic-bezier(0.2, 0.85, 0.2, 1);
    width: 100%;
}

.smart-home-map.is-room-active .smart-home-map-inner {
    transform: scale(1.23);
}

.smart-home-image-stack,
.smart-home-image-layer,
.smart-home-plan-image,
.smart-room-hotspots {
    inset: 0;
    position: absolute;
}

.smart-home-image-stack {
    opacity: 1;
    overflow: hidden;
    transition: opacity 0.42s ease, transform 0.58s cubic-bezier(0.2, 0.85, 0.2, 1);
    z-index: 1;
}

.smart-home-image-layer {
    display: block;
    opacity: 0;
    transition: opacity 0.72s ease;
}

.smart-home-image-layer-dark {
    opacity: 1;
}

.smart-home-map.is-light-mode .smart-home-image-layer-dark {
    opacity: 0;
}

.smart-home-map.is-light-mode .smart-home-image-layer-light {
    opacity: 1;
}

.smart-home-plan-image {
    height: 100%;
    object-fit: cover;
    width: 100%;
    z-index: 1;
}

.smart-room-hotspots {
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.32s ease;
    z-index: 4;
}

.smart-room-hotspot {
    align-items: center;
    appearance: none;
    background:
        radial-gradient(circle, #fff 0 18%, #ff2f2f 19% 46%, rgba(196, 0, 0, 0.82) 47% 100%);
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 999px;
    box-shadow:
        0 0 0 8px rgba(196, 0, 0, 0.2),
        0 0 28px rgba(255, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: clamp(0.78rem, 1.5vw, 1rem);
    font-weight: 900;
    height: clamp(1.25rem, 2.4vw, 2rem);
    justify-content: center;
    left: var(--x);
    line-height: 1;
    padding: 0;
    pointer-events: auto;
    position: absolute;
    top: var(--y);
    transform: translate(-50%, -50%);
    transition:
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
    width: clamp(1.25rem, 2.4vw, 2rem);
}

.smart-room-hotspot::before {
    content: "+";
    transform: translateY(-1px);
}

.smart-room-hotspot::after {
    background: rgba(6, 6, 6, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
    color: #fff;
    content: attr(data-room-label);
    font-size: clamp(0.72rem, 1.4vw, 0.95rem);
    font-weight: 800;
    left: 50%;
    letter-spacing: 0.01em;
    opacity: 0;
    padding: 0.42rem 0.72rem;
    pointer-events: none;
    position: absolute;
    text-transform: uppercase;
    top: -0.65rem;
    transform: translate(-50%, -100%) scale(0.92);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
    white-space: nowrap;
}

.smart-room-hotspot:hover,
.smart-room-hotspot:focus-visible,
.smart-room-hotspot.is-active {
    background:
        radial-gradient(circle, #fff 0 18%, #ff4a4a 19% 48%, #c40000 49% 100%);
    box-shadow:
        0 0 0 12px rgba(196, 0, 0, 0.28),
        0 0 42px rgba(255, 0, 0, 0.72);
    outline: none;
    transform: translate(-50%, -50%) scale(1.15);
}

.smart-room-hotspot:hover::after,
.smart-room-hotspot:focus-visible::after,
.smart-room-hotspot.is-active::after {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
}

.smart-home-map.is-room-detail-open .smart-home-map-inner {
    transform: none;
}

.smart-home-map.is-room-detail-open .smart-home-image-stack,
.smart-home-map.is-room-detail-open .smart-room-hotspots {
    opacity: 0;
    pointer-events: none;
}

.smart-room-detail-view {
    background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.92), rgba(232, 226, 216, 0.98));
    inset: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    transform: scale(1.03);
    transition:
        opacity 0.5s ease,
        transform 0.58s cubic-bezier(0.2, 0.85, 0.2, 1);
    z-index: 7;
}

.smart-home-map.is-room-detail-open .smart-room-detail-view.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.smart-room-detail-picture,
.smart-room-detail-image {
    display: block;
    height: 100%;
    width: 100%;
}

.smart-room-detail-image {
    object-fit: cover;
}

.smart-room-back-button {
    appearance: none;
    background: rgba(12, 12, 12, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
    color: #fff;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 0.72rem 1.05rem;
    position: absolute;
    right: clamp(0.75rem, 2vw, 1.35rem);
    text-transform: uppercase;
    top: clamp(0.75rem, 2vw, 1.35rem);
    transition:
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
    z-index: 11;
}

.smart-room-back-button:hover,
.smart-room-back-button:focus-visible {
    background: #c40000;
    box-shadow: 0 18px 42px rgba(196, 0, 0, 0.28);
    outline: none;
    transform: translateY(-2px);
}

.smart-device-point {
    left: var(--device-x);
    position: absolute;
    top: var(--device-y);
    transform: translate(-50%, -50%);
    z-index: 12;
}

.smart-device-point:hover,
.smart-device-point:focus-within,
.smart-device-point.is-hover-held,
.smart-device-point.is-open {
    z-index: 120;
}

.smart-device-hotspot {
    align-items: center;
    appearance: none;
    background: #c40000;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    box-shadow:
        0 0 0 10px rgba(196, 0, 0, 0.2),
        0 16px 36px rgba(196, 0, 0, 0.34);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 900;
    height: clamp(2.2rem, 4vw, 3.2rem);
    justify-content: center;
    line-height: 1;
    padding: 0 0 0.12rem;
    position: relative;
    transition:
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
    width: clamp(2.2rem, 4vw, 3.2rem);
    z-index: 3;
}

.smart-device-hotspot:hover,
.smart-device-hotspot:focus-visible,
.smart-device-point.is-hover-held .smart-device-hotspot,
.smart-device-point.is-open .smart-device-hotspot {
    background: #ff2f2f;
    box-shadow:
        0 0 0 14px rgba(196, 0, 0, 0.26),
        0 22px 48px rgba(196, 0, 0, 0.42);
    outline: none;
    transform: scale(1.08);
}

.smart-device-info-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(196, 0, 0, 0.22);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    color: #171717;
    left: clamp(-520px, -41vw, -455px);
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.94);
    transform-origin: right center;
    transition:
        opacity 0.24s ease,
        transform 0.24s ease;
    width: min(460px, 38vw);
    z-index: 2;
}

.smart-device-info-card picture,
.smart-device-info-card img {
    display: block;
}

.smart-device-info-card img {
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.smart-device-info-content {
    padding: clamp(1.1rem, 2vw, 1.45rem);
}

.smart-device-info-placeholder {
    background:
        radial-gradient(circle at 100% 0%, rgba(196, 0, 0, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.98);
    min-height: 360px;
}

.smart-device-info-placeholder .smart-device-info-content {
    padding: clamp(1.35rem, 2.5vw, 1.85rem);
}

.smart-device-info-content span {
    color: #c40000;
    display: block;
    font-size: clamp(0.78rem, 1.1vw, 0.92rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 0.52rem;
    text-transform: uppercase;
}

.smart-device-info-content h3 {
    color: #101010;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.smart-device-info-content p {
    color: #414141;
    font-size: clamp(0.98rem, 1.35vw, 1.1rem);
    line-height: 1.58;
    margin: 0 0 1.1rem;
}

.smart-device-info-content a {
    align-items: center;
    background: #808080;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: clamp(0.8rem, 1.1vw, 0.92rem);
    font-weight: 900;
    justify-content: center;
    padding: 0.78rem 1.05rem;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background 0.22s ease,
        transform 0.22s ease;
}

.smart-device-info-content a:hover,
.smart-device-info-content a:focus-visible {
    background: #6c6c6c;
    outline: none;
    transform: translateY(-2px);
}

.smart-device-point:hover .smart-device-info-card,
.smart-device-point:focus-within .smart-device-info-card,
.smart-device-point.is-hover-held .smart-device-info-card,
.smart-device-point.is-open .smart-device-info-card {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

.smart-home-room-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin: clamp(1.1rem, 3vw, 1.7rem) auto 0;
}

.smart-home-room-list span {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    font-weight: 800;
    padding: 0.48rem 0.78rem;
}

@media (max-width: 900px) {
    .smart-home-plan-section {
        padding: clamp(2.4rem, 8vw, 4rem) 0;
    }

    .smart-home-plan-shell {
        width: min(calc(100% - (var(--site-gutter) * 2)), 100%);
    }

    .smart-home-map.is-room-active .smart-home-map-inner {
        transform: scale(1.16);
    }

    .smart-device-info-card {
        left: clamp(-410px, -50vw, -300px);
        width: min(390px, 52vw);
    }
}

@media (max-width: 640px) {
    .smart-home-plan-heading {
        text-align: left;
    }

    .smart-home-plan-heading h2 {
        font-size: clamp(1.85rem, 10vw, 2.7rem);
    }

    .smart-home-plan-heading p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .smart-home-theme-toggle {
        display: grid;
        width: 100%;
    }

    .smart-home-theme-toggle span {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .smart-home-map {
        border-radius: 18px;
    }

    .smart-room-hotspot {
        height: 1.1rem;
        width: 1.1rem;
    }

    .smart-room-hotspot::after {
        font-size: 0.68rem;
        max-width: 150px;
        overflow: hidden;
        padding: 0.36rem 0.55rem;
        text-overflow: ellipsis;
    }

    .smart-room-detail-image {
        object-fit: cover;
    }

    .smart-room-back-button {
        font-size: 0.72rem;
        padding: 0.58rem 0.76rem;
    }

    .smart-device-home-theater {
        --device-x: 72% !important;
        --device-y: 44% !important;
    }

    .smart-device-kitchen-automation {
        --device-x: 80% !important;
        --device-y: 42% !important;
    }

    .smart-device-gourmet-automation {
        --device-x: 80% !important;
        --device-y: 43% !important;
    }

    .smart-device-master-bedroom-automation {
        --device-x: 18% !important;
        --device-y: 44% !important;
    }

    .smart-device-living-room-lounge-automation {
        --device-x: 80% !important;
        --device-y: 41% !important;
    }

    .smart-device-garage-automation {
        --device-x: 23% !important;
        --device-y: 39% !important;
    }

    .smart-device-office-automation {
        --device-x: 77% !important;
        --device-y: 42% !important;
    }

    .smart-device-guest-bedroom-automation {
        --device-x: 77% !important;
        --device-y: 43% !important;
    }

    .smart-device-internal-garden-automation {
        --device-x: 77% !important;
        --device-y: 42% !important;
    }

    .smart-device-outdoor-area-automation {
        --device-x: 76% !important;
        --device-y: 43% !important;
    }

    .smart-device-hotspot {
        height: 2rem;
        width: 2rem;
    }

    .smart-device-info-card {
        bottom: calc(100% + 0.8rem);
        left: 50%;
        max-width: calc(100vw - 42px);
        top: auto;
        transform: translateX(-50%) scale(0.94);
        transform-origin: bottom center;
        width: 320px;
    }

    .smart-device-info-content {
        padding: 0.92rem;
    }

    .smart-device-info-content h3 {
        font-size: 1.08rem;
    }

    .smart-device-info-content p {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .smart-device-info-placeholder {
        min-height: 0;
    }

    .smart-device-point:hover .smart-device-info-card,
    .smart-device-point:focus-within .smart-device-info-card,
    .smart-device-point.is-hover-held .smart-device-info-card,
    .smart-device-point.is-open .smart-device-info-card {
        transform: translateX(-50%) scale(1);
    }

    .smart-home-room-list {
        justify-content: flex-start;
    }
}

/* Comic-style smart-home speech bubbles. */
.smart-home-map.is-room-detail-open {
    overflow: visible;
}

.smart-home-plan-shell,
.smart-home-map-inner,
.smart-home-map.is-room-detail-open .smart-room-detail-view.is-active {
    overflow: visible;
}

.smart-room-detail-view {
    overflow: visible;
}

.smart-room-detail-picture {
    border-radius: inherit;
    overflow: hidden;
}

.smart-device-point {
    z-index: 30;
}

.smart-device-point:hover,
.smart-device-point:focus-within,
.smart-device-point.is-hover-held,
.smart-device-point.is-open {
    z-index: 999;
}

.smart-device-info-card {
    background:
        radial-gradient(circle at 12% 14%, rgba(222,222,222, 0.26), transparent 22%),
        linear-gradient(180deg, #fffef5 0%, #f7f7f7 100%);
    border: 3px solid #111;
    border-radius: 26px;
    box-shadow:
        8px 8px 0 rgba(0, 0, 0, 0.22),
        0 24px 46px rgba(0, 0, 0, 0.28);
    color: #171717;
    left: calc(100% + 0.95rem);
    opacity: 0;
    overflow: visible;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.92) rotate(-1deg);
    transform-origin: left center;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
    width: min(320px, 30vw);
    z-index: 1000;
}

.smart-device-info-card::before {
    background: #f8f8f8;
    border: 3px solid #111;
    content: "";
    height: 22px;
    left: -13px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 22px;
    z-index: -1;
}

.smart-device-info-close {
    align-items: center;
    appearance: none;
    background: #111;
    border: 2px solid #111;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: none;
    font-size: 1.2rem;
    font-weight: 900;
    height: 2.35rem;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: -0.72rem;
    top: -0.72rem;
    width: 2.35rem;
    z-index: 5;
}

.smart-device-info-media {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(243,243,243, 0.94)),
        radial-gradient(circle at 88% 20%, rgba(94,94,94, 0.22), transparent 34%);
    border-bottom: 3px solid #111;
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    padding: 0.55rem;
}

.smart-device-info-media img,
.smart-device-info-card .smart-device-info-media img {
    aspect-ratio: 16 / 9;
    display: block;
    height: auto;
    object-fit: contain;
    width: 100%;
}

.smart-device-info-content {
    padding: clamp(0.85rem, 1.6vw, 1.1rem);
}

.smart-device-info-content span {
    color: #c40000;
    font-size: clamp(0.68rem, 0.95vw, 0.78rem);
    letter-spacing: 0.06em;
    margin-bottom: 0.38rem;
}

.smart-device-info-content h3 {
    color: #111;
    font-size: clamp(1rem, 1.45vw, 1.28rem);
    letter-spacing: 0;
    line-height: 1.08;
    margin-bottom: 0.48rem;
}

.smart-device-info-content p {
    color: #303030;
    font-size: clamp(0.78rem, 1.05vw, 0.9rem);
    line-height: 1.42;
    margin: 0;
}

.smart-device-info-content .smart-device-info-cta {
    margin-top: 0.78rem;
}

.smart-device-bubble-left .smart-device-info-card {
    left: auto;
    right: calc(100% + 0.95rem);
    transform: translateY(-50%) scale(0.92) rotate(1deg);
    transform-origin: right center;
}

.smart-device-bubble-left .smart-device-info-card::before {
    left: auto;
    right: -13px;
}

.smart-device-bubble-top .smart-device-info-card {
    bottom: calc(100% + 0.95rem);
    left: 50%;
    top: auto;
    transform: translateX(-50%) scale(0.92) rotate(-1deg);
    transform-origin: bottom center;
}

.smart-device-bubble-top .smart-device-info-card::before {
    bottom: -13px;
    left: 50%;
    top: auto;
    transform: translateX(-50%) rotate(45deg);
}

.smart-device-bubble-bottom .smart-device-info-card {
    left: 50%;
    top: calc(100% + 0.95rem);
    transform: translateX(-50%) scale(0.92) rotate(1deg);
    transform-origin: top center;
}

.smart-device-bubble-bottom .smart-device-info-card::before {
    left: 50%;
    top: -13px;
    transform: translateX(-50%) rotate(45deg);
}

.smart-device-point:hover .smart-device-info-card,
.smart-device-point:focus-within .smart-device-info-card,
.smart-device-point.is-hover-held .smart-device-info-card,
.smart-device-point.is-open .smart-device-info-card {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1) rotate(0deg);
}

.smart-device-bubble-left:hover .smart-device-info-card,
.smart-device-bubble-left:focus-within .smart-device-info-card,
.smart-device-bubble-left.is-hover-held .smart-device-info-card,
.smart-device-bubble-left.is-open .smart-device-info-card {
    transform: translateY(-50%) scale(1) rotate(0deg);
}

.smart-device-bubble-top:hover .smart-device-info-card,
.smart-device-bubble-top:focus-within .smart-device-info-card,
.smart-device-bubble-top.is-hover-held .smart-device-info-card,
.smart-device-bubble-top.is-open .smart-device-info-card,
.smart-device-bubble-bottom:hover .smart-device-info-card,
.smart-device-bubble-bottom:focus-within .smart-device-info-card,
.smart-device-bubble-bottom.is-hover-held .smart-device-info-card,
.smart-device-bubble-bottom.is-open .smart-device-info-card {
    transform: translateX(-50%) scale(1) rotate(0deg);
}

@media (max-width: 900px) {
    .smart-device-info-card {
        width: min(300px, 42vw);
    }
}

@media (max-width: 640px) {
    body.smart-device-modal-open {
        overflow: hidden;
    }

    body.smart-device-modal-open .smart-home-map.is-room-detail-open .smart-room-detail-view.is-active,
    body.smart-device-modal-open .smart-home-map-inner,
    body.smart-device-modal-open .smart-home-map {
        transform: none !important;
    }

    body.smart-device-modal-open .smart-device-point.is-open {
        transform: none !important;
    }

    .smart-home-map.is-room-detail-open {
        overflow: visible;
    }

    .smart-device-info-card,
    .smart-device-bubble-left .smart-device-info-card,
    .smart-device-bubble-top .smart-device-info-card,
    .smart-device-bubble-bottom .smart-device-info-card {
        border: 0;
        border-radius: 0;
        bottom: 0;
        box-shadow: none;
        display: grid;
        grid-template-rows: minmax(0, 42dvh) 1fr;
        height: 100dvh;
        left: 0;
        max-height: 100dvh;
        max-width: none;
        overflow: auto;
        position: fixed;
        right: auto;
        top: 0;
        transform: translateY(18px);
        transform-origin: center;
        width: 100vw;
        z-index: 9999;
    }

    .smart-device-info-close {
        background: rgba(17, 17, 17, 0.9);
        border-color: rgba(255, 255, 255, 0.28);
        display: inline-flex;
        height: 3rem;
        position: fixed;
        right: max(0.8rem, env(safe-area-inset-right));
        top: max(0.8rem, env(safe-area-inset-top));
        width: 3rem;
        z-index: 10001;
    }

    .smart-device-info-card::before,
    .smart-device-bubble-left .smart-device-info-card::before,
    .smart-device-bubble-top .smart-device-info-card::before,
    .smart-device-bubble-bottom .smart-device-info-card::before {
        display: none;
    }

    .smart-device-point:hover .smart-device-info-card,
    .smart-device-point:focus-within .smart-device-info-card,
    .smart-device-point.is-hover-held .smart-device-info-card,
    .smart-device-point.is-open .smart-device-info-card {
        transform: translateY(0);
    }

    .smart-device-info-media {
        border-bottom: 3px solid #111;
        border-radius: 0;
        min-height: 0;
        padding: 0;
    }

    .smart-device-info-media img,
    .smart-device-info-card .smart-device-info-media img {
        height: 100%;
        object-fit: cover;
    }

    .smart-device-info-content {
        align-content: start;
        display: grid;
        padding: clamp(1.2rem, 6vw, 1.65rem);
    }

    .smart-device-info-content h3 {
        font-size: clamp(1.55rem, 8.4vw, 2.45rem);
        line-height: 1.02;
    }

    .smart-device-info-content p {
        font-size: 0.98rem;
        line-height: 1.58;
    }

    .smart-device-info-content .smart-device-info-cta {
        display: flex;
        font-size: 0.9rem;
        margin-top: 1.1rem;
        min-height: 3.25rem;
        width: 100%;
    }
}

/* Product ambience replacing the old first-section carousel */
.product-showcase {
    contain: layout paint;
    height: clamp(390px, 48vw, 660px);
    isolation: isolate;
    margin: 0 auto;
    max-width: 1240px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: relative;
    transform: translateY(24px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
    width: min(100%, 1240px);
}

.site-callout.is-visible .product-showcase {
    opacity: 1;
    transform: translateY(0);
}

.product-showcase-grid,
.product-showcase-glow {
    inset: 0;
    position: absolute;
}

.product-showcase-grid {
    inset: clamp(10px, 1.8vw, 26px);
    z-index: 2;
}

.product-showcase-glow {
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 31, 31, 0.16), transparent 24%),
        radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.08), transparent 22%);
    filter: blur(22px);
    mix-blend-mode: screen;
    opacity: 0.62;
    z-index: 1;
}

.product-showcase-tile {
    --tile-delay: 0s;
    --tile-left: 5%;
    --tile-size: clamp(76px, 10vw, 164px);
    --tile-top: 8%;
    aspect-ratio: 1;
    animation: productTileSequence 30s ease-in-out infinite;
    animation-delay: var(--tile-delay);
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(16px, 2.2vw, 28px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.38),
        0 0 36px rgba(196, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: block;
    height: var(--tile-size);
    left: clamp(0px, var(--tile-left), calc(100% - var(--tile-size)));
    opacity: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    top: clamp(0px, var(--tile-top), calc(100% - var(--tile-size)));
    transform: translate3d(0, 0, 0) scale(1);
    width: var(--tile-size);
    z-index: 2;
}

.product-showcase-tile:nth-child(1) {
    --tile-delay: 0s;
    --tile-left: 6%;
    --tile-size: clamp(96px, 10vw, 170px);
    --tile-top: 8%;
}

.product-showcase-tile:nth-child(2) {
    --tile-delay: -0.9s;
    --tile-left: 20%;
    --tile-size: clamp(136px, 14vw, 230px);
    --tile-top: 15%;
}

.product-showcase-tile:nth-child(3) {
    --tile-delay: -1.8s;
    --tile-left: 39%;
    --tile-size: clamp(78px, 8vw, 134px);
    --tile-top: 6%;
}

.product-showcase-tile:nth-child(4) {
    --tile-delay: -2.7s;
    --tile-left: 58%;
    --tile-size: clamp(150px, 15vw, 250px);
    --tile-top: 13%;
}

.product-showcase-tile:nth-child(5) {
    --tile-delay: -3.6s;
    --tile-left: 78%;
    --tile-size: clamp(88px, 9vw, 146px);
    --tile-top: 8%;
}

.product-showcase-tile:nth-child(6) {
    --tile-delay: -4.5s;
    --tile-left: 82%;
    --tile-size: clamp(106px, 11vw, 176px);
    --tile-top: 36%;
}

.product-showcase-tile:nth-child(7) {
    --tile-delay: -5.4s;
    --tile-left: 64%;
    --tile-size: clamp(88px, 9.4vw, 150px);
    --tile-top: 57%;
}

.product-showcase-tile:nth-child(8) {
    --tile-delay: -6.3s;
    --tile-left: 42%;
    --tile-size: clamp(132px, 13vw, 218px);
    --tile-top: 56%;
}

.product-showcase-tile:nth-child(9) {
    --tile-delay: -7.2s;
    --tile-left: 20%;
    --tile-size: clamp(86px, 9vw, 144px);
    --tile-top: 63%;
}

.product-showcase-tile:nth-child(10) {
    --tile-delay: -8.1s;
    --tile-left: 3%;
    --tile-size: clamp(104px, 11vw, 172px);
    --tile-top: 42%;
}

.product-showcase-tile:nth-child(11) {
    --tile-delay: -9s;
    --tile-left: 10%;
    --tile-size: clamp(54px, 5.8vw, 92px);
    --tile-top: 28%;
}

.product-showcase-tile:nth-child(12) {
    --tile-delay: -9.9s;
    --tile-left: 31%;
    --tile-size: clamp(72px, 7.4vw, 122px);
    --tile-top: 37%;
}

.product-showcase-tile:nth-child(13) {
    --tile-delay: -10.8s;
    --tile-left: 51%;
    --tile-size: clamp(76px, 8vw, 128px);
    --tile-top: 34%;
}

.product-showcase-tile:nth-child(14) {
    --tile-delay: -11.7s;
    --tile-left: 73%;
    --tile-size: clamp(70px, 7.6vw, 120px);
    --tile-top: 66%;
}

.product-showcase-tile:nth-child(15) {
    --tile-delay: -12.6s;
    --tile-left: 88%;
    --tile-size: clamp(56px, 6vw, 96px);
    --tile-top: 64%;
}

.product-showcase-tile:nth-child(16) {
    --tile-delay: -13.5s;
    --tile-left: 2%;
    --tile-size: clamp(68px, 7vw, 112px);
    --tile-top: 72%;
}

.product-showcase-tile:nth-child(17) {
    --tile-delay: -14.4s;
    --tile-left: 33%;
    --tile-size: clamp(52px, 5.6vw, 90px);
    --tile-top: 78%;
}

.product-showcase-tile:nth-child(18) {
    --tile-delay: -15.3s;
    --tile-left: 56%;
    --tile-size: clamp(68px, 7.2vw, 116px);
    --tile-top: 77%;
}

.product-showcase-tile:nth-child(19) {
    --tile-delay: -16.2s;
    --tile-left: 12%;
    --tile-size: clamp(72px, 7.6vw, 124px);
    --tile-top: 82%;
}

.product-showcase-tile:nth-child(20) {
    --tile-delay: -17.1s;
    --tile-left: 47%;
    --tile-size: clamp(76px, 8vw, 132px);
    --tile-top: 84%;
}

.product-showcase-tile:nth-child(21) {
    --tile-delay: -18s;
    --tile-left: 70%;
    --tile-size: clamp(72px, 7.4vw, 126px);
    --tile-top: 4%;
}

.product-showcase-tile:nth-child(22) {
    --tile-delay: -18.9s;
    --tile-left: 90%;
    --tile-size: clamp(76px, 8.2vw, 136px);
    --tile-top: 22%;
}

.product-showcase-tile:nth-child(23) {
    --tile-delay: -19.8s;
    --tile-left: 24%;
    --tile-size: clamp(68px, 7.2vw, 118px);
    --tile-top: 2%;
}

.product-showcase-tile:nth-child(24) {
    --tile-delay: -20.7s;
    --tile-left: 36%;
    --tile-size: clamp(106px, 10.5vw, 178px);
    --tile-top: 18%;
}

.product-showcase-tile:nth-child(25) {
    --tile-delay: -21.6s;
    --tile-left: 68%;
    --tile-size: clamp(80px, 8.6vw, 142px);
    --tile-top: 24%;
}

.product-showcase-tile:nth-child(26) {
    --tile-delay: -22.5s;
    --tile-left: 54%;
    --tile-size: clamp(70px, 7.4vw, 120px);
    --tile-top: 2%;
}

.product-showcase-tile:nth-child(27) {
    --tile-delay: -23.4s;
    --tile-left: 4%;
    --tile-size: clamp(76px, 8vw, 132px);
    --tile-top: 20%;
}

.product-showcase-tile:nth-child(28) {
    --tile-delay: -24.3s;
    --tile-left: 87%;
    --tile-size: clamp(70px, 7.4vw, 120px);
    --tile-top: 80%;
}

.product-showcase-tile:nth-child(29) {
    --tile-delay: -25.2s;
    --tile-left: 30%;
    --tile-size: clamp(54px, 5.8vw, 94px);
    --tile-top: 52%;
}

.product-showcase-tile:nth-child(30) {
    --tile-delay: -26.1s;
    --tile-left: 76%;
    --tile-size: clamp(68px, 7.2vw, 118px);
    --tile-top: 50%;
}

.product-showcase-tile:nth-child(31) {
    --tile-delay: -27s;
    --tile-left: 15%;
    --tile-size: clamp(64px, 6.8vw, 108px);
    --tile-top: 50%;
}

.product-showcase-tile:nth-child(32) {
    --tile-delay: -27.9s;
    --tile-left: 46%;
    --tile-size: clamp(64px, 6.8vw, 110px);
    --tile-top: 72%;
}

.product-showcase-tile:nth-child(33) {
    --tile-delay: -28.8s;
    --tile-left: 60%;
    --tile-size: clamp(64px, 6.8vw, 112px);
    --tile-top: 87%;
}

.product-showcase-tile:nth-child(34) {
    --tile-delay: -29.7s;
    --tile-left: 92%;
    --tile-size: clamp(62px, 6.6vw, 108px);
    --tile-top: 52%;
}

.product-showcase-tile picture,
.product-showcase-tile img {
    border-radius: inherit;
    display: block;
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.product-showcase-tile img {
    object-fit: cover;
    object-position: center;
}

@keyframes productTileSequence {

    0%,
    100% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(1);
    }

    5%,
    48% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

    58% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@media (max-width: 900px) {
    .product-showcase {
        height: clamp(360px, 68vw, 560px);
        width: min(100%, 920px);
    }
}

@media (max-width: 640px) {
    .automacao-mini-gallery {
        gap: 0.65rem;
        margin-top: 0;
        padding-inline: 0.4rem;
    }

    .automation-mini-card {
        border-radius: 16px;
    }

    .automation-context-panel {
        margin-inline: 0.4rem;
    }

    .product-showcase {
        height: clamp(330px, 100vw, 470px);
        margin-top: 0.35rem;
    }

    .product-showcase-glow {
        display: none;
    }

    .product-showcase-tile {
        border-radius: 18px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
        --mobile-tile-size: min(var(--tile-size), 88px);
        height: var(--mobile-tile-size);
        left: clamp(0px, var(--tile-left), calc(100% - var(--mobile-tile-size)));
        top: clamp(0px, var(--tile-top), calc(100% - var(--mobile-tile-size)));
        width: var(--mobile-tile-size);
    }
}

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

    .product-showcase,
    .product-showcase-tile {
        animation: none;
        transition: none;
    }

    .product-showcase-tile:nth-child(-n + 4) {
        opacity: 1;
        transform: none;
    }
}

/* Hero theater loop */
.hero.hero-theater {
    --hero-cta-red: #ff1f1f;
    --hero-cta-orange: #ff7a00;
    --hero-cta-gold: #ffd166;
    background: #050505;
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

.hero.hero-theater::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.18) 54%, rgba(0, 0, 0, 0.68)),
        radial-gradient(circle at 22% 45%, rgba(255, 31, 31, 0.34), transparent 30%),
        url('../../images/fundo1.webp') center/cover no-repeat;
    content: "";
    inset: 0;
    position: absolute;
    transform: scale(1);
    transition:
        filter 2.8s ease,
        transform 2.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: auto;
    z-index: 0;
}

.hero.hero-theater::after {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42)),
        radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.08), transparent 42%);
    opacity: 1;
    transform: none;
    z-index: 1;
}

.hero.hero-theater.is-scene-zooming::before {
    filter: saturate(1.18) contrast(1.08) brightness(0.88);
    transform: scale(1.32);
}

.hero.hero-theater.is-scene-returning::before {
    filter: saturate(1.05) contrast(1.02) brightness(0.96);
    transform: scale(1.04);
    transition-duration: 3.2s;
}

.hero.hero-theater .hero-content {
    backdrop-filter: blur(12px);
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.78), rgba(60, 0, 0, 0.6)),
        radial-gradient(circle at 0 0, rgba(255, 31, 31, 0.18), transparent 42%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.44),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: min(1180px, calc(100% - 2rem));
    position: relative;
    transition:
        filter 0.9s ease,
        opacity 0.9s ease,
        transform 0.9s ease;
    z-index: 2;
}

.hero.hero-theater.is-content-hidden .hero-content {
    filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transform: scale(1.16);
}

.hero-theater-title {
    color: #fff;
    font-size: clamp(1.8rem, 3.65vw, 3.05rem);
    line-height: 1.04;
    margin-inline: auto;
    max-width: 25ch;
    text-shadow:
        0 0 26px rgba(255, 31, 31, 0.22),
        0 14px 40px rgba(0, 0, 0, 0.42);
}

.hero-letter {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.96);
}

.hero-space {
    width: 0.28em;
}

.hero.hero-theater.is-title-writing .hero-letter {
    animation: heroLetterReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--letter-index) * 0.034s);
}

.hero.hero-theater .hero-theater-item {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition:
        opacity 1.08s ease,
        transform 1.08s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero.hero-theater.is-copy-visible .hero-kicker,
.hero.hero-theater.is-copy-visible .hero-copy {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.hero.hero-theater.is-cta-visible .hero-actions {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transition-duration: 0.7s;
}

.hero.hero-theater .hero-kicker {
    color: #ff7a7a;
    text-shadow: 0 0 18px rgba(255, 31, 31, 0.22);
}

.hero.hero-theater .hero-copy {
    color: rgba(255, 255, 255, 0.92);
}

.hero.hero-theater .btn-budget {
    background: linear-gradient(135deg, var(--hero-cta-red), var(--hero-cta-orange) 58%, var(--hero-cta-gold));
    border: 0;
    border-radius: 999px 999px 999px 20px;
    box-shadow:
        0 18px 38px rgba(255, 61, 0, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 0 42px rgba(255, 31, 31, 0.26);
    color: #fff;
    font-size: clamp(0.92rem, 1.6vw, 1.08rem);
    letter-spacing: 0.08em;
    min-height: 58px;
    overflow: hidden;
    padding: 1rem 1.1rem 1rem 1.7rem;
    position: relative;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.36);
    transform: translateZ(0);
}

.hero.hero-theater .btn-budget::before {
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.72) 45%, transparent 70%);
    content: "";
    inset: -35% auto -35% -55%;
    position: absolute;
    transform: skewX(-18deg);
    width: 44%;
}

.hero.hero-theater.is-cta-visible .btn-budget {
    animation: heroCtaPulse 2.2s ease-in-out infinite 0.4s;
}

.hero.hero-theater.is-cta-visible .btn-budget::before {
    animation: heroCtaShine 2.8s ease-in-out infinite 0.25s;
}

.hero.hero-theater.is-theater-static .hero-letter,
.hero.hero-theater.is-theater-static .hero-theater-item {
    filter: none;
    opacity: 1;
    transform: none;
}

.hero.hero-theater .btn-budget i {
    align-items: center;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 50%;
    display: inline-flex;
    height: 2.3rem;
    justify-content: center;
    margin-left: 0.2rem;
    width: 2.3rem;
}

@keyframes heroLetterReveal {
    0% {
        filter: blur(10px);
        opacity: 0;
        transform: translate3d(0, 18px, 0) scale(0.96);
    }

    64% {
        filter: blur(1px);
        opacity: 0.92;
        transform: translate3d(0, -1px, 0) scale(1.01);
    }

    100% {
        filter: blur(0);
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes heroCtaPulse {

    0%,
    100% {
        box-shadow:
            0 18px 38px rgba(98,98,98, 0.32),
            0 0 0 1px rgba(255, 255, 255, 0.18) inset,
            0 0 42px rgba(255, 31, 31, 0.26);
        transform: translateY(0) scale(1);
    }

    50% {
        box-shadow:
            0 24px 54px rgba(98,98,98, 0.44),
            0 0 0 1px rgba(255, 255, 255, 0.24) inset,
            0 0 62px rgba(255, 31, 31, 0.42);
        transform: translateY(-2px) scale(1.035);
    }
}

@keyframes heroCtaShine {
    0% {
        left: -55%;
    }

    48%,
    100% {
        left: 120%;
    }
}

@media (max-width: 640px) {
    .site-callout {
        animation: none;
        background-size: 100% 100%;
    }

    .hero.hero-theater::before {
        filter: none;
        transform: none;
        transition: none;
    }

    .hero.hero-theater .hero-content {
        backdrop-filter: none;
        border-radius: 20px;
        padding: 1.25rem;
    }

    .hero-theater-title {
        font-size: clamp(1.72rem, 9vw, 2.42rem);
        line-height: 1.08;
        max-width: 100%;
        overflow-wrap: normal;
        text-wrap: balance;
        word-break: normal;
    }

    .hero.hero-theater .btn-budget {
        justify-content: center;
        min-height: 54px;
        padding-inline: 1.1rem;
        width: 100%;
    }
}

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

    .hero.hero-theater::before,
    .hero.hero-theater .hero-content,
    .hero.hero-theater .hero-theater-item,
    .hero.hero-theater .btn-budget,
    .hero.hero-theater .btn-budget::before,
    .hero-letter {
        animation: none;
        transition: none;
    }

    .hero.hero-theater .hero-theater-item,
    .hero.hero-theater .hero-letter,
    .hero.hero-theater.is-theater-static .hero-theater-item {
        filter: none;
        opacity: 1;
        transform: none;
    }
}

/* Client constellation: shows every logo without scroll and treats the circle as one interactive field. */
.clientes-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 244, 244, 0.96));
    overflow: hidden;
}

.clientes-orbit-stage {
    --client-orbit-size: min(1120px, calc(100vw - 48px));
    aspect-ratio: 1;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 15.8%, transparent 16.2%),
        radial-gradient(circle, transparent 0 25.2%, rgba(196, 0, 0, 0.3) 25.45% 26.25%, transparent 26.55%),
        radial-gradient(circle, transparent 0 39.1%, rgba(0, 0, 0, 0.22) 39.35% 40.15%, transparent 40.45%),
        radial-gradient(circle, transparent 0 52.8%, rgba(196, 0, 0, 0.34) 53.05% 53.9%, transparent 54.25%);
    border-radius: 50%;
    isolation: isolate;
    margin: clamp(1.5rem, 4vw, 3rem) auto 0;
    max-width: 1120px;
    min-height: 640px;
    overflow: visible;
    position: relative;
    width: var(--client-orbit-size);
}

.clientes-orbit-stage::before {
    content: "";
    display: none;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.clientes-orbit-core {
    align-items: center;
    background: #000;
    background-color: #000;
    border: 0;
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: clamp(168px, 20vw, 250px);
    justify-content: center;
    left: 50%;
    letter-spacing: 0.1em;
    overflow: hidden;
    padding: clamp(0.25rem, 0.7vw, 0.55rem);
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(168px, 20vw, 250px);
    z-index: 4;
}

.clientes-orbit-core span {
    color: rgba(255, 255, 255, 0.66);
    font-size: clamp(0.62rem, 1vw, 0.78rem);
    font-weight: 700;
}

.clientes-orbit-logo {
    display: block;
    filter: none;
    flex: 0 1 auto;
    height: auto;
    margin-top: 0.22rem;
    max-height: none;
    max-width: none;
    object-fit: contain;
    width: 101%;
}

.clientes-orbit {
    display: block;
    inset: 0;
    margin: 0;
    max-width: none;
    padding: 0;
    position: absolute;
    z-index: 2;
}

.clientes-orbit .cliente-placeholder {
    --orbit-base-scale: 1;
    --orbit-hover-scale: 1;
    --orbit-x: 50%;
    --orbit-y: 50%;
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 0, 0, 0.42);
    border-radius: 999px;
    box-shadow: none;
    display: flex;
    height: clamp(54px, 7.2vw, 88px);
    justify-content: center;
    left: var(--orbit-x);
    margin: 0;
    min-height: 0;
    padding: clamp(0.42rem, 1vw, 0.78rem);
    position: absolute;
    top: var(--orbit-y);
    transform: translate(-50%, -50%) scale(calc(var(--orbit-base-scale) * var(--orbit-hover-scale)));
    transition:
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        filter 0.28s ease,
        opacity 0.28s ease,
        transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    width: clamp(72px, 9.4vw, 126px);
    will-change: auto;
    z-index: var(--orbit-z, 10);
}

.clientes-orbit-stage.is-orbit-active .cliente-placeholder {
    filter: saturate(0.96);
}

.clientes-orbit-stage.is-orbit-active .cliente-placeholder:hover,
.clientes-orbit .cliente-placeholder:focus-visible {
    border-color: rgba(0, 0, 0, 0.72);
    box-shadow: none;
    outline: none;
}

.clientes-orbit .cliente-placeholder img {
    display: block;
    filter: none;
    height: 100%;
    margin: 0 auto;
    max-height: 52px;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

@media (max-width: 900px) {
    .clientes-orbit-stage {
        --client-orbit-size: min(760px, calc(100vw - 28px));
        min-height: 560px;
    }

    .clientes-orbit-core {
        height: clamp(120px, 23vw, 168px);
        width: clamp(120px, 23vw, 168px);
    }

    .clientes-orbit .cliente-placeholder {
        height: clamp(46px, 8.8vw, 72px);
        padding: 0.42rem;
        width: clamp(58px, 11vw, 92px);
    }

    .clientes-orbit .cliente-placeholder img {
        max-height: 44px;
    }
}

@media (max-width: 640px) {
    .clientes-section {
        overflow: visible;
        padding-inline: 0;
    }

    .clientes-orbit-stage {
        --client-orbit-size: 100%;
        aspect-ratio: auto;
        background: none;
        border-radius: 0;
        margin-top: 1.35rem;
        min-height: 0;
        overflow: visible;
        width: min(calc(100% - 24px), 420px);
    }

    .clientes-orbit-stage::before,
    .clientes-orbit-core {
        display: none;
    }

    .clientes-orbit {
        display: grid;
        gap: 0.5rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        inset: auto;
        position: static;
    }

    .clientes-orbit .cliente-placeholder {
        border-radius: 14px;
        height: 56px;
        left: auto !important;
        padding: 0.38rem;
        position: relative;
        top: auto !important;
        transform: none !important;
        width: 100%;
    }

    .clientes-orbit .cliente-placeholder img {
        max-height: 34px;
    }
}

@media (max-width: 380px) {
    .clientes-orbit {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .clientes-orbit .cliente-placeholder {
        height: 54px;
    }
}

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

    .clientes-orbit-stage::before,
    .clientes-orbit .cliente-placeholder {
        transition: none;
        will-change: auto;
    }
}

/* Stronger project scrollbar and album modal polish. */
.scroll-showcase-cases {
    padding-right: clamp(1.25rem, 2.4vw, 2rem);
    scrollbar-color: #d80000 rgba(0, 0, 0, 0.14);
    scrollbar-width: auto;
}

.scroll-showcase-cases::-webkit-scrollbar {
    width: 34px;
}

.scroll-showcase-cases::-webkit-scrollbar-track {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.08));
    border: 8px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
}

.scroll-showcase-cases::-webkit-scrollbar-thumb {
    background:
        linear-gradient(180deg, #ff1f1f 0%, #c40000 45%, #780000 100%);
    border: 7px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    box-shadow:
        0 0 0 1px rgba(120, 0, 0, 0.28),
        0 0 18px rgba(196, 0, 0, 0.34);
    min-height: 150px;
}

.scroll-showcase-cases::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(180deg, #ff3b3b 0%, #d40000 48%, #8a0000 100%);
}

.case-image {
    background: #ececec;
    display: grid;
    place-items: center;
}

.case-image img {
    height: 100%;
    object-fit: cover;
    padding: 0;
    width: 100%;
}

.case-card:hover .case-image img {
    transform: scale(1.04);
}

.case-viewer-dialog {
    background: #d2d2d2;
}

.case-viewer-header {
    background: #c40000;
    border-bottom: 0;
    color: #fff;
}

.case-viewer-header h3 {
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.case-viewer-close {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.case-viewer-frame {
    background: #101010;
}

@media (max-width: 640px) {
    .scroll-showcase-cases::-webkit-scrollbar {
        width: 24px;
    }
}

/* Editorial recognition: the strongest institutional proof block in Quem Somos. */
.media-recognition {
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 31, 31, 0.28), transparent 24%),
        radial-gradient(circle at 86% 72%, rgba(196, 0, 0, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(8, 8, 8, 0.98), rgba(31, 0, 0, 0.96) 48%, rgba(6, 6, 6, 0.98));
    border-radius: 28px;
    color: #fff;
    isolation: isolate;
    margin: 1.5rem 0;
    overflow: hidden;
    padding: clamp(3rem, 6vw, 6rem) 20px;
    position: relative;
}

.media-recognition::before,
.media-recognition::after {
    content: "";
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.media-recognition::before {
    animation: mediaGlowSweep 8s ease-in-out infinite;
    background:
        linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.12) 46%, transparent 68%);
    inset: -30% auto -30% -42%;
    transform: rotate(8deg);
    width: 36%;
}

.media-recognition::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 54px 54px;
    inset: 0;
    mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
    opacity: 0.45;
}

.media-recognition-shell {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 5vw, 4.5rem);
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    margin: 0 auto;
    max-width: 1240px;
}

.media-kicker {
    align-items: center;
    color: #ff5757;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 900;
    gap: 0.7rem;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.media-kicker::before {
    background: #c40000;
    border-radius: 999px;
    box-shadow: 0 0 22px rgba(196, 0, 0, 0.68);
    content: "";
    height: 0.72rem;
    width: 0.72rem;
}

.media-recognition-copy h2 {
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 5.2rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.92;
    margin: 0 0 1.25rem;
    max-width: 820px;
    text-transform: uppercase;
}

.media-lead {
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    font-weight: 600;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.media-editorial-text {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 1.45rem;
    max-width: 760px;
}

.media-recognition-copy p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
    margin: 0 0 1.15rem;
}

.media-editorial-text p {
    margin: 0;
}

.media-cta-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.media-article-cta {
    align-items: center;
    appearance: none;
    background:
        linear-gradient(135deg, rgba(196, 0, 0, 0.9), rgba(115, 0, 0, 0.92)),
        radial-gradient(circle at 16% 50%, rgba(255, 255, 255, 0.18), transparent 32%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    box-shadow:
        0 24px 58px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 46px rgba(196, 0, 0, 0.28);
    color: #fff;
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 1rem;
    grid-template-columns: minmax(104px, 138px) 1fr auto;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    overflow: hidden;
    padding: clamp(1rem, 2vw, 1.4rem);
    position: relative;
    text-align: left;
    text-decoration: none;
    transition:
        border-color 0.32s ease,
        box-shadow 0.32s ease,
        transform 0.32s ease;
    width: 100%;
}

.media-cta-row .media-article-cta {
    align-content: start;
    grid-template-columns: 1fr;
    margin-top: 0;
    min-height: 100%;
}

.media-article-cta::before {
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    content: "";
    inset: -40% auto -40% -36%;
    position: absolute;
    transform: skewX(-18deg);
    transition: left 0.58s ease;
    width: 26%;
}

.media-article-cta:hover {
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow:
        0 30px 72px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.16) inset,
        0 0 66px rgba(196, 0, 0, 0.42);
    transform: translateY(-7px) scale(1.01);
}

.media-article-cta:hover::before {
    left: 116%;
}

.media-project-cta {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 30%),
        radial-gradient(circle at 82% 72%, rgba(0, 201, 255, 0.28), transparent 34%),
        linear-gradient(135deg, #004b86 0%, #006fb7 48%, #013a70 100%);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
        0 24px 58px rgba(0, 32, 72, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.16) inset,
        0 0 54px rgba(0, 139, 221, 0.3);
    color: #fff;
    justify-items: center;
    text-align: center;
}

.media-project-cta:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 30px 72px rgba(0, 32, 72, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.22) inset,
        0 0 70px rgba(0, 139, 221, 0.42);
}

.media-cta-fan {
    display: block;
    height: clamp(86px, 9vw, 118px);
    position: relative;
    width: min(138px, 100%);
    z-index: 1;
}

.media-cta-row .media-cta-fan,
.media-project-carousel {
    height: clamp(104px, 12vw, 134px);
    justify-self: start;
    width: min(182px, 100%);
}

.media-cta-fan img {
    aspect-ratio: 3 / 4;
    background: #070707;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 12px;
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    display: block;
    height: 100%;
    left: 50%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    transform-origin: 50% 92%;
    transition:
        box-shadow 0.32s ease,
        transform 0.32s ease;
    width: auto;
}

.media-cta-fan img:nth-child(1) {
    transform: translate(-78%, -48%) rotate(-11deg);
    z-index: 1;
}

.media-cta-fan img:nth-child(2) {
    transform: translate(-50%, -52%) rotate(0deg);
    z-index: 3;
}

.media-cta-fan img:nth-child(3) {
    transform: translate(-22%, -48%) rotate(11deg);
    z-index: 2;
}

.media-article-cta:hover .media-cta-fan img {
    box-shadow:
        0 22px 42px rgba(0, 0, 0, 0.45),
        0 0 34px rgba(255, 255, 255, 0.16);
}

.media-article-cta:hover .media-cta-fan img:nth-child(1) {
    transform: translate(-84%, -50%) rotate(-15deg);
}

.media-article-cta:hover .media-cta-fan img:nth-child(2) {
    transform: translate(-50%, -56%) rotate(0deg) scale(1.04);
}

.media-article-cta:hover .media-cta-fan img:nth-child(3) {
    transform: translate(-16%, -50%) rotate(15deg);
}

.media-project-carousel {
    background: rgba(233, 248, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 14px;
    box-shadow:
        0 16px 32px rgba(0, 24, 56, 0.22),
        0 0 0 1px rgba(0, 107, 180, 0.18) inset,
        0 0 24px rgba(255, 255, 255, 0.2);
    display: block;
    justify-self: center;
    overflow: hidden;
    position: relative;
    width: min(230px, 100%);
    z-index: 1;
}

.media-project-carousel::after {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%),
        linear-gradient(90deg, rgba(233, 248, 255, 0.95) 0%, transparent 18%, transparent 82%, rgba(233, 248, 255, 0.95) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.media-project-carousel-track {
    animation: mediaProjectCarouselSlide 18s linear infinite;
    display: flex;
    gap: 0.45rem;
    height: 100%;
    padding: 0.45rem;
    position: relative;
    width: max-content;
}

.media-project-carousel img {
    display: block;
    flex: 0 0 clamp(92px, 11vw, 128px);
    height: 100%;
    object-fit: cover;
    opacity: 1;
    position: relative;
    width: 100%;
}

.media-project-cta .media-cta-copy strong {
    color: #fff;
}

.media-project-cta .media-cta-action {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.34);
    color: #fff;
    justify-self: center;
}

.media-cta-copy,
.media-cta-copy strong,
.media-cta-copy span,
.media-cta-action {
    position: relative;
    z-index: 1;
}

.media-cta-copy strong,
.media-cta-copy span {
    display: block;
}

.media-cta-copy strong {
    color: #fff;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 900;
    line-height: 1.16;
    text-transform: uppercase;
}

.media-cta-copy span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-top: 0.35rem;
}

.media-cta-action {
    align-items: center;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    gap: 0.45rem;
    letter-spacing: 0.06em;
    padding: 0.72rem 0.9rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.media-cta-row .media-cta-action {
    grid-column: auto;
    justify-self: start;
}

.media-magazine-showcase {
    min-height: clamp(520px, 58vw, 760px);
    perspective: 1400px;
    position: relative;
}

.media-cover-card,
.media-pages-grid figure {
    background: #070707;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    box-shadow:
        0 36px 82px rgba(0, 0, 0, 0.46),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    margin: 0;
    overflow: hidden;
}

.media-cover-card {
    animation: mediaFloatCover 7s ease-in-out infinite;
    left: 0;
    max-width: min(56%, 380px);
    position: absolute;
    top: 7%;
    transform: rotate(-7deg);
    z-index: 3;
}

.media-cover-card img,
.media-pages-grid img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.media-cover-card figcaption {
    background: rgba(196, 0, 0, 0.92);
    bottom: 1rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    left: 1rem;
    letter-spacing: 0.08em;
    padding: 0.55rem 0.8rem;
    position: absolute;
    right: 1rem;
    text-transform: uppercase;
}

.media-pages-grid {
    inset: 0;
    position: absolute;
}

.media-pages-grid figure {
    animation: mediaPageDrift 8s ease-in-out infinite;
    position: absolute;
}

.media-pages-grid figure:nth-child(1) {
    height: 44%;
    right: 16%;
    top: 0;
    transform: rotate(7deg);
    width: 34%;
}

.media-pages-grid figure:nth-child(2) {
    animation-delay: -1.8s;
    height: 43%;
    right: 0;
    top: 30%;
    transform: rotate(-4deg);
    width: 36%;
}

.media-pages-grid figure:nth-child(3) {
    animation-delay: -3.2s;
    bottom: 0;
    height: 42%;
    left: 23%;
    transform: rotate(4deg);
    width: 34%;
}

.media-pages-grid figure:nth-child(4) {
    animation-delay: -4.6s;
    bottom: 9%;
    height: 35%;
    right: 31%;
    transform: rotate(-8deg);
    width: 26%;
}

@keyframes mediaGlowSweep {

    0%,
    38% {
        left: -42%;
        opacity: 0;
    }

    50% {
        opacity: 0.92;
    }

    72%,
    100% {
        left: 120%;
        opacity: 0;
    }
}

@keyframes mediaFloatCover {

    0%,
    100% {
        transform: rotate(-7deg) translate3d(0, 0, 0);
    }

    50% {
        transform: rotate(-4deg) translate3d(0, -14px, 28px);
    }
}

@keyframes mediaPageDrift {

    0%,
    100% {
        filter: saturate(0.92);
        translate: 0 0;
    }

    50% {
        filter: saturate(1.08);
        translate: 0 -10px;
    }
}

@keyframes mediaProjectCarouselSlide {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 0.225rem));
    }
}

@media (max-width: 980px) {
    .media-recognition-shell {
        grid-template-columns: 1fr;
    }

    .media-magazine-showcase {
        min-height: 640px;
    }

    .media-article-cta {
        grid-template-columns: minmax(96px, 132px) 1fr;
    }

    .media-cta-action {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .media-recognition {
        border-radius: 20px;
        margin-inline: 0;
        padding: 2.6rem 12px 3rem;
    }

    .media-recognition-copy h2 {
        font-size: clamp(2.25rem, 13vw, 3.5rem);
        line-height: 0.96;
    }

    .media-article-cta {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .media-cta-row {
        grid-template-columns: 1fr;
    }

    .media-cta-fan {
        height: 104px;
        justify-self: center;
        width: 150px;
    }

    .media-cta-row .media-cta-fan,
    .media-project-carousel {
        justify-self: center;
        width: min(190px, 100%);
    }

    .media-cta-action {
        grid-column: auto;
    }

    .media-magazine-showcase {
        display: grid;
        gap: 1rem;
        min-height: 0;
    }

    .media-cover-card,
    .media-pages-grid,
    .media-pages-grid figure {
        inset: auto;
        max-width: none;
        position: relative;
        transform: none;
        width: 100%;
    }

    .media-pages-grid figure:nth-child(n) {
        bottom: auto;
        height: auto;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
    }

    .media-cover-card,
    .media-pages-grid figure {
        animation: none;
    }

    .media-pages-grid {
        display: grid;
        gap: 0.85rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .media-pages-grid figure {
        height: auto;
    }
}

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

    .media-recognition::before,
    .media-cover-card,
    .media-pages-grid figure,
    .media-project-carousel-track {
        animation: none;
    }
}

/* Mobile performance pass: preserve the visual language while reducing paint/GPU pressure. */
@media (max-width: 640px) {
    .reveal-once {
        transform: translateY(8px);
        transition-duration: 0.32s;
    }

    .scroll-showcase,
    .youtube-carousel {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .smart-home-map,
    .clientes-orbit-stage,
    .product-showcase,
    .scroll-showcase {
        contain: layout paint;
    }

    .story-card,
    .highlight-card,
    .case-card,
    .card-servico,
    .faq-item,
    .contact-info,
    .contact-form,
    .media-article-cta {
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    }

    .media-recognition::before {
        display: none;
    }

    .media-recognition::after {
        opacity: 0.22;
    }
}

/* Brighter lava ambience shared by the opening and smart-home sections. */
main {
    padding-left: 0;
    padding-right: 0;
}

.site-callout,
.smart-home-plan-section {
    animation: mmtechLavaAmbience 17s ease-in-out infinite alternate;
    background:
        radial-gradient(ellipse at 14% 16%, rgba(255, 72, 72, 0.78), transparent 30%),
        radial-gradient(ellipse at 84% 12%, rgba(255, 255, 255, 0.2), transparent 24%),
        radial-gradient(ellipse at 72% 76%, rgba(255, 0, 0, 0.66), transparent 34%),
        radial-gradient(ellipse at 20% 88%, rgba(171,171,171, 0.24), transparent 28%),
        linear-gradient(135deg, #090303 0%, #430000 44%, #130202 74%, #050505 100%);
    background-size: 145% 145%, 130% 130%, 160% 160%, 150% 150%, 100% 100%;
    margin-left: calc(var(--site-frame, 0px) * -1);
    margin-right: calc(var(--site-frame, 0px) * -1);
    overflow: visible;
    position: relative;
    width: calc(100% + (var(--site-frame, 0px) * 2));
}

.site-callout {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        0 34px 110px rgba(255, 0, 0, 0.14);
}

.smart-home-plan-section {
    border-top: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.site-callout::before,
.site-callout::after,
.smart-home-plan-section::before,
.smart-home-plan-section::after {
    content: "";
    pointer-events: none;
    position: absolute;
}

.site-callout::before,
.site-callout::after {
    border-radius: 999px;
    filter: blur(34px);
    mix-blend-mode: screen;
    opacity: 0.72;
    z-index: 0;
}

.site-callout::before {
    animation: mmtechLavaBlobOne 13s ease-in-out infinite alternate;
    background: #ff2f2f;
    height: clamp(260px, 26vw, 460px);
    left: -8%;
    top: 8%;
    width: clamp(260px, 28vw, 500px);
}

.site-callout::after {
    animation: mmtechLavaBlobTwo 15s ease-in-out infinite alternate;
    background: rgba(255, 255, 255, 0.48);
    bottom: -18%;
    height: clamp(240px, 24vw, 420px);
    right: 8%;
    width: clamp(160px, 18vw, 300px);
}

.site-callout-overlay {
    background:
        radial-gradient(circle at 26% 34%, rgba(255, 98, 98, 0.24), transparent 24%),
        radial-gradient(circle at 72% 48%, rgba(255, 0, 0, 0.28), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.44));
    z-index: 0;
}

.site-callout-overlay::before {
    background: #ff3333;
    height: clamp(280px, 28vw, 500px);
    opacity: 0.56;
    width: clamp(180px, 18vw, 320px);
}

.site-callout-overlay::after {
    background: #fff0e4;
    height: clamp(200px, 20vw, 340px);
    opacity: 0.34;
    width: clamp(130px, 14vw, 240px);
}

.smart-home-plan-section::before {
    animation: mmtechLavaBlobThree 16s ease-in-out infinite alternate;
    background:
        radial-gradient(ellipse at 25% 24%, rgba(255, 80, 80, 0.52), transparent 36%),
        radial-gradient(ellipse at 78% 68%, rgba(255, 0, 0, 0.44), transparent 38%),
        radial-gradient(ellipse at 58% 18%, rgba(255, 255, 255, 0.18), transparent 28%);
    filter: blur(32px);
    inset: -20%;
    mix-blend-mode: screen;
    opacity: 0.78;
    z-index: 0;
}

.smart-home-plan-section::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 42px 42px;
    inset: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 84%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 15%, #000 84%, transparent);
    opacity: 0.5;
    z-index: 0;
}

.site-callout-grid,
.smart-home-plan-shell {
    position: relative;
    z-index: 1;
}

.smart-home-map {
    box-shadow:
        0 34px 96px rgba(0, 0, 0, 0.54),
        0 0 0 1px rgba(255, 255, 255, 0.18),
        0 0 70px rgba(255, 0, 0, 0.2),
        inset 0 0 46px rgba(255, 255, 255, 0.06);
}

@keyframes mmtechLavaAmbience {
    0% {
        background-position: 0% 18%, 100% 4%, 72% 96%, 12% 86%, center;
    }

    45% {
        background-position: 26% 74%, 70% 28%, 34% 42%, 78% 18%, center;
    }

    100% {
        background-position: 100% 42%, 12% 84%, 8% 18%, 48% 92%, center;
    }
}

@keyframes mmtechLavaBlobOne {
    from {
        transform: translate3d(-18px, 28px, 0) rotate(10deg) scale(0.9);
    }

    to {
        transform: translate3d(150px, 96px, 0) rotate(-12deg) scale(1.18);
    }
}

@keyframes mmtechLavaBlobTwo {
    from {
        transform: translate3d(34px, -20px, 0) rotate(-8deg) scale(0.88);
    }

    to {
        transform: translate3d(-150px, -98px, 0) rotate(16deg) scale(1.16);
    }
}

@keyframes mmtechLavaBlobThree {
    from {
        transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1);
    }

    to {
        transform: translate3d(5%, 4%, 0) rotate(3deg) scale(1.08);
    }
}

@media (max-width: 640px) {

    .site-callout,
    .smart-home-plan-section {
        animation-duration: 24s;
        margin-left: calc(var(--site-frame, 0px) * -1);
        margin-right: calc(var(--site-frame, 0px) * -1);
        width: calc(100% + (var(--site-frame, 0px) * 2));
    }

    .site-callout::before,
    .site-callout::after,
    .smart-home-plan-section::before {
        filter: blur(24px);
        opacity: 0.46;
    }
}

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

    .site-callout,
    .smart-home-plan-section,
    .site-callout::before,
    .site-callout::after,
    .smart-home-plan-section::before {
        animation: none;
    }
}

/* Flush lava sections to the black site edge with no transparent side frame. */
:root {
    --site-frame: 0px;
}

html,
body,
.container {
    background-color: #000;
}

.container,
.site-header {
    border-left-width: 0;
    border-right-width: 0;
}

.container,
main,
.page-content {
    padding-left: 0;
    padding-right: 0;
}

.site-callout,
.smart-home-plan-section {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

@media (max-width: 900px) {
    :root {
        --site-frame: 0px;
    }

    .container,
    main,
    .page-content,
    .site-callout,
    .smart-home-plan-section {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    :root {
        --site-frame: 0px;
    }

    .site-callout,
    .smart-home-plan-section {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

/* Clean project timeline */
.project-timeline {
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    color: #111;
    overflow: hidden;
    position: relative;
}

.project-timeline::before {
    background-image:
        linear-gradient(rgba(196, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    inset: 0;
    opacity: 0.7;
    pointer-events: none;
    position: absolute;
}

.project-timeline-heading,
.project-timeline-grid {
    position: relative;
    z-index: 1;
}

.project-timeline .section-kicker {
    color: #c40000;
    display: inline-flex;
    letter-spacing: 0;
}

.project-timeline .section-heading h2 {
    color: #111;
    font-size: 2.6rem;
    white-space: normal;
}

.project-timeline .section-heading p {
    color: #5b5b5b;
    line-height: 1.7;
    margin-inline: auto;
    max-width: 820px;
}

.project-timeline .project-timeline-grid {
    align-items: stretch;
    display: grid;
    gap: clamp(1rem, 2vw, 1.4rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto;
    max-width: none;
    padding-top: 3.65rem;
    position: relative;
    width: min(calc(100% - (var(--site-gutter, 24px) * 2)), 1120px);
}

.project-timeline .project-timeline-grid::before {
    background:
        linear-gradient(90deg, rgba(196, 0, 0, 0), rgba(196, 0, 0, 0.46), rgba(196, 0, 0, 0));
    content: "";
    display: block;
    height: 2px;
    left: 12%;
    position: absolute;
    right: 12%;
    top: 1.28rem;
    transform: none;
    z-index: 0;
}

.project-timeline .project-timeline-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
    color: #111;
    min-height: 100%;
    padding: clamp(1.25rem, 2.2vw, 1.55rem);
    position: relative;
    z-index: 1;
}

.project-timeline .project-timeline-card::before {
    background: #c40000;
    border: 6px solid #fff;
    border-radius: 999px;
    box-shadow:
        0 0 0 1px rgba(196, 0, 0, 0.25),
        0 12px 28px rgba(196, 0, 0, 0.24);
    content: "";
    height: 26px;
    left: 50%;
    position: absolute;
    top: -3.25rem;
    transform: translateX(-50%);
    width: 26px;
    z-index: 2;
}

.project-timeline .project-timeline-card:not(:last-child)::after {
    display: none;
}

.project-timeline-step {
    background: #fff4f4;
    border: 1px solid rgba(196, 0, 0, 0.14);
    border-radius: 8px;
    color: #a90000;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 0.85rem;
    padding: 0.48rem 0.68rem;
    text-transform: uppercase;
}

.project-timeline .project-timeline-card h3 {
    color: #111;
    font-size: 1.18rem;
    line-height: 1.25;
    margin: 0 0 0.8rem;
}

.project-timeline .project-timeline-card p {
    color: #555;
    line-height: 1.68;
    margin: 0;
}

.project-timeline .project-timeline-card:hover {
    border-color: rgba(196, 0, 0, 0.28);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.11);
    transform: translateY(-5px);
}

@media (max-width: 900px) {
    .project-timeline .section-heading h2 {
        font-size: 2rem;
    }

    .project-timeline .project-timeline-grid {
        --timeline-card-offset: clamp(2.1rem, 8vw, 2.6rem);
        --timeline-line-x: 1rem;

        gap: 1rem;
        grid-template-columns: 1fr;
        padding-left: var(--timeline-card-offset);
        padding-top: 0;
    }

    .project-timeline .project-timeline-grid::before {
        bottom: 1.2rem;
        height: auto;
        left: var(--timeline-line-x);
        right: auto;
        top: 1.2rem;
        width: 2px;
    }

    .project-timeline .project-timeline-card::before {
        left: calc(var(--timeline-line-x) - var(--timeline-card-offset));
        top: 1.45rem;
        transform: translateX(-50%);
    }

    .project-timeline .project-timeline-card:hover {
        transform: none;
    }
}

/* Modern services portfolio */
.services-modern {
    background: #fff;
    color: #121212;
    overflow: hidden;
    position: relative;
}

.services-modern::before {
    background-image:
        linear-gradient(rgba(196, 0, 0, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 0, 0, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    inset: 0;
    opacity: 0.65;
    pointer-events: none;
    position: absolute;
}

.services-modern .services-heading,
.services-modern .services-grid {
    position: relative;
    z-index: 1;
}

.services-modern .services-heading {
    margin-bottom: 1rem;
    max-width: 920px;
}

.services-modern .section-kicker {
    color: #c40000;
    display: inline-flex;
    letter-spacing: 0.16em;
}

.services-modern .services-heading h2 {
    color: #111;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    letter-spacing: 0;
}

.services-modern .services-heading p {
    color: #565656;
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.72;
    margin: 0 auto;
    max-width: 760px;
}

.services-modern .services-grid {
    align-items: stretch;
    display: grid;
    gap: clamp(1rem, 1.8vw, 1.35rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(calc(100% - (var(--site-gutter, 24px) * 2)), 1240px);
}

.services-mobile-nav {
    display: none;
}

.services-modern .service-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
    color: #111;
    display: grid;
    gap: 0.95rem;
    grid-template-rows: auto auto auto 1fr auto;
    min-height: 100%;
    overflow: hidden;
    padding: clamp(1rem, 2vw, 1.35rem);
    position: relative;
    scroll-margin-top: 96px;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.services-modern .service-card::before {
    background: linear-gradient(90deg, #c40000, rgba(196, 0, 0, 0.18), transparent);
    content: "";
    height: 3px;
    inset: 0 0 auto;
    position: absolute;
}

.service-card-top {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    justify-content: flex-start;
}

.service-tag {
    background: #fff3f3;
    border: 1px solid rgba(196, 0, 0, 0.16);
    border-radius: 999px;
    color: #a90000;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.68rem;
    text-transform: uppercase;
}

.services-modern .service-card h3 {
    color: #111;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.16;
    margin: 0;
}

.service-description {
    color: #4f4f4f;
    line-height: 1.65;
    margin: 0;
}

.service-points {
    border-top: 1px solid #ededed;
    color: #333;
    display: grid;
    gap: 0.52rem;
    list-style: none;
    margin: 0;
    padding: 0.95rem 0 0;
}

.service-points li {
    align-items: baseline;
    display: grid;
    gap: 0.52rem;
    grid-template-columns: auto 1fr;
}

.service-points li::before {
    background: #ff2d2d;
    border-radius: 999px;
    content: "";
    height: 0.45rem;
    width: 0.45rem;
}

.service-case-gallery {
    background: transparent;
    border: 0;
    border-radius: 18px;
    color: inherit;
    cursor: pointer;
    display: block;
    font: inherit;
    margin-top: 0.25rem;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: left;
    width: 100%;
}

.service-mosaic {
    aspect-ratio: 4 / 3;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    overflow: hidden;
}

.service-mosaic img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.service-case-caption {
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.36));
    bottom: 0;
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    left: 0;
    letter-spacing: 0.04em;
    padding: 0.62rem 0.78rem;
    position: absolute;
    right: 0;
    text-transform: uppercase;
}

.service-case-gallery:hover .service-mosaic img,
.service-case-gallery:focus-visible .service-mosaic img {
    filter: brightness(1.07);
}

.service-case-gallery:focus-visible {
    outline: 3px solid rgba(255, 92, 92, 0.7);
    outline-offset: 4px;
}

.services-modern .service-card:hover {
    border-color: rgba(196, 0, 0, 0.34);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

/* Shared light grid for every white section. */
:where(.automacao-intro,
    .storyline,
    .sobre,
    .cases-section,
    .clientes-section,
    .servicos,
    .faq-section,
    #contact) {
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

:where(.automacao-intro,
    .storyline,
    .sobre,
    .cases-section,
    .clientes-section,
    .servicos,
    .faq-section,
    #contact)::before {
    background-image:
        linear-gradient(rgba(196, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    inset: 0;
    opacity: 0.68;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

:where(.automacao-intro,
    .storyline,
    .sobre,
    .cases-section,
    .clientes-section,
    .servicos,
    .faq-section,
    #contact)>* {
    position: relative;
    z-index: 1;
}

.contact-container {
    align-items: stretch;
}

.contact-info-phone {
    align-self: stretch;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--color-text);
    contain: none;
    display: grid;
    min-width: min(100%, 320px);
    overflow: visible;
    padding: 0;
    place-items: stretch center;
    position: relative;
}

.contact-info-phone::before {
    content: none;
}

.contact-info-phone:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.contact-phone-device {
    background:
        linear-gradient(145deg, #f4f4f4 0%, #9b9b9b 10%, #050505 26%, #111 70%, #3a3a3a 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 44px;
    box-shadow:
        0 26px 54px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 430px;
    min-height: 100%;
    padding: 11px;
    position: relative;
    width: 100%;
}

.contact-phone-device::before {
    background: #050505;
    border-radius: 0 0 18px 18px;
    content: "";
    height: 25px;
    left: 50%;
    position: absolute;
    top: 10px;
    transform: translateX(-50%);
    width: 120px;
    z-index: 3;
}

.contact-phone-device::after {
    background: linear-gradient(180deg, #595959, #111);
    border-radius: 999px;
    content: "";
    height: 70px;
    position: absolute;
    right: -4px;
    top: 118px;
    width: 4px;
}

.contact-phone-screen {
    background: #fff;
    border: 1px solid rgba(15, 15, 15, 0.08);
    border-radius: 34px;
    color: var(--color-text);
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
    min-height: 540px;
    overflow: hidden;
    padding: 1rem;
    position: relative;
}

.contact-phone-screen::before {
    content: none;
}

.contact-phone-screen>* {
    position: relative;
    z-index: 1;
}

.contact-phone-status {
    align-items: center;
    display: flex;
    font-size: 0.72rem;
    font-weight: 800;
    justify-content: space-between;
    opacity: 0.82;
    padding: 0.1rem 0.35rem 0.95rem;
}

.contact-phone-status span:last-child {
    align-items: center;
    display: inline-flex;
    gap: 0.34rem;
}

.contact-phone-appbar {
    align-items: center;
    display: flex;
    gap: 0.82rem;
    margin: 1rem 0 1.1rem;
}

.contact-phone-app-icon {
    align-items: center;
    background: #780000;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(182, 0, 0, 0.18);
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    font-size: 1.18rem;
    height: 48px;
    width: 48px;
}

.contact-phone-card-icon {
    align-items: center;
    background: #004b86;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(182, 0, 0, 0.18);
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    font-size: 1.18rem;
    height: 48px;
    width: 48px;
}

.contact-phone-card-icon2 {
    align-items: center;
    background: #780000;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(182, 0, 0, 0.18);
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    font-size: 1.18rem;
    height: 48px;
    width: 48px;
}

.contact-phone-card-icon3 {
    align-items: center;
    background: #00c40a;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(182, 0, 0, 0.18);
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    font-size: 1.18rem;
    height: 48px;
    width: 48px;
}

.contact-phone-kicker {
    color: var(--color-primary);
    font-size: 0.76rem;
    font-weight: 800;
    margin: 0 0 0.15rem;
    text-transform: uppercase;
}

.contact-phone-appbar h3 {
    color: var(--color-text);
    font-size: clamp(1.24rem, 2.4vw, 1.72rem);
    line-height: 1.1;
    margin: 0;
}

.contact-phone-card {
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(15, 15, 15, 0.08);
    border-radius: 20px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
    display: grid;
    gap: 0.78rem;
    grid-template-columns: auto 1fr;
    margin-bottom: 0.74rem;
    padding: 0.86rem;
}



.contact-phone-card-content {
    min-width: 0;
}

.contact-phone-card-content h4 {
    color: var(--color-primary);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 0.34rem;
    text-transform: uppercase;
}

.contact-phone-card-content p {
    color: #333;
    font-size: 0.83rem;
    line-height: 1.42;
    margin: 0.18rem 0;
}

.contact-phone-card-content a {
    color: inherit;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.contact-phone-card-content a:hover,
.contact-phone-card-content a:focus-visible {
    color: var(--color-primary);
}

.contact-phone-homebar {
    background: rgba(0, 0, 0, 0.24);
    border-radius: 999px;
    display: block;
    height: 4px;
    margin: auto auto 0.15rem;
    width: 38%;
}

.inline-whatsapp-cta {
    align-items: center;
    border-radius: 18px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: clamp(1.25rem, 3vw, 2rem) auto 0;
    padding: 0.92rem 1rem 0.92rem 1.1rem;
    width: min(calc(100% - (var(--site-gutter, 24px) * 2)), 1120px);
}

.inline-whatsapp-cta-dark {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
    color: #fff;
    position: relative;
    z-index: 1;
}

.inline-whatsapp-cta-light {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(20, 20, 20, 0.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
    color: #171717;
}

.inline-whatsapp-cta-compact {
    width: min(calc(100% - (var(--site-gutter, 24px) * 2)), 960px);
}

.inline-whatsapp-cta-text {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.inline-whatsapp-cta-text strong {
    font-size: clamp(0.96rem, 1.4vw, 1.12rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
}

.inline-whatsapp-cta-text span {
    color: inherit;
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0.74;
}

.inline-whatsapp-cta-link {
    align-items: center;
    background: #7f7f7f;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 900;
    gap: 0.42rem;
    justify-content: center;
    letter-spacing: 0;
    min-height: 2.6rem;
    padding: 0.76rem 1.08rem;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.inline-whatsapp-cta-link:hover,
.inline-whatsapp-cta-link:focus-visible {
    background: #676767;
    box-shadow: 0 14px 26px rgba(103,103,103, 0.24);
    transform: translateY(-2px);
}

.inline-whatsapp-cta-link:focus-visible {
    outline: 3px solid rgba(127,127,127, 0.28);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .services-modern .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-phone {
        flex-basis: 100%;
    }

    .contact-phone-device {
        max-width: 460px;
    }
}

@media (max-width: 640px) {
    .services-mobile-nav {
        display: flex;
        gap: 0.55rem;
        margin: 0 auto 1rem;
        overflow-x: auto;
        padding: 0 0 0.35rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        width: min(calc(100% - (var(--site-gutter, 12px) * 2)), 1240px);
        -webkit-overflow-scrolling: touch;
    }

    .services-mobile-nav::-webkit-scrollbar {
        display: none;
    }

    .services-mobile-nav a {
        background: #fff;
        border: 1px solid #e2e2e2;
        border-radius: 999px;
        color: #222;
        flex: 0 0 auto;
        font-size: 0.78rem;
        font-weight: 800;
        padding: 0.68rem 0.86rem;
        scroll-snap-align: start;
        text-decoration: none;
    }

    .services-modern .service-card {
        border-radius: 18px;
    }

    .service-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-tag {
        font-size: 0.68rem;
    }

    .service-mosaic {
        aspect-ratio: 1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-modern .service-card:hover {
        transform: none;
    }

    .inline-whatsapp-cta {
        align-items: flex-start;
        border-radius: 16px;
        flex-direction: column;
        gap: 0.78rem;
        padding: 0.95rem;
        width: min(calc(100% - (var(--site-gutter, 12px) * 2)), 100%);
    }

    .inline-whatsapp-cta-link {
        min-height: 2.5rem;
        width: 100%;
    }

    .contact-info-phone {
        border-radius: 0;
        padding: 0;
    }

    .contact-phone-device {
        border-radius: 36px;
        padding: 8px;
    }

    .contact-phone-device::before {
        height: 22px;
        width: 104px;
    }

    .contact-phone-screen {
        border-radius: 28px;
        min-height: auto;
        padding: 0.86rem;
    }

    .contact-phone-appbar {
        align-items: flex-start;
    }

    .contact-phone-card {
        border-radius: 18px;
        gap: 0.68rem;
        padding: 0.78rem;
    }

}

/* Fully transparent header. */
.site-header,
.site-header.is-scrolled {
    animation: none;
    background: transparent;
    background-color: transparent;
    background-image: none;
    background-size: auto;
    border-bottom-color: transparent;
    box-shadow: none;
    isolation: auto;
    overflow: visible;
}

.site-header::before,
.site-header::after {
    content: none;
    display: none;
}

.site-header .header-overlay {
    background: transparent;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.site-header> :not(.header-overlay) {
    position: relative;
    z-index: 2;
}

/* Extend the opening lava background behind the transparent fixed header. */
:root {
    --opening-header-space: 88px;
}

.site-callout {
    margin-top: calc(var(--opening-header-space) * -1);
    padding-top: calc(clamp(1.75rem, 4vw, 3rem) + var(--opening-header-space));
}

@media (max-width: 900px) {
    :root {
        --opening-header-space: 76px;
    }

    .site-callout {
        padding-top: calc(1.35rem + var(--opening-header-space));
    }
}

@media (max-width: 640px) {
    :root {
        --opening-header-space: 72px;
    }

    .site-callout {
        padding-top: calc(1rem + var(--opening-header-space));
    }
}

/* Full-bleed production reset: removes the legacy page frame and side borders. */
:root {
    --site-frame: 0px;
}

html,
body {
    margin: 0;
    max-width: 100%;
    overflow-x: clip;
    width: 100%;
}

body,
.container {
    border: 0;
    box-shadow: none;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.container,
main,
.page-content {
    margin-left: 0;
    margin-right: 0;
    overflow-x: clip;
}

.site-header {
    border-left: 0;
    border-right: 0;
    left: 0;
    max-width: none;
    transform: none;
    width: 100%;
}

.site-header,
.hero,
.site-callout,
.highlights,
.youtube-section,
.automacao-intro,
.storyline,
.sobre,
.cases-section,
.clientes-section,
.servicos,
.faq-section,
#contact,
footer {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
}

@media (max-width: 720px) {
    .case-viewer-dialog {
        background: #000;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        inset: 0;
    }

    .case-viewer-header {
        background: #c40000;
        flex: 0 0 auto;
        gap: 0.75rem;
        min-height: calc(56px + env(safe-area-inset-top));
        padding: max(0.7rem, env(safe-area-inset-top)) 0.78rem 0.7rem;
        pointer-events: auto;
        position: relative;
        z-index: 3;
    }

    .case-viewer-header h3 {
        color: #fff;
        display: block;
        flex: 1 1 auto;
        font-size: clamp(0.78rem, 3.7vw, 1rem);
        letter-spacing: 0.02em;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .case-viewer-close {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.22);
        flex: 0 0 auto;
        height: 40px;
        margin-left: auto;
        pointer-events: auto;
        width: 40px;
    }

    .case-viewer-frame {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
    }
}

@media (max-width: 640px) {
    body.smart-device-modal-open .smart-home-map {
        contain: none !important;
        transform: none !important;
    }

    body.smart-device-modal-open .smart-device-point.is-open {
        transform: none !important;
    }

    body.smart-device-modal-open .smart-device-point.is-open .smart-device-info-card,
    body.smart-device-modal-open .smart-device-bubble-left.is-open .smart-device-info-card,
    body.smart-device-modal-open .smart-device-bubble-top.is-open .smart-device-info-card,
    body.smart-device-modal-open .smart-device-bubble-bottom.is-open .smart-device-info-card,
    body > .smart-device-info-card.is-mobile-mounted {
        border: 3px solid #111 !important;
        border-radius: 24px !important;
        box-shadow:
            8px 8px 0 rgba(0, 0, 0, 0.22),
            0 24px 56px rgba(0, 0, 0, 0.34) !important;
        display: grid !important;
        grid-template-rows: minmax(0, clamp(150px, 34dvh, 230px)) 1fr !important;
        height: auto !important;
        inset: auto !important;
        left: 50% !important;
        max-height: calc(100dvh - 1.5rem) !important;
        max-width: none !important;
        opacity: 1 !important;
        overflow: auto !important;
        pointer-events: auto !important;
        position: fixed !important;
        right: auto !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: min(calc(100vw - 1.5rem), 380px) !important;
        z-index: 9999 !important;
    }

    body > .smart-device-info-card.is-mobile-mounted .smart-device-info-close {
        background: #111;
        border-color: rgba(255, 255, 255, 0.34);
        display: inline-flex;
        height: 2.75rem;
        position: absolute;
        right: 0.68rem;
        top: 0.68rem;
        width: 2.75rem;
        z-index: 10001;
    }

    body > .smart-device-info-card.is-mobile-mounted .smart-device-info-media {
        border-radius: 21px 21px 0 0;
    }

    body > .smart-device-info-card.is-mobile-mounted .smart-device-info-content {
        padding: 1rem;
    }

    body > .smart-device-info-card.is-mobile-mounted .smart-device-info-content h3 {
        font-size: clamp(1.18rem, 5.5vw, 1.55rem);
    }

    body > .smart-device-info-card.is-mobile-mounted .smart-device-info-content p {
        font-size: 0.9rem;
        line-height: 1.48;
    }
}

@media (max-width: 760px) {
    .smart-device-point .smart-device-info-card:not(.is-mobile-mounted),
    .smart-device-point:hover .smart-device-info-card:not(.is-mobile-mounted),
    .smart-device-point:focus-within .smart-device-info-card:not(.is-mobile-mounted),
    .smart-device-point.is-hover-held .smart-device-info-card:not(.is-mobile-mounted),
    .smart-device-point.is-open .smart-device-info-card:not(.is-mobile-mounted) {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: none !important;
    }

    body.smart-device-modal-open {
        overflow: hidden;
    }

    body > .smart-device-info-card.is-mobile-mounted {
        border: 3px solid #111 !important;
        border-radius: 24px !important;
        box-shadow:
            8px 8px 0 rgba(0, 0, 0, 0.22),
            0 24px 56px rgba(0, 0, 0, 0.34) !important;
        display: grid !important;
        grid-template-rows: minmax(0, clamp(150px, 34dvh, 230px)) 1fr !important;
        height: auto !important;
        inset: auto !important;
        left: 50% !important;
        max-height: calc(100dvh - 1.5rem) !important;
        max-width: none !important;
        opacity: 1 !important;
        overflow: auto !important;
        pointer-events: auto !important;
        position: fixed !important;
        right: auto !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: min(calc(100vw - 1.5rem), 380px) !important;
        z-index: 9999 !important;
    }

    body > .smart-device-info-card.is-mobile-mounted::before {
        display: none !important;
    }

    body > .smart-device-info-card.is-mobile-mounted .smart-device-info-close {
        background: #111;
        border-color: rgba(255, 255, 255, 0.34);
        display: inline-flex;
        height: 2.75rem;
        position: absolute;
        right: 0.68rem;
        top: 0.68rem;
        width: 2.75rem;
        z-index: 10001;
    }

    body > .smart-device-info-card.is-mobile-mounted .smart-device-info-media {
        border-radius: 21px 21px 0 0;
    }

    body > .smart-device-info-card.is-mobile-mounted .smart-device-info-content {
        padding: 1rem;
    }

    body > .smart-device-info-card.is-mobile-mounted .smart-device-info-content h3 {
        font-size: clamp(1.18rem, 5.5vw, 1.55rem);
    }

    body > .smart-device-info-card.is-mobile-mounted .smart-device-info-content p {
        font-size: 0.9rem;
        line-height: 1.48;
    }
}

@media (max-width: 760px) {
    html,
    body {
        overscroll-behavior-y: auto;
        scroll-behavior: smooth;
    }

    .scroll-showcase,
    .scroll-showcase-cases,
    .scroll-showcase-clients {
        -webkit-overflow-scrolling: auto !important;
        contain: none !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        overscroll-behavior: auto !important;
        scrollbar-width: none !important;
        touch-action: pan-y;
    }

    .scroll-showcase::-webkit-scrollbar,
    .scroll-showcase-cases::-webkit-scrollbar,
    .scroll-showcase-clients::-webkit-scrollbar {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
    }
}
