/*
Theme Name: SINDETRAN/PR
Theme URI: https://sindetranpr.org.br/
Author: MBZ para SINDETRAN/PR
Description: Tema institucional block-based do Sindicato dos Servidores do Detran do Paraná.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sindetran-pr
Tags: block-patterns, full-site-editing, accessibility-ready, custom-colors, custom-logo, editor-style, wide-blocks
*/

/*
 * O essencial do design vive em theme.json. Este arquivo cobre estados,
 * responsividade e acabamentos que ainda não têm representação estável na API.
 */

html {
  scroll-behavior: smooth;
}

body {
  text-wrap: pretty;
}

::selection {
  background: var(--wp--preset--color--verde-suave);
  color: var(--wp--preset--color--azul-profundo);
}

a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--wp--preset--color--verde-sindetran);
  outline-offset: 3px;
}

.wp-site-blocks {
  overflow: clip;
}

.wp-block-column,
.wp-block-group,
.wp-block-post-template > li {
  min-width: 0;
}

.wp-block-button__link,
.wp-element-button {
  box-shadow: 0 7px 18px rgba(0, 73, 24, 0.18);
  font-size: 1.2rem;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  background-color: var(--wp--preset--color--verde-escuro);
  box-shadow: 0 9px 22px rgba(0, 73, 24, 0.25);
  transform: translateY(-1px);
}

.is-style-outline > .wp-block-button__link {
  background: transparent;
  border: 2px solid currentColor;
  box-shadow: none;
  color: var(--wp--preset--color--verde-sindetran);
}

.is-style-outline > .wp-block-button__link:hover {
  background: var(--wp--preset--color--verde-suave);
  color: var(--wp--preset--color--verde-escuro);
}

.sindetran-hero .is-style-outline > .wp-block-button__link {
  border-color: var(--wp--preset--color--branco);
  color: var(--wp--preset--color--branco);
}

.sindetran-hero .is-style-outline > .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sindetran-skip-link {
  left: 1rem;
  position: fixed;
  top: -8rem;
  z-index: 100000;
}

.sindetran-skip-link:focus {
  background: var(--wp--preset--color--branco);
  border-radius: 0 0 0.5rem 0.5rem;
  color: var(--wp--preset--color--azul-sindetran);
  padding: 0.75rem 1rem;
  top: 0;
}

.sindetran-topbar a {
  color: inherit;
}

.sindetran-header {
  border-bottom: 1px solid rgba(0, 0, 102, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 68, 0.06);
  position: relative;
  z-index: 50;
}

.sindetran-header__logo img {
  height: auto;
  max-width: min(342px, 58vw);
}

.sindetran-header .wp-block-navigation-item__content {
  position: relative;
}

.sindetran-header .wp-block-navigation-item__content::after {
  background: var(--wp--preset--color--verde-sindetran);
  bottom: -0.45rem;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
  width: 100%;
}

.sindetran-header .wp-block-navigation-item__content:hover::after,
.sindetran-header .current-menu-item > .wp-block-navigation-item__content::after {
  transform: scaleX(1);
}

.sindetran-hero {
  isolation: isolate;
  min-height: clamp(32rem, 58vh, 38rem);
  overflow: hidden;
  position: relative;
}

.sindetran-hero::before,
.sindetran-hero::after {
  content: "";
  pointer-events: none;
  position: absolute;
}

.sindetran-hero::before {
  background:
    linear-gradient(130deg, transparent 47%, rgba(255, 255, 255, 0.11) 47%, rgba(255, 255, 255, 0.11) 50%, transparent 50%),
    linear-gradient(130deg, transparent 58%, rgba(0, 153, 51, 0.3) 58%, rgba(0, 153, 51, 0.3) 61%, transparent 61%);
  inset: 0;
  z-index: -1;
}

.sindetran-hero::after {
  background: var(--wp--preset--color--verde-sindetran);
  border-radius: 999px;
  filter: blur(1px);
  height: 20rem;
  opacity: 0.12;
  right: -6rem;
  top: -7rem;
  transform: rotate(-28deg);
  width: 33rem;
  z-index: -1;
}

