:root {
    --bg: #f4efe7;
    --panel: #fffaf3;
    --panel-strong: #13293d;
    --text: #1c2733;
    --muted: #5f6d78;
    --line: rgba(19, 41, 61, 0.12);
    --accent: #ff7a18;
    --accent-2: #0b8f8c;
    --shadow: 0 18px 50px rgba(19, 41, 61, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 122, 24, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(11, 143, 140, 0.16), transparent 24%),
        var(--bg);
}

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

img {
    display: block;
    max-width: 100%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(19, 41, 61, 0.05);
}

.site-header__top {
    background: #ffffff;
    border-radius: 0;
    padding: 0;
}

.site-header__nav {
    background: #ffffff;
}

.site-header__top,
.site-header__nav,
.hero__grid,
.split-panel,
.detail-grid,
.site-footer__grid {
    display: grid;
    gap: 24px;
}

.site-header__top,
.site-header__nav {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand__logo {
    width: 160px;
    height: auto;
    object-fit: contain;
}

.brand strong,
.hero h1,
.hero__panel h2,
.section-heading h2,
.service-card h2,
.service-card h3,
.detail-card h2,
.site-footer h2 {
    font-family: 'Space Grotesk', sans-serif;
}

.brand small,
.site-header__contact,
.hero__lead,
.service-card p,
.detail-card p,
.faq-card p,
.bullet-panel p,
.step-card p {
    color: var(--muted);
}

.site-header__contact,
.nav,
.hero__actions,
.topics-grid,
.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.nav a,
.site-header__contact a {
    font-size: 0.95rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--accent), #ff9f43);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.button--secondary,
.button--ghost {
    background: transparent;
    color: var(--panel-strong);
    border-color: rgba(19, 41, 61, 0.18);
    box-shadow: none;
}

.hero {
    padding: 72px 0 32px;
}

.hero__grid,
.split-panel,
.detail-grid,
.site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero__visual {
    display: grid;
    gap: 18px;
}

.hero__content h1 {
    margin: 0 0 18px;
    font-size: clamp(2.3rem, 4vw, 4.5rem);
    line-height: 0.98;
}

.hero__lead {
    font-size: 1.08rem;
    max-width: 720px;
}

.hero__panel,
.service-card,
.stat-card,
.detail-card,
.faq-card,
.step-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero__panel {
    padding: 28px;
    background: linear-gradient(160deg, #18344d, #0b8f8c);
    color: #fff;
}

.hero__visual-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #0f2438;
}

.hero__banner {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    opacity: 0.35;
}

.page-clinic-system .hero__visual-card {
    background: #e9f1ff;
}

.page-clinic-system .hero__banner {
    opacity: 1;
    object-fit: contain;
    object-position: center;
    background: #e9f1ff;
    filter: none;
    mix-blend-mode: normal;
}

/* Pages with custom SVG illustrations — show at full opacity */
.page-home .hero__banner,
.page-ia-whatsapp .hero__banner,
.page-chatbot-ia .hero__banner,
.page-sistemas-recife .hero__banner,
.page-chatbot-clinicas .hero__banner,
.page-agentes-ia .hero__banner,
.page-about .hero__banner,
.page-clients .hero__banner,
.page-contact .hero__banner,
.page-portfolio .hero__banner,
.page-project-case .hero__banner {
    opacity: 1;
    object-fit: cover;
    min-height: 340px;
}

.page-home .hero__visual-card {
    background: #0a1628;
    min-height: 400px;
}

.page-home .hero__banner {
    min-height: 400px;
    object-fit: cover;
    object-position: center;
}

.hero__device {
    position: absolute;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.25));
}

.hero__device--desktop {
    width: 68%;
    right: 5%;
    top: 12%;
}

.hero__device--tablet {
    width: 23%;
    left: 10%;
    bottom: 10%;
}

.hero__device--phone {
    width: 12%;
    right: 14%;
    bottom: 8%;
}

.hero__panel-label,
.eyebrow,
.service-card__eyebrow,
.step-card span {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    font-weight: 800;
}

.eyebrow,
.service-card__eyebrow {
    color: var(--accent-2);
}

.hero__panel ul,
.mini-list {
    margin: 18px 0 0;
    padding-left: 18px;
}

.section {
    padding: 32px 0 52px;
}

.section--soft {
    background: rgba(255, 255, 255, 0.4);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.06;
}

.stats-grid,
.card-grid,
.portfolio-grid,
.faq-grid,
.project-grid,
.steps-grid {
    display: grid;
    gap: 20px;
}

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

.card-grid,
.faq-grid,
.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-grid,
.steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.service-card,
.detail-card,
.faq-card,
.step-card {
    padding: 24px;
}

