/* ============================================================
   RALS Systems — Custom Styles
   Stack: Bootstrap 5.3 + custom CSS (no additional frameworks)
   ============================================================ */

:root {
  --primary:       #1a56db;
  --primary-dark:  #1342b0;
  --primary-light: #e8f0fe;
  --dark:          #0f172a;
  --text:          #1e293b;
  --muted:         #64748b;
  --border:        #e2e8f0;
  --white:         #ffffff;
  --light:         #f8fafc;
  --section-pad:   6rem;
  --radius-lg:     1.25rem;
  --radius-xl:     2rem;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 20px 50px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── Bootstrap overrides ────────────────────────────────────── */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }

/* ── Utilities ──────────────────────────────────────────────── */
.section-padding { padding: var(--section-pad) 0; }

.section-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-white-70 { color: rgba(255,255,255,.75); }

/* ── AOS-like animations ────────────────────────────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-aos][data-aos-delay="100"] { transition-delay: .1s; }
[data-aos][data-aos-delay="200"] { transition-delay: .2s; }
[data-aos="fade-right"]  { transform: translateX(-28px); }
[data-aos="fade-left"]   { transform: translateX(28px); }
[data-aos="zoom-in"]     { transform: scale(.94); }
[data-aos].aos-animate   { opacity: 1; transform: none; }

/* ── Navbar ─────────────────────────────────────────────────── */
#mainNav {
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 1.25rem 0;
}
#mainNav.scrolled {
  background: rgba(15, 23, 42, .97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  padding: .75rem 0;
}

.navbar-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  transition: opacity .2s;
}
.navbar-brand:hover .navbar-logo { opacity: .85; }

.navbar-nav .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem .75rem !important;
  border-radius: .5rem;
  transition: color .2s, background .2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
  background: rgba(255,255,255,.1);
}
.navbar-nav .btn-primary.nav-link {
  background: var(--primary) !important;
  color: var(--white) !important;
}
.navbar-nav .btn-primary.nav-link:hover {
  background: var(--primary-dark) !important;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0f2a4e 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(26,86,219,.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(99,102,241,.15) 0%, transparent 50%);
}

/* Animated dot grid */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 36px 36px;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-indicator {
  color: rgba(255,255,255,.5);
  font-size: 2rem;
  animation: bounce 2s infinite;
  text-decoration: none;
  transition: color .2s;
}
.scroll-indicator:hover { color: var(--white); }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* Hero visual */
.hero-visual {
  position: relative;
  width: 340px;
  height: 340px;
}

.hero-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 2.8rem;
  box-shadow: 0 0 0 20px rgba(26,86,219,.15), 0 0 0 40px rgba(26,86,219,.07);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 20px rgba(26,86,219,.15), 0 0 0 40px rgba(26,86,219,.07); }
  50%       { box-shadow: 0 0 0 28px rgba(26,86,219,.20), 0 0 0 55px rgba(26,86,219,.10); }
}

.floating-card {
  position: absolute;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: .875rem;
  padding: .7rem 1.1rem;
  color: var(--white);
  display: flex; align-items: center; gap: .6rem;
  font-size: .85rem; font-weight: 600;
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
}
.floating-card i { font-size: 1.1rem; color: #60a5fa; }

.card-1 { top: 10%; left: 0; animation-delay: 0s; }
.card-2 { bottom: 10%; right: 0; animation-delay: 1.3s; }
.card-3 { top: 55%; left: -25%; animation-delay: 2.6s; }
.card-4 { top: 28%; right: 0%; animation-delay: 0.7s; }
.card-5 { bottom: 5%; left: 5%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── About Section ──────────────────────────────────────────── */
.about-visual {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder {
  width: 100%;
  max-width: 420px;
  height: 360px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #dbeafe 100%);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
  color: var(--primary);
}

.stat-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.5rem;
  text-align: center;
  z-index: 2;
}
.stat-1 { top: 12%; right: 0; }
.stat-2 { bottom: 12%; left: 0; }

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
}
.value-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: .625rem;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

/* ── Services ───────────────────────────────────────────────── */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-icon {
  width: 56px; height: 56px;
  background: var(--primary-light);
  border-radius: .875rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: background .3s, color .3s;
}
.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .625rem;
  color: var(--dark);
}
.service-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.service-tags {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-top: auto;
}
.service-tags li {
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 2rem;
  padding: .25rem .75rem;
}

