/**
 * Author: W.Harvey
 * Contact: w.harveys.us@gmail.com
 * Version: 7.1 (Solução com margem negativa para ajuste de logo)
 * Date: September 24, 2025
 */

/* ==========================================================================
   1. Reset e Estilos Base
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta de Cores (Ajustada para a cor final) */
  --brand: #2B7CEE;
  --brand-600: #1A67D1;
  --brand-400: #5D9BEE;     /* Tom de azul mais claro para hover */
  --success: #198754;
  --ink: #212529;
  --ink-2: #6c757d;
  
  /* Cores de Fundo e UI */
  --bg: #FFFFFF;
  --bg-muted: #F8F9FA;
  --bg-muted-darker: #E9ECEF; /* Tom de cinza mais escuro para hover */
  --card: #ffffff;
  --border: #dee2e6;

  /* Métricas e Efeitos */
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  
  /* Variáveis de Tamanho da Logo */
  --footer-logo-height: 120px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
}

/* ==========================================================================
   3. Utilitários Gerais
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 2rem;  
}

.section-title {
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  margin: 0 0 3rem;
  color: var(--ink);
}

.text-center { text-align: center; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }


/* ==========================================================================
   4. Botões e CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .6rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 1rem;
  transition: all .2s ease-in-out;
  cursor: pointer;
}

.btn svg {
    stroke-width: 2;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-400);
}

.btn-outline {
  border-color: var(--border);
  color: var(--ink);
  background: #fff;
}

.btn-outline:hover {
  background: var(--bg-muted);
  border-color: #cdd5e0;
}

.btn-outline svg { color: var(--ink-2); }

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
    color: var(--ink);
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
}

.cta-secondary:hover {  
    background-color: var(--bg-muted-darker);
    color: var(--ink);
}

.cta-secondary svg { transition: transform 0.2s ease; }
.cta-secondary:hover svg { transform: translateX(3px); }

/* ==========================================================================
   5. Estrutura Principal (Header & Footer)
   ========================================================================== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0; /* <<< ALTERADO: Remove padding vertical do header */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand img {  
    width: 200px;          /* Define a largura da logo */
    height: auto;          /* Mantém a proporção */
    display: block;   
    margin-top: -20px;     /* <<< ALTERADO: Puxa a imagem para cima para remover respiro */
    margin-bottom: -20px;  /* <<< ALTERADO: Puxa o conteúdo abaixo para cima */
}

.top-actions { display: flex; gap: 1rem; align-items: center; }

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
    color: var(--ink);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}
.header-link:hover {
    background-color: var(--bg-muted-darker);
}
.header-link svg {
    color: var(--ink-2);
}


.site-footer {
  text-align: center;
  padding: 2.5rem 0;
  color: var(--ink-2);
  font-size: .9rem;
  margin-top: 2rem;
  background-color: var(--card);
  border-top: 1px solid var(--border);
}

.footer-inner { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 0.4rem; 
}

.footer-logo {  
    height: var(--footer-logo-height);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
}
.footer-links a {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--brand);
    text-decoration: underline;
}

/* ==========================================================================
   6. Estilos da Página Inicial
   ========================================================================== */
.hero {
    background-color: var(--card);
    padding: 5rem 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 1rem;
}

.hero-title .brand-mark { color: var(--brand); }

.hero-subtitle {
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
}

.hero-ctas { display: flex; justify-content: center; align-items: center; gap: 1.5rem; }

.steps {
    padding: 5rem 0;
    background-color: var(--bg-muted);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;  
}

.step-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;  
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.5rem;
    line-height: 1.4;
    text-align: left;  
}

.step-card p {
    text-align: left;  
}

.callstart {
    padding: 4rem 0;
    background-color: var(--bg-muted);
}

.callstart-icon svg { color: var(--success); margin-bottom: 1rem; stroke-width: 2; }

/* ==========================================================================
   7. Componentes de Formulário
   ========================================================================== */
.form-container {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h1 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
}

.form-header p {
    color: var(--ink-2);
    margin: 0;
}

.form-steps {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--ink-2);
    opacity: 0.6;
}

.step-indicator .step-circle {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-indicator .step-label {
    font-size: 0.85rem;
}

.step-indicator.active {
    color: var(--brand);
    opacity: 1;
}

.step-indicator.active .step-circle {
    border-color: var(--brand);
    background-color: var(--brand);
    color: #fff;
}

.form-section-title {
    font-size: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: #fff;
    font-size: 1rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(43, 124, 238, .25);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   8. Outros Componentes
   ========================================================================== */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.alert-info {
    background-color: rgba(43, 124, 238, .1);
    border: 1px solid rgba(43, 124, 238, .2);
    color: #0c5dd8;
}

.availability-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.availability-table th, .availability-table td {
    border: 1px solid var(--border);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    height: 40px;
}

.availability-table th {
    background-color: var(--bg-muted);
}

.availability-table td {
    cursor: pointer;
}

.availability-table td:hover {
    background-color: rgba(43, 124, 238, .1);
}

.availability-table td.selected {
    background-color: var(--brand);
    color: white;
}

.success-message {
    text-align: center;
}

.success-message .icon {
    font-size: 4rem;
    color: var(--success);
    line-height: 1;
}

.success-message h1 {
    font-size: 1.75rem;
    color: var(--ink);
    margin: 1rem 0 0.5rem;
}

/* ==========================================================================
   9. Media Queries (Responsividade)
   ========================================================================== */
@media (max-width: 992px) {
    /* Adaptações para telas menores, se necessário */
}


@media (max-width: 768px) {
    /* Ajusta o padding geral para telas menores */
    .container {
        padding: 0 1.5rem;
    }

    /* Reduz o tamanho das fontes dos títulos */
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .steps-grid, .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-ctas, .form-navigation {
        flex-direction: column-reverse;
        gap: 1rem;
        width: 100%; /* Faz os botões ocuparem a largura total */
    }
    .hero-ctas .btn, .hero-ctas .cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .form-container {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .form-navigation .btn {
        width: 100%;
    }

    .site-header {
        height: auto; /* Altura automática para mobile */
        padding: 1rem 0;
    }
    
    /* Permite que o logo e os botões fiquem um sobre o outro se não couberem */
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* Reduz o tamanho da logo em telas pequenas e remove margens negativas */
    .brand img {
        height: 60px;
        width: auto; /* Deixa a largura se ajustar à altura em mobile */
        max-height: 60px;
        margin: 0; /* Reseta as margens para mobile */
    }
}
