/*
Theme Name: Web4 Base
Theme URI: https://www.web4comunicacao.com
Author: Web4 Comunicação
Author URI: https://www.web4comunicacao.com
Description: Tema-base neutro, multipágina e orientado a Site Kits para a plataforma Web4.
Version: 0.2.1
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: web4-base
Tags: accessibility-ready, blog, custom-colors, custom-logo, custom-menu, editor-style, featured-images, theme-options, threaded-comments, translation-ready, wide-blocks
Update URI: https://updates.oiweb4.com/components/web4-base
*/

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Ovo";
  src: url("assets/fonts/Ovo-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --web4-color-navy: #142133;
  --web4-color-navy-soft: #25364d;
  --web4-color-primary: #2563eb;
  --web4-color-primary-light: #dbeafe;
  --web4-color-accent: #f59e0b;
  --web4-color-accent-soft: #fef3c7;
  --web4-color-olive: #737b44;
  --web4-color-yellow-soft: #fef9c3;
  --web4-color-mist: #f5f7fa;
  --web4-color-ink: #172033;
  --web4-color-slate: #5f6b7a;
  --web4-color-line: #dce2ea;
  --web4-color-surface: #fff;
  --web4-color-on-dark: #fff;
  --web4-color-overlay: #142133;
  --web4-color-header-background: #fff;
  --web4-color-header-text: #172033;
  --web4-color-footer-background: #142133;
  --web4-color-footer-text: #fff;
  --web4-color-button-text: #fff;
  --web4-color-whatsapp: #25d366;
  --web4-color-control-overlay: #0f1615;
  --web4-color-success-background: #e5f7ec;
  --web4-color-success-text: #155b2d;
  --web4-color-error-background: #fde9e9;
  --web4-color-error-text: #842029;
  --web4-font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --web4-font-heading: "Ovo", Georgia, serif;
  --web4-container: 1180px;
  --web4-content: 760px;
  --web4-gutter: clamp(1rem, 3vw, 2rem);
  --web4-section-space: clamp(4.25rem, 8vw, 7.5rem);
  --web4-radius-sm: 10px;
  --web4-radius-md: 18px;
  --web4-radius-lg: 28px;
  --web4-radius-pill: 999px;
  --web4-shadow-soft: 0 18px 48px rgb(20 33 51 / 10%);
  --web4-shadow-lifted: 0 26px 80px rgb(20 33 51 / 16%);
  --web4-transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--web4-color-surface);
  color: var(--web4-color-ink);
  font-family: var(--web4-font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.web4-menu-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
[type="button"],
[type="submit"] {
  cursor: pointer;
}

a {
  color: var(--web4-color-primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color var(--web4-transition), background-color var(--web4-transition), border-color var(--web4-transition), transform var(--web4-transition);
}

a:hover {
  color: var(--web4-color-navy);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--web4-color-accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block: 0 0.65em;
  color: var(--web4-color-ink);
  font-family: var(--web4-font-heading);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

p {
  margin-block: 0 1.25em;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

figure {
  margin: 0;
}

blockquote {
  margin: 2rem 0;
  padding: 0.35rem 0 0.35rem 1.5rem;
  border-left: 4px solid var(--web4-color-primary);
  color: var(--web4-color-slate);
  font-size: 1.15rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--web4-color-line);
  margin-block: 2.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.8rem;
  border: 1px solid var(--web4-color-line);
  text-align: left;
}

.web4-container,
.web4-content {
  width: min(100% - (2 * var(--web4-gutter)), var(--web4-container));
  margin-inline: auto;
}

.web4-content,
.web4-container--narrow {
  width: min(100% - (2 * var(--web4-gutter)), var(--web4-content));
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  z-index: 100000;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.75rem 1rem;
  background: var(--web4-color-surface);
  color: var(--web4-color-ink);
  box-shadow: var(--web4-shadow-soft);
  font-weight: 800;
  white-space: normal;
}

.button,
.wp-element-button,
.wp-block-button__link,
button.search-submit,
input[type="submit"] {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--web4-color-primary);
  border-radius: var(--web4-radius-pill);
  background: var(--web4-color-primary);
  color: var(--web4-color-button-text);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
button.search-submit:hover,
input[type="submit"]:hover {
  border-color: var(--web4-color-navy);
  background: var(--web4-color-navy);
  color: var(--web4-color-on-dark);
  transform: translateY(-1px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--web4-color-primary);
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--web4-color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-topbar {
  background: var(--web4-color-navy);
  color: var(--web4-color-on-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-topbar a {
  color: inherit;
}

.site-topbar__inner,
.site-topbar__details {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-topbar__inner {
  min-height: 38px;
  justify-content: space-between;
}

.site-topbar__action {
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--web4-color-line);
  background: var(--web4-color-header-background);
  color: var(--web4-color-header-text);
}

.site-header__inner {
  display: grid;
  min-height: 84px;
  grid-template-columns: minmax(150px, auto) 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.site-header__menu {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-self: end;
}

.site-header__action {
  justify-self: end;
}

.site-branding {
  min-width: 0;
}

.site-branding__link,
.site-footer__logo {
  display: inline-flex;
  max-width: min(280px, 55vw);
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.site-logo {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

.site-branding__name,
.site-footer__name {
  color: inherit;
  font-family: var(--web4-font-heading);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.1;
}

.primary-navigation {
  justify-self: end;
}

.primary-menu,
.primary-menu ul,
.footer-menu,
.social-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  display: block;
  padding-block: 0.75rem;
  color: var(--web4-color-header-text);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-menu > li > a:hover,
.primary-menu > .current-menu-item > a,
.primary-menu > .current-menu-ancestor > a {
  color: var(--web4-color-primary);
}

.primary-menu .sub-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% - 0.25rem);
  left: -1rem;
  display: none;
  width: max-content;
  min-width: 210px;
  padding: 0.5rem;
  border: 1px solid var(--web4-color-line);
  border-radius: var(--web4-radius-md);
  background: var(--web4-color-surface);
  box-shadow: var(--web4-shadow-soft);
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  display: block;
}

.primary-menu .sub-menu a {
  padding: 0.65rem 0.8rem;
  border-radius: var(--web4-radius-sm);
}

.primary-menu .sub-menu a:hover {
  background: var(--web4-color-mist);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--web4-color-line);
  border-radius: 50%;
  background: transparent;
  color: var(--web4-color-header-text);
}

.menu-toggle__icon {
  display: grid;
  width: 20px;
  gap: 4px;
  margin: auto;
}

.menu-toggle__icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentcolor;
  transition: transform var(--web4-transition), opacity var(--web4-transition);
}

.site-header__cta {
  justify-self: end;
  white-space: nowrap;
}

.web4-layout-button--outline {
  border: 1px solid currentcolor;
  color: inherit;
  background: transparent;
}

.web4-layout-button--link {
  padding-inline: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
}

[data-web4-layout-block] {
  color: var(--web4-block-text, inherit);
  background: var(--web4-block-background, transparent);
}

[data-web4-layout-block][style*="--web4-block-text"] :where(a, h1, h2, h3, h4, h5, h6) {
  color: inherit;
}

.web4-layout-rich-content > :first-child {
  margin-top: 0;
}

.web4-layout-rich-content > :last-child {
  margin-bottom: 0;
}

.site-main {
  min-height: 50vh;
}

.web4-section {
  position: relative;
  scroll-margin-top: 2rem;
}

.web4-section > :first-child {
  margin-top: 0;
}

.web4-section > :last-child {
  margin-bottom: 0;
}

.page-hero {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background: var(--web4-color-mist);
}

.page-hero--compact h1 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
}

.page-hero__content {
  max-width: 720px;
  margin-top: 1.25rem;
  color: var(--web4-color-slate);
  font-size: 1.1rem;
}

.page-hero__grid {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.page-hero--has-image .page-hero__grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.page-hero__copy {
  min-width: 0;
}

.page-hero__media {
  overflow: hidden;
  border-radius: var(--web4-radius-lg);
  background: var(--web4-color-primary-light);
  box-shadow: var(--web4-shadow-soft);
}

.page-hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.entry-content,
.web4-content {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.entry-content > :first-child,
.web4-content > :first-child {
  margin-top: 0;
}

.entry-content > :last-child,
.web4-content > :last-child {
  margin-bottom: 0;
}

.entry-content :where(p, ul, ol),
.single-entry .entry-content :where(p, ul, ol) {
  color: var(--web4-color-slate);
}

.entry-content :where(ul, ol) {
  padding-left: 1.35rem;
}

.entry-content :where(img, .wp-block-image) {
  border-radius: var(--web4-radius-md);
}

.post-listing {
  padding-block: var(--web4-section-space);
}

.blog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--web4-color-line);
  border-radius: var(--web4-radius-md);
  background: var(--web4-color-mist);
}

.blog-tools__search {
  width: min(100%, 430px);
}

.blog-tools .search-form {
  width: 100%;
  margin-top: 0;
}

.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-categories a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--web4-color-line);
  border-radius: var(--web4-radius-pill);
  background: var(--web4-color-surface);
  color: var(--web4-color-ink);
  font-size: 0.85rem;
  font-weight: 750;
  text-decoration: none;
}

.blog-categories a:hover,
.blog-categories a[aria-current="page"] {
  border-color: var(--web4-color-primary);
  background: var(--web4-color-primary);
  color: var(--web4-color-button-text);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--web4-color-line);
  border-radius: var(--web4-radius-lg);
  background: var(--web4-color-surface);
  box-shadow: var(--web4-shadow-soft);
  transition: transform var(--web4-transition), box-shadow var(--web4-transition);
}

.post-card:hover {
  box-shadow: var(--web4-shadow-lifted);
  transform: translateY(-4px);
}

.post-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--web4-color-mist);
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

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

