/* ==========================================================================
   DESIGN SYSTEM & ESTILOS - GABRIELA LOPES
   ========================================================================== */

:root {
  /* Paleta Oficial da Marca */
  --color-brand-dark-brown: #714214;
  --color-brand-brown: #AA7445;
  --color-brand-nude: #E6AA76;
  --color-brand-cream: #EFC094;

  /* Fundos Terrosos & Gradientes */
  --bg-deep: #120904;
  --bg-surface: #1B0E07;
  --bg-surface-elevated: rgba(36, 20, 12, 0.72);
  --bg-glass: rgba(239, 192, 148, 0.06);
  --border-glass: rgba(239, 192, 148, 0.16);
  --border-glass-hover: rgba(230, 170, 118, 0.4);

  /* Tipografia & Cores de Texto */
  --text-primary: #FAF5F0;
  --text-secondary: rgba(250, 245, 240, 0.82);
  --text-muted: rgba(239, 192, 148, 0.65);
  --text-accent: #EFC094;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sombras & Efeitos */
  --shadow-lux: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 45px rgba(113, 66, 20, 0.2);
  --shadow-glow: 0 0 25px rgba(230, 170, 118, 0.25);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Universal & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Barra de rolagem personalizada */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(170, 116, 69, 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-nude);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Atmosférico & Iluminação Sutil */
.background-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.38;
  animation: pulse-glow 14s ease-in-out infinite alternate;
}

.glow-1 {
  top: -15%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, var(--color-brand-dark-brown) 0%, rgba(113, 66, 20, 0) 70%);
}

.glow-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #522d10 0%, rgba(82, 45, 16, 0) 75%);
  animation-delay: -7s;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 20px 20px;
}

@keyframes pulse-glow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.28; }
  50% { transform: scale(1.08) translate(20px, -15px); opacity: 0.42; }
  100% { transform: scale(1.15) translate(35px, -25px); opacity: 0.32; }
}

/* Layout Principal Grid no Desktop */
.page-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header  header"
    "content visual"
    "footer  footer";
  max-width: 1480px;
  margin: 0 auto;
  padding: 2.2rem 4rem;
  gap: 1.75rem 4rem;
  width: 100%;
}

/* Cabeçalho */
.brand-header {
  grid-area: header;
  display: flex;
  align-items: center;
}

.brand-logo-link {
  display: inline-block;
  text-decoration: none;
}

.brand-logo {
  height: auto;
  max-width: 250px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
  transition: var(--transition-smooth);
}

.brand-logo-link:hover .brand-logo {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 20px rgba(239, 192, 148, 0.2));
}

/* Painel de Conteúdo */
.content-panel {
  grid-area: content;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.editorial-body {
  max-width: 620px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.48rem 1.15rem;
  border-radius: 9999px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 1.65rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-brand-cream);
  box-shadow: 0 0 10px var(--color-brand-cream);
  animation: blink 2.2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

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

.badge-text {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--color-brand-cream);
  text-transform: uppercase;
}

.main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.3vw, 3.8rem);
  line-height: 1.12;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1.15rem;
  letter-spacing: -0.015em;
}

.italic-serif {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(135deg, #FFF0E2 0%, var(--color-brand-cream) 40%, var(--color-brand-nude) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.tagline {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-brand-nude);
  margin-bottom: 1.35rem;
  letter-spacing: 0.03em;
  display: inline-block;
}

.description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

/* Formulário VIP */
.vip-form {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.6rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lux);
  transition: var(--transition-smooth);
}

.vip-form:focus-within {
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-lux), 0 0 30px rgba(170, 116, 69, 0.15);
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-brand-cream);
  margin-bottom: 0.95rem;
  letter-spacing: 0.01em;
}

.input-group {
  display: flex;
  gap: 0.75rem;
}

.input-group input {
  flex: 1;
  background: rgba(18, 9, 4, 0.85);
  border: 1px solid rgba(239, 192, 148, 0.22);
  border-radius: 14px;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-smooth);
}

.input-group input::placeholder {
  color: rgba(239, 192, 148, 0.45);
}

.input-group input:focus {
  border-color: var(--color-brand-nude);
  background: rgba(18, 9, 4, 0.95);
  box-shadow: 0 0 0 3px rgba(230, 170, 118, 0.18);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, var(--color-brand-cream) 0%, var(--color-brand-nude) 50%, var(--color-brand-brown) 100%);
  color: #160B04;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.95rem 1.6rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
  box-shadow: 0 6px 20px rgba(170, 116, 69, 0.4);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(230, 170, 118, 0.5);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.btn-primary:hover .arrow-icon {
  transform: translateX(4px);
}

.form-feedback {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  min-height: 1.3rem;
  transition: var(--transition-smooth);
}

.form-feedback.error {
  color: #f87171;
  font-weight: 500;
}

/* Card de Sucesso Moderno */
.success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0.5rem;
  animation: successFadeIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success-icon-wrapper {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand-cream) 0%, var(--color-brand-nude) 50%, var(--color-brand-brown) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  box-shadow: 0 8px 25px rgba(230, 170, 118, 0.45);
}

.success-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 192, 148, 0.5) 0%, transparent 70%);
  animation: pulse-glow 3s infinite alternate;
  pointer-events: none;
}

.success-check-icon {
  position: relative;
  z-index: 1;
  stroke: #160B04;
}

.success-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}

.success-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.15rem;
  max-width: 440px;
  font-weight: 300;
}

.success-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: rgba(18, 9, 4, 0.75);
  border: 1px solid rgba(239, 192, 148, 0.28);
  font-size: 0.85rem;
  color: var(--color-brand-cream);
  letter-spacing: 0.02em;
}

/* Rodapé */
.footer-panel {
  grid-area: footer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(239, 192, 148, 0.12);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.social-link:hover {
  color: var(--color-brand-cream);
  transform: translateY(-1.5px);
}

.copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Painel Visual / Fotografia */
.visual-panel {
  grid-area: visual;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100%;
  min-height: 520px;
  max-height: 640px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lux);
  border: 1px solid rgba(239, 192, 148, 0.22);
  background: radial-gradient(circle at 50% 30%, rgba(170, 116, 69, 0.38) 0%, rgba(113, 66, 20, 0.22) 50%, rgba(18, 9, 4, 0.95) 90%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% 5%;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.7));
}

.image-wrapper:hover .hero-image {
  transform: scale(1.035);
}

.image-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg, 
    rgba(18, 9, 4, 0) 0%, 
    rgba(18, 9, 4, 0.1) 60%, 
    rgba(18, 9, 4, 0.8) 100%
  );
  pointer-events: none;
}

.image-border-glow {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  box-shadow: inset 0 0 35px rgba(113, 66, 20, 0.35);
  pointer-events: none;
}

/* ==========================================================================
   EXPERIÊNCIA RESPONSIVA FLUIDA (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 1024px) {
  .page-container {
    display: flex;
    flex-direction: column;
    padding: calc(2rem + env(safe-area-inset-top, 0px)) 1.75rem calc(2rem + env(safe-area-inset-bottom, 0px)) 1.75rem;
    gap: 2rem;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
    min-height: auto;
  }

  .brand-header {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  .brand-logo {
    max-width: 220px;
  }

  .visual-panel {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .image-wrapper {
    width: 100%;
    max-width: 420px;
    height: 420px;
    border-radius: 26px;
    background: radial-gradient(circle at 50% 30%, rgba(170, 116, 69, 0.45) 0%, rgba(113, 66, 20, 0.28) 50%, rgba(18, 9, 4, 0.98) 90%);
  }

  .hero-image {
    object-fit: contain;
    object-position: center top;
  }

  .content-panel {
    width: 100%;
  }

  .editorial-body {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .status-badge {
    margin: 0 auto 1.35rem auto;
  }

  .main-title {
    font-size: clamp(2.1rem, 6.5vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 0.85rem;
  }

  .tagline {
    font-size: 1.25rem;
    margin-bottom: 1.15rem;
  }

  .description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
  }

  .vip-form {
    width: 100%;
    max-width: 520px;
    padding: 1.45rem 1.25rem;
    text-align: left;
  }

  .input-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .input-group input {
    width: 100%;
    font-size: 16px; /* Evita zoom forçado no iOS Safari */
    padding: 0.95rem 1.15rem;
    border-radius: 12px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.95rem;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .footer-panel {
    width: 100%;
    padding-top: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) 1.15rem;
    gap: 1.75rem;
  }

  .brand-logo {
    max-width: 185px;
  }

  .image-wrapper {
    max-width: 100%;
    height: 380px;
    border-radius: 22px;
  }

  .status-badge {
    padding: 0.4rem 0.95rem;
    margin-bottom: 1rem;
  }

  .badge-text {
    font-size: 0.68rem;
  }

  .main-title {
    font-size: 1.95rem;
    line-height: 1.15;
    margin-bottom: 0.65rem;
  }

  .tagline {
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
  }

  .description {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.65rem;
  }

  .vip-form {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }

  .form-label {
    font-size: 0.84rem;
    margin-bottom: 0.75rem;
  }

  .input-group input {
    font-size: 16px;
    padding: 0.85rem 1rem;
  }

  .btn-primary {
    padding: 0.88rem;
    font-size: 0.9rem;
  }

  .footer-panel {
    padding-top: 1.35rem;
    gap: 0.85rem;
  }

  .copyright {
    font-size: 0.76rem;
  }
}
