/* ==========================================
   Serviteste – Modern Public Website Styles
   ========================================== */

/* ---------- Variables & Base ---------- */
:root {
  --color-primary: #e87722;
  --color-primary-dark: #c45e0a;
  --color-secondary: #1a3a5c;
  --color-secondary-light: #2a5080;
  --color-accent: #f4a623;
  --color-wa: #25d366;
  --color-wa-dark: #1da851;
  --color-bg-light: #f8f9fa;
  --color-text: #333f4d;
  --color-text-muted: #6c757d;
  --gradient-primary: linear-gradient(135deg, #e87722 0%, #c45e0a 100%);
  --gradient-hero: linear-gradient(160deg, rgba(26,58,92,.88) 0%, rgba(18,36,60,.8) 100%);
  --gradient-dark: linear-gradient(135deg, #1a3a5c 0%, #0e2340 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
  --radius: 0.75rem;
  --transition: all .3s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: #fff;
  overflow-x: hidden;
}

a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--color-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease;
}
#preloader .spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(255,255,255,.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#preloader.hidden { opacity: 0; pointer-events: none; }

/* ---------- Section Utilities ---------- */
.section-badge {
  display: inline-block;
  background: rgba(232,119,34,.12);
  color: var(--color-primary);
  font-size: .78rem; font-weight: 600; letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: .3em .9em; border-radius: 2rem;
}
.section-badge--light {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.95);
}

.section-title {
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; line-height: 1.2;
  color: var(--color-secondary);
}
.section-title--light { color: #fff; }

.section-divider {
  width: 48px; height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px; margin: 1rem auto 0;
}
.section-divider--light { background: rgba(255,255,255,.4); }

/* ---------- Header / Navbar ---------- */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  padding: 1.25rem 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
#header.scrolled {
  background: var(--color-secondary);
  padding: .75rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand img { height: 48px; width: auto; }

.navbar .nav-link {
  color: rgba(255,255,255,.9) !important;
  font-weight: 500; font-size: .95rem;
  padding: .4rem .8rem !important;
  transition: var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link.active-link { color: #fff !important; }

.btn-client-area {
  background: var(--gradient-primary);
  color: #fff !important;
  padding: .5rem 1.25rem !important;
  border-radius: 2rem !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  box-shadow: 0 3px 10px rgba(232,119,34,.35);
}
.btn-client-area:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232,119,34,.45);
  color: #fff !important;
}

.navbar-toggler { border-color: rgba(255,255,255,.5); }
.navbar-toggler-icon { filter: invert(1); }

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 0 0;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-body {
  position: relative; z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding-bottom: 3rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(244,166,35,.12);
  padding: .3em .9em; border-radius: 2rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800; line-height: 1.15;
  color: #fff; margin-bottom: 1.25rem;
}
.hero-title span {
  color: var(--color-accent);
  position: relative;
}
.hero-title span::after {
  content: '';
  position: absolute; left: 0; bottom: -3px; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn-hero-primary {
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff !important;
  padding: .8rem 2rem; font-weight: 700; font-size: .95rem;
  border-radius: 2rem;
  box-shadow: 0 4px 16px rgba(232,119,34,.4);
  transition: var(--transition);
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(232,119,34,.5); }

.btn-hero-wa {
  display: inline-block;
  background: var(--color-wa);
  color: #fff !important;
  padding: .8rem 2rem; font-weight: 700; font-size: .95rem;
  border-radius: 2rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  transition: var(--transition);
}
.btn-hero-wa:hover {
  background: var(--color-wa-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  color: #fff !important;
}

/* Hero stats bar */
.hero-stats-bar {
  position: relative; z-index: 1;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
}

.hero-stat {
  padding: .5rem 1rem;
  color: #fff;
}
.hero-stat--mid {
  border-left: 1px solid rgba(255,255,255,.15);
  border-right: 1px solid rgba(255,255,255,.15);
}

.stat-number {
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800; color: var(--color-accent);
  line-height: 1;
  display: inline;
}
.stat-suffix { font-size: 1.1rem; font-weight: 800; color: var(--color-accent); }
.stat-label {
  font-size: .73rem; font-weight: 500; letter-spacing: .5px;
  color: rgba(255,255,255,.7);
  margin: .3rem 0 0; line-height: 1.3;
  text-transform: uppercase;
}

/* ---------- Services ---------- */
#servicos {
  padding: 6rem 0 5rem;
  background: #fff;
}

.service-item {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem 2rem;
  height: 100%;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.service-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition);
}
.service-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: rgba(232,119,34,.25);
}
.service-item:hover::before { background: var(--gradient-primary); }

