/*
Theme Name: Redfox
Theme URI: https://allenati.com.br
Author: Gustavo Lipi
Author URI: https://allenati.com.br
Description: Tema WordPress custom para o projeto Redfox.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: redfox
Tags: custom-background, custom-logo, custom-menu, featured-images, translation-ready
Author Email: gustavolipi@gmail.com
Author Phone: (19) 999225-7508
*/

:root {
  --bg: #07080b;
  --bg-soft: #15161a;
  --surface: #1a1b1f;
  --surface-2: #26272b;
  --text: #ffffff;
  --muted: #aab7cc;
  --ink: #05070c;
  --red: #c10007;
  --red-2: #c10007;
  --border: rgba(255, 255, 255, 0.12);
  --border-dark: rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --radius-lg: 26px;
  --max: 964px;
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

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

svg {
  display: block;
}

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

.wrapper {
  width: min(var(--max), calc(100% - 72px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #17171b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  width: 195px;
  min-width: 195px;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.main-navigation__list {
  display: flex;
  align-items: center;
  gap: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 12px;
  background: var(--red);
  cursor: pointer;
}

.nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-section {
  position: relative;
  padding: 96px 0 68px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 40%, rgba(237, 7, 17, 0.18), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(237, 7, 17, 0.22), transparent 34%),
    linear-gradient(90deg, #050609 0%, #07080b 56%, #210207 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 424px);
  gap: 86px;
  align-items: start;
}

.hero-badge {
  width: fit-content;
  margin: 0 0 45px;
  padding: 11px 18px;
  color: #ff343d;
  background: rgba(237, 7, 17, 0.08);
  border: 1px solid rgba(237, 7, 17, 0.44);
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 700;
}

.display-title,
.section-heading h2,
.solution-card h3,
.why-cta p,
.hero-form h2,
.number-item strong,
.faq-item__button,
.contact-form button,
.hero-form button,
.why-cta a {
  font-family: "Exo 2", sans-serif;
  letter-spacing: 0;
  font-weight: 950;
}

.display-title {
  max-width: 590px;
  margin: 0;
  color: #fff;
  font-size: 2.95rem;
  line-height: 1.31;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 455px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 1.28rem;
  line-height: 1.58;
}

.hero-form {
  padding: 32px 30px 28px;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.2);
}

.hero-form h2 {
  margin: 0 0 20px;
  color: #02050a;
  text-align: center;
  font-size: 1.38rem;
  font-weight: 950;
}

.hero-form input,
.hero-form textarea {
  width: 100%;
  min-height: 40px;
  margin-bottom: 24px;
  padding: 0 16px;
  color: #243247;
  background: #f9fafc;
  border: 1px solid #ced5df;
  border-radius: 13px;
  outline: none;
}

.hero-form textarea {
  min-height: 73px;
  padding-top: 14px;
  resize: vertical;
}

.hero-form input:focus,
.hero-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(237, 7, 17, 0.13);
}

.hero-form button,
.contact-form button,
.why-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  width: 100%;
  color: #fff;
  background: var(--red);
  border-radius: 12px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 13px 26px rgba(237, 7, 17, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-form button:hover,
.contact-form button:hover,
.why-cta a:hover {
  background: var(--red-2);
  transform: translateY(-2px);
}

.hero-form small {
  display: block;
  margin-top: 12px;
  color: #627087;
  text-align: center;
  font-size: 0.68rem;
}

.form-note {
  display: block;
  margin-top: 10px;
  font-size: 0.88rem;
}

.form-note:empty {
  display: none;
}

.hero-form .form-note {
  margin-top: 0;
}

.hero-form button {
  font-size: 0.82rem;
}

.trust-strip {
  margin-top: 76px;
}

.trust-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.trust-strip p {
  margin: 48px 0 30px;
  color: #8392af;
  text-align: center;
  font-size: 0.88rem;
}

.trust-logos {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.24);
}

.trust-logos__track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: trust-marquee 60s linear infinite;
  will-change: transform;
}

.trust-logos__group {
  display: flex;
  align-items: center;
  gap: 92px;
  padding-right: 92px;
  padding-left: 108px;
}

.trust-logos span {
  min-width: 130px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.34);
  font-family: "Exo 2", sans-serif;
  font-size: 1.12rem;
  font-weight: 950;
  text-align: center;
  white-space: nowrap;
}

