:root {
    --bg: #f3f4f6;
    --surface: #ffffff;
    --primary: #0077b6;
    --primary-600: #006494;
    --accent: #0096c7;
    --text: #0f172a;
    --muted: #64748b;
    --radius: 12px;
    --container-padding: 10%;
    --max-width: 1200px;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
} 

.hero {
    min-height: 72vh;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 0;
}

.hero-text { max-width: 680px; margin: 0 auto; }
.hero-text h1 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.05; margin-bottom: 12px; font-weight: 700; }
.hero-text p { color: rgba(255,255,255,0.95); font-size: 1.05rem; margin-bottom: 20px; }

.actions { display: inline-flex; gap: 12px; align-items: center; justify-content: center; }

.btn.ghost { background: transparent; color: rgba(255,255,255,0.95); border: 1px solid rgba(255,255,255,0.16); padding: 10px 18px; border-radius: 10px; }

@media (min-width: 1000px) {
    .hero-container { align-items: center; justify-content: space-between; }
    .hero-text { text-align: left; margin-left: 0; }
    .hero { text-align: left; }
    .actions { justify-content: flex-start; }
}

@media (max-width: 600px) {
    .hero { min-height: 68vh; padding-top: 32px; }
    .hero-text h1 { font-size: clamp(22px, 7vw, 32px); }
    .hero-images { width: 300px; height: 380px; }
}

.logo {
    width: 140px;
    margin-bottom: 20px;
}

.btn {
    background: transparent;
    color: var(--primary);
    padding: 12px 20px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/* Botão primário destacado (ex.: Baixar Agora) */
.btn.primary {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    padding: 12px 26px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(2,119,182,0.14);
    transition: transform 0.18s cubic-bezier(.22,.9,.28,1), box-shadow 0.18s ease;
    border: none;
    display: inline-block;
}

.btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(2,119,182,0.16);
}

.btn.primary:focus {
    outline: 3px solid rgba(0,119,182,0.12);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(0,119,182,0.06);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 80px 10%;
}

.card {
    background: linear-gradient(180deg, var(--surface), var(--surface));
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    transition: transform 0.28s cubic-bezier(.22,.9,.28,1), box-shadow 0.28s ease;
}

.card:hover,
.card:focus-within,
.card:focus {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(2,6,23,0.10);
    outline: none;
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(2,6,23,0.03), rgba(2,6,23,0.01));
    color: var(--primary);
}

.card:focus { box-shadow: 0 20px 40px rgba(2,6,23,0.12); }
.card h3 { margin-top: 8px; }

.card-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-img img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.08);
}

/* ===============================
   HERO – CONTAINER FLEX
================================= */

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ===============================
   IMAGENS DO APP NO HERO
================================= */

.hero-images {
    position: relative;
    width: 420px;
    height: 520px;
}

.hero-images .img {
    position: absolute;
    width: 240px;
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    transition: transform 0.6s ease;
    will-change: transform;
    backface-visibility: hidden;
}

/* IMAGEM CENTRAL */
.img-1 {
    top: 0;
    left: 80px;
    z-index: 3;
    transform: rotate(0deg);
}

/* IMAGEM ESQUERDA */
.img-2 {
    top: 80px;
    left: 0;
    z-index: 2;
    transform: rotate(-8deg);
    opacity: 0.95;
}

/* IMAGEM DIREITA */
.img-3 {
    top: 100px;
    left: 160px;
    z-index: 1;
    transform: rotate(8deg);
    opacity: 0.95;
}

/* EFEITO AO PASSAR O MOUSE */
.hero-images:hover .img-1 {
    transform: translateY(-10px) scale(1.05);
}

.hero-images:hover .img-2 {
    transform: rotate(-10deg) translateX(-10px);
}

.hero-images:hover .img-3 {
    transform: rotate(10deg) translateX(10px);
}

@media (max-width: 1000px) {

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-images {
        margin-top: 40px;
        transform: scale(0.9);
    }
}

@media (max-width: 600px) {

    .hero-images {
        width: 320px;
        height: 420px;
    }

    .hero-images .img {
        width: 190px;
    }
}

/* ===============================
   CARDS COM IMAGEM
================================= */

.card-img {
    width: 100%;
    height: 160px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Ajuste fino para manter elegância */
.card h3 {
    margin-top: 5px;
}

/* ===============================
   HEADER / NAV
================================= */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid #e6e9ee;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px var(--container-padding);
}
.site-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
}
.site-header .logo img {
    width: 56px;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Nav toggle (mobile) */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle:focus { outline: 3px solid rgba(0,119,182,0.12); outline-offset: 3px; }

.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    position: relative;
}
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Desktop nav */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    align-items: center;
}

/* Mobile behavior */
@media (max-width: 700px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 72px;
        right: var(--container-padding);
        background: var(--surface);
        box-shadow: 0 12px 30px rgba(2,6,23,0.08);
        border-radius: 12px;
        display: none;
        flex-direction: column;
        min-width: 220px;
        overflow: hidden;
    }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 12px 18px; display: block; width: 100%; }
    .nav-cta { margin-left: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); color: #fff; border-radius: 10px; padding: 10px 16px; display: inline-block; }
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    align-items: center;
}

.main-nav a {
    color: #334155;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    background: #f1f5f9;
    color: #0077b6;
    outline: none;
}

@media (max-width: 700px) {
    .site-header .container { padding: 12px 6%; }
    .main-nav ul { gap: 10px; }
    .main-nav a { padding: 6px 8px; font-size: 14px; }
    .hero { padding-top: 20px; }
}

/* ===============================
   TABELA DE CUIDADOS
================================= */
.tabela .container { padding: 40px 10%; }
.tabela table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2,6,23,0.08);
}
.tabela th, .tabela td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
}
.tabela th {
    background: #f8fafc;
    font-weight: 700;
}

/* ===============================
   FORMULÁRIO DE CONTATO
================================= */
.contato .container { padding: 40px 10%; }
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.06);
}
.contact-form label { font-size: 14px; color: #334155; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: box-shadow 0.12s ease, border-color 0.12s ease;
}
.contact-form input:focus, .contact-form textarea:focus { box-shadow: 0 6px 18px rgba(2,119,182,0.06); border-color: var(--primary); outline: none; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn {
    background: #0077b6;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-block;
    width: auto;
    text-align: center;
    border: none;
    cursor: pointer;
}
.contact-form .btn:hover { background: #006494; }

.form-message { min-height: 24px; color: #0f172a; font-size: 14px; margin-bottom: 6px; }
.form-message.error { color: #b91c1c; }
.form-message.success { color: #064e3b; }
.input-error { border-color: #f43f5e !important; box-shadow: 0 0 0 3px rgba(244,63,94,0.06); }

/* Contact form visual improvements */
.contact-form { max-width: 820px; margin: 0 auto; }
.contact-form .form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.contact-form .form-field { display: flex; flex-direction: column; }
.contact-form .form-field.full { grid-column: 1 / -1; }
.contact-form label { font-size: 14px; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.input-with-icon { position: relative; }
.input-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 12px 12px 38px; border: 1px solid #e6e9ee; border-radius: 10px; font-size: 15px; box-sizing: border-box; transition: box-shadow 0.12s ease, border-color 0.12s ease; }
.contact-form textarea { min-height: 140px; resize: vertical; padding-top: 12px; }
.contact-form input:focus, .contact-form textarea:focus { box-shadow: 0 8px 26px rgba(2,119,182,0.06); border-color: var(--primary); outline: none; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-note { color: var(--muted); font-size: 13px; margin: 0; }

/* Button loading */
.btn.loading { opacity: 0.95; pointer-events: none; }
.btn.loading .spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.24); border-top-color: rgba(255,255,255,0.95); margin-right: 8px; animation: spin 0.9s linear infinite; vertical-align: middle; }

@keyframes spin { to { transform: rotate(360deg); } }

@media(min-width: 720px) {
    .contact-form .form-grid { grid-template-columns: 1fr 1fr; }
    .contact-form .form-field.full { grid-column: 1 / -1; }
    .form-actions { justify-content: flex-end; }
}

/* ===============================
   RODAPÉ
================================= */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 24px 0; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10%; }
.footer-links { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }

/* ===============================
   FLASH MESSAGE (form)
================================= */
.flash-message { padding: 14px 10%; box-sizing: border-box; }
.flash-message.success { background: #ecfdf5; color: #065f46; border-left: 4px solid #10b981; }
.flash-message.error { background: #fff1f2; color: #7f1d1d; border-left: 4px solid #ef4444; }

/* ===============================
   SKIP LINK
================================= */
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; left: auto; padding: 8px 12px; background: #0077b6; color: #fff; border-radius: 6px; z-index: 1001; }

/* ===============================
   UTILITÁRIOS
================================= */
.container { max-width: 1200px; margin: 0 auto; box-sizing: border-box; padding-left: 10px; padding-right: 10px; }

/* ===============================
   MODAL (accessible)
================================= */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal.open { display: flex; }
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2,6,23,0.48);
    backdrop-filter: blur(4px);
}
.modal-dialog {
    position: relative;
    background: var(--surface);
    color: var(--text);
    border-radius: 12px;
    width: 92%;
    max-width: 720px;
    padding: 24px 28px;
    box-shadow: 0 30px 60px rgba(2,6,23,0.18);
    z-index: 2;
}
.modal .modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}
.modal .modal-close:focus { outline: 3px solid rgba(0,119,182,0.12); }
.modal-body { margin-top: 12px; max-height: 60vh; overflow: auto; }
@media (max-width: 520px) { .modal-dialog { padding: 18px; width: 96%; } }

/* Wound gallery inside modal */
.wound-gallery { display: flex; gap: 12px; margin-top: 14px; }
.wound-thumb { background: transparent; border: none; padding: 0; display: block; width: 50%; text-align: left; cursor: pointer; }
.wound-thumb img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 8px 20px rgba(2,6,23,0.12); display: block; }
.wound-caption { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Fullscreen image viewer */
.image-viewer { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 3000; }
.image-viewer.open { display: flex; }
.image-viewer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.85); }
.image-viewer-content { position: relative; z-index: 2; max-width: 92%; max-height: 92%; display:flex; flex-direction:column; align-items:center; }
.image-viewer-content img { max-width: 100%; max-height: 80vh; border-radius: 10px; }
.image-viewer-close { position: absolute; right: -8px; top: -8px; background: #fff; border: none; font-size: 22px; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.image-viewer-caption { margin-top: 10px; color: #fff; font-size: 14px; }

