#toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #222;
  color: white;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all .4s ease;
  z-index: 99999;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

#toast.success { background: #2e7d32; }
#toast.error   { background: #c62828; }

/* Disable theme custom cursor (circle effects) */
.mouseCursor,
.cursor-outer,
.cursor-inner {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Fix: remove desktop gap above breadcrumb background */
.breadcrumb-wrapper {
  margin-top: 0 !important;
}

/* Fix: remove desktop gap above hero background (index hero uses .hero-1) */
.hero-1 {
  margin-top: 0 !important;
}

/* Fix: tighten header top bar so hero sits right under it */
.header-top-section {
  margin-bottom: 0 !important;
}

.header-top-wrapper {
  padding: 6px 0 !important;
}

/* Header menus: prevent line breaks in menu items */
.header-main .main-menu ul li > a,
.mean-container .mean-nav ul li > a {
  white-space: nowrap;
}

/* If a menu item is too long, avoid breaking layout */
.header-main .main-menu ul li > a {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* About: Mission / Values / Quote harmony */
.about-mission-section {
  position: relative;
  background: var(--white);
}

/* Service details sections: tighter vertical spacing */
.service-details-section.section-padding,
.service-details-section.fix.section-padding {
  padding-top: 50px !important;
  padding-bottom: 75px !important;
}

.about-mission-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(207, 22, 12, 0.10), transparent 60%),
    radial-gradient(700px 360px at 90% 15%, rgba(11, 13, 23, 0.07), transparent 55%);
}

.about-mission-section .container {
  position: relative;
  z-index: 1;
}

.about-mission-lead {
  color: rgba(11, 13, 23, 0.78);
  font-size: 16px;
  line-height: 1.7;
  max-width: 48ch;
}

.about-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 991px) {
  .about-mission-grid {
    grid-template-columns: 1fr;
  }
}

.about-mission-card {
  position: relative;
  background: var(--bg);
  border: 1px solid rgba(11, 13, 23, 0.06);
  border-radius: 16px;
  padding: 22px 20px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.about-mission-card__num {
  position: absolute;
  top: 12px;
  right: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 38px;
  color: rgba(11, 13, 23, 0.12);
}

.about-mission-card h4 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--header);
}

.about-mission-card p {
  margin: 0;
  color: rgba(11, 13, 23, 0.72);
  line-height: 1.6;
}

.about-mission-card p + p {
  margin-top: 10px;
}

.about-mission-card:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 22, 12, 0.22);
  box-shadow: 0 18px 45px rgba(11, 13, 23, 0.10);
}

.values-premium-section {
  background-color: #f9f9f9;
}

.values-premium-section__lead {
  max-width: 62ch;
  margin: 14px auto 0;
  color: rgba(11, 13, 23, 0.72);
}

/* Premium cards (moved from inline styles in about.html) */
.premium-card {
  background: var(--white);
  border-radius: 18px;
  padding: 38px 28px;
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(11, 13, 23, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.premium-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--theme), #ff6b4a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 13, 23, 0.12);
}

.premium-card:hover::before {
  transform: scaleX(1);
}

.premium-card h3 {
  color: var(--header);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.premium-card p {
  color: rgba(11, 13, 23, 0.72);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.premium-card p:last-child {
  margin-bottom: 0;
}

.highlight-red {
  color: var(--theme);
  font-weight: 800;
}

.bg-number {
  position: absolute;
  bottom: -18px;
  right: -10px;
  font-size: 92px;
  font-weight: 900;
  color: rgba(11, 13, 23, 0.05);
  z-index: 0;
  line-height: 1;
  transition: transform 220ms ease, color 220ms ease;
  user-select: none;
}

.premium-card:hover .bg-number {
  color: rgba(207, 22, 12, 0.06);
  transform: scale(1.06);
}

.card-icon-top {
  font-size: 28px;
  color: var(--theme);
  margin-bottom: 18px;
  display: block;
}

.about-quote-section {
  padding: 80px 0;
  background: var(--white);
}

.about-quote {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid rgba(11, 13, 23, 0.06);
  border-radius: 20px;
  padding: 34px 34px 28px;
}

.about-quote__icon {
  color: var(--theme);
  font-size: 44px;
  margin-bottom: 18px;
}

.about-quote__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(11, 13, 23, 0.80);
}

.about-quote__author {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.about-quote__avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}

.about-quote__name {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--header);
}

.about-quote__role {
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(11, 13, 23, 0.65);
}

/* Fix: service section background should reach full width on wide screens */
@media (min-width: 1900px) {
  .service-section::before {
    left: 0 !important;
    width: 100% !important;
  }
}

/* Fix: equal-height service cards (use internal space, no card growth) */
.service-section .service-slider .swiper-wrapper {
  align-items: stretch;
}

