/* ============================================================
   contact.css — Estilos da página de contato do ClimaHoje
   Deve ser colocado em: css/contact.css
   ============================================================ */


/* ------------------------------------------------------------
   1. VARIÁVEIS DE DESIGN (tokens de cor e tema)
   ------------------------------------------------------------ */
:root {
  --sky-deep:       #0a1628;   /* fundo principal */
  --sky-dark:       #0d2045;   /* fundo secundário */
  --sky-mid:        #103a7a;
  --sky-bright:     #1a5ec8;   /* azul vibrante */
  --sky-light:      #3b8beb;
  --sky-pale:       #a8cff5;   /* texto secundário */
  --accent:         #4fc3f7;   /* cor de destaque */
  --accent-glow:    #00b4d8;
  --white:          #ffffff;
  --glass-bg:       rgba(255, 255, 255, 0.07);
  --glass-border:   rgba(255, 255, 255, 0.15);
}


/* ------------------------------------------------------------
   2. RESET E BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--sky-deep);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}


/* ------------------------------------------------------------
   3. FUNDO ANIMADO (gradiente de céu)
   ------------------------------------------------------------ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%,  rgba(26, 94, 200, .55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(79, 195, 247, .25) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(13, 32, 69, .9) 0%, transparent 70%),
    linear-gradient(160deg, #0a1628 0%, #0d2045 50%, #0a1628 100%);
  z-index: 0;
  animation: skyPulse 12s ease-in-out infinite alternate;
}

/* Animação suave de brilho no fundo */
@keyframes skyPulse {
  from { filter: brightness(1); }
  to   { filter: brightness(1.12); }
}


/* ------------------------------------------------------------
   4. NUVENS DECORATIVAS (partículas flutuantes)
   ------------------------------------------------------------ */
.cloud-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cloud {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
  filter: blur(40px);
  animation: drift linear infinite;
}

/* Tamanhos e posições individuais de cada nuvem */
.cloud:nth-child(1) { width: 400px; height: 200px; top: 8%;  left: -10%; animation-duration: 60s; }
.cloud:nth-child(2) { width: 300px; height: 150px; top: 22%; left: -5%;  animation-duration: 80s;  animation-delay: -20s; }
.cloud:nth-child(3) { width: 500px; height: 220px; top: 55%; left: -15%; animation-duration: 100s; animation-delay: -40s; }

/* Movimento horizontal da esquerda para a direita */
@keyframes drift {
  from { transform: translateX(-10%); }
  to   { transform: translateX(110vw); }
}


/* ------------------------------------------------------------
   5. NAVBAR
   ------------------------------------------------------------ */
.navbar {
  position: relative;
  z-index: 10;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  background: rgba(10, 22, 40, .6) !important;
}

.navbar-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--white) !important;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: 1.5rem;
}

.brand-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px var(--accent));
}

/* Afasta os links de navegação da borda direita */
.navbar-nav {
  margin-right: 1.5rem;
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--sky-pale) !important;
  font-size: .9rem;
  letter-spacing: .3px;
  transition: color .2s;
  padding: .5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
}

/* Ícone do hambúrguer visível no tema escuro */
.navbar-toggler-icon {
  filter: invert(1);
}


/* ------------------------------------------------------------
   6. HERO / CABEÇALHO DA PÁGINA
   ------------------------------------------------------------ */
.contact-hero {
  position: relative;
  z-index: 1;
  padding: 5rem 0 3.5rem;
  text-align: center;
}

/* Pílula de categoria acima do título */
.eyebrow {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79, 195, 247, .12);
  border: 1px solid rgba(79, 195, 247, .3);
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

/* Título principal com gradiente de texto */
.contact-hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem); /* fluido: adapta ao tamanho da tela */
  line-height: 1.1;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #ffffff 30%, var(--sky-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.contact-hero p {
  color: var(--sky-pale);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ------------------------------------------------------------
   7. GLASS CARD (card com efeito vidro fosco)
   ------------------------------------------------------------ */
.glass-card {
  position: relative;
  z-index: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.8rem;
  box-shadow:
    0 4px 40px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: box-shadow .3s;
}

.glass-card:hover {
  box-shadow:
    0 8px 60px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(79, 195, 247, .15),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}


