/*
Theme Name: Realize
Theme URI: https://realize.pro.br/
Author: Realize
Description: Tema institucional e editorial da Realize, com landing page, blog, busca, categorias e artigos.
Version: 1.0.5
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: realize
*/

:root {
  --realize-ink: #1b262d;
  --realize-navy: #044166;
  --realize-pink: #ce1c5a;
  --realize-red: #fd314d;
  --realize-orange: #ff9b3f;
  --realize-paper: #f9f9f9;
  --realize-line: #dedede;
}

body.admin-bar .navbar {
  top: 32px;
}

body {
  letter-spacing: 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  background: #fff;
  color: var(--realize-ink);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  top: 0.5rem;
  width: auto;
  z-index: 100000;
}

.realize-nav-list {
  align-items: center;
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.realize-nav-list .nav-link {
  padding: 0;
}

.menu-button {
  background: transparent;
  border: 0;
}

.custom-logo {
  display: block;
  height: auto;
  max-width: 131px;
}

.realize-main {
  min-height: 65vh;
}

.realize-blog-hero {
  padding: 10rem 1.25rem 3rem;
}

.realize-blog-heading {
  background: linear-gradient(
    90deg,
    var(--realize-navy),
    var(--realize-pink) 45%,
    var(--realize-orange)
  );
  background-clip: text;
  color: transparent;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  line-height: 1;
  margin: 0 0 1.25rem;
}

.realize-blog-intro {
  font-size: 1.125rem;
  max-width: 720px;
}

.realize-blog-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 2rem;
}

.realize-blog-filter {
  border: 1px solid var(--realize-line);
  border-radius: 999px;
  color: var(--realize-ink);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.realize-blog-filter:hover,
.realize-blog-filter:focus-visible,
.realize-blog-filter.is-active {
  background: var(--realize-ink);
  border-color: var(--realize-ink);
  color: #fff;
}

.realize-blog-shell {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr) 300px;
  margin: 0 auto;
  max-width: 1160px;
  padding: 0 1.25rem 6rem;
}

.realize-post-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.realize-post-card {
  aspect-ratio: 4 / 3;
  background: var(--realize-navy);
  border-radius: 8px;
  color: #fff;
  display: block;
  min-height: 300px;
  min-width: 0;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  width: 100%;
}

.realize-post-card:first-child {
  grid-column: 1 / -1;
  min-height: 430px;
}

