/**
 * Estilos do Portal Principal da Plataforma de Casamentos & RSVP
 * Design Premium, Fluido e de Alta Conversão
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --portal-bg: #fdfbf7;
  --portal-card-bg: #ffffff;
  --portal-text-primary: #0f172a;
  --portal-text-secondary: #475569;
  --portal-text-muted: #64748b;
  --portal-gold-primary: #936318;
  --portal-gold-light: #dfba70;
  --portal-gold-gradient: linear-gradient(135deg, #dfba70 0%, #b8860b 50%, #936318 100%);
  --portal-border: #f0e6d6;
  --portal-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --portal-shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --portal-shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);
  --portal-font-serif: 'Cinzel', serif;
  --portal-font-sans: 'Plus Jakarta Sans', sans-serif;
  --portal-radius-sm: 8px;
  --portal-radius-md: 14px;
  --portal-radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body.portal-body {
  font-family: var(--portal-font-sans);
  background-color: var(--portal-bg);
  color: var(--portal-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.portal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navegação
   ========================================================================== */
.portal-navbar {
  position: sticky;
  top: 0;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--portal-border);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.portal-nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.portal-brand-logo {
  width: 40px;
  height: 40px;
  background: var(--portal-gold-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
}

.portal-brand-text {
  display: flex;
  flex-direction: column;
}

.portal-brand-title {
  font-family: var(--portal-font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--portal-gold-primary);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.portal-brand-sub {
  font-size: 0.72rem;
  color: var(--portal-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.portal-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-portal-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--portal-radius-sm);
  border: 1px solid var(--portal-border);
  background: #ffffff;
  color: var(--portal-text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-portal-outline:hover {
  background: #f8f4ed;
  border-color: var(--portal-gold-light);
  color: var(--portal-gold-primary);
  transform: translateY(-1px);
}

.btn-portal-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--portal-radius-sm);
  background: var(--portal-gold-gradient);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
  transition: all 0.3s ease;
}

.btn-portal-primary:hover {
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.45);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.portal-hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  text-align: center;
}

.portal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: #fbf3e4;
  border: 1px solid #fae2b8;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--portal-gold-primary);
  margin-bottom: 1.5rem;
}

.portal-hero-title {
  font-family: var(--portal-font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--portal-text-primary);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.portal-hero-title span.highlight {
  color: var(--portal-gold-primary);
  position: relative;
}

.portal-hero-desc {
  font-size: 1.15rem;
  color: var(--portal-text-secondary);
  max-width: 720px;
  margin: 0 auto 2.2rem;
}

.portal-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.portal-hero-preview {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--portal-radius-lg);
  border: 1px solid var(--portal-border);
  box-shadow: var(--portal-shadow-lg);
  overflow: hidden;
  position: relative;
}

.portal-preview-bar {
  background: #f7f3ec;
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--portal-border);
}

.portal-preview-dots {
  display: flex;
  gap: 6px;
}

.portal-preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.portal-preview-dots span:nth-child(1) { background: #ef4444; }
.portal-preview-dots span:nth-child(2) { background: #f59e0b; }
.portal-preview-dots span:nth-child(3) { background: #10b981; }

.portal-preview-url {
  flex: 1;
  background: #ffffff;
  border-radius: 6px;
  padding: 0.25rem 0.8rem;
  font-size: 0.8rem;
  color: var(--portal-text-muted);
  text-align: left;
  border: 1px solid #e2e8f0;
}

.portal-preview-body {
  padding: 2.5rem 1.5rem;
  background: radial-gradient(circle at top, #faf7f2 0%, #f4ede2 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.preview-feature-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--portal-radius-md);
  border: 1px solid rgba(223, 186, 112, 0.25);
  box-shadow: var(--portal-shadow-sm);
  transition: transform 0.25s ease;
}

.preview-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--portal-shadow-md);
}

.preview-feature-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.preview-feature-title {
  font-family: var(--portal-font-serif);
  font-size: 1.15rem;
  color: var(--portal-gold-primary);
  margin-bottom: 0.4rem;
}

.preview-feature-desc {
  font-size: 0.88rem;
  color: var(--portal-text-secondary);
}

/* ==========================================================================
   Seção de Recursos e Benefícios
   ========================================================================== */
.portal-features-section {
  padding: 5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--portal-border);
  border-bottom: 1px solid var(--portal-border);
}

.portal-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.portal-section-subtitle {
  font-size: 0.85rem;
  color: var(--portal-gold-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.portal-section-title {
  font-family: var(--portal-font-serif);
  font-size: 2.2rem;
  color: var(--portal-text-primary);
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

.portal-section-desc {
  font-size: 1rem;
  color: var(--portal-text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-box {
  background: var(--portal-bg);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius-md);
  padding: 2.2rem 1.8rem;
  transition: all 0.3s ease;
  position: relative;
}

.feature-box:hover {
  background: #ffffff;
  border-color: var(--portal-gold-light);
  box-shadow: var(--portal-shadow-md);
  transform: translateY(-4px);
}

.feature-box-icon {
  width: 52px;
  height: 52px;
  background: #fdf6e9;
  border: 1px solid #fae2b8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.feature-box-title {
  font-family: var(--portal-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--portal-text-primary);
  margin-bottom: 0.6rem;
}

.feature-box-desc {
  font-size: 0.92rem;
  color: var(--portal-text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Seção de Cadastro Imediato
   ========================================================================== */
.portal-register-section {
  padding: 5rem 0;
  background: radial-gradient(circle at top, #faf6ee 0%, #f5eee0 100%);
}

.portal-register-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--portal-shadow-lg);
  text-align: center;
}

.register-form-header {
  margin-bottom: 2rem;
}

.register-form-header h2 {
  font-family: var(--portal-font-serif);
  font-size: 1.8rem;
  color: var(--portal-text-primary);
  margin-bottom: 0.4rem;
}

.register-form-header p {
  font-size: 0.92rem;
  color: var(--portal-text-secondary);
}

.portal-form-group {
  text-align: left;
  margin-bottom: 1.2rem;
}

.portal-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--portal-text-primary);
  margin-bottom: 0.4rem;
}

.portal-form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--portal-radius-sm);
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.portal-form-control:focus {
  outline: none;
  border-color: var(--portal-gold-light);
  box-shadow: 0 0 0 3px rgba(223, 186, 112, 0.25);
}

.form-grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit-register {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  margin-top: 0.8rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.portal-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.portal-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.footer-brand {
  font-family: var(--portal-font-serif);
  font-size: 1.3rem;
  color: #dfba70;
  font-weight: 700;
}

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #dfba70;
}

.portal-footer-copy {
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

/* Responsividade */
@media (max-width: 768px) {
  .portal-hero-title {
    font-size: 2.1rem;
  }
  .form-grid-2-cols {
    grid-template-columns: 1fr;
  }
  .portal-register-wrapper {
    padding: 2rem 1.5rem;
  }
}
