/*
  WDCSFABRES Home Styles
  Theme: Dark #0E0E0E, White text, Accent #E8611D
  Font: Poppins
*/

:root {
  --bg: #020617;
  --panel: #0A0E1E;
  --text: #ffffff;
  --muted: #cfcfcf;
  --accent: #e8611d;
  --accent-600: #cf5419;
  --accent-700: #b54815;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --container: 1180px;
  --nav-h: 120px;
  /* altura da navbar fixa */
  --content-offset: 30px;
  /* respiro desejado abaixo do menu */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 50px;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.page-home {
  padding: 20px;
}

main {
  padding-top: calc(var(--nav-h) + var(--content-offset));
}

/* Evita títulos escondidos ao navegar por âncoras com o mesmo respiro */
.section,
[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--content-offset));
}

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

a {
  color: var(--text);
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  max-width: 760px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: saturate(120%) blur(6px);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
  padding: 10px;
}

.navbar.transparent {
  background: rgba(3, 7, 27, 0.1);
}

.navbar.scrolled {
  background: rgba(3, 7, 27, 0.85);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  line-height: 0;
}

.logo-img {
  height: 120px;
  width: auto;
  display: block;
}

.footer .logo-img {
  height: 120px;
}

.logo-mark {
  display: none;
}

.logo-text {
  display: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.primary-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  opacity: 0.9;
}

.primary-nav a.active {
  color: var(--accent);
}

.primary-nav a:hover {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.socials a {
  opacity: 0.8;
}

.socials a:hover {
  color: var(--accent);
}

/* Fallback para dropdown controlado direto na UL */
.primary-nav ul.open {
  display: flex !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent-700);
}

.btn.primary:hover {
  background: var(--accent-600);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn.small {
  padding: 10px 14px;
  font-size: 0.95rem;
}

.btn.cta {
  background: var(--accent);
  border-color: var(--accent-700);
  padding: 10px 16px;
  font-weight: 600;
}

.btn.active {
  color: var(--accent);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.25rem;
}

/* Hero */
.hero {
  scroll-padding-bottom: 30px;
  padding-bottom: 30px;
}

/* Serviços em Destaque encosta no herói com 30px totais */
#servicos.section {
  padding-top: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 560px;
}

.hero .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-art .mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: radial-gradient(60% 60% at 60% 40%, rgba(232, 97, 29, 0.35), rgba(232, 97, 29, 0.06) 60%, transparent 100%),
    linear-gradient(135deg, #191919, #111);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-art .mockup img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.mockup .dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(0.2px);
  opacity: 0.9;
}

.mockup .dot-1 {
  top: 18%;
  left: 16%;
}

.mockup .dot-2 {
  bottom: 20%;
  right: 22%;
}

.mockup .dot-3 {
  top: 50%;
  left: 60%;
}

/* Cards / Grids */
.grid {
  display: grid;
  gap: 20px;
}

.services {
  grid-template-columns: repeat(4, 1fr);
}

.portfolio {
  grid-template-columns: repeat(3, 1fr);
}

.metrics {
  grid-template-columns: repeat(3, 1fr);
}

.testimonials-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Contact page grid - responsive layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
}

/* About page - Mission, Vision, Values grid */
.about-mvv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

/* About page - Team grid */
.about-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}


.card {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #151515;
  margin-bottom: 12px;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card.img-card {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.card.img-card .thumb {
  margin: 0;
  border: 0;
  border-radius: var(--radius);
}

.card.img-card .thumb img {
  transition: transform .35s ease;
}

.card.img-card:hover .thumb img {
  transform: scale(1.03);
}

.card.img-card .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0) 0%, rgba(14, 14, 14, 0.6) 40%, rgba(14, 14, 14, 0.92) 100%);
}

.card.img-card h3 {
  margin: 0 0 6px;
}

.card.img-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.card.img-card .link {
  color: #fff;
  background: rgba(232, 97, 29, 0.15);
  border: 1px solid rgba(232, 97, 29, 0.35);
  padding: 8px 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Image-only cards: show the full image without overlay */
.card.img-only {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.card.img-only img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card .icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(232, 97, 29, 0.12);
  color: var(--accent);
  border-radius: 12px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 6px 0 8px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
  margin: 0 0 14px;
}

.card .link {
  color: var(--accent);
  font-weight: 500;
}

.proofs {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0) 70%);
}

