/* ══════════════════════════════════════════════════════════════════
   RoyalFlex — Estilos compartilhados
   Usado pela home (index.html) e por todas as páginas dedicadas
   (/camas-bau/*, /colchoes/*, /conjuntos/*, etc.)
   ══════════════════════════════════════════════════════════════════ */

/* ─── Reset CSS Básico ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { display: block; max-width: 100%; }
picture { display: block; width: 100%; height: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── Variáveis de marca ───────────────────────────────────────── */
:root {
  /* ── Paleta de luz (faixas de valor crescente) ── */
  --white:       #ffffff;          /* máximo: cards, destaques */
  --linen:       #f6f2ec;          /* claro: corpo hero, seção hero */
  --cream:       #f0ebe3;          /* médio: catálogo, body base */
  --sand:        #e5ddd3;          /* profundo: depoimentos */
  --off-white:   #f0ebe3;

  /* ── Tipografia ── */
  --text-dark:   #1a1814;          /* carvão — headings e body */
  --text-mid:    #4a4038;          /* marrom médio — subheadings */
  --text-muted:  #8a7e72;          /* areia — captions, labels */

  /* ── Ouro ── */
  --gold:        #c5a059;
  --gold-light:  #d4b476;
  --gold-dark:   #a8843e;

  /* ── Mantém compatibilidade com `var(--royal-blue*)` ── */
  --royal-blue:       #1a1814;
  --royal-blue-dark:  #1a1814;
  --royal-blue-light: #4a4038;
}

/* ─── Navbar: fundo marrom escuro (mesmo tom do footer) ─────────── */
.glass {
  background: #2a2018;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
}

/* ─── Gradiente de fundo (não usado em seções principais) ───────── */
.bg-royal-gradient {
  background: linear-gradient(135deg, #ede8df 0%, #e5ddd3 100%);
}

/* ─── Linha dourada decorativa ─────────────────────────────────── */
.gold-divider {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 2px;
}

/* ─── Tipografia global ────────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--text-dark);
}

/* ─── Separadores de seção com linha ouro sutil ─────────────────── */
section + section {
  border-top: 1px solid rgba(197,160,89,0.18);
}

/* ─── Navbar: scroll sombra progressiva ────────────────────────── */
#navbar {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
#navbar.scrolled {
  background: #231a12;
  box-shadow: 0 2px 24px rgba(18, 14, 8, 0.5);
}

/* ─── Navbar: link hover com sublinhado dourado ─────────────────── */
.nav-link {
  position: relative;
  font-family: 'Playfair Display', serif;
  color: rgba(245, 240, 232, 0.75);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--gold-light); }
.nav-link:hover::after { width: 100%; }

/* ─── Hamburger mobile ──────────────────────────────────────────── */
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(245,240,232,0.8);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─── Menu mobile drawer ────────────────────────────────────────── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
#mobile-menu.open { max-height: 320px; }

/* ─── Botão Hero principal ──────────────────────────────────────── */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  color: var(--royal-blue-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 28px rgba(197,160,89,0.38);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(197,160,89,0.52);
}
.btn-hero-primary:active { transform: translateY(0); }

/* ─── Image placeholder (Hero) ──────────────────────────────────── */
.hero-img-placeholder {
  background: linear-gradient(145deg, rgba(26,23,20,0.04) 0%, rgba(197,160,89,0.09) 100%);
  border: 1px solid rgba(197,160,89,0.28);
  border-radius: 24px;
  box-shadow:
    0 16px 48px rgba(26,23,20,0.1),
    0 0 0 1px rgba(197,160,89,0.1);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(26,23,20,0.28);
  position: relative;
  overflow: hidden;
}
/* Shimmer decorativo no placeholder */
.hero-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(197,160,89,0.07) 50%, transparent 60%);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ─── Scroll indicator ──────────────────────────────────────────── */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(26,23,20,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-indicator .mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(26,23,20,0.22);
  border-radius: 11px;
  position: relative;
}
.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--gold-dark);
  border-radius: 2px;
  animation: scroll-dot 1.8s ease infinite;
}
@keyframes scroll-dot {
  0%   { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* ─── Badge/pill de destaque ────────────────────────────────────── */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(197,160,89,0.12);
  border: 1px solid rgba(197,160,89,0.4);
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}

/* ─── Diferenciais: card ─────────────────────────────────────────── */
.diff-card {
  background: var(--linen);
  border: 1px solid rgba(197,160,89,0.28);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}
.diff-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(197,160,89,0.22), 0 2px 8px rgba(26,24,20,0.06);
  border-color: rgba(197,160,89,0.42);
}

/* ─── Diferenciais: ícone wrapper ───────────────────────────────── */
.diff-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(197,160,89,0.14) 0%, rgba(197,160,89,0.06) 100%);
  border: 1px solid rgba(197,160,89,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s;
}
.diff-card:hover .diff-icon-wrap {
  background: linear-gradient(135deg, rgba(197,160,89,0.28) 0%, rgba(197,160,89,0.12) 100%);
}

/* ─── Diferenciais: CTA link discreto ───────────────────────────── */
.cta-link-royal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--royal-blue);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s, color 0.2s, gap 0.2s;
  padding-bottom: 2px;
}
.cta-link-royal:hover {
  color: var(--royal-blue-light);
  border-color: var(--royal-blue-light);
  gap: 0.6rem;
}