.service-section .service-slider .swiper-slide {
  height: auto;
  display: flex;
}

.service-section .service-box-item {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.service-section .service-box-item .content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.service-section .service-box-item .content p {
  flex: 1 1 auto;
  overflow: hidden;
  padding-bottom: 18px; /* keep minimum breathing room above button */
}

.service-section .service-box-item .content .theme-btn {
  margin-top: auto !important;
}

/* Fix: services grid (servicos.html) - align CTA buttons across cards */
.service-section-inner .service-box-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-section-inner .service-box-item .content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 18px;
}

.service-section-inner .service-box-item .content p {
  flex: 1 1 auto;
}

.service-section-inner .service-box-item .content .theme-btn {
  margin-top: auto !important;
}

/* Fix: brand logos should always fit inside the reserved box */
.brand-box-1 .brand-img-1 img {
  max-width: 84%;
  max-height: 72%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Fix: service list (service.html) - keep h3 readable on orange hover */
.global-service-box .content h3 a {
  color: rgba(255, 255, 255, 0.8) !important; /* match .global-service-box .text default */
}

.global-service-box .content h3 a:hover {
  color: var(--white) !important;
}

.global-service-box:hover .content h3 a {
  color: var(--white) !important;
}

/* Ensure title sits above the orange ::before overlay (service.html uses .content directly) */
.global-service-box > .content {
  position: relative;
  z-index: 9;
}

/* ================================
   Hero: "Alcance global" badge
   ================================ */
.video-hero .ratting-image {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}

.video-hero .global-reach {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 0;
}

.video-hero .global-reach__text {
  display: flex;
  flex-direction: column;
}

.video-hero .global-reach__title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(21px, 2.8vw, 44px);
  line-height: 1.02;
}

.video-hero .global-reach__subtitle {
  margin: 9px 0 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(12px, 1.6vw, 22px);
  line-height: 1.15;
}

.video-hero .global-reach__globe {
  flex: 0 0 auto;
  width: clamp(44px, 7.5vw, 96px);
  height: auto;
  opacity: 0.95;
}

@media (max-width: 575px) {
  .video-hero .global-reach {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .video-hero .global-reach__subtitle {
    margin-top: 10px;
  }

  /* Force light appearance on mobile */
  .video-hero .global-reach__title,
  .video-hero .global-reach__subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
  }

  /* If the globe asset is dark, invert it on mobile */
  .video-hero .global-reach__globe {
    filter: brightness(0) invert(1);
  }
}

/* ================================
   Cases (cases-de-sucesso.html)
   ================================ */
.cases-success-section .project-card-items-inner {
  margin-bottom: 6px;
}

/* The theme hides .tp-anim-img (opacity: 0) waiting for a clip animation.
   For the cases grid we want images always visible. */
.cases-success-section .project-card-items-inner .project-image.tp-clip-anim .tp-anim-img {
  opacity: 1 !important;
}

.cases-success-section .project-card-items-inner .project-image {
  height: clamp(240px, 26vw, 420px);
}

/* The theme sets .project-content as a row flex container (space-between),
   but this page uses multiple direct children (tag/title/text/cta).
   Make it a clean vertical stack. */
.cases-success-section .project-card-items-inner .project-content {
  margin-top: 18px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}

.cases-success-section .project-card-items-inner .project-content .sub-title {
  margin: 0 !important;
  letter-spacing: 0.08em;
}

.cases-success-section .project-card-items-inner .project-content h3 {
  margin: 0;
  line-height: 1.1;
}

.cases-success-section .project-card-items-inner .project-content p {
  margin: 0 !important;
  max-width: 62ch;
  color: rgba(11, 13, 23, 0.72) !important;
}

.cases-success-section .case-cta {
  margin-top: 6px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(207, 22, 12, 0.08);
  border: 1px solid rgba(207, 22, 12, 0.14);
  color: rgba(11, 13, 23, 0.92) !important;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cases-success-section .case-cta i {
  color: var(--theme) !important;
  transition: transform 180ms ease, color 180ms ease;
}

.cases-success-section .case-cta:hover {
  background: var(--theme);
  border-color: var(--theme);
  color: #fff !important;
  transform: translateY(-1px);
}

.cases-success-section .case-cta:hover i {
  color: #fff !important;
  transform: translateX(2px);
}

@media (max-width: 767px) {
  .cases-success-section .project-card-items-inner .project-image {
    height: 240px;
  }
}

/* CTA (cases-de-sucesso.html): avoid double "section-padding" whitespace */
.cases-success-cta {
  background: transparent !important;
  padding-top: 60px;
  padding-bottom: 60px;
}

@media (max-width: 767px) {
  .cases-success-cta {
    padding-top: 44px;
    padding-bottom: 44px;
  }
}