.metric {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.metric .value {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
}

.metric .label {
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tile {
  display: block;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .2s ease;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.tile .thumb {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(232, 97, 29, 0.28), rgba(232, 97, 29, 0.08)), linear-gradient(135deg, #202020, #131313);
}

.tile .tile-title {
  display: block;
  padding: 14px;
  opacity: 0.9;
}

.tile .kpi {
  color: var(--accent);
  font-weight: 600;
  margin-left: 6px;
}

.tcard {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.tcard .t-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tcard .meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.rating {
  color: #ffb020;
}

.faq details {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.faq details+details {
  margin-top: 12px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  color: var(--muted);
  margin: 8px 0 0;
}

.cta-final {
  padding-top: 20px;
}

.cta-box {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-box h2 {
  margin: 0 0 8px;
}

.cta-box p {
  color: var(--muted);
  margin-bottom: 16px;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: #03071B;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(160px, 1fr));
  gap: 28px;
  padding: 26px 0;
  align-items: flex-start;
}

.footer .brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer .brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer .brand .logo {
  display: inline-flex;
}

.footer .footer-title {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.footer .links ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.footer .links a {
  color: var(--muted);
}

.footer .links a:hover {
  color: var(--accent);
}

.footer .contact {
  color: var(--muted);
  margin: 0;
}

.footer .contact-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer .contact-inline .divider {
  color: rgba(255, 255, 255, 0.3);
}

.footer .contact-inline a {
  color: inherit;
  white-space: nowrap;
}

.footer .contact-inline a:hover {
  color: var(--accent);
}

.footer .tiny {
  color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 12px;
}

.footer .socials-col {
  justify-self: flex-start;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* Footer socials: bigger icons + spacing */
.footer .socials {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  justify-content: flex-start;
}

.footer .socials a {
  font-size: 1.6rem;
  opacity: 0.9;
  color: var(--text);
}

.footer .socials a:hover {
  opacity: 1;
  color: var(--accent);
}

/* Banner de privacidade/cookies fixo no rodapé */
.privacy-banner {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  z-index: 4000;
  background: #020617;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
  color: var(--text);
  font-size: 0.98rem;
  backdrop-filter: blur(16px);
}

.privacy-banner.is-hidden {
  display: none !important;
}

.privacy-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.privacy-banner__text {
  margin: 0;
  flex: 1 1 320px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
}

.privacy-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.privacy-banner__link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.privacy-banner__button {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  min-width: 160px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.privacy-banner__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.privacy-banner__button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.privacy-banner__button--accept {
  background: linear-gradient(135deg, var(--accent), var(--accent-600));
  border-color: var(--accent-700);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232, 97, 29, 0.3);
}

.privacy-banner__button--accept:hover {
  background: linear-gradient(135deg, var(--accent-600), var(--accent-700));
  box-shadow: 0 4px 16px rgba(232, 97, 29, 0.5);
}

.privacy-banner__button--reject {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.privacy-banner__button--reject:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.privacy-banner[data-variant="float"] {
  left: 50%;
  right: auto;
  bottom: 24px;
  top: auto;
  transform: translateX(-50%);
  width: min(1400px, calc(100vw - 32px));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #020617;
}

.privacy-banner[data-variant="float"] .privacy-banner__inner {
  max-width: min(1400px, calc(100vw - 32px));
  padding: 24px 36px;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.privacy-banner[data-variant="float"] .privacy-banner__text {
  flex: 1 1 auto;
  width: auto;
}

.privacy-banner[data-variant="float"] .privacy-banner__actions {
  width: auto;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 0;
}

@media (max-width: 640px) {
  .privacy-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .privacy-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .privacy-banner__button {
    width: 100%;
    text-align: center;
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Animations: reveal on scroll */
[data-animate] {
  transition: opacity .5s ease, transform .5s ease;
}

.js [data-animate] {
  opacity: 0;
  transform: translateY(18px);
}

.js [data-animate].in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero.section {
    padding: 20px 0;
  }

  .hero .actions {
    justify-content: center;
  }

  /* Nav like mobile on tablets */
  .nav-inner {
    height: 120px;
  }

  .logo-img {
    height: 140px;
  }

  .primary-nav {
    margin-left: auto;
  }

  .primary-nav ul {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(3, 7, 27, 0.85);
    backdrop-filter: saturate(120%) blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px 16px;
    display: none;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - var(--nav-h));
    overflow: auto;
    align-items: center;
    text-align: center;
  }

  .primary-nav.open ul {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 2100;
  }

  .nav-right .btn.cta {
    display: none !important;
  }

  .nav-right {
    display: none;
  }

  /* Cores do menu em tablet */
  .primary-nav ul a {
    color: #fff;
    opacity: 1;
  }

  .primary-nav ul a:hover,
  .primary-nav ul a:focus {
    color: var(--accent);
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid,
  .portfolio {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-inner {
    height: 120px;
  }

  .hero.section {
    padding: 20px 0;
  }

  .logo-img {
    height: 110px;
  }

  .primary-nav {
    margin-left: auto;
  }

  .primary-nav ul {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(3, 7, 27, 0.85);
    backdrop-filter: saturate(120%) blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px 16px;
    display: none;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - var(--nav-h));
    overflow: auto;
    align-items: center;
    text-align: center;
  }

  .primary-nav.open ul {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 2100;
  }

  .nav-right .btn.cta {
    display: none !important;
  }

  .nav-right .socials {
    display: none;
  }

  .nav-right {
    display: none;
  }

  /* Cores do menu em mobile */
  .primary-nav ul a {
    color: #fff;
    opacity: 1;
  }

  .primary-nav ul a:hover,
  .primary-nav ul a:focus {
    color: var(--accent);
  }

  .services {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .testimonials-grid,
  .portfolio {
    grid-template-columns: 1fr;
  }

  /* Contact page - single column on mobile */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer .brand-head {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Footer links - left align for mobile */
  .footer .links {
    text-align: left;
  }

  .footer .links ul {
    padding: 0;
  }

  /* About page - single column on mobile */
  .about-mvv {
    grid-template-columns: 1fr;
  }

  .about-team {
    grid-template-columns: 1fr;
  }

  .footer .socials-col {
    justify-self: flex-start;
    text-align: left;
    align-items: flex-start;
  }

  .footer .socials {
    justify-content: flex-start;
  }
}

/* Tabs (Serviços) - Carousel style with visible scrollbar */
.tabs {
  display: flex;
  gap: 10px;
  margin: 16px 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  /* Thin scrollbar in Firefox */
  padding-bottom: 8px;
}

/* Custom scrollbar for tabs - visible and styled */
.tabs::-webkit-scrollbar {
  height: 8px;
  /* Slightly larger for better visibility */
}

.tabs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.tabs::-webkit-scrollbar-thumb {
  background: rgba(232, 97, 29, 0.6);
  border-radius: 4px;
}

.tabs::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 97, 29, 0.8);
}

.tab {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent-700);
}

.tab-panel {
  margin-top: 8px;
}

.tab-panel.hidden {
  display: none;
}

/* Pricing */
.pricing {
  grid-template-columns: repeat(3, 1fr);
}

.p-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.p-card h4 {
  margin: 0 0 8px;
}

.p-card ul {
  padding-left: 18px;
  margin: 0 0 10px;
  color: var(--muted);
}

.p-card .price {
  font-weight: 700;
  margin-bottom: 10px;
}

.p-card .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(232, 97, 29, 0.15);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.p-card.popular {
  border-color: rgba(232, 97, 29, 0.4);
}

.addons {
  margin-top: 20px;
  padding: 12px 0;
}

/* Timeline */
.timeline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.t-step {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.t-step span {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 6px;
}

/* Tags */
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: #0F172A;
  color: var(--accent);
  border: 1px solid rgba(232, 97, 29, 0.3);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* Sticky CTA (mobile) */
.sticky-cta {
  position: sticky;
  bottom: 14px;
  display: none;
  justify-content: center;
  margin-top: 16px;
}

@media (max-width: 760px) {
  .sticky-cta {
    display: inline-flex;
    width: 100%;
  }
}

/* Filters (Portfólio) */
.filters .filter-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.filters .btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 8px;
}

/* Custom scrollbar for filter buttons */
.filters .btns::-webkit-scrollbar {
  height: 8px;
}

.filters .btns::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.filters .btns::-webkit-scrollbar-thumb {
  background: rgba(232, 97, 29, 0.6);
  border-radius: 4px;
}

.filters .btns::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 97, 29, 0.8);
}

.f-btn {
  flex-shrink: 0;
  white-space: nowrap;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.f-btn.active {
  background: var(--accent);
  border-color: var(--accent-700);
}

.filters .search input {
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox.open {
  display: flex;
}

.lb-inner {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  width: min(720px, 92vw);
  box-shadow: var(--shadow);
  position: relative;
}

.lb-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.lb-content {
  padding: 22px;
}

.lb-meta {
  color: var(--muted);
  margin: 8px 0 14px;
}

/* Forms */
.form {
  display: block;
}

.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.field input,
.field select,
.field textarea {
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 12px;
  font: inherit;
}

.chk {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.form-msg {
  margin-top: 10px;
}

.form-msg.success {
  color: #5cd17a;
}

.form-msg.error {
  color: #ff6b6b;
}

.hp {
  position: absolute;
  left: -9999px;
}

.map {
  height: 260px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

@media (max-width: 760px) {
  .form .row {
    grid-template-columns: 1fr;
  }
}

.footer .brand-desc {
  color: var(--muted);
  margin: 0;
  max-width: 420px;
}

/* ========================================
   RESPONSIVE FIXES FOR MOBILE
   ======================================== */

/* Mobile-specific fixes for better UX */
@media (max-width: 600px) {

  /* Body spacing - reduce padding on mobile */
  body {
    padding: 20px 10px;
  }

  body.page-home {
    padding: 10px;
  }

  /* Section spacing */
  .section {
    padding: 40px 0;
  }

  /* Typography adjustments */
  .section-title {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  /* Tabs already configured as carousel in base styles - no override needed */

  /* FILTERS FIX - Horizontal scroll instead of wrapping */
  .filters .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .filters .btns {
    flex-wrap: nowrap !important;
    overflow-x: auto;
  }

  .f-btn {
    font-size: 0.85rem;
    padding: 7px 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .filters .search {
    width: 100%;
  }

  .filters .search input {
    width: 100%;
  }

  /* GRIDS FIX - Single column for better readability */
  .services,
  .portfolio,
  .testimonials-grid,
  .metrics {
    grid-template-columns: 1fr !important;
  }

  .pricing {
    grid-template-columns: 1fr;
  }

  /* Hero actions - stack buttons */
  .hero .actions {
    flex-direction: column;
    width: 100%;
  }

  .hero .actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Contact actions */
  .contact-actions {
    flex-direction: column;
  }

  .contact-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Timeline - better wrapping */
  .timeline {
    justify-content: center;
  }

  .t-step {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  /* Tags - better wrapping */
  .tags {
    justify-content: center;
  }

  /* Card improvements */
  .card {
    padding: 18px;
  }

  /* CTA box */
  .cta-box {
    padding: 24px 20px;
  }

  .cta-box h2 {
    font-size: 1.5rem;
  }

  /* Footer improvements */
  .footer .socials {
    justify-content: center;
  }

  /* Reduce logo size on very small screens */
  .logo-img {
    height: 90px !important;
  }

  /* Back to top button - avoid overlapping copyright */
  .back-to-top {
    bottom: 80px;
  }

  /* Form buttons - stack vertically */
  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-inner {
    height: 100px !important;
  }

  /* Adjust main padding for smaller nav */
  main {
    padding-top: calc(100px + 20px);
  }

  .section,
  [id] {
    scroll-margin-top: calc(100px + 20px);
  }
}

/* Tablet-specific adjustments */
@media (min-width: 601px) and (max-width: 1024px) {

  /* Tabs carousel works on all sizes - no override needed */

  /* Filters - center alignment */
  .filters .btns {
    justify-content: center;
  }

  /* Grids - 2 columns for tablet */
  .services,
  .portfolio,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer tablet - Layout horizontal compacto */
  .footer-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    text-align: left;
  }

  .footer .brand {
    flex: 0 0 100%;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 20px;
  }

  .footer .brand-head {
    justify-content: flex-start;
  }

  /* Logo em texto para tablet - menor */
  .footer .logo-img {
    display: none;
  }

  .footer .logo-text {
    display: inline;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    display: block;
  }

  .footer .brand-desc {
    text-align: left;
    margin: 0;
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Container para as 3 colunas ficarem lado a lado */
  .footer .contact-col,
  .footer .links,
  .footer .socials-col {
    flex: 1;
    display: block;
    text-align: left;
    padding-right: 12px;
    box-sizing: border-box;
    margin-bottom: 20px;
  }

  .footer .contact-col {
    padding-left: 0;
  }

  .footer .footer-title {
    font-size: 1.05rem;
    margin-bottom: 10px;
    font-weight: 600;
  }

  .footer .contact-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer .contact-inline a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
  }

  .footer .contact-inline .divider {
    display: none;
  }

  .footer .links {
    text-align: left;
  }

  .footer .links ul {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .footer .socials-col {
    align-items: flex-start;
    text-align: left;
  }

  /* Ícones sociais em grid 2x2 compacto */
  .footer .socials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    justify-content: flex-start;
    max-width: 110px;
  }

  .footer .socials a {
    font-size: 1.75rem;
  }

  .footer .tiny {
    flex: 0 0 100%;
    font-size: 0.85rem;
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
  }
}

/* ========================================
   OVERFLOW PREVENTION (NOT HIDING SCROLL)
   ======================================== */

/* Prevent elements from being wider than viewport */
* {
  box-sizing: border-box;
}

html {
  width: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
}

main,
section,
.section {
  max-width: 100%;
}

/* Ensure grids don't overflow */
.grid,
.services,
.portfolio,
.testimonials-grid,
.metrics,
.pricing {
  max-width: 100%;
}

/* Tabs carousel - allow horizontal scroll */
.tabs {
  max-width: 100%;
  overflow-x: auto;
}

/* Ensure images don't cause overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Fix for privacy banner */
.privacy-banner {
  max-width: 100vw;
  box-sizing: border-box;
}

.privacy-banner__inner {
  max-width: 100%;
  box-sizing: border-box;
}