/* css/style.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #050816;
    color: #e5e7eb;
    line-height: 1.5;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE 10 e Edge */
    user-select: none;         /* Padrão moderno */
}

a {
    color: inherit;
    text-decoration: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 8, 22, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left h1 {
    font-size: 1.3rem;
    font-weight: 700;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-right a {
    font-size: 0.95rem;
    color: #9ca3af;
    transition: color 0.2s;
}

.nav-right a:hover {
    color: #38bdf8;
}

/* Navbar botão mini */
.btn-mini {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #4b5563;
    font-size: 0.8rem;
    transition: border-color 0.2s;
}

.btn-mini:hover {
    border-color: #38bdf8;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0 3rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-social {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #9ca3af;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.hero-social span {
    margin-right: 0.4rem;
}

.hero-social a {
    color: #38bdf8;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.hero-social a:hover {
    color: #7dd3fc;
}

.hero-card {
    border-radius: 0.9rem;
    padding: 1.2rem;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
                #020617;
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-avatar {
    display: flex;
    justify-content: center;
}

.hero-avatar-circle {
    width: 250px;
    height: 250px;
    border-radius: 999px;
    border: 2px solid rgba(56, 189, 248, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at top, #0f172a, #020617);
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-avatar-circle img {
    width: 100%;
    height: 100%;
    border-radius: 999px; /* Para manter a imagem circular */
    object-fit: cover; /* Para cobrir o espaço sem distorcer */
    display: block;
}

.hero-meta p {
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 0.4rem;
}

.hero-meta strong {
    color: #38bdf8;
}

/* Botões */

.btn {
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
}

.btn-outline {
    background: transparent;
    border-color: #4b5563;
    color: #e5e7eb;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-outline:hover {
    border-color: #38bdf8;
    transform: translateY(-1px);
}

/* Seções */

.section {
    margin: 2.5rem 0;
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.section-actions {
    margin-top: 1.2rem;
    text-align: center;
}

/* Grid de card */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    border-radius: 0.75rem;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), transparent 55%),
                #020617;
    border: 1px solid rgba(148, 163, 184, 0.15);
    padding: 1rem;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.3);
}

.card h3 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.card p {
    font-size: 0.9rem;
    color: #9ca3af;
}

.card .tag {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
}

/* Cards específicos */

.card-portfolio .card-footer {
    margin-top: 0.8rem;
}

.link-card {
    color: #38bdf8;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.link-card:hover {
    color: #7dd3fc;
}

.empty-text {
    color: #9ca3af;
    font-size: 0.9rem;
    grid-column: 1 / -1;
}

/* Contato */

.section-contato .card-form,
.section-contato .card-info {
    height: 100%;
}

.contato-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #e5e7eb;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #38bdf8;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Produtos */

.produto-preco {
    font-weight: 700;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #22c55e;
}

.produto-categoria {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.3rem;
}

/* WhatsApp */

.whatsapp-btn {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    background: #22c55e;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
    z-index: 60;
    transition: transform 0.2s;
}

.whatsapp-btn img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Footer */

footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2rem;
}

/* Responsivo */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 1.5rem;
    }

    .hero-card {
        margin-top: 0.5rem;
    }

    .contato-grid {
        grid-template-columns: 1fr;
    }

    .nav-right {
        gap: 0.9rem;
    }

    .nav-right a {
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    main {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-left h1 {
        font-size: 1.1rem;
    }

    .nav-right {
        gap: 0.6rem;
    }

    .nav-right a {
        font-size: 0.8rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Container do ícone */
.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

/* A própria imagem do ícone */
.social-icon img {
    width: 18px;  /* ajuste se o ícone for muito grande */
    height: 18px;
    object-fit: contain;
}

.social-icon:hover {
    border-color: #38bdf8;
    transform: translateY(-1px);
}

/* Grid específica para produtos na home */
.grid-produtos {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Card de produto */
.produto-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}

/* Imagem do produto */
.produto-imagem-wrapper {
    width: 100%;
    height: 160px;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
}

.produto-imagem-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nome, preço e descrição do produto */
.produto-nome {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.produto-preco {
    font-size: 1rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.produto-descricao {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

/* Botão dentro do card */
.produto-card .btn-primary {
    margin-top: auto;
    width: 100%;
    text-align: center;
}