.post-card__body {
  padding: clamp(1.2rem, 2.5vw, 1.75rem);
}

.post-card__meta,
.single-entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  color: var(--web4-color-slate);
  font-size: 0.78rem;
  font-weight: 700;
}

.post-card__meta a {
  color: inherit;
}

.post-card__title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.post-card__excerpt {
  color: var(--web4-color-slate);
}

.post-card__excerpt p {
  margin-bottom: 1rem;
}

.empty-state {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--web4-color-line);
  border-radius: var(--web4-radius-lg);
  background: var(--web4-color-mist);
  text-align: center;
}

.navigation.pagination {
  margin-top: 3rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.nav-links .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--web4-color-line);
  border-radius: var(--web4-radius-pill);
  background: var(--web4-color-surface);
  color: var(--web4-color-ink);
  font-weight: 750;
  text-decoration: none;
}

.nav-links .page-numbers.current,
.nav-links a.page-numbers:hover {
  border-color: var(--web4-color-primary);
  background: var(--web4-color-primary);
  color: var(--web4-color-button-text);
}

.single-entry__header {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: var(--web4-color-mist);
  text-align: center;
}

.single-entry__header h1 {
  font-size: clamp(2.35rem, 6vw, 5rem);
}

.single-entry__meta {
  justify-content: center;
}

.single-entry__lead {
  margin: 1.25rem auto 0;
  color: var(--web4-color-slate);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.single-entry__featured {
  overflow: hidden;
  margin-top: clamp(2rem, 5vw, 4rem);
  border-radius: var(--web4-radius-lg);
}

.single-entry__featured img {
  width: 100%;
}

.single-entry__main > .entry-content {
  padding-block: 0;
}

.single-entry__main .entry-content :where(h2, h3) {
  scroll-margin-top: 2rem;
}

.post-toc {
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--web4-color-line);
  border-radius: var(--web4-radius-md);
  background: var(--web4-color-mist);
}

.post-toc__title {
  margin-bottom: 1rem;
  font-family: var(--web4-font-body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.post-toc ol {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.35rem;
  margin: 0;
}

.post-toc__level-3 {
  margin-left: 1rem;
}

.post-toc a {
  color: var(--web4-color-ink);
  font-weight: 700;
  text-decoration: none;
}

.post-toc a:hover {
  color: var(--web4-color-primary);
  text-decoration: underline;
}

.single-entry__footer {
  padding-top: 0;
  border-top: 1px solid var(--web4-color-line);
}

.author-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: 1.5rem;
  border: 1px solid var(--web4-color-line);
  border-radius: var(--web4-radius-md);
  background: var(--web4-color-mist);
}

.author-box--no-avatar {
  grid-template-columns: 1fr;
}

.author-box__avatar img {
  border-radius: 50%;
}

.author-box .eyebrow {
  margin-bottom: 0.35rem;
}

.author-box__name {
  margin-bottom: 0.6rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.author-box__bio p {
  margin-bottom: 0.75rem;
  color: var(--web4-color-slate);
}

.related-posts {
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--web4-color-line);
}

.related-posts > h2 {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.blog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(3rem, 7vw, 6rem);
  border-radius: var(--web4-radius-lg);
  background: var(--web4-color-navy);
  box-shadow: var(--web4-shadow-lifted);
  color: var(--web4-color-on-dark);
}

.blog-cta h2,
.blog-cta .eyebrow {
  color: var(--web4-color-on-dark);
}

.blog-cta h2 {
  max-width: 720px;
}

.blog-cta p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  opacity: 0.82;
}

.blog-cta .button {
  flex: none;
}

.tag-links {
  padding-top: 1.5rem;
  color: var(--web4-color-slate);
}

.tag-links > span {
  color: var(--web4-color-ink);
  font-weight: 800;
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0;
}

.post-navigation > div:last-child {
  text-align: right;
}

.post-navigation a {
  font-weight: 750;
}

.page-links {
  margin-top: 2rem;
  font-weight: 800;
}

.search-form {
  display: flex;
  width: min(100%, 620px);
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.search-form label {
  flex: 1;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--web4-color-line);
  border-radius: var(--web4-radius-sm);
  background: var(--web4-color-surface);
  color: var(--web4-color-ink);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

label {
  font-weight: 700;
}

.comment-list {
  padding: 0;
  list-style: none;
}

.comment-list .children {
  list-style: none;
}

.comment-body {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--web4-color-line);
}

.comment-meta {
  margin-bottom: 0.75rem;
}

.error-404 {
  display: flex;
  min-height: 62vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: var(--web4-section-space);
  text-align: center;
}

.error-404__code {
  margin: 0;
  color: var(--web4-color-primary-light);
  font-family: var(--web4-font-heading);
  font-size: clamp(6rem, 20vw, 13rem);
  font-weight: 800;
  line-height: 0.8;
}

.error-404 .search-form {
  margin-bottom: 1.5rem;
}

.site-footer {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  background: var(--web4-color-footer-background);
  color: var(--web4-color-footer-text);
}

.site-footer a,
.site-footer h2 {
  color: inherit;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) repeat(4, minmax(130px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}

.site-footer__brand p {
  max-width: 410px;
  margin-top: 1.25rem;
  opacity: 0.78;
}

.site-footer__logo {
  max-width: 240px;
}

.site-footer .site-logo {
  max-height: 68px;
  filter: brightness(0) invert(1);
}

.site-footer__badge {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border: 1px solid color-mix(in srgb, currentcolor 24%, transparent);
  border-radius: var(--web4-radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
}

.site-footer__title {
  margin-bottom: 1rem;
  font-family: var(--web4-font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-menu,
.site-footer address,
.social-links {
  display: grid;
  gap: 0.65rem;
}

.site-footer address {
  font-style: normal;
}

.site-footer address span {
  white-space: normal;
}

.site-footer :where(.footer-menu, address, .social-links) a {
  opacity: 0.78;
  text-decoration: none;
}

.site-footer :where(.footer-menu, address, .social-links) a:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-footer__qr-image {
  width: min(150px, 100%);
  padding: 0.45rem;
  border-radius: var(--web4-radius-sm);
  background: var(--web4-color-surface);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid color-mix(in srgb, currentcolor 16%, transparent);
  font-size: 0.78rem;
}

.site-footer__bottom p {
  margin: 0;
  opacity: 0.7;
}

.site-footer__secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 3rem;
  padding-top: 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid color-mix(in srgb, currentcolor 16%, transparent);
}

.site-footer__secondary .footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.site-footer__callout .button {
  margin-top: 1rem;
}

.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--web4-color-whatsapp);
  box-shadow: var(--web4-shadow-soft);
  color: var(--web4-color-button-text);
  text-decoration: none;
}

.whatsapp-float:hover {
  color: var(--web4-color-button-text);
  transform: translateY(-3px);
}

.whatsapp-float svg {
  width: 30px;
  fill: currentcolor;
}

.alignwide {
  width: min(100vw - (2 * var(--web4-gutter)), var(--web4-container));
  max-width: none;
  margin-right: calc(50% - min(50vw - var(--web4-gutter), var(--web4-container) / 2));
  margin-left: calc(50% - min(50vw - var(--web4-gutter), var(--web4-container) / 2));
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

.wp-caption,
.gallery-caption {
  max-width: 100%;
  color: var(--web4-color-slate);
  font-size: 0.85rem;
}

.wp-caption-text {
  margin-top: 0.5rem;
}

.sticky {
  position: relative;
}

.bypostauthor {
  position: relative;
}

@media (max-width: 1020px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-hero--has-image .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-hero__media {
    max-width: 680px;
  }

  .blog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-categories ul {
    justify-content: flex-start;
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .menu-toggle {
    display: block;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    padding: 0.75rem var(--web4-gutter) 1.25rem;
    border-top: 1px solid var(--web4-color-line);
    background: var(--web4-color-header-background);
    box-shadow: var(--web4-shadow-soft);
  }

  .site-header.is-menu-open .primary-navigation {
    display: block;
  }

  .primary-menu {
    display: block;
  }

  .primary-menu a {
    padding: 0.75rem;
    border-radius: var(--web4-radius-sm);
  }

  .primary-menu a:hover {
    background: var(--web4-color-mist);
  }

  .primary-menu .sub-menu {
    position: static;
    display: block;
    width: auto;
    padding: 0 0 0 1rem;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header.is-menu-open .menu-toggle__icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.is-menu-open .menu-toggle__icon span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .menu-toggle__icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (max-width: 680px) {
  .site-topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    padding-block: 0.6rem;
  }

  .site-topbar__details {
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
  }

  .site-header__inner {
    min-height: 72px;
  }

  .site-header__cta {
    display: none;
  }

  .posts-grid,
  .site-footer__grid,
  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-navigation > div:last-child {
    text-align: left;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .author-box {
    grid-template-columns: 1fr;
  }

  .blog-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

@media print {
  .site-topbar,
  .site-header,
  .site-footer,
  .whatsapp-float,
  .blog-tools,
  .blog-cta,
  .related-posts,
  .post-navigation,
  .navigation.pagination {
    display: none !important;
  }

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

  a {
    color: inherit;
    text-decoration: underline;
  }
}