@keyframes trust-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.numbers-section {
  padding: 82px 0;
  background: #17181c;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  text-align: center;
}

.number-item strong {
  display: block;
  color: var(--red-2);
  font-size: 3.05rem;
  line-height: 1;
  font-weight: 950;
}

.number-item span {
  display: block;
  margin-top: 12px;
  color: #a8bbd5;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solutions-section,
.faq-section {
  color: var(--ink);
  background: #fff;
}

.solutions-section {
  padding: 95px 0 112px;
}

.section-heading--center {
  max-width: 780px;
  margin: 0 auto 62px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #02050a;
  font-size: 3rem;
  line-height: 1.12;
}

.section-heading h2 span {
  color: var(--red-2);
}

.section-heading p {
  margin: 18px 0 0;
  color: #05070c;
  font-size: 1.22rem;
  line-height: 1.48;
}

.solutions-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  max-width: 958px;
  margin: 0 auto;
}

.solution-card {
  min-height: 296px;
  padding: 33px;
  color: #fff;
  background: #17181c;
  border: 1px solid transparent;
  border-radius: 14px;
}

.solution-card--featured {
  border-color: rgba(237, 7, 17, 0.76);
}

.solution-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--red);
  border-radius: 15px;
}

.solution-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.solution-icon i {
  font-size: 1.55rem;
  line-height: 1;
}

.solution-icon__image {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.solution-card h3 {
  margin: 26px 0 16px;
  font-size: 1.56rem;
  line-height: 1.2;
}

.solution-card p {
  margin: 0;
  color: #b4c5dd;
  font-size: 1rem;
  line-height: 1.65;
}

.why-section {
  padding: 92px 0 104px;
  background: #07080b;
}

.why-section .section-heading h2 {
  color: #fff;
  font-size: 3.05rem;
}

.why-section .section-heading h2 span {
  display: block;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
  max-width: 963px;
  margin: 0 auto;
}

.why-card {
  min-height: 98px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  color: #fff;
  background: #27282c;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  line-height: 1.45;
}

.why-card__mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 2px solid var(--red-2);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.why-card__mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--red-2);
  border-bottom: 2px solid var(--red-2);
  transform: rotate(-45deg);
}

.why-card__mark--media {
  border: 0;
  background: var(--red);
}

.why-card__mark--media::after {
  content: none;
}

.why-card__mark--media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-card__text {
  min-width: 0;
}

.why-card__text small {
  display: block;
  margin-top: 4px;
  color: #c1cbe0;
  font-size: 0.86rem;
  line-height: 1.35;
}

.why-cta {
  max-width: 780px;
  margin: 54px auto 0;
  text-align: center;
}

.why-cta p {
  margin: 0 0 36px;
  color: #fff;
  font-size: 1.86rem;
  line-height: 1.15;
}

.why-cta a {
  width: auto;
  min-width: 586px;
  padding: 0 26px;
  font-size: 1.43rem;
  text-transform: none;
}

.faq-section {
  padding: 108px 0 112px;
}

.faq-wrapper {
  max-width: 965px;
}

.faq-section .section-heading {
  margin-bottom: 62px;
}

.faq-section .section-heading p {
  font-size: 1.16rem;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  color: #fff;
  background: #28292d;
  border-radius: 13px;
  overflow: hidden;
}

.faq-item__button {
  width: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 27px;
  color: #fff;
  background: transparent;
  text-align: left;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
}

.faq-item__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--red-2);
  transition: transform 0.2s ease;
}

.faq-item__icon::before {
  width: 10px;
  height: 2px;
  left: 4px;
  top: 8px;
}

.faq-item__icon::after {
  width: 2px;
  height: 10px;
  left: 8px;
  top: 4px;
}

.faq-item.is-open .faq-item__icon::after {
  transform: rotate(90deg);
}

