/* PRD Santo André — estilos complementares ao Tailwind */

:root {
  --prd-blue: #1b3f7b;
  --prd-blue-mid: #0d4f9e;
  --prd-blue-deep: #0a2f5c;
  --prd-green: #006130;
  --prd-green-mid: #008d45;
  --prd-green-bright: #43b24c;
  --prd-yellow: #ffdd00;
  --prd-yellow-warm: #fcc113;
  --prd-ink: #0c1a2e;
  --prd-mist: #f4f7fa;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--prd-mist);
}

/* Header */
#site-header {
  background: transparent;
}

#site-header.is-scrolled {
  background: rgba(244, 247, 250, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 63, 123, 0.08);
}

#site-header.is-scrolled .logo-white {
  display: none;
}

#site-header.is-scrolled .logo-color {
  display: block;
}

#site-header.is-scrolled nav[aria-label="Principal"] {
  color: var(--prd-blue);
}

#site-header.is-scrolled #menu-toggle {
  border-color: rgba(27, 63, 123, 0.15);
  background: rgba(255, 255, 255, 0.8);
  color: var(--prd-blue);
}

#site-header.is-scrolled .btn-yellow {
  background: var(--prd-blue);
  color: #fff;
}

#site-header.is-scrolled .btn-yellow:hover {
  background: var(--prd-blue-mid);
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--prd-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: #fff;
}

#site-header.is-scrolled .nav-link:hover {
  color: var(--prd-blue-mid);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Buttons */
.btn-primary,
.btn-yellow,
.btn-outline,
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 0.375rem;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--prd-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--prd-blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(13, 79, 158, 0.28);
}

.btn-yellow {
  background: var(--prd-yellow);
  color: var(--prd-blue-deep);
}

.btn-yellow:hover {
  background: var(--prd-yellow-warm);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(252, 193, 19, 0.35);
}

.btn-outline {
  border: 1.5px solid rgba(27, 63, 123, 0.35);
  color: var(--prd-blue);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--prd-blue);
  background: rgba(27, 63, 123, 0.04);
}

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero — painel azul diagonal + imagem com overlay azul 50% */
.hero-media {
  background: #0d4f9e;
}

.hero-media-mask {
  background: #0d4f9e;
  opacity: 0.5;
  pointer-events: none;
}

.hero-left img {
  object-position: left center;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: heroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-reveal:nth-child(1) {
  animation-delay: 0.1s;
}
.hero-reveal:nth-child(2) {
  animation-delay: 0.28s;
}
.hero-reveal:nth-child(3) {
  animation-delay: 0.42s;
}
.hero-reveal:nth-child(4) {
  animation-delay: 0.56s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--prd-green-mid);
}

.section-label::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--prd-yellow);
}

.section-label.justify-center::before {
  display: none;
}

.candidate-block {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(27, 63, 123, 0.12);
}

.filie-bg {
  background:
    linear-gradient(180deg, #fff 0%, rgba(255, 221, 0, 0.12) 50%, var(--prd-mist) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(67, 178, 76, 0.12), transparent 55%);
}

/* Form */
.form-shell {
  background: #fff;
  padding: 1.75rem;
  border: 1px solid rgba(27, 63, 123, 0.1);
  box-shadow: 0 20px 50px rgba(27, 63, 123, 0.08);
}

@media (min-width: 640px) {
  .form-shell {
    padding: 2rem;
  }
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--prd-blue);
}

.field-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--prd-ink);
  background: var(--prd-mist);
  border: 1.5px solid transparent;
  border-radius: 0.375rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field-input:focus {
  background: #fff;
  border-color: var(--prd-blue-mid);
  box-shadow: 0 0 0 3px rgba(13, 79, 158, 0.15);
}

.field-input.field-error {
  border-color: #c0392b;
  background: #fff5f5;
}

.field-input.field-ok {
  border-color: rgba(0, 141, 69, 0.45);
}

.field-hint {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #c0392b;
}

.field-hint[hidden] {
  display: none;
}

#form-feedback.is-success {
  color: var(--prd-green);
}

#form-feedback.is-error {
  color: #c0392b;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-reveal,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .btn-primary:hover,
  .btn-yellow:hover {
    transform: none;
  }
}