/* ── Clients ────────────────────────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}

.client-logo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: .02em;
  transition: transform .25s, box-shadow .25s, color .25s, border-color .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  text-decoration: none;
}
.client-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
  border-color: var(--primary);
}
.client-logo-card img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .75;
  transition: filter .25s, opacity .25s;
}
.client-logo-card:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #1342b0 0%, #1a56db 50%, #6366f1 100%);
}
.cta-box {
  max-width: 700px;
  margin: 0 auto;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  border-radius: .875rem;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
}
.contact-icon--whatsapp {
  background: #e7f9ef;
  color: #25d366;
}
.whatsapp-link {
  color: #128c46;
  transition: color .2s;
}
.whatsapp-link:hover { color: #0a6630; }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

.form-control, .form-select {
  border-color: var(--border);
  border-radius: .625rem;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.15);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer-section {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-logo { filter: brightness(0) invert(1); opacity: .85; height: 20px; }
.footer-link {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s;
}
.footer-link:hover { color: var(--white); }
.footer-section .text-muted { color: rgba(255,255,255,.35) !important; }

/* ── Modal privacidade ──────────────────────────────────────────── */
.modal-dialog.modal-lg { max-height: 80vh; }
.modal-dialog.modal-lg .modal-content { max-height: 80vh; }
.modal-dialog.modal-lg .modal-body { overflow-y: auto; }
.privacy-body { font-size: .9rem; color: var(--text); }
.privacy-body p, .privacy-body ul { color: var(--muted); line-height: 1.7; }
.privacy-body ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.privacy-heading {
  font-weight: 700;
  color: var(--dark);
  margin-top: 1.5rem;
  margin-bottom: .5rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--border);
}

/* ── Cookie banner ──────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0;
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.visible { transform: translateY(0); }

.cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
}
.cookie-banner__text i { color: #60a5fa; flex-shrink: 0; }
.cookie-banner__link {
  color: #60a5fa;
  text-decoration: underline;
  margin-left: .25rem;
}
.cookie-banner__actions {
  display: flex;
  gap: .625rem;
  flex-shrink: 0;
}
.cookie-btn {
  border: none;
  border-radius: .5rem;
  padding: .5rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
  white-space: nowrap;
}
.cookie-btn--primary {
  background: var(--primary);
  color: var(--white);
}
.cookie-btn--primary:hover { background: var(--primary-dark); }
.cookie-btn--outline {
  background: transparent;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.2);
}
.cookie-btn--outline:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}

@media (max-width: 575.98px) {
  .cookie-banner__content { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ── Scroll to top ──────────────────────────────────────────────── */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1050;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(26,86,219,.4);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s;
  pointer-events: none;
}
#scrollTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#scrollTop:hover { background: var(--primary-dark); }

/* ── Hero buttons responsive ────────────────────────────────────── */
@media (min-width: 768px) {
  .btn-md-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
}

/* ── Responsive tweaks ──────────────────────────────────────── */
@media (max-width: 991.98px) {
  :root { --section-pad: 4rem; }
  #navMenu {
    display: none;
    background: rgba(15, 23, 42, .97);
    border-radius: 0 0 .875rem .875rem;
    padding: .75rem 1rem 1rem;
    margin-top: .5rem;
  }
  #navMenu.show {
    display: block;
  }
  .about-visual { min-height: 280px; }
  .about-image-placeholder { height: 260px; }
  .stat-1, .stat-2 { display: none; }
}

@media (max-width: 575.98px) {
  :root { --section-pad: 3rem; }
  .contact-form-card { padding: 1.5rem; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
