/* ================================
   ESTILOS GLOBAIS
   ================================ */

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

:root {
    --primary-dark: #2d1b4e;
    --primary-light: #6c3483;
    --accent-white: #ffffff;
    --accent-black: #000000;
    --white: #ffffff;
    --light-gray: #f8f8f8;
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --border-color: #ddd;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/* Accessibility helpers */
.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--primary-dark);
    color: #fff;
    padding: 8px 12px;
    z-index: 10000;
    border-radius: 6px;
    text-decoration: none;
}
.skip-link:focus {
    left: 12px;
}

:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

.hamburger:focus {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
    border-radius: 6px;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    background: linear-gradient(180deg, #fbfbfc 0%, #ffffff 100%);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   TIPOGRAFIA
   ================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

p {
    color: var(--text-light);
    line-height: 1.8;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ================================
   BOTÕES
   ================================ */

.btn {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border: none;
    box-shadow: 0 10px 30px rgba(139,92,246,.35);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(45,27,78,0.22);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.16);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.95rem;
    width: 100%;
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

.btn-card {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn-card:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ================================
   NAVEGAÇÃO
   ================================ */

.navbar {
    background: #12091f;
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

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

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.logo img,
.logo-image {
    height: 120px;
    width: auto;
    display: block;
}

.logo-subtitle {
    display: none;
}

.logo h1 {
    font-size: 1.6rem;
    color: var(--white);
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo p {
    font-size: 0.7rem;
    color: var(--accent-white);
    margin: 0;
    font-weight: 600;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-white);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-white);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    font-size: 1.5rem;
}

/* ================================
   HERO SECTION (CORRIGIDO E AMPLIADO)
   ================================ */

.hero {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top left, rgba(139,92,246,.25), transparent 40%),
                linear-gradient(135deg, #050507 0%, #0d0917 45%, #1a102e 100%);
    padding: 60px 0;
    overflow: hidden;
}

.hero-container {
    display: grid;
    /* Alterado para dividir a tela igualmente em 50% para cada elemento */
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    color: #fff;
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 700;
    margin: 20px 0;
}

.hero-tag {
    color: #b88cff;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero-text p {
    color: rgba(255,255,255,.8);
    font-size: 1.2rem;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-box {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Efeito Glow Roxo de Fundo ajustado */
.hero-image-box::before {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    background: rgba(139, 92, 246, 0.18);
    filter: blur(60px);
    z-index: 1;
    border-radius: 50%;
}

.hero-image-box img {
    position: relative;
    z-index: 2;
    width: 100%;
    /* Ampliado os limites para ganhar largura e altura sem distorcer ou cortar */
    max-width: 540px; 
    height: auto;
    max-height: 650px; 
    /* O SEGREDO: contain evita cortes nas bordas e exibe os textos inteiros */
    object-fit: contain; 
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,.55);
    transition: var(--transition);
}

.hero-image-box img:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 70px rgba(139, 92, 246, 0.25);
}

/* ================================
   SEÇÃO DE PRODUTOS
   ================================ */

.produtos {
    padding: 100px 0;
    background-color: var(--white);
}

.produto-card {
    background-color: var(--white);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(13, 13, 27, 0.06);
}

.produto-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 48px rgba(13,13,27,0.12);
}

.produto-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.produto-card h3 {
    padding: 1.5rem 1.5rem 0 1.5rem;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.produto-card p {
    padding: 0.5rem 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.produto-card .btn-card {
    margin: 1.5rem;
    margin-top: 1rem;
}

/* ================================
   COMO FUNCIONA
   ================================ */

.como-funciona {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.processo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.processo-card {
    background-color: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.processo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-top: 3px solid var(--primary-light);
}

.processo-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.processo-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.processo-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ================================
   GALERIA
   ================================ */

.galeria {
    padding: 80px 0;
    background-color: var(--white);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.galeria-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 16px;
    transition: var(--transition);
}

.galeria-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* ================================
   SOBRE
   ================================ */

.sobre {
    padding: 80px 0;
    background: linear-gradient(135deg, #1c1131, #2d1b4e);
}

.sobre h2, .sobre p {
    color: white;
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sobre-texto h2 {
    text-align: left;
}

.sobre-texto p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.sobre-imagem img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ================================
   FORMULÁRIO ORÇAMENTO
   ================================ */

.orcamento {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.orcamento .container {
    max-width: 700px;
}

.orcamento-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

input, select, textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(108, 52, 131, 0.1);
}

input::placeholder {
    color: #999;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.orcamento-form .btn {
    align-self: center;
    margin-top: 0.5rem;
}

/* ================================
   WHATSAPP FLUTUANTE
   ================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    font-size: 2rem;
    color: var(--white);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); }
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background: #0d0917;
    padding: 60px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-section h3, .footer-section h4 {
    color: var(--accent-white);
    margin-bottom: 1rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--accent-white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: #d4b5ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

/* ================================
   RESPONSIVO
   ================================ */

@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .processo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sobre-content {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: flex;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-box img {
        max-height: 450px;
        margin: 0 auto;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-brand, .footer-section {
        align-items: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

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