/* ─── Seção: label superior ─────────────────────────────────────── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ─── Catálogo: card de produto ─────────────────────────────────── */
.prod-card {
  background: #ffffff;
  border: 1px solid rgba(26,24,20,0.12);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(26,24,20,0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26,24,20,0.12), 0 2px 8px rgba(26,24,20,0.05);
  border-color: rgba(197,160,89,0.35);
}
/* Card central em destaque */
.prod-card--featured {
  border-color: rgba(197,160,89,0.45);
  box-shadow: 0 8px 32px rgba(197,160,89,0.18), 0 2px 8px rgba(26,24,20,0.05);
}
.prod-card--featured:hover {
  box-shadow: 0 20px 56px rgba(197,160,89,0.28), 0 4px 12px rgba(26,24,20,0.07);
}

/* ─── Catálogo: placeholder de imagem 4:3 ───────────────────────── */
.prod-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.prod-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  animation: shimmer 3.5s infinite;
}

/* ─── Catálogo: tag flutuante ────────────────────────────────────── */
.prod-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
}
.prod-tag--bestseller {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  color: var(--royal-blue-dark);
}
.prod-tag--featured {
  background: var(--royal-blue);
  color: #ffffff;
}
.prod-tag--launch {
  background: linear-gradient(135deg, #1a1814, #2e2416);
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(197,160,89,0.4);
}

/* ─── Catálogo: botão CTA do produto ─────────────────────────────── */
.btn-prod {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--royal-blue);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.18s;
}
.btn-prod:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  color: var(--royal-blue-dark);
  box-shadow: 0 6px 24px rgba(197,160,89,0.38);
  transform: translateY(-1px);
}
.btn-prod:active { transform: translateY(0); }

/* ─── Catálogo: preço ────────────────────────────────────────────── */
.prod-price-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.prod-price-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--royal-blue-dark);
}

/* ─── Catálogo: selo 100 noites ──────────────────────────────────── */
.night-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.night-seal svg { flex-shrink: 0; }

/* ─── Depoimentos: card branco sobre creme profundo ─────────────── */
.testimonial-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(197,160,89,0.2);
  border-radius: 18px;
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,23,20,0.05);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(197,160,89,0.45);
  box-shadow: 0 14px 44px rgba(26,23,20,0.1);
}

/* Aspa decorativa grande */
.testimonial-card .quote-deco {
  position: absolute;
  top: -10px;
  right: 18px;
  font-family: 'Playfair Display', serif;
  font-size: 9rem;
  line-height: 1;
  color: rgba(197,160,89,0.1);
  pointer-events: none;
  user-select: none;
  font-weight: 700;
}

/* Estrelas */
.star-row { display: flex; gap: 3px; }

/* ─── Footer: link column ───────────────────────────────────────── */
.footer-link {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: color 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.footer-link:hover { color: var(--gold-light); }

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ─── Colchões: seletor de tamanho ──────────────────────────────── */
.size-btn {
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1.5px solid rgba(26,24,20,0.18);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.size-btn:hover {
  border-color: var(--gold-dark);
  color: var(--gold-dark);
}
.size-btn--active {
  background: var(--royal-blue-dark);
  border-color: var(--royal-blue-dark);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(26,24,20,0.18);
}

/* ─── Colchões: imagem do card ───────────────────────────────────── */
.colchao-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

/* Selos de pagamento/segurança */
.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
}

/* ─── Páginas dedicadas: breadcrumbs ─────────────────────────────── */
.breadcrumb-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 0.18s;
}
.breadcrumb-link:hover { color: var(--gold-dark); }
.breadcrumb-sep {
  color: rgba(26,24,20,0.3);
  font-size: 0.8rem;
}
.breadcrumb-current {
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ─── Páginas dedicadas: bloco "Leve também o colchão" ───────────── */
.combo-banner {
  background: linear-gradient(135deg, rgba(197,160,89,0.12), rgba(197,160,89,0.05));
  border: 1.5px solid rgba(197,160,89,0.35);
  border-radius: 18px;
  padding: 1.75rem;
}

/* ─── Páginas dedicadas: FAQ accordion ───────────────────────────── */
.faq-item {
  border: 1px solid rgba(26,24,20,0.1);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: none;
  border: none;
}
.faq-question svg { transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 1.4rem 1.15rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ─── Páginas dedicadas: navegação entre tamanhos irmãos ─────────── */
.sibling-link {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid rgba(26,24,20,0.15);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.sibling-link:hover {
  border-color: var(--gold-dark);
  color: var(--gold-dark);
  background: rgba(197,160,89,0.08);
}
.sibling-link--active {
  background: var(--royal-blue-dark);
  border-color: var(--royal-blue-dark);
  color: #ffffff;
}

/* ─── Ficha técnica: rótulo em cima, valor embaixo — alinha certo
       independente do tamanho do valor (nome de cor, medida, etc.) ── */
.ficha-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 640px) {
  .ficha-grid { grid-template-columns: 1fr 1fr; }
}
.ficha-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(26,24,20,0.08);
}
@media (min-width: 640px) {
  .ficha-item:nth-child(odd) { padding-right: 2rem; }
  .ficha-item:nth-child(even) { padding-left: 2rem; }
}
.ficha-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.ficha-value {
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ─── Cores disponíveis: swatch com zoom no hover ────────────────── */
.color-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.color-swatch {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 8px rgba(26,24,20,0.18), 0 0 0 1px rgba(26,24,20,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.color-swatch:hover {
  transform: scale(2.2);
  box-shadow: 0 10px 28px rgba(26,24,20,0.32), 0 0 0 1px rgba(26,24,20,0.12);
  position: relative;
  z-index: 5;
}
.color-swatch-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}
