/* BauerCrafts -- the landing page for the Painel de Rotina Imantado.
 *
 * Candy-color / pastel palette, on a light cream ground -- the opposite of
 * e-Lainer's dark purple, but built with the same bones: sticky header,
 * edge-to-edge hero, bands that alternate tint, a details/summary FAQ instead
 * of a JS accordion. Nothing is loaded from another host: no web font, no
 * analytics, no CDN.
 */

:root {
  --cream: #fff6ee;
  --cream-deep: #fdeee0;
  --ink: #3a2e39;
  --ink-soft: rgba(58, 46, 57, 0.68);
  --ink-faint: rgba(58, 46, 57, 0.5);
  --hair: rgba(58, 46, 57, 0.12);
  --tint: rgba(79, 168, 130, 0.08);

  --green: #bce8cd;
  --green-deep: #3fa980;
  --yellow: #ffe29a;
  --yellow-deep: #f0b93c;
  --purple: #e3d3f5;
  --purple-deep: #9b72c9;
  --blue: #aee0ec;
  --pink: #ffd3de;

  --wide: 1180px;
  --pad: clamp(1.1rem, 3.2vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* --- header --------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem var(--pad);
  border-bottom: 1px solid var(--hair);
  background: rgba(255, 246, 238, 0.86);
  backdrop-filter: blur(14px);
}

.site-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.wordmark {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.wordmark em {
  font-style: normal;
  color: var(--purple-deep);
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  gap: 1.4rem;
  justify-content: center;
}

.site-head::after {
  content: "";
  width: clamp(140px, 13vw, 170px);
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

/* --- shared --------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.lead {
  margin: clamp(12px, 1.8vw, 20px) 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.lead-wide {
  max-width: 68ch;
}

.sub {
  margin: 0.6rem 0 0;
  max-width: 60ch;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

.actions {
  margin-top: clamp(20px, 2.6vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.button-primary {
  background: var(--green-deep);
  color: #fff;
}

.button-primary:hover {
  background: #349370;
}

.button-secondary {
  border-color: var(--hair);
  background: #fff;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink-faint);
  background: var(--cream-deep);
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2.2rem, 5vw, 4.2rem) var(--pad) clamp(1.5rem, 3vw, 2.4rem);
}

.hero > * {
  position: relative;
}

.hero-copy {
  justify-self: end;
  width: min(640px, 100%);
}

/* 404 has no portrait beside it, so the copy keeps the left edge. */
.hero-solo {
  grid-template-columns: 1fr;
  min-height: 46vh;
  align-content: center;
}

.hero-solo .hero-copy {
  justify-self: start;
}

.hero-art {
  justify-self: start;
  width: min(300px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  box-shadow: 0 24px 48px -20px rgba(58, 46, 57, 0.28);
}

.backdrop {
  position: absolute;
  top: -20%;
  right: -6%;
  width: min(760px, 74vw);
  pointer-events: none;
  user-select: none;
}

.scroll-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 var(--pad) clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.scroll-cue:hover {
  color: var(--ink);
}

.scroll-cue svg {
  animation: nudge 1.9s ease-in-out infinite;
}

@keyframes nudge {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(4px); }
}

/* --- bands ---------------------------------------------------------------- */

.band {
  padding: clamp(2.6rem, 5.5vw, 4.6rem) var(--pad);
}

.band-tint {
  background: var(--tint);
  border-block: 1px solid var(--hair);
}

.band-inner {
  width: min(var(--wide), 100%);
  margin-inline: auto;
}

.band-narrow {
  max-width: 760px;
}

.columns {
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.columns p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

.columns p + p {
  border-left: 1px solid var(--hair);
  padding-left: clamp(20px, 3vw, 40px);
}

/* --- pill lists ------------------------------------------------------------ */

.pill-list {
  margin: clamp(1.2rem, 2vw, 1.8rem) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list-center {
  justify-content: center;
}

.pill-list li {
  padding: 0.55em 1.1em;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--hair);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.pill-list li:nth-child(5n + 1) { border-color: var(--yellow); }
.pill-list li:nth-child(5n + 2) { border-color: var(--green); }
.pill-list li:nth-child(5n + 3) { border-color: var(--purple); }
.pill-list li:nth-child(5n + 4) { border-color: var(--blue); }
.pill-list li:nth-child(5n + 5) { border-color: var(--pink); }

/* --- cards ------------------------------------------------------------------ */

.cards {
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.cards-5 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: clamp(1.2rem, 2vw, 1.6rem);
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--hair);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.card-yellow { background: color-mix(in srgb, var(--yellow) 26%, #fff); }
.card-green { background: color-mix(in srgb, var(--green) 30%, #fff); }
.card-purple { background: color-mix(in srgb, var(--purple) 30%, #fff); }
.card-blue { background: color-mix(in srgb, var(--blue) 24%, #fff); }
.card-pink { background: color-mix(in srgb, var(--pink) 20%, #fff); }

/* --- steps ------------------------------------------------------------------ */

.steps {
  margin: clamp(1.6rem, 3vw, 2.6rem) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--hair);
}

.step-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--purple-deep);
  color: #fff;
  font-weight: 800;
}

.steps p {
  margin: 0.3rem 0 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* --- team ------------------------------------------------------------------ */

.team {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 300px));
  gap: clamp(16px, 2.4vw, 26px);
}

.member {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 18px;
  overflow: hidden;
  padding-bottom: 1.1rem;
  text-align: center;
}

.member img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  /* Crop from the top of the source photo down, so the head is never cut
     regardless of how much headroom the original shot has. */
  object-position: 50% 0%;
}

.member-name {
  margin-top: 1rem;
  padding: 0 1rem;
  font-weight: 700;
}

.member-role {
  margin: 0.35rem 0 0;
  padding: 0 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.tagline-quote {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--ink);
}

/* --- FAQ --------------------------------------------------------------------- */

.faq {
  margin-top: clamp(1.4rem, 2.4vw, 2rem);
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--hair);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--green-deep);
  font-weight: 800;
}

.faq details[open] summary::before {
  content: "–";
}

.faq p {
  margin: 0.7rem 0 0 1.2em;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.closing .lead {
  max-width: 46ch;
}

/* --- footer --------------------------------------------------------------- */

.site-foot {
  padding: clamp(1.6rem, 3vw, 2.4rem) var(--pad) clamp(2rem, 3.5vw, 3rem);
  border-top: 1px solid var(--hair);
  background: var(--cream-deep);
}

.foot-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.shapes {
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 1.4vw, 18px);
}

.shapes img {
  height: clamp(26px, 3.2vw, 42px);
  width: auto;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

.wordmark-foot {
  font-size: 1.05rem;
}

.foot-tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.contact a,
.foot-back {
  color: var(--ink-soft);
  text-decoration: none;
}

.contact a:hover,
.foot-back:hover {
  color: var(--ink);
  text-decoration: underline;
}

.foot-back {
  font-size: 0.9rem;
}

/* --- narrow --------------------------------------------------------------- */

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

  .columns p + p {
    border-left: 0;
    border-top: 1px solid var(--hair);
    padding-left: 0;
    padding-top: clamp(20px, 3vw, 40px);
  }

  .cards-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-nav,
  .site-head::after {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: clamp(1.8rem, 5vw, 3rem);
  }

  .hero-copy,
  .hero-art {
    justify-self: center;
  }

  .hero-art {
    width: min(220px, 56vw);
  }

  .team {
    grid-template-columns: 1fr;
  }

  .cards-5 {
    grid-template-columns: 1fr;
  }

  .steps li {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }

  .scroll-cue svg {
    animation: none;
  }
}
