/* ============================
   Variáveis de identidade SAP
   ============================ */
:root {
  --sap-blue-dark: #0f1932;   /* SAP Dark Blue */
  --sap-blue-mid:  #1c2f72;   /* SAP Medium Blue */
  --sap-blue-light: #0098d8;  /* SAP Light Blue */
  --sap-gold: #ffb300;        /* SAP Gold */
  --sap-green: #00a86b;       /* SAP Green */
  --bg-gray: #f5f7fa;
  --white: #ffffff;
  --text-dark: #0f2340;
  --text-light: #6b7280;
  --max-width: 1280px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(15, 25, 50, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 25, 50, 0.12);
  --glass: rgba(255, 255, 255, 0.08);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset / base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg-gray);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================
   Header Premium
   ============================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px) saturate(180%);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(15, 25, 50, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo .mark {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--sap-blue-mid), var(--sap-blue-dark));
  color: var(--white);
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
  font-family: "Quicksand", sans-serif;
  font-size: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.logo .mark::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
}

.brand h1 {
  font-family: "Quicksand", sans-serif;
  font-size: 20px;
  color: var(--sap-blue-mid);
  letter-spacing: 0.5px;
  font-weight: 700;
}

.brand .tagline {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

nav li a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--sap-blue-mid);
  transition: var(--transition);
  position: relative;
  font-size: 15px;
}

nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--sap-blue-light);
  transition: var(--transition);
  transform: translateX(-50%);
}

nav li a:hover {
  color: var(--sap-blue-light);
}

nav li a:hover::after {
  width: 80%;
}

.cta {
  background: linear-gradient(135deg, var(--sap-blue-mid), var(--sap-blue-dark));
  color: var(--white);
  padding: 12px 24px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 15px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cta:hover::before {
  left: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--sap-blue-mid);
  cursor: pointer;
}

/* ============================
   Hero Section Premium
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sap-blue-dark), var(--sap-blue-mid));
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800" opacity="0.03"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="white" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero .left {
  flex: 1;
  padding: 40px 0;
  max-width: 680px;
}

.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 24px;
  font-size: 14px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h2 {
  font-family: "Quicksand", sans-serif;
  color: var(--white);
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  font-size: 18px;
  max-width: 600px;
  font-weight: 400;
}

.hero .buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.95);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* hero right card */
.hero .right {
  width: 520px;
  max-width: 45%;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hero .right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  z-index: -1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header .title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.card-header .company {
  font-weight: 700;
  color: var(--white);
  font-size: 20px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-weight: 600;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.stat h3 {
  font-family: "Quicksand", sans-serif;
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat p {
  font-weight: 600;
  color: var(--sap-gold);
  font-size: 14px;
}

/* Particle container */
#particles-js {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ============================
   Sections common
   ============================ */
section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h3 {
  font-family: "Quicksand", sans-serif;
  font-size: 36px;
  color: var(--sap-blue-mid);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-light);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

.divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--sap-blue-light), var(--sap-gold));
  margin: 0 auto 20px;
  border-radius: 2px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 25, 50, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--sap-blue-light), var(--sap-gold));
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  width: 6px;
}

.card .icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--sap-blue-light), var(--sap-blue-mid));
  color: white;
  font-size: 24px;
  box-shadow: 0 10px 20px rgba(0, 152, 216, 0.2);
}

.card h4 {
  font-family: "Quicksand", sans-serif;
  margin-bottom: 12px;
  color: var(--sap-blue-dark);
  font-size: 20px;
  font-weight: 700;
}

.card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
}

/* Stats / counters */
.counters {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.counter {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  min-width: 200px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.counter:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.counter h4 {
  font-family: "Quicksand", sans-serif;
  color: var(--sap-blue-mid);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.counter p {
  font-weight: 600;
  color: var(--sap-blue-dark);
  font-size: 16px;
}

/* Clients logos */
.clients {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.client-logo {
  width: 160px;
  height: 80px;
  background: var(--white);
  display: grid;
  place-items: center;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  padding: 15px;
}

.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  filter: grayscale(100%);
  transition: var(--transition);
}

.client-logo:hover img {
  filter: grayscale(0%);
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content h3 {
  font-family: "Quicksand", sans-serif;
  color: var(--sap-blue-mid);
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
}

.about-list {
  list-style: none;
  margin-top: 20px;
}

.about-list li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: var(--text-light);
}

.about-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sap-green);
  font-weight: bold;
}

.about-visual {
  position: relative;
}

.about-visual .visual-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about-visual .visual-card img {
  border-radius: 12px;
  margin-bottom: 20px;
}

.about-visual .visual-card h4 {
  font-family: "Quicksand", sans-serif;
  color: var(--sap-blue-mid);
  margin-bottom: 10px;
  font-size: 20px;
}

.about-visual .visual-card p {
  color: var(--text-light);
  font-size: 14px;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--sap-blue-dark);
}

.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 25, 50, 0.1);
  margin-bottom: 20px;
  font-size: 15px;
  transition: var(--transition);
  font-family: "Montserrat", sans-serif;
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--sap-blue-light);
  box-shadow: 0 0 0 3px rgba(0, 152, 216, 0.1);
}

.contact-info {
  background: linear-gradient(135deg, var(--sap-blue-mid), var(--sap-blue-dark));
  padding: 40px;
  border-radius: var(--radius-lg);
  color: white;
  box-shadow: var(--shadow);
}

.contact-info h4 {
  font-family: "Quicksand", sans-serif;
  margin-bottom: 16px;
  font-size: 24px;
}

.contact-info p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.contact-details {
  margin-top: 30px;
}

.contact-details div {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-details i {
  margin-right: 12px;
  width: 20px;
  color: var(--sap-gold);
}

/* Footer */
footer {
  padding: 60px 0 30px;
  background: var(--sap-blue-dark);
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo .mark {
  width: 50px;
  height: 50px;
  background: var(--white);
  color: var(--sap-blue-mid);
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 800;
  font-family: "Quicksand", sans-serif;
  font-size: 20px;
}

.footer-logo h3 {
  font-family: "Quicksand", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.footer-about {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: "Quicksand", sans-serif;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--sap-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.socials {
  display: flex;
  gap: 15px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.socials a:hover {
  background: var(--sap-blue-light);
  color: white;
  transform: translateY(-3px);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--sap-blue-light);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--sap-blue-mid);
  transform: translateY(-5px);
}

/* ============================
   Responsive Design
   ============================ */
@media (max-width: 1200px) {
  .hero h2 {
    font-size: 42px;
  }
  
  .about-grid {
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero .right {
    max-width: 100%;
    width: 100%;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  nav ul {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: var(--transition);
  }
  
  .mobile-menu.active {
    transform: translateX(0);
  }
  
  .mobile-menu ul {
    list-style: none;
    text-align: center;
  }
  
  .mobile-menu li {
    margin: 20px 0;
  }
  
  .mobile-menu a {
    font-size: 24px;
    font-weight: 600;
    color: var(--sap-blue-dark);
  }
  
  .close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--sap-blue-dark);
    cursor: pointer;
  }
}

/* ADICIONAR ESTA REGRA PARA OCULTAR MOBILE MENU NO DESKTOP */
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 36px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .counters {
    gap: 20px;
  }
  
  .counter {
    min-width: 160px;
    padding: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 32px;
  }
  
  .hero .buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero .buttons .cta, .hero .buttons .btn-outline {
    width: 100%;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .counters {
    flex-direction: column;
    align-items: center;
  }
  
  .counter {
    width: 100%;
  }
}

/* Loading animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--sap-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--sap-blue-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}