/* =============================================================================
   RBB Portal — Design Tokens
   Extraídos do logo + prints do portal atual (verde-petróleo, dourado, bege)
   ============================================================================= */

:root {
  /* Cores principais */
  --rbb-petrol: #0d2826;          /* verde-petróleo escuro — fundo principal/hero */
  --rbb-petrol-deep: #081a18;     /* mais profundo — hero do login */
  --rbb-petrol-soft: #143531;     /* card escuro com glow */

  --rbb-gold: #c9a961;            /* dourado principal — accents, links */
  --rbb-gold-bright: #d4b96a;     /* dourado claro — botão CTA primário */
  --rbb-gold-deep: #ad8d1c;       /* dourado profundo — "BEER" no logo */

  --rbb-cream: #f5efdf;           /* bege/creme — fundo claro de seções CTA */
  --rbb-cream-soft: #faf6ec;      /* bege mais claro — cards sobre bege */
  --rbb-paper: #f5f1ea;           /* fundo dashboard logado */

  --rbb-ink: #0a1f1d;             /* texto sobre fundo claro */
  --rbb-ink-soft: #2a3e3b;        /* texto secundário sobre fundo claro */
  --rbb-ink-muted: #6b7574;       /* texto muted */

  --rbb-light: #f4eed9;           /* texto creme sobre fundo escuro */
  --rbb-light-soft: #d8d2bd;      /* texto secundário sobre fundo escuro */
  --rbb-light-muted: #9a9582;     /* texto muted sobre fundo escuro */

  --rbb-border: rgba(13, 40, 38, 0.08);
  --rbb-border-dark: rgba(245, 239, 223, 0.12);

  --rbb-danger: #b54a3a;          /* vermelho de ação destrutiva (deletar) */
  --rbb-danger-deep: #9c3f31;     /* hover do danger */

  /* Tipografia */
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Sombra */
  --shadow-card: 0 1px 3px rgba(13, 40, 38, 0.06), 0 1px 2px rgba(13, 40, 38, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(13, 40, 38, 0.10), 0 2px 4px rgba(13, 40, 38, 0.06);
  --shadow-glow: 0 0 40px rgba(201, 169, 97, 0.12);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
}

/* =============================================================================
   Reset / base
   ============================================================================= */

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--rbb-ink);
  background: var(--rbb-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--rbb-gold-deep); text-decoration: none; }
a:hover { color: var(--rbb-gold); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--rbb-ink);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

button { font-family: inherit; cursor: pointer; }

input, select, textarea { font-family: inherit; }

/* =============================================================================
   Containers
   ============================================================================= */

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

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================================================
   Tema escuro (landing pública / login)
   ============================================================================= */

.dark-section {
  background: var(--rbb-petrol);
  color: var(--rbb-light);
}

.dark-section h1, .dark-section h2, .dark-section h3 {
  color: var(--rbb-light);
}

.dark-section a { color: var(--rbb-gold); }

/* =============================================================================
   Header público (landing)
   ============================================================================= */

.public-header {
  background: var(--rbb-petrol);
  border-bottom: 1px solid var(--rbb-border-dark);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.public-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.public-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-header .logo img {
  height: 56px;
  width: auto;
}

.public-nav {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.public-nav a {
  color: var(--rbb-light-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.public-nav a:hover { color: var(--rbb-gold); }

.btn-access {
  background: linear-gradient(135deg, #f5a623 0%, #e88e1a 100%);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-access:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
  color: #fff;
}

/* =============================================================================
   Botões
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--rbb-gold-bright);
  color: var(--rbb-petrol-deep);
}

.btn-primary:hover {
  background: var(--rbb-gold);
  color: var(--rbb-petrol-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.30);
}

.btn-ghost {
  background: transparent;
  color: var(--rbb-light);
  border: 1px solid var(--rbb-border-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 13px;
}

.btn-ghost:hover {
  background: rgba(245, 239, 223, 0.06);
  color: var(--rbb-light);
}

.btn-dark {
  background: var(--rbb-petrol);
  color: var(--rbb-light);
}

.btn-dark:hover {
  background: var(--rbb-petrol-deep);
  color: var(--rbb-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 40, 38, 0.25);
}

.btn-block { width: 100%; }

.btn-google {
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  font-weight: 500;
  padding: 12px 24px;
}

.btn-google:hover {
  background: #f8f9fa;
  color: #3c4043;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* =============================================================================
   Hero (landing)
   ============================================================================= */

.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-card {
  background: linear-gradient(135deg, rgba(20, 53, 49, 0.6) 0%, rgba(8, 26, 24, 0.8) 100%);
  border: 1px solid rgba(245, 239, 223, 0.06);
  border-radius: var(--radius-xl);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
}

.hero-card img { max-width: 100%; height: auto; }

.hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  color: var(--rbb-gold-deep);
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: 17px;
  color: var(--rbb-light-soft);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { padding: 40px; max-width: 320px; }
  .hero { padding: 48px 0 64px; }
}

/* =============================================================================
   Seção clara (Jornada Sensorial)
   ============================================================================= */

.section-light {
  background: var(--rbb-cream-soft);
  padding: 100px 0;
}

.section-eyebrow {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rbb-gold-deep);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  text-align: center;
  font-size: clamp(32px, 3.5vw, 44px);
  margin-bottom: 64px;
  color: var(--rbb-petrol-deep);
}

.jornada-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.jornada-text {
  font-size: 16px;
  color: var(--rbb-ink-soft);
  line-height: 1.75;
}

.jornada-quote {
  background: var(--rbb-petrol);
  color: var(--rbb-light);
  padding: 48px;
  border-radius: var(--radius-lg);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
  .jornada-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-light { padding: 64px 0; }
  .jornada-quote { padding: 32px; font-size: 17px; }
}

/* =============================================================================
   Seção Excelência em Cada Detalhe (cards)
   ============================================================================= */

.excelencia {
  background: linear-gradient(180deg, var(--rbb-cream-soft) 0%, #faf8ec 100%);
  padding: 100px 0;
}

.excelencia-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 24px;
}

.excelencia-header h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 8px;
  color: var(--rbb-petrol-deep);
}

.excelencia-header p {
  color: var(--rbb-ink-soft);
  margin: 0;
  max-width: 480px;
}

.excelencia-link {
  color: var(--rbb-gold-deep);
  font-size: 14px;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--rbb-cream-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--rbb-petrol-deep);
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--rbb-petrol-deep);
}