.service-card--large {
    background: linear-gradient(180deg, #fffaf3, #fff);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
}

.service-card a,
.portfolio-card__body span,
.topic-chip {
    color: var(--accent-2);
    font-weight: 700;
}

.portfolio-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.project-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.project-card__media {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 24px;
}

.project-card__media--logo {
    background: linear-gradient(180deg, #ffffff, #f5f5f5);
}

.project-card__media--logo img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
}

.project-card__media--mark,
.project-hero-media--mark {
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
}

.project-card__media.theme-brown,
.project-hero-media.theme-brown {
    background: linear-gradient(135deg, #7a5529, #b98a54);
}

.project-card__media.theme-dark,
.project-hero-media.theme-dark {
    background: linear-gradient(135deg, #111111, #2f2f2f);
}

.project-card__media.theme-orange,
.project-hero-media.theme-orange {
    background: linear-gradient(135deg, #f46c1b, #ff9f43);
}

.project-card__media.theme-navy,
.project-hero-media.theme-navy {
    background: linear-gradient(135deg, #16324f, #2f5f8b);
}

.project-card__media.theme-green,
.project-hero-media.theme-green {
    background: linear-gradient(135deg, #1c6d2f, #2fa24a);
}

.project-card__body {
    padding: 22px;
}

.project-card__body span {
    color: var(--accent-2);
    font-weight: 700;
}

.project-hero-media {
    display: grid;
    place-items: center;
    min-height: 220px;
    margin-bottom: 20px;
    border-radius: 22px;
    overflow: hidden;
}

.project-hero-media--logo {
    background: #fff;
    border: 1px solid rgba(19, 41, 61, 0.08);
}

.project-hero-media--logo img {
    max-width: 80%;
    max-height: 150px;
    object-fit: contain;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
}

.project-hero-media--mark {
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 700;
}

.portfolio-card img,
.detail-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.portfolio-card__body {
    padding: 20px;
}

.topic-chip {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(11, 143, 140, 0.08);
    border: 1px solid rgba(11, 143, 140, 0.14);
}

.detail-card--wide {
    grid-column: span 1;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(19, 41, 61, 0.16);
    background: #fff;
    font: inherit;
}

.notice {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
}

.notice--success {
    background: rgba(11, 143, 140, 0.12);
    color: #066c69;
}

.notice--error {
    background: rgba(255, 122, 24, 0.14);
    color: #8c3f00;
}

.related-list {
    flex-direction: column;
    gap: 10px;
}

.site-footer {
    padding: 48px 0 72px;
    margin-top: 24px;
    background: #13293d;
    color: #f8efe0;
}

.site-footer a {
    color: #fff;
}

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 12px 12px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(37, 211, 102, 0.32);
}

.floating-whatsapp__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.floating-whatsapp__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.floating-whatsapp__text {
    white-space: nowrap;
}

/* ─── Home additions ──────────────────────────────────────────────────────── */

.section--stats {
    padding-bottom: 32px;
}

.split-panel--align-top {
    align-items: start;
}

.split-panel--visual {
    align-items: center;
    gap: 48px;
}

.split-visual {
    margin: 0;
}

/* Dark section */
.section--dark {
    background: var(--panel-strong);
    padding: 56px 0 64px;
}

.section-heading--light h2,
.section-heading--light p {
    color: #f0e8d8;
}

.eyebrow--light {
    color: #ff9f43;
}

/* IA grid 2x2 */
.ia-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ia-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: #f0e8d8;
}

.ia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 160, 60, 0.3);
}

.ia-card__visual {
    overflow: hidden;
    max-height: 220px;
}

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

.ia-card:hover .ia-card__visual img {
    transform: scale(1.02);
}

.ia-card__body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.ia-card__eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ff9f43;
    margin: 0;
}

.ia-card__body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    margin: 2px 0 6px;
    color: #ffffff;
}

.ia-card__body p {
    font-size: 0.92rem;
    color: rgba(240, 232, 216, 0.75);
    line-height: 1.55;
    margin: 0 0 auto;
}

.ia-card__cta {
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #ff9f43;
}

/* CTA Band */
.cta-band {
    background: linear-gradient(135deg, var(--accent) 0%, #ff5500 50%, #e64000 100%);
    padding: 56px 0;
}

.cta-band__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.cta-band__inner h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
    margin: 8px 0 12px;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.1;
}

.cta-band__inner p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    margin: 0;
}

.cta-band__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 240px;
}

.button--light {
    background: #ffffff;
    color: var(--accent);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-weight: 800;
}

.button--ghost-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

/* UTecnologia callout removed — fused into main flow */

@media (max-width: 980px) {
    .site-header__top,
    .site-header__nav,
    .hero__grid,
    .split-panel,
    .detail-grid,
    .site-footer__grid,
    .stats-grid,
    .card-grid,
    .portfolio-grid,
    .faq-grid,
    .project-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .site-header__contact,
    .nav {
        gap: 12px;
    }

    .hero {
        padding-top: 44px;
    }

    .brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand__logo {
        width: 140px;
    }

    .hero__visual-card {
        min-height: 240px;
    }

    .hero__banner {
        min-height: 240px;
    }

    .floating-whatsapp {
        right: 14px;
        bottom: 14px;
        padding-right: 14px;
    }

    .floating-whatsapp__text {
        display: none;
    }

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

    .split-panel--visual {
        gap: 24px;
    }

    .split-panel--visual .split-visual {
        order: -1;
    }

    .cta-band__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-band__actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: unset;
    }
}

/* ─── Nav Dropdown ──────────────────────────────────────────────────────── */

.nav-dropdown {
    position: relative;
}

.nav-dropdown__trigger {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown__trigger::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-top: 1px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__trigger::after,
.nav-dropdown:focus-within .nav-dropdown__trigger::after {
    transform: rotate(180deg);
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: -16px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    padding: 12px;
    min-width: 460px;
    z-index: 200;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown__group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
}

.nav-dropdown__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9aa3af;
    padding: 4px 8px 6px;
}

.nav-dropdown__menu a {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1f2e;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

.nav-dropdown__menu a:hover {
    background: #f0f4ff;
    color: #2c5fff;
}

@media (max-width: 960px) {
    .nav-dropdown__menu {
        position: static;
        grid-template-columns: unset;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 12px;
        min-width: unset;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        display: none;
    }

    .nav-dropdown.open .nav-dropdown__menu {
        display: flex;
        flex-direction: column;
    }

    .nav-dropdown__group {
        padding: 4px 0;
    }
}