.service-item--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.service-item--featured::before { background: var(--gradient-primary); }

.service-num {
  font-family: Sora, Inter, sans-serif;
  font-size: 3rem; font-weight: 800;
  color: rgba(232,119,34,.12);
  line-height: 1;
  margin-bottom: .5rem;
  letter-spacing: -1px;
}

.service-icon-wrap {
  width: 52px; height: 52px;
  background: rgba(232,119,34,.1);
  border-radius: .6rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--color-primary);
  margin-bottom: 1rem;
  transition: var(--transition);
}
.service-item:hover .service-icon-wrap,
.service-item--featured .service-icon-wrap {
  background: var(--color-primary);
  color: #fff;
}

.service-item h4 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--color-secondary); margin-bottom: .6rem;
}
.service-item p { font-size: .9rem; color: var(--color-text-muted); margin: 0; }

/* ---------- Diferenciais (Trust) ---------- */
#diferenciais {
  padding: 5.5rem 0;
  background: var(--gradient-dark);
  position: relative; overflow: hidden;
}
#diferenciais::before {
  content: '';
  position: absolute; top: -150px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,119,34,.18) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
#diferenciais::after {
  content: '';
  position: absolute; bottom: -120px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}

.trust-item {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: var(--transition);
}
.trust-item:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-4px);
  border-color: rgba(232,119,34,.35);
}

.trust-icon {
  width: 56px; height: 56px;
  background: rgba(232,119,34,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--color-accent);
  margin: 0 auto 1.1rem;
  transition: var(--transition);
}
.trust-item:hover .trust-icon {
  background: var(--color-primary);
  color: #fff;
}

.trust-item h5 {
  font-size: 1rem; font-weight: 700;
  color: #fff; margin-bottom: .5rem;
}
.trust-item p { font-size: .875rem; color: rgba(255,255,255,.68); margin: 0; }

/* ---------- Infrastructure ---------- */
#infraestrutura {
  padding: 5.5rem 0;
  background: var(--color-bg-light);
}

.infra-list { list-style: none; padding: 0; margin: 0; }
.infra-list li {
  padding: .75rem 0 .75rem 1.75rem;
  position: relative;
  border-bottom: 1px solid #e9ecef;
  font-size: .95rem;
  color: var(--color-text);
}
.infra-list li:last-child { border-bottom: none; }
.infra-list li::before {
  content: '';
  position: absolute; left: 0; top: 1.2rem;
  width: 9px; height: 9px;
  background: var(--color-primary);
  border-radius: 50%;
}

.btn-wa-outline {
  display: inline-flex; align-items: center;
  border: 2px solid var(--color-wa);
  color: var(--color-wa);
  padding: .65rem 1.5rem; font-weight: 600; font-size: .9rem;
  border-radius: 2rem;
  transition: var(--transition);
}
.btn-wa-outline:hover {
  background: var(--color-wa);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37,211,102,.3);
}

/* Infrastructure gallery grid */
.infra-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: .75rem;
}

.gallery-card {
  border-radius: .5rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
}
.gallery-card img {
  width: 100%; height: 180px;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.gallery-card:hover img { transform: scale(1.07); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(26,58,92,0);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
  opacity: 0; transition: var(--transition);
}
.gallery-card:hover .gallery-overlay {
  background: rgba(26,58,92,.5);
  opacity: 1;
}

/* ---------- CTA ---------- */
#cta {
  padding: 5rem 0;
  background: var(--gradient-primary);
  position: relative; overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute; top: 50%; right: -80px; transform: translateY(-50%);
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-box {
  position: relative; z-index: 1;
  text-align: center;
  padding: 1rem;
}
.cta-box h2 {
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: #fff; margin-bottom: .75rem;
}
.cta-box p {
  color: rgba(255,255,255,.88); font-size: 1.05rem;
  max-width: 560px; margin: 0 auto 2rem;
}
.btn-cta {
  display: inline-block;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,.5);
  color: #fff !important;
  padding: .85rem 2.5rem; font-size: 1rem; font-weight: 700;
  border-radius: 2rem;
  transition: var(--transition);
}
.btn-cta:hover {
  background: rgba(255,255,255,.25);
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* ---------- Contact ---------- */
#contact {
  padding: 5.5rem 0;
  background: #fff;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 340px;
}
.contact-map iframe { display: block; height: 100%; min-height: 340px; }

