/* ============ VARIÁVEIS ============ */
:root {
  --maroon: #660033;
  --red: #CC3300;
  --orange: #CC6600;
  --amber: #FF9933;
  --cream: #FFF8F1;
  --ink: #2B1118;
  --ink-soft: #5C4A50;
  --white: #FFFFFF;

  --gradient: linear-gradient(135deg, var(--maroon) 0%, var(--red) 50%, var(--orange) 100%);

  --font-display: 'Righteous', cursive;
  --font-body: 'Barlow', sans-serif;

  --radius: 16px;
  --shadow: 0 20px 40px -20px rgba(102, 0, 51, 0.25);
  --container: 1160px;
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 400;
}

h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

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

.section { padding: 96px 0; }
.section--tint { background: #FFF1E3; }
.section--dark { background: var(--ink); color: var(--white); }

.kicker {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--amber);
  margin-bottom: 12px;
  display: inline-block;
}
.kicker--dark { color: var(--red); }

.section__head { max-width: 640px; margin-bottom: 48px; }
.section__lead { color: rgba(255,255,255,0.8); margin-top: 12px; }
h2.light { color: var(--white); }

/* ============ BOTÕES ============ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--maroon); transform: translateY(-2px); }
.btn--white { background: var(--white); color: var(--maroon); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline-white { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn--outline-white:hover { background: rgba(255,255,255,0.15); }

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: env(safe-area-inset-top, 0px); left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 248, 241, 0.9);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: 0 8px 24px rgba(43, 17, 24, 0.08); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 44px; width: auto; }
.logo__text { font-family: var(--font-display); font-size: 1.05rem; color: var(--maroon); }
.logo__text em { font-style: normal; color: var(--red); }

.nav { display: flex; gap: 32px; }
.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--maroon);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient);
  color: var(--white);
  overflow: hidden;
  padding-top: 76px;
}
.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
  filter: blur(2px);
}
.hero__shape--1 { width: 420px; height: 420px; background: var(--amber); top: -140px; right: -120px; }
.hero__shape--2 { width: 280px; height: 280px; background: var(--white); bottom: -100px; left: -80px; opacity: 0.08; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
  padding: 60px 24px;
}

.hero__text .kicker { color: var(--amber); }
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin-bottom: 24px;
}
.hero h1 span { color: var(--amber); }

.hero__lead {
  font-size: 1.1rem;
  max-width: 480px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
}

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

.hero__art { display: flex; justify-content: center; }
.hero__art-circle {
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: float 5s ease-in-out infinite;
}
.hero__art-circle img { width: 100%; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ============ SOBRE ============ */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}
.about__content p { color: var(--ink-soft); margin-bottom: 16px; text-align: justify; hyphens: auto; }
.about__content h2 { margin-bottom: 20px; color: var(--maroon); }

.about__editorias { margin-top: 28px; }
.about__content .about__editorias-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0;
  text-align: left;
}
.about__editorias .tags { margin-top: 14px; gap: 10px; }
.about__editorias .tag {
  padding: 8px 18px;
  border-color: rgba(102,0,51,0.2);
  background: var(--white);
  color: var(--maroon);
  font-size: 0.9rem;
}

/* ============ CARDS / SERVIÇOS ============ */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.card {
  flex: 0 1 calc((100% - 2 * 28px) / 3);
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 12px 30px -18px rgba(43,17,24,0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(102,0,51,0.06);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--maroon), var(--red));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; color: var(--white); }
.card h3 { color: var(--maroon); margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.card__list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* ============ CLIENTES ============ */
.client-group + .client-group { margin-top: 40px; }
.client-group__title {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--maroon);
  margin-bottom: 18px;
}
.client-group__title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
}

.clients {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.clients__logo {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid rgba(102,0,51,0.08);
  padding: 20px;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.clients__logo:hover { transform: translateY(-3px); box-shadow: 0 10px 22px -14px rgba(43,17,24,0.35); }
.clients__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Cliente sem logo oficial: foto do evento com o nome por cima */
.clients__logo--photo {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.clients__logo--photo img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.clients__logo--photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 10px 8px;
  background: linear-gradient(transparent, rgba(43,17,24,0.85));
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.clients__logo--photo figcaption small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.85;
}

/* Cliente sem logo ainda: mostra só o nome */
.clients__logo--name {
  border-style: dashed;
  border-color: rgba(102,0,51,0.22);
  text-align: center;
  padding: 14px;
}
.clients__logo--name span {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
  color: var(--maroon);
}
.clients__logo--name small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ============ LINHA DO TEMPO ============ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 16px;
  bottom: 16px;
  width: 0;
  border-left: 3px dashed var(--amber);
  z-index: 0;
}
.timeline__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(102,0,51,0.1);
  position: relative;
  z-index: 1;
}
.timeline__row:last-child { border-bottom: none; }
.timeline__year {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--red);
}
.timeline__dot {
  width: 12px; height: 12px;
  margin-top: 0.45em;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}