.realize-post-card__image,
.realize-post-card__overlay {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.realize-post-card__image {
  object-fit: cover;
  transition: transform 0.35s ease;
}

.realize-post-card__overlay {
  background: linear-gradient(180deg, transparent 15%, rgba(4, 35, 53, 0.9));
}

.realize-post-card__content {
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  left: 0;
  min-width: 0;
  padding: 1.5rem;
  position: absolute;
  right: 0;
  z-index: 1;
}

.realize-post-card:hover .realize-post-card__image {
  transform: scale(1.035);
}

.realize-post-card__title {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
}

.realize-post-card__meta {
  align-items: center;
  display: flex;
  font-size: 0.875rem;
  gap: 0.5rem;
}

.realize-badge {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: var(--realize-ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
}

.realize-sidebar {
  min-width: 0;
}

.realize-sidebar__section {
  border-top: 1px solid var(--realize-line);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.realize-sidebar__title {
  color: var(--realize-ink);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.realize-category-list,
.realize-recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.realize-recent-list {
  flex-direction: column;
}

.realize-recent-list a {
  color: var(--realize-ink);
  font-weight: 600;
  text-decoration: none;
}

.realize-search-form {
  display: flex;
  gap: 0.5rem;
}

.realize-search-form input[type="search"] {
  border: 1px solid var(--realize-line);
  border-radius: 6px;
  min-width: 0;
  padding: 0.75rem;
  width: 100%;
}

.realize-search-form button {
  background: var(--realize-ink);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  padding: 0.75rem 1rem;
}

.realize-pagination {
  grid-column: 1 / -1;
  margin-top: 2rem;
}

.realize-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.realize-pagination .page-numbers {
  border: 1px solid var(--realize-line);
  border-radius: 6px;
  color: var(--realize-ink);
  padding: 0.6rem 0.85rem;
  text-decoration: none;
}

.realize-pagination .current {
  background: var(--realize-ink);
  color: #fff;
}

.realize-article-hero {
  align-items: end;
  background-color: var(--realize-navy);
  background-position: center;
  background-size: cover;
  color: #fff;
  display: flex;
  min-height: 620px;
  padding: 10rem 1.25rem 4rem;
  position: relative;
}

.realize-article-hero::before {
  background: linear-gradient(180deg, rgba(4, 35, 53, 0.15), rgba(4, 35, 53, 0.92));
  content: "";
  inset: 0;
  position: absolute;
}

.realize-article-hero__inner {
  margin: 0 auto;
  max-width: 1160px;
  position: relative;
  width: 100%;
  z-index: 1;
}

/*
 * site.css paints every h1 with a dark gradient clipped to the text
 * (`-webkit-text-fill-color: transparent` + `background-clip: text`). That wins
 * over `color`, so the title has to opt out of all three to render white over
 * the cover image.
 */
.realize-article-title {
  -webkit-background-clip: border-box;
  background-clip: border-box;
  background-image: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.05;
  margin: 1rem 0 1.5rem;
  max-width: 900px;
}

.realize-article-layout {
  display: grid;
  gap: 3.5rem;
  grid-template-columns: 260px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1160px;
  padding: 5rem 1.25rem;
}

.realize-article-content {
  color: var(--realize-ink);
  min-width: 0;
}

.realize-article-content > * {
  max-width: 780px;
}

.realize-article-content p,
.realize-article-content li {
  font-size: 1.125rem;
  line-height: 1.65;
}

.realize-article-content h2 {
  font-size: 2.125rem;
  line-height: 1.2;
  margin: 3.25rem 0 1rem;
}

.realize-article-content h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
}

.realize-article-content img,
.realize-article-content figure {
  height: auto;
  max-width: 100%;
}

.realize-related {
  background: #f4f5f5;
  padding: 4rem 1.25rem 6rem;
}

.realize-related__inner {
  margin: 0 auto;
  max-width: 1160px;
}

.realize-related__title {
  color: var(--realize-ink);
  font-size: 2rem;
}

.realize-empty {
  border: 1px solid var(--realize-line);
  border-radius: 8px;
  grid-column: 1 / -1;
  padding: 3rem;
  text-align: center;
}

/* Blocks added to a page using the "Home Realize" template, rendered below the landing layout. */
.realize-home-extra__inner {
  margin: 0 auto;
  max-width: 1160px;
  padding: 4rem 1.25rem;
}

.realize-home-extra__inner > * {
  max-width: 780px;
}

.realize-home-extra__inner img,
.realize-home-extra__inner figure,
.realize-home-extra__inner .alignwide,
.realize-home-extra__inner .alignfull {
  max-width: 100%;
}

.realize-page {
  margin: 0 auto;
  max-width: 1160px;
  min-height: 60vh;
  padding: 10rem 1.25rem 6rem;
}

.realize-page__title {
  background: linear-gradient(90deg, var(--realize-navy), var(--realize-red), var(--realize-orange));
  background-clip: text;
  color: transparent;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.05;
}

.realize-page__content {
  max-width: 900px;
}

.realize-page__content p,
.realize-page__content li {
  font-size: 1.0625rem;
  line-height: 1.65;
}

/*
 * site.css lays .newsletter-form out as a single flex row with the submit
 * button absolutely pinned to its right edge. The LGPD consent checkbox is an
 * extra child the Webflow export never had, so the form becomes a column and
 * the field/button pair gets its own positioning context.
 */
.newsletter-form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.realize-newsletter-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  position: relative;
  width: 100%;
}

.realize-newsletter-field .newsletter-text-field {
  box-sizing: border-box;
  height: 48px;
  min-width: 0;
  padding-right: 7.5rem;
  width: 100%;
}

.realize-newsletter-field .newsletter-submit-button {
  min-width: 7rem;
}

.realize-newsletter-consent {
  align-items: flex-start;
  display: flex;
  font-size: 0.75rem;
  gap: 0.5rem;
  line-height: 1.45;
  margin: 0;
  max-width: 360px;
  width: 100%;
}

.realize-newsletter-consent input {
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

.realize-newsletter-consent a {
  color: inherit;
  text-decoration: underline;
}

.realize-form-feedback {
  display: none;
}

@media screen and (max-width: 991px) {
	.nav-menu.is-open {
		display: block;
	}

  .realize-nav-list {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
  }

  .realize-nav-list .nav-link {
    padding: 0.75rem;
  }

  .realize-blog-shell,
  .realize-article-layout {
    grid-template-columns: 1fr;
  }

  .realize-article-layout .realize-sidebar {
    order: 2;
  }
}

@media screen and (max-width: 767px) {
  body.admin-bar .navbar {
    top: 46px;
  }

  .realize-post-grid {
    grid-template-columns: 1fr;
  }

  .realize-post-card:first-child {
    grid-column: auto;
    min-height: 340px;
  }

  .realize-blog-hero {
    padding-top: 8.5rem;
  }

  .realize-article-hero {
    min-height: 520px;
    padding-top: 8.5rem;
  }

  .realize-article-layout {
    padding-top: 3rem;
  }

  .realize-article-content p,
  .realize-article-content li {
    font-size: 1rem;
  }

  .realize-article-content h2 {
    font-size: 1.625rem;
  }

  .footer-content-container {
    padding: 2rem 1.25rem 3rem;
  }

  .footer-grid {
    gap: 2.5rem;
  }

  .footer-grid > * {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    min-width: 0;
    width: 100%;
  }

  .newsletter-form-block,
  .newsletter-form,
  .realize-newsletter-field {
    max-width: 100%;
  }

  .realize-newsletter-field {
    gap: 0.625rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .realize-newsletter-field .newsletter-text-field {
    padding-right: 0.875rem;
  }

  .realize-newsletter-field .newsletter-submit-button {
    height: 48px;
    margin: 0;
    position: static;
    width: 100%;
  }

  .realize-newsletter-consent {
    max-width: none;
  }
}

@media screen and (max-width: 479px) {
  .realize-blog-hero,
  .realize-blog-shell,
  .realize-article-layout,
  .realize-related,
  .realize-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .realize-post-card,
  .realize-post-card:first-child {
    min-height: 320px;
  }

  .realize-post-card__title {
    font-size: 1.25rem;
  }
}

/* Realize responsive hardening */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.navbar {
  z-index: 1000;
}

@keyframes realize-content-fallback {
  to {
    opacity: 1;
  }
}

/*
 * Fallback only. Scoped to .realize-no-ix2, which reveal.js adds to <html> when
 * Webflow's IX2 failed to boot. Without this scope the rules below would fight
 * the real Webflow interactions (they set inline opacity/transform).
 */
.realize-no-ix2 .realize-home-default [style*="opacity: 0"] {
  animation: realize-content-fallback 360ms ease 1100ms forwards;
}

.realize-no-ix2 .realize-home-default .realize-reveal {
  animation: none;
  opacity: 0 !important;
  translate: 0 14px;
  transition:
    opacity 360ms ease,
    translate 360ms ease;
  will-change: opacity, translate;
}

.realize-no-ix2 .realize-home-default .realize-reveal.realize-reveal-visible {
  opacity: 1 !important;
  translate: 0 0;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .realize-no-ix2 .realize-home-default .realize-reveal {
    transition-duration: 1ms;
  }
}

@media screen and (max-width: 767px) {
  .realize-home-default .hero-section-background {
    padding-top: 8.5rem;
  }

  .realize-home-default .hero-content-container,
  .realize-home-default .hero-section-heading-wrapper,
  .realize-home-default .heading-paragraph,
  .realize-home-default .button-wrapper {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }

  .realize-home-default .hero-section-heading-wrapper {
    display: block;
  }

  .realize-home-default .hero-heading,
  .realize-home-default .hero-highlighted-text {
    box-sizing: border-box;
    font-size: 2.25rem;
    line-height: 1.05;
    max-width: 100%;
    overflow-wrap: normal;
    white-space: normal;
    width: 100%;
  }

  .realize-home-default .featured-in-product-hunt {
    box-sizing: border-box;
    max-width: 100%;
  }

  .realize-home-default .featured-in-product-hunt .small-text {
    font-size: 0.75rem;
  }

  .realize-home-default .button-wrapper {
    align-items: stretch;
  }

  .realize-home-default .primary-button,
  .realize-home-default .secondary-button {
    width: 100%;
  }

  .realize-home-default .primary-button-white-background,
  .realize-home-default .secondary-button-white-background {
    justify-content: center;
  }
}