.contact-panel {
  background: var(--color-bg-light);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.wa-cta-block {
  display: flex; align-items: center; gap: 1rem;
  background: var(--color-wa);
  border-radius: .6rem;
  padding: 1rem 1.25rem;
  color: #fff;
  margin-bottom: .75rem;
}
.wa-cta-icon {
  font-size: 2.4rem; line-height: 1; flex-shrink: 0;
}
.wa-cta-label {
  font-size: .72rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; opacity: .85; margin: 0;
}
.wa-cta-number {
  font-family: Sora, Inter, sans-serif;
  font-size: 1.3rem; font-weight: 800; margin: 0;
}

.btn-wa-full {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-wa);
  color: #fff !important;
  padding: .9rem 1.5rem; font-weight: 700; font-size: 1rem;
  border-radius: .6rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
  margin-bottom: 1.5rem;
}
.btn-wa-full:hover {
  background: var(--color-wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  color: #fff !important;
}

.contact-divider {
  position: relative; text-align: center;
  color: var(--color-text-muted); font-size: .82rem;
  margin-bottom: 1.5rem;
}
.contact-divider::before {
  content: '';
  position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: #dee2e6;
}
.contact-divider span {
  background: var(--color-bg-light);
  padding: 0 .75rem;
  position: relative;
}

.contact-info-item {
  display: flex; align-items: flex-start; gap: .85rem;
  margin-bottom: 1rem;
}
.contact-info-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(232,119,34,.1);
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--color-primary);
}
.contact-info-item h5 {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--color-secondary); margin-bottom: .15rem;
}
.contact-info-item p { font-size: .88rem; color: var(--color-text-muted); margin: 0; }

/* ---------- Footer ---------- */
#footer {
  background: var(--gradient-dark);
  padding: 4rem 0 0;
  color: rgba(255,255,255,.65);
}
#footer a { color: rgba(255,255,255,.7); transition: var(--transition); }
#footer a:hover { color: var(--color-accent); }

.footer-logo img { height: 42px; width: auto; }
.footer-desc { font-size: .88rem; color: rgba(255,255,255,.55); margin-top: .75rem; line-height: 1.65; }

.footer-heading {
  font-size: .78rem; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: rgba(255,255,255,.85);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li {
  padding: .3rem 0;
  font-size: .88rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 3rem;
  padding: 1.25rem 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom strong { color: rgba(255,255,255,.65); }
.footer-bottom a { color: var(--color-primary); }
.footer-bottom a:hover { color: var(--color-accent); }

/* ---------- Floating WhatsApp Button ---------- */
#whatsappFloat {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 900;
  width: 58px; height: 58px;
  background: var(--color-wa);
  color: #fff !important;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: var(--transition);
  text-decoration: none;
}
#whatsappFloat:hover {
  background: var(--color-wa-dark);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 28px rgba(37,211,102,.6);
  color: #fff !important;
}

/* Tooltip */
.wa-float-tooltip {
  position: absolute;
  right: 68px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: .78rem; font-weight: 600;
  padding: .3em .7em;
  border-radius: .35rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0; transform: translateX(6px);
  transition: var(--transition);
}
#whatsappFloat:hover .wa-float-tooltip {
  opacity: 1; transform: translateX(0);
}

/* Pulse ring around WA float */
#whatsappFloat::after {
  content: '';
  position: absolute; inset: -6px;
  border: 2px solid rgba(37,211,102,.45);
  border-radius: 50%;
  animation: pulseRing 2.5s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(.9); opacity: .7; }
  60%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-inner img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: .5rem; }
.lightbox-close {
  position: absolute; top: -2.5rem; right: 0;
  background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: -3.5rem; }
.lightbox-next { right: -3.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .infra-gallery { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .gallery-card img { height: 150px; }
  #infraestrutura .col-lg-5 { order: 2; }
  #infraestrutura .col-lg-7 { order: 1; }
}

@media (max-width: 767px) {
  .hero-stats-bar .hero-stat--mid {
    border-left: 1px solid rgba(255,255,255,.12);
    border-right: 1px solid rgba(255,255,255,.12);
  }
  .infra-gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-card img { height: 160px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}