.timeline__year--label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  line-height: 1.35;
}
.timeline__year--label .timeline__dot { margin-top: 0.2em; }

.timeline__tiles { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 14px; }
.tile {
  width: 96px;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 18px -12px rgba(43,17,24,0.35);
  border: 1px solid rgba(102,0,51,0.08);
}
.tile img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.tile figcaption {
  background: var(--ink);
  color: var(--white);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  padding: 6px 4px;
}
.tile--milestone { border: 2px solid var(--amber); }
.tile--milestone figcaption { background: var(--maroon); }

.timeline__row--ongoing { border-top: 2px dashed rgba(102,0,51,0.2); margin-top: 8px; padding-top: 28px; }

/* ============ TAGS / ATUAÇÃO ============ */
.tags { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.tag {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============ EQUIPE ============ */
.team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.team__card {
  flex: 0 1 calc((100% - 2 * 40px) / 3);
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 12px 30px -18px rgba(43,17,24,0.18);
  text-align: center;
}
.team__photo {
  width: 220px; height: 220px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--amber);
}
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__card h3 { color: var(--maroon); }
.team__role {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.team__card p:not(.team__role) { color: var(--ink-soft); font-size: 0.95rem; }

/* ============ CONTATO ============ */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact__info h2 { color: var(--maroon); margin-bottom: 16px; }
.contact__info p { color: var(--ink-soft); margin-bottom: 24px; }
.contact__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.98rem;
}
.contact__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -8px rgba(43,17,24,0.3);
}
.contact__icon svg { width: 19px; height: 19px; }
.contact__list a { color: var(--red); font-weight: 600; }
.contact__list a:hover { text-decoration: underline; }

.contact__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.contact__form input,
.contact__form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(102,0,51,0.18);
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}
.contact__note { color: var(--red); font-weight: 600; font-size: 0.9rem; }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: rgba(255,255,255,0.85); padding-top: 48px; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo--footer .logo__text { color: var(--white); }
.logo--footer .logo__text em { color: var(--amber); }

.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav a { font-size: 0.9rem; font-weight: 600; }
.footer__nav a:hover { color: var(--amber); }

.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.footer__social a:hover { background: var(--red); }

.footer__bottom {
  padding: 20px 24px 32px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px)); right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  z-index: 90;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ============ REVEAL ANIMATION ============ */
/* Conteúdo visível desde o carregamento; anima suavemente ao entrar na tela
   apenas quando o motion do usuário permite. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.7s ease both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  @keyframes rise { from { opacity: 0.4; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
}

/* ============ RESPONSIVO ============ */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .card { flex-basis: calc((100% - 28px) / 2); }
  .team__card { flex-basis: calc((100% - 40px) / 2); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-top: 20px; }
  .hero__ctas { justify-content: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__art { margin-top: 20px; }
  .hero__art-circle { width: 260px; height: 260px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header__actions .btn--sm { display: none; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--cream);
    padding: 24px;
    gap: 18px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }

  .card { flex-basis: 100%; }
  .team__card { flex-basis: 100%; }
  .clients { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .timeline__row { grid-template-columns: 1fr; gap: 12px; }
  .timeline__path { display: none; }
  .section { padding: 64px 0; }
}

/* ============ IMPRESSÃO / PDF ============ */
@media print {
  .reveal { animation: none !important; }
  .header { position: static; }
  .hero { min-height: 0; padding-top: 0; }
  .hero__art-circle { animation: none; }
  .whatsapp-float { display: none; }
  .client-group, .team__card, .card { break-inside: avoid; }
}

/* Logo com fundo próprio: a imagem preenche o card */
.clients__logo--fill { padding: 0; overflow: hidden; }
.clients__logo--fill img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