.faq-item__panel {
  padding: 0 27px 24px;
  color: #c1cbe0;
  line-height: 1.65;
}

.faq-item__panel p {
  margin: 0;
}

.contact-section {
  padding: 102px 0 116px;
  background: #07080b;
}

.contact-section .section-heading {
  margin-bottom: 62px;
}

.contact-section .section-heading h2 {
  color: #fff;
}

.contact-section .section-heading p {
  max-width: 555px;
  margin-left: auto;
  margin-right: auto;
  color: #aebbd2;
}

.contact-form {
  max-width: 770px;
  margin: 0 auto;
  padding: 40px;
  background: #1d1e22;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 58px;
  margin-bottom: 24px;
  padding: 0 20px;
  color: #fff;
  background: #2a2b2f;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  outline: none;
}

.contact-form textarea {
  min-height: 130px;
  padding-top: 18px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8491a7;
}

.contact-form button {
  gap: 16px;
  min-height: 60px;
  text-transform: none;
  font-size: 1.05rem;
}

.site-footer {
  position: relative;
  min-height: 347px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: var(--red);
  text-align: center;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 165px;
  background: #050608;
}

.footer-wordmark {
  position: absolute;
  inset: 0 0 auto;
  height: 165px;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.footer-wordmark::before {
  content: "";
  position: absolute;
  top: -13vw;
  left: -31.4vw;
  width: 140vw;
  aspect-ratio: 1382 / 440;
  background: var(--red);
  -webkit-mask: url("assets/img/logo.png") 0 0 / 100% auto no-repeat;
  mask: url("assets/img/logo.png") 0 0 / 100% auto no-repeat;
}

.footer-wordmark img {
  position: absolute;
  top: -13vw;
  left: -31.4vw;
  width: 140vw;
  max-width: none;
  height: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(10%) sepia(99%) saturate(5230%) hue-rotate(352deg) brightness(86%) contrast(116%);
  opacity: 0;
}

.site-footer p {
  position: absolute;
  top: 239px;
  left: 0;
  width: 100%;
  z-index: 2;
  margin: 0;
  font-size: 0.9rem;
}

.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal-on-scroll.is-visible,
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .wrapper {
    width: min(var(--max), calc(100% - 36px));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-form {
    max-width: 520px;
  }

  .solutions-cards,
  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    min-height: 72px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 16px 18px 24px;
    background: #17171b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation__list {
    display: grid;
    gap: 0;
  }

  .main-navigation a {
    display: block;
    padding: 14px 0;
  }

  .hero-section {
    padding: 64px 0 52px;
  }

  .hero-badge {
    margin-bottom: 36px;
  }

  .display-title,
  .section-heading h2,
  .why-section .section-heading h2 {
    font-size: 2.2rem;
  }

  .hero-lead,
  .section-heading p {
    font-size: 1rem;
  }

  .numbers-grid,
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .trust-logos__group {
    gap: 58px;
    padding-right: 58px;
    padding-left: 42px;
  }

  .trust-logos span {
    min-width: 112px;
    font-size: 1rem;
  }

  .numbers-grid {
    gap: 34px;
  }

  .solution-card {
    padding: 26px;
  }

  .why-cta a {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
  }

  .why-cta p {
    font-size: 1.45rem;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: 150px;
    min-width: 150px;
  }

  .display-title {
    font-size: 1.9rem;
  }

  .hero-form {
    padding: 26px 18px 22px;
  }

  .hero-form button {
    font-size: 0.84rem;
  }

  .solutions-section,
  .why-section,
  .faq-section,
  .contact-section {
    padding: 70px 0;
  }

  .faq-item__button {
    min-height: 70px;
    padding: 0 18px;
  }

  .footer-wordmark {
    height: 94px;
  }

  .site-footer::before {
    height: 94px;
  }

  .footer-wordmark::before,
  .footer-wordmark img {
    top: -13vw;
    left: -31.4vw;
    width: 140vw;
  }

  .site-footer {
    min-height: 230px;
  }

  .site-footer p {
    top: 154px;
    padding: 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