.sindetran-eyebrow {
  align-items: center;
  display: inline-flex;
  gap: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sindetran-eyebrow::before {
  background: currentColor;
  content: "";
  height: 2px;
  width: 2.25rem;
}

.sindetran-lema {
  font-style: italic;
  letter-spacing: -0.035em;
}

.sindetran-stat {
  border-left: 4px solid var(--wp--preset--color--verde-sindetran);
}

.sindetran-section-heading {
  max-width: 46rem;
}

.sindetran-card {
  border: 1px solid rgba(0, 0, 102, 0.1);
  box-shadow: 0 12px 34px rgba(0, 0, 68, 0.07);
  height: 100%;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sindetran-card:hover {
  border-color: rgba(0, 153, 51, 0.38);
  box-shadow: 0 16px 40px rgba(0, 0, 68, 0.12);
  transform: translateY(-3px);
}

.sindetran-card .wp-block-post-featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sindetran-card__media-placeholder {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--wp--preset--color--azul-suave), var(--wp--preset--color--verde-suave));
  display: flex;
  justify-content: center;
}

.sindetran-card__media-placeholder svg {
  height: 3rem;
  width: 3rem;
}

.sindetran-card__logo {
  align-items: center;
  background: var(--wp--preset--color--cinza-suave);
  display: flex;
  min-height: 8rem;
}

.sindetran-card__avatar {
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--wp--preset--color--azul-suave), var(--wp--preset--color--branco));
  border: 4px solid var(--wp--preset--color--branco);
  border-radius: 999px;
  box-shadow: 0 5px 20px rgba(0, 0, 68, 0.12);
  overflow: hidden;
  width: 7rem;
}

.sindetran-urgent {
  border-left: 0.4rem solid var(--wp--preset--color--alerta);
  box-shadow: 0 12px 34px rgba(196, 43, 28, 0.09);
}

.sindetran-accordion {
  border-bottom: 1px solid rgba(0, 0, 102, 0.16);
}

.sindetran-accordion summary {
  color: var(--wp--preset--color--azul-sindetran);
  cursor: pointer;
  font-family: var(--wp--preset--font-family--sora);
  font-weight: 700;
  list-style-position: outside;
  padding: 1rem 0;
}

.sindetran-accordion[open] summary {
  color: var(--wp--preset--color--verde-escuro);
}

.sindetran-pagination .page-numbers {
  align-items: center;
  border: 1px solid rgba(0, 0, 102, 0.18);
  border-radius: 0.45rem;
  display: inline-flex;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
}

.sindetran-pagination .current,
.sindetran-pagination a:hover {
  background: var(--wp--preset--color--verde-sindetran);
  border-color: var(--wp--preset--color--verde-sindetran);
  color: var(--wp--preset--color--branco);
}

.sindetran-footer a {
  color: inherit;
}

.sindetran-footer a:hover {
  color: var(--wp--preset--color--verde-suave);
}

.sindetran-footer .is-style-none {
  list-style: none;
}

.sindetran-footer .is-style-none li + li {
  margin-top: 0.45rem;
}

@media (max-width: 900px) {
  .sindetran-header__inner {
    gap: 1rem;
  }

  .sindetran-header .wp-block-navigation__responsive-container.is-menu-open {
    background: var(--wp--preset--color--azul-profundo);
    color: var(--wp--preset--color--branco);
    padding: 2rem;
  }

  .sindetran-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    align-items: flex-start;
  }

  .sindetran-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    align-items: flex-start;
    gap: 1.25rem;
  }

  .sindetran-header__cta {
    display: none !important;
  }
}

@media (max-width: 680px) {
  .sindetran-topbar__inner {
    justify-content: center;
  }

  .sindetran-topbar__context {
    display: none;
  }

  .sindetran-hero {
    min-height: auto;
  }

  .sindetran-hero .wp-block-columns,
  .sindetran-hero .wp-block-column,
  .sindetran-hero .wp-block-group {
    max-width: 100%;
  }

  .sindetran-hero .wp-block-column[style*="flex-basis"] {
    flex-basis: 100% !important;
  }

  .sindetran-hero h1,
  .sindetran-hero h2,
  .sindetran-hero p,
  .sindetran-footer h2,
  .sindetran-footer h3,
  .sindetran-footer p {
    overflow-wrap: anywhere;
  }

  .sindetran-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sindetran-hero__actions .wp-block-button,
  .sindetran-hero__actions .wp-block-button__link {
    width: 100%;
  }

  .sindetran-card,
  .sindetran-stat {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .sindetran-topbar,
  .sindetran-header nav,
  .sindetran-header__cta,
  .sindetran-footer,
  .wp-block-post-navigation-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
