:root{
  --brand-bg: #2f2628;
  --brand-burgundy: #6b1e2a;
  --brand-muted: #d9cfd0;
  --card: #ffffff;
  --accent: var(--brand-burgundy);
  --radius: 12px;
  --max-width: 1200px;
  --text: #eef0f1;
  --muted: #bdb4b5;
  /* Valor padrão menor para header fixo; será atualizado pelo JS ao carregar */
  --site-header-height: 84px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; padding: 0; }

body{
  margin: 0;
  background: var(--brand-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-family: var(--font-family, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial);
}

/* Garante espaçamento inicial para o header fixo.
   O JS ajusta essa variável/estilo dinamicamente após load/resize. */
main {
  padding-top: var(--site-header-height);
}

/* Justificar textos principais:
   regra aplicada a títulos e parágrafos dentro do main, listas e textos de cards.
   Se quiser justificar também nav/btn, me avise. */
main h1, main h2, main h3, main h4, main h5, main h6,
main p, main li, .tagline, .hero-text, .card p, .testimonial {
  text-align: justify;
  text-justify: inter-word;
}

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px;
}

/* Header (FIXO) */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(47,38,40,0.88); /* leve transparência para manter cor, mas reduzir "salto" visual */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 1100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* Inner com padding reduzido para diminuir altura do header */
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0; /* reduzido para header menor */
}

/* Logo do topo - reduzido para header compacto */
.logo img{
  width: 120px;
  max-height: 70px;
  height: auto;
  border-radius: 15%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  display: block;
  object-fit: contain;
  transition: transform .14s ease;
}
.logo img:hover{ transform: translateY(-2px); }

/* Navegação */
.nav a{
  margin-left: 16px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* HERO */
.hero{
  padding: 56px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.30));
}
.hero-inner{
  display: flex;
  gap: 36px;
  align-items: center;
}
.hero-content{
  flex: 1;
}
.hero-visual{
  flex: 0 0 460px; /* espaço maior para a foto circular (área vermelha) */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Nome com tipografia serifada para combinar com logo */
.brand-name{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin: 0;
  font-size: 2.4rem;
  color: var(--card);
  letter-spacing: 0.02em;
}
.tagline{
  margin: 10px 0 18px;
  color: var(--muted);
  font-weight: 600;
}
.hero-text{
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 56ch;
}

/* CTA */
.cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn{
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(107,30,42,0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover{ filter: brightness(0.95); }
.btn-outline{
  background: transparent;
  color: var(--card);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
}

/* Hero photo (circular portrait) - área vermelha maior */
.hero-photo{
  width: 420px;
  height: 420px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 36px 100px rgba(0,0,0,0.5);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 0;
}
.hero-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* preenche o círculo */
  display: block;
}

/* Sections */
.section{ padding: 36px 0; }
.alt{ background: rgba(255,255,255,0.03); }
h2{ color: var(--text); margin: 0 0 12px; }

/* Cards */
.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.card{
  background: rgba(255,255,255,0.04);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.card h3{ margin: 0 0 8px; color: var(--card); }
.card p{ color: var(--muted); margin: 0 0 12px; }
.price{ font-weight: 700; color: var(--accent); margin-top: 8px; }

/* Produtos digitais: alinhar card à esquerda */
#produtos .cards {
  justify-content: start; /* força alinhamento à esquerda quando há poucos cards */
}
#produtos .card {
  max-width: 360px; /* mantém largura controlada do card */
  margin: 0;          /* remove centralização automática */
  padding: 14px;
}

/* About */
.about-grid{ display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: center; }
.about-photo{
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.04);
}

/* Depoimentos */
.testimonial{ background: rgba(255,255,255,0.02); padding: 16px; border-radius: 10px; color: var(--muted); }

/* Form */
.contact-form{ display: grid; gap: 10px; max-width: 640px; }
.contact-form label{ display: block; font-size: .95rem; color: var(--muted); }
.contact-form input, .contact-form textarea{
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
  color: var(--text);
}
.contact-form input::placeholder, .contact-form textarea::placeholder{ color: rgba(255,255,255,0.6); }
.consent{ display: flex; gap: 10px; align-items: center; color: var(--muted); }

/* Footer */
.site-footer{ padding: 18px 0; color: var(--muted); font-size: .9rem; }
.footer-inner{ display: flex; align-items: center; justify-content: space-between; }
.footer-nav a{ margin-left: 12px; color: var(--muted); text-decoration: none; }

/* Responsividade */
@media (max-width: 1100px) {
  .hero-inner{ flex-direction: column; text-align: center; gap: 18px; }
  .about-grid{ grid-template-columns: 1fr; }
  .nav{ display: none; }
  .logo img{ width: 96px; max-height: 56px; }
  .hero-visual{ margin-top: 12px; }
  .hero-photo{ width: 260px; height: 260px; }
  .hero-photo img{ object-position: center top; }

  /* Para telas pequenas, manter alinhamento natural (esquerda) */
  #produtos .cards { justify-content: start; }

  /* reduz o padding-top para telas pequenas (JS ainda redefine com base na altura real) */
  main { padding-top: calc(var(--site-header-height) * 0.9); }
}

@media (min-width: 1600px) {
  .container{ max-width: 1400px; }
  .hero-visual{ flex-basis: 560px; }
  .hero-photo{ width: 560px; height: 560px; }
}

/* Safety fallback */
button, a.button, .btn { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }