/*
Theme Name: Hyper
Theme URI: https://www.hypercash.com.br
Author: Hyper
Description: Blog da Hyper com a identidade visual do site.
Version: 1.3.2
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.2
Text Domain: hypercash
*/

@font-face {
  font-family: "Oakes Grotesk";
  src: url("assets/fonts/oakes-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Oakes Grotesk";
  src: url("assets/fonts/oakes-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Oakes Grotesk";
  src: url("assets/fonts/oakes-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Oakes Grotesk";
  src: url("assets/fonts/oakes-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Switzer;
  src: url("assets/fonts/switzer-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --green: #4dac3d;
  --green-hover: #409333;
  --heading: #22393c;
  --ink: #050606;
  --muted: #92a5a5;
  --line: #dbe0e0;
  --accent: #60878a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --inner: 1280px;
  color: var(--ink);
  background: #fff;
  font-family: "Oakes Grotesk", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; color: #2b3535; }
html.lenis { scroll-behavior: auto !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, p { margin: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid #128c99; outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  z-index: 100;
  padding: 12px 20px;
  background: #fff;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
body.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 6px 24px #05060608; }
.nav-shell {
  height: 79px;
  width: min(var(--inner), calc(100% - 64px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand-group { display: flex; align-items: center; gap: 48px; min-width: 0; }
.brand img { width: 101px; height: 32px; }
.desktop-nav { display: flex; align-items: center; gap: 24px; }
.nav-item {
  position: relative;
  padding: 12px 0;
  color: #2b3535;
  font-family: "Oakes Grotesk", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-item:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-item:hover, .nav-item.is-selected { color: #57c045; }
.nav-item:hover:after, .nav-item.is-selected:after { transform: scaleX(1); }
.header-actions, .desktop-header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle, .mobile-nav { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.25s, box-shadow 0.3s, transform 0.3s var(--ease), border-color 0.25s;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--green); color: #fff; border: 1px solid var(--green); }
.button--primary:hover { background: var(--green-hover); border-color: var(--green-hover); box-shadow: 0 5px 16px #4dac3d25; }
.button--outline { background: #fff; border: 1px solid var(--line); }
.button--outline:hover { background: #f5faf4; border-color: #b6ccb1; }
.button--small { min-height: 36px; padding: 0 16px; font-size: 14px; }

.blog-hero, .article, .post-grid, .post-pager, .empty-state {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-inline: 80px;
}
.blog-hero { padding-block: 72px 40px; text-align: center; }
.eyebrow {
  margin-bottom: 16px;
  color: #128c99;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.36px;
  text-transform: uppercase;
}
.blog-hero h1, .article h1, .empty-state h2, .contact-band h2 {
  font-family: Switzer, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.32px;
}
.blog-hero h1, .article h1, .empty-state h2 { color: var(--heading); }
.blog-hero h1 { font-size: 56px; line-height: 1.05; }
.blog-hero p { max-width: 560px; margin: 16px auto 0; color: #2b3535; font-size: 18px; line-height: 1.4; }
.blog-hero .button { margin-top: 28px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 48px;
}
.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 0.7px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.post-card-media { display: block; aspect-ratio: 3 / 2; background: #f1f2f2; }
.post-card-media img, .post-card-fallback { width: 100%; height: 100%; object-fit: cover; }
.post-card-fallback {
  display: block;
  background:
    radial-gradient(circle at 20% 20%, #d7f3cf, transparent 42%),
    linear-gradient(160deg, #f7fbf6, #e7eef0);
}
.post-card-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.post-card time, .article time { color: var(--muted); font-size: 14px; }
.post-card h2 { font-family: Switzer, Arial, sans-serif; font-size: 24px; font-weight: 500; line-height: 1.15; letter-spacing: -0.24px; }
.post-card h2 a { color: var(--heading); text-decoration: none; }
.post-card p { color: #2b3535; font-size: 16px; line-height: 1.4; }
.more-link { color: var(--green); font-weight: 600; text-decoration: none; }
.more-link:hover { color: var(--green-hover); }

.post-pager { padding-bottom: 80px; }
.post-pager .nav-links { display: flex; justify-content: center; gap: 8px; }
.post-pager a, .post-pager span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--heading);
  text-decoration: none;
}
.post-pager a { border: 1px solid var(--line); }
.post-pager .current { background: var(--green); color: #fff; }

.empty-state { padding-block: 24px 96px; text-align: center; }
.empty-state h2 { font-size: 32px; }
.empty-state p { margin-top: 12px; color: #2b3535; }

.article { padding-block: 64px 96px; }
.back-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.article h1 { margin-top: 16px; font-size: 48px; line-height: 1.1; }
.article time { display: block; margin-top: 16px; }
.article-cover { margin: 32px 0 0; overflow: hidden; border-radius: 12px; }
.entry-content { margin-top: 32px; color: #2b3535; font-size: 18px; line-height: 1.6; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 {
  font-family: Switzer, Arial, sans-serif;
  color: var(--heading);
  font-weight: 500;
  line-height: 1.2;
}
.entry-content a { color: #128c99; }
.entry-content img { border-radius: 12px; }

.contact-band { background: #091b1b; color: #fff; }
.contact-inner {
  width: min(1440px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding: 80px;
  border-inline: 0.7px solid #2b3535;
}
.contact-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.contact-band h2 { max-width: none; margin: 0; font-size: 32px; line-height: 1.1; color: #fff; }
.contact-band h2 span { color: #adb7b8; }
.contact-band dl { display: flex; gap: 80px; margin: 0; padding: 0; }
.contact-band dt {
  margin: 0 0 24px;
  font-family: Switzer, Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}
.contact-band dd {
  max-width: none;
  margin: 0;
  color: #92a5a5;
  font-size: 16px;
  white-space: nowrap;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.site-footer { background: #fff; border-block: 0.7px solid #dbe0e0; color: #0009; }
.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1440px;
  margin: auto;
  gap: 0;
  padding: 0;
  border-inline: 0.7px solid #dbe0e0;
}
.footer-columns { display: contents; }
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-height: 222px;
  padding: 32px;
  border-right: 0.7px solid #cdd4d4;
  border-bottom: 0.7px solid #cdd4d4;
}
.footer-column:last-child { border-right: 0; }
.footer-column h3 { margin: 0; color: #000; font-size: 20px; font-weight: 600; line-height: 1; letter-spacing: -0.2px; }
.footer-column-links { display: flex; flex-direction: column; gap: 16px; }
.footer-column-links a {
  display: block;
  padding: 0;
  color: #0009;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}
.footer-column-links a:hover { color: var(--green); }
.footer-trust, .footer-bottom { grid-column: 1 / -1; padding: 32px; }
.footer-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 0.7px solid #cdd4d4;
}
.social-links { display: flex; gap: 8px; }
.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  background: none;
}
.social-links a.footer-linkedin { background: linear-gradient(#0b65bc, #0e66be); border: 0.4px solid #fff; }
.social-links img, .footer-badges img { display: block; max-width: none; }
.footer-badges { display: flex; align-items: center; gap: 24px; }
.footer-badges > img { width: 25px; height: 32px; object-fit: cover; }
.footer-badges > span { position: relative; display: block; width: 81px; height: 32px; overflow: hidden; }
.footer-badges > span > img { position: absolute; width: 145.78%; height: 250%; left: -22.27%; top: -75%; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-company { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.footer-company p { font-size: 16px; letter-spacing: -0.16px; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.footer-copyright { font-family: Switzer, Arial, sans-serif; line-height: 1.1; color: #000; }
.footer-company-details { line-height: 1.4; color: #8e9c9c; }
.footer-symbol { position: relative; display: block; width: 39px; height: 40px; flex: none; }
.footer-symbol img { display: block; max-width: none; transform: scale(0.625); transform-origin: 0 0; }

@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desktop-nav { display: none; }
  .desktop-header-actions { display: none; }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .site-header.is-open .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 32px 28px;
  }
  .mobile-nav .nav-item { font-size: 18px; }
  .nav-brand-group { gap: 16px; }
}
@media (max-width: 1440px) and (min-width: 1201px) {
  .blog-hero, .article, .post-grid, .post-pager, .empty-state { padding-inline: 64px; }
}
@media (max-width: 1240px) and (min-width: 1201px) {
  .blog-hero, .article, .post-grid, .post-pager, .empty-state { padding-inline: 48px; }
}
@media (max-width: 1200px) {
  .blog-hero, .article, .post-grid, .post-pager, .empty-state { padding-inline: 24px; }
}
@media (max-width: 720px) {
  .nav-shell { width: min(100% - 48px, 1280px); }
  .blog-hero { padding-top: 48px; }
  .blog-hero h1, .article h1 { font-size: 36px; }
  .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1440px) {
  .contact-inner, .footer-inner { border-inline: 0; }
}
@media (max-width: 1440px) and (min-width: 1201px) {
  .contact-inner { padding: 64px; }
}
@media (max-width: 1240px) and (min-width: 1201px) {
  .contact-inner { padding: 64px 48px; gap: 32px; }
  .contact-band dl { gap: 32px; }
  .contact-band dd { max-width: 180px; white-space: normal; }
}
@media (max-width: 1200px) {
  .contact-inner { padding: 60px 24px; gap: 32px; }
  .contact-copy { gap: 24px; }
  .contact-band dl { gap: 40px; }
  .contact-band dt { font-size: 24px; margin-bottom: 16px; }
  .contact-band dd { font-size: 14px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-column:nth-child(2) { border-right: 0; }
  .footer-column:last-child { border-right: 0.7px solid #cdd4d4; }
  .footer-trust { grid-column: auto; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .contact-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact-copy { display: contents; }
  .contact-band h2 { grid-area: 1 / 1; font-size: 24px; letter-spacing: -0.24px; }
  .contact-band dl { grid-area: 2 / 1; gap: clamp(16px, calc(100% - 310px), 40px); }
  .contact-band dl > div:first-child { flex: none; }
  .contact-band dl > div:last-child { min-width: 0; }
  .contact-band dd { white-space: normal; }
  .contact-copy .button { grid-area: 3 / 1; width: 100%; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-column { min-height: 0; padding: 24px; border-right: 0; }
  .footer-trust, .footer-bottom { padding: 24px; }
  .footer-bottom { gap: 16px; }
  .footer-company p { font-size: 14px; letter-spacing: -0.14px; }
  .footer-symbol { width: 31px; height: 32px; }
  .footer-symbol img { transform: scale(0.5); }
}
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