.feature-card p {
  color: var(--rbb-ink-soft);
  font-size: 15px;
  margin: 0;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .excelencia { padding: 64px 0; }
}

/* =============================================================================
   CTA "Eleve sua Experiência"
   ============================================================================= */

.cta-section {
  background: var(--rbb-cream);
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(32px, 3.5vw, 44px);
  margin-bottom: 24px;
  color: var(--rbb-petrol-deep);
}

.cta-section p {
  font-size: 17px;
  color: var(--rbb-ink-soft);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer {
  background: var(--rbb-petrol);
  color: var(--rbb-light-soft);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 80px;
  width: auto;
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--rbb-light-muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--rbb-gold);
  font-size: 16px;
  margin-bottom: 20px;
  font-family: var(--font-serif);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 12px; }

.footer-col a {
  color: var(--rbb-light-soft);
  font-size: 14px;
}

.footer-col a:hover { color: var(--rbb-gold); }

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--rbb-light-soft);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.footer-social a:hover { color: var(--rbb-gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rbb-border-dark);
  font-size: 13px;
  color: var(--rbb-light-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom .moderacao {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rbb-gold);
  font-size: 12px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   Login / Auth
   ============================================================================= */

.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-side {
  background: var(--rbb-petrol-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.auth-side img { max-width: 320px; width: 80%; height: auto; }

.auth-form-wrap {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-form {
  width: 100%;
  max-width: 420px;
}

.auth-form h1 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 8px;
  color: var(--rbb-petrol-deep);
}

.auth-form .subtitle {
  text-align: center;
  color: var(--rbb-ink-muted);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--rbb-ink);
  margin-bottom: 8px;
}

.form-group .label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group .label-row a {
  font-size: 13px;
  color: var(--rbb-gold-deep);
}

.input-icon {
  position: relative;
}

.input-icon .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rbb-ink-muted);
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 15px;
  background: #f0f3f7;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--rbb-ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--rbb-gold);
}

.divider {
  text-align: center;
  position: relative;
  margin: 24px 0;
  color: var(--rbb-ink-muted);
  font-size: 13px;
}

.divider::before, .divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 70px);
  height: 1px;
  background: var(--rbb-border);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.legal {
  text-align: center;
  font-size: 12px;
  color: var(--rbb-ink-muted);
  margin-top: 24px;
  line-height: 1.5;
}

.legal a {
  color: var(--rbb-ink-soft);
  text-decoration: underline;
}

.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
}

.flash-error {
  background: #fff0f0;
  color: #b32424;
  border: 1px solid #fbd0d0;
}

.flash-info {
  background: #f0f7ff;
  color: #0a4d8c;
  border: 1px solid #d0e3fb;
}

.flash-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

@media (max-width: 768px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

/* =============================================================================
   Mobile sweep global (≤820px)
   ============================================================================= */
@media (max-width: 820px) {
  html, body { overflow-x: hidden; }
  .container { padding-left: 16px; padding-right: 16px; }
  /* Bota largura controlada em imagens e vídeos pra não vazar */
  img, video, iframe { max-width: 100%; height: auto; }
}
@media (max-width: 560px) {
  .container { padding-left: 14px; padding-right: 14px; }
  h1 { font-size: clamp(24px, 6vw, 32px); }
  h2 { font-size: clamp(20px, 5vw, 28px); }
}