/* ------------------------------------------------------------
   8. FORMULÁRIO — CAMPOS
   ------------------------------------------------------------ */
.form-label {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--sky-pale);
  margin-bottom: .5rem;
}

/* Input, textarea e select com visual escuro translúcido */
.form-control,
.form-select {
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 10px !important;
  color: var(--white) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  padding: .75rem 1rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, .3);
}

/* Estado de foco destacado com glow azul */
.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, .1) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(79, 195, 247, .18) !important;
  outline: none;
}

/* Opções do select num fundo escuro */
.form-select option {
  background: var(--sky-dark);
  color: var(--white);
}

/* Textarea redimensionável verticalmente */
textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

/* Checkbox customizado */
.check-custom {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
}

.label-privacy {
  font-size: .87rem;
  color: var(--sky-pale);
}

.link-accent {
  color: var(--accent);
  text-decoration: none;
}

.link-accent:hover {
  text-decoration: underline;
}


/* ------------------------------------------------------------
   9. BOTÃO DE ENVIO
   ------------------------------------------------------------ */
.btn-send {
  width: 100%;
  padding: .9rem 1.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .5px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sky-bright), var(--accent-glow));
  color: var(--white);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(79, 195, 247, .35);
}

/* Camada de brilho no hover */
.btn-send::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .15), transparent);
  opacity: 0;
  transition: opacity .2s;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79, 195, 247, .5);
}

.btn-send:hover::after {
  opacity: 1;
}

.btn-send:active {
  transform: translateY(0);
}

/* Botão desabilitado durante o envio */
.btn-send:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}


/* ------------------------------------------------------------
   10. CARDS DE INFORMAÇÃO
   ------------------------------------------------------------ */
.info-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.3rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s, border-color .25s;
  margin-bottom: 1rem;
}

.info-block:last-child {
  margin-bottom: 0;
}

.info-block:hover {
  background: rgba(79, 195, 247, .07);
  border-color: rgba(79, 195, 247, .2);
}

/* Ícone circular com gradiente */
.info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26, 94, 200, .5), rgba(79, 195, 247, .3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.info-block h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .25rem;
}

.info-block p {
  font-size: .9rem;
  color: var(--sky-pale);
  margin: 0;
  line-height: 1.5;
}


/* ------------------------------------------------------------
   11. TÍTULO DE SEÇÃO (dentro dos cards)
   ------------------------------------------------------------ */
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 1.4rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* Ponto decorativo com glow */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}


/* ------------------------------------------------------------
   12. TEMPO DE RESPOSTA
   ------------------------------------------------------------ */
.response-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  color: var(--sky-pale);
}

.response-time {
  color: var(--accent);
  font-weight: 600;
}

/* Verde para alertas urgentes */
.response-fast {
  color: #4ade80;
}

.divider-soft {
  border-color: rgba(255, 255, 255, .08);
  margin: .3rem 0;
}


/* ------------------------------------------------------------
   13. RODAPÉ
   ------------------------------------------------------------ */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  color: rgba(168, 207, 245, .4);
  font-size: .82rem;
}


/* ------------------------------------------------------------
   14. ANIMAÇÃO DE ENTRADA (fade + slide up)
   ------------------------------------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .6s ease forwards;
}

/* Delay escalonado para os dois cards */
.fade-up:nth-child(1) { animation-delay: .1s; }
.fade-up:nth-child(2) { animation-delay: .25s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}


/* ------------------------------------------------------------
   15. TOAST DE CONFIRMAÇÃO
   ------------------------------------------------------------ */
#successToast {
  display: none; /* oculto por padrão; exibido via JS após envio */
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: linear-gradient(135deg, #1a5ec8, #00b4d8);
  border: none;
  border-radius: 14px;
  padding: 1rem 1.4rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}

#successToast .toast-body {
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}


/* ------------------------------------------------------------
   16. RESPONSIVIDADE EXTRA (ajustes para telas muito pequenas)
   ------------------------------------------------------------ */

/* Smartphones pequenos (< 480px) */
@media (max-width: 480px) {
  .glass-card {
    padding: 1.6rem; /* reduz padding interno nos cards */
  }

  /* Toast centralizado no mobile */
  #successToast {
    right: 1rem;
    left: 1rem;
  }
}