/* Paleta do Manual da Marca Alce Rocks */
:root {
  --campfire: #FA7935;
  --golden: #F5C130;
  --leaf: #B7DD69;
  --glacial: #A3E2F5;
  --fog: #A2A1C0;
  --blush: #F6B0A6;
  --night: #393846;
  --white: #FFFFFF;
  --accent: var(--golden);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Bariol é a fonte da marca; só carrega se instalada, senão cai na fonte arredondada do sistema */
body { margin: 0; font-family: Bariol, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif; color: var(--night); background: var(--white); line-height: 1.5; }
a { color: inherit; }

/* Hero */
.side { display: contents; }
.hero { background: var(--glacial); text-align: center; padding: 2.5rem 1rem 1rem; }
.hero > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.logo { display: block; width: 240px; height: auto; margin: 0 auto 1rem; }
.hero h1 { font-size: 2.4rem; line-height: 1.15; margin-top: 0; margin-bottom: 1rem; text-shadow: 3px 3px 0 var(--white); }
.subtitle { font-size: 1.1rem; margin-bottom: 1.75rem; }
.button { display: inline-block; background: var(--golden); color: var(--night); font-weight: 700; text-decoration: none; padding: 0.8rem 1.6rem; border: 3px solid var(--night); border-radius: 999px; box-shadow: 4px 4px 0 var(--night); transition: transform 0.15s, box-shadow 0.15s; }
.button:focus-visible { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--night); }
.sections-nav { position: sticky; top: 0; z-index: 10; background: var(--glacial); border-bottom: 4px solid var(--night); padding: 0.75rem 1rem; }
.sections-nav ul { list-style: none; display: flex; gap: 0.6rem; margin: 0; padding: 0; overflow-x: auto; }
.sections-nav li { flex: none; }
.sections-nav li:first-child { margin-left: auto; }
.sections-nav li:last-child { margin-right: auto; }
.sections-nav a { display: inline-block; border: 2px solid var(--night); border-radius: 999px; padding: 0.4rem 1rem; text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; transition: transform 0.15s; }
.sections-nav li:nth-child(1) a { background: var(--golden); }
.sections-nav li:nth-child(2) a { background: var(--campfire); color: #1f1e27; } /* night falha 4.5:1 sobre campfire */
.sections-nav li:nth-child(3) a { background: var(--leaf); }

/* Conteúdo */
main { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; }
.intro { font-size: 1.3rem; font-weight: 700; text-align: center; margin: 0 0 2.5rem; }

#projetos { --accent: var(--golden); }
#auditoria { --accent: var(--campfire); }
#apps { --accent: var(--leaf); }

.reviews { margin-bottom: 3.5rem; scroll-margin-top: 5rem; }
.reviews-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; background: var(--accent); border: 3px solid var(--night); border-radius: 16px; padding: 0.9rem 1.25rem; margin: 0 0 1.25rem; }
.reviews-header h2 { font-size: 1.5rem; margin: 0; line-height: 1.2; text-shadow: 2px 2px 0 var(--white); }
.reviews-header .count { font-weight: 600; font-size: 0.9rem; background: var(--white); border-radius: 999px; padding: 0.15rem 0.75rem; color: var(--night); }
.count { font-size: 0.875rem; }
.app-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 1.2rem; margin: 2rem 0 1rem; padding-bottom: 0.4rem; border-bottom: 3px dashed var(--accent); }

.reviews-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.review { background: var(--white); border: 2px solid var(--night); border-radius: 16px; padding: 1.1rem 1.35rem; box-shadow: 5px 5px 0 var(--accent); transition: transform 0.15s, box-shadow 0.15s; }
.review h3, .review h4 { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.4rem; line-height: 1.3; }
.review p { font-size: 0.98rem; margin: 0.6rem 0 0; white-space: pre-line; }

.meta { display: flex; align-items: center; gap: 0.4rem 0.75rem; flex-wrap: wrap; font-size: 0.875rem; margin: 0; padding: 0; list-style: none; }
.stars { color: var(--golden); -webkit-text-stroke: 1px var(--night); letter-spacing: 2px; font-size: 1.1rem; }
.star-empty { color: var(--white); }
.verified { color: #1a6b3a; font-weight: 700; }
.tag { background: var(--night); color: var(--white); border-radius: 999px; padding: 0.1rem 0.7rem; font-size: 0.8rem; font-weight: 600; }

.site-footer { background: var(--night); color: var(--white); text-align: center; padding: 2rem 1rem; font-weight: 600; }
.site-footer a { color: var(--golden); }

/* Desktop: hero fixo à esquerda, avaliações rolando à direita */
@media (min-width: 1000px) {
  body { display: grid; grid-template-columns: minmax(380px, 40%) 1fr; }
  .side { grid-row: 1 / span 2; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; background: var(--glacial); border-right: 4px solid var(--night); padding: 2.5rem; }
  .hero { padding: 0; }
  .hero > * { max-width: 520px; }
  .hero h1 { font-size: 2.2rem; }
  .sections-nav { position: static; background: none; border-bottom: 0; padding: 1.5rem 0 0; }
  /* no mobile a barra rola na horizontal e cortaria o giro do hover */
  .sections-nav a:hover { transform: rotate(-3deg) scale(1.05); }
  .sections-nav ul { flex-wrap: wrap; overflow: visible; justify-content: center; }
  .sections-nav li:first-child, .sections-nav li:last-child { margin: 0; }
  .reviews { scroll-margin-top: 1rem; }
  main { width: 100%; padding: 3rem 2.5rem; }
  .site-footer { grid-column: 2; }
}

/* hover só em aparelhos com mouse; no toque ele "gruda" após o toque */
@media (hover: hover) {
  .button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--night); }
  .review:hover { transform: translate(-2px, -2px) rotate(-0.4deg); box-shadow: 8px 8px 0 var(--accent); }
}

@media (max-width: 600px) {
  .hero { padding-top: 1.75rem; }
  .logo { width: 180px; }
  .hero h1 { font-size: 1.6rem; }
  main { padding: 1.5rem 0.75rem; }
  .review { padding: 0.9rem 1rem; }
  .reviews-header h2 { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .review:hover, .button:hover, .sections-nav a:hover { transform: none; }
}
