/* ============================================================
   Exaustec Sul — CSS Principal
   Paleta: #1a2e4a (azul escuro) | #f07c00 (laranja)
   ============================================================ */

:root {
  --primary:        #1a2e4a;
  --primary-dark:   #0f1d2e;
  --primary-light:  #243d62;
  --accent:         #f07c00;
  --accent-dark:    #d46a00;
  --accent-light:   #fff3e3;
  --text-dark:      #1a1a2e;
  --text-muted:     #6b7280;
  --bg-light:       #f8f9fa;
  --border:         #e5e7eb;
  --white:          #ffffff;
  --transition:     all 0.3s ease;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:      0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:      0 10px 15px rgba(0,0,0,.10), 0 4px 6px rgba(0,0,0,.05);
  --radius:         12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; }

.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* ── Cores utilitárias ── */
.text-orange      { color: var(--accent) !important; }
.bg-dark-blue     { background-color: var(--primary) !important; }
.bg-orange-light  { background-color: var(--accent-light) !important; }

/* ── Botões ── */
.btn-orange {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}
.btn-orange:hover,
.btn-orange:focus {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240,124,0,.35);
}

.btn-outline-white {
  background-color: transparent;
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}
.btn-outline-white:hover {
  background-color: rgba(255,255,255,.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: #25d366;
  border-color: #25d366;
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}
.btn-whatsapp:hover {
  background-color: #1da851;
  border-color: #1da851;
  color: var(--white);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
#mainNav {
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
#mainNav.scrolled {
  background-color: var(--primary) !important;
  box-shadow: var(--shadow-md);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
#mainNav .navbar-brand {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--white);
}
#mainNav .nav-link {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
}
#mainNav .nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

/* ════════════════════════════════════════
   FLASH MESSAGES
════════════════════════════════════════ */
.flash-container {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  z-index: 1055;
  max-width: 420px;
  width: calc(100% - 3rem);
}
.flash-container .alert {
  border: none;
  border-left: 4px solid;
  border-radius: var(--radius);
}
.flash-container .alert-success { border-left-color: #22c55e; }
.flash-container .alert-danger  { border-left-color: #ef4444; }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 6s ease;
}
.hero:hover .hero-bg { transform: scale(1.06); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(15, 29, 46, 0.90) 0%,
    rgba(15, 29, 46, 0.75) 55%,
    rgba(15, 29, 46, 0.30) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  padding-bottom: 4rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(240,124,0,.2);
  border: 1px solid rgba(240,124,0,.4);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions .btn { min-width: 200px; }
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.5);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  text-decoration: none;
  transition: color 0.2s;
}
.hero-scroll-hint:hover { color: var(--accent); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ════════════════════════════════════════
   DIFERENCIAIS BAR
════════════════════════════════════════ */
.section-diferenciais {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 10;
}
.diferencial-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 2rem 2.5rem;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.diferencial-item:hover { background: var(--bg-light); }
.diferencial-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 12px;
  color: var(--accent);
  font-size: 1.4rem;
}
@media (max-width: 767.98px) {
  .diferencial-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1.25rem;
  }
  .diferencial-item:last-child { border-bottom: none; }
}

/* ════════════════════════════════════════
   SECTION HEADERS
════════════════════════════════════════ */
.section-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ════════════════════════════════════════
   SERVICE CARDS
════════════════════════════════════════ */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--accent);
  border-radius: 0 0 4px 0;
  transition: height 0.3s ease;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::before { height: 100%; }
.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 14px;
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--white);
}
.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}
.service-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
  padding-left: 1.2rem;
  position: relative;
}
.service-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ════════════════════════════════════════
   GALLERY
════════════════════════════════════════ */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,29,46,.8) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(240,124,0,.9);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

/* ════════════════════════════════════════
   ABOUT
════════════════════════════════════════ */
.about-service-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}
.about-service-item:last-child { border-bottom: none; }
.about-image-grid {
  position: relative;
}
.about-img-main {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.about-img-secondary {
  position: absolute;
  width: 45%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 1;
  bottom: -1.5rem;
  right: -1.5rem;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 767.98px) {
  .about-img-secondary { display: none; }
}

/* ════════════════════════════════════════
   CONTACT
════════════════════════════════════════ */
.contact-info-card {
  background: var(--primary);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
}
.contact-info-card h5 {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.contact-info-item:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.contact-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.15rem;
  background: rgba(240,124,0,.22);
  color: var(--accent);
  border: 1px solid rgba(240,124,0,.35);
}
.contact-info-card small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.5) !important;
  margin-bottom: 0.25rem;
}
.contact-info-value,
.contact-info-card span:not([class*="contact-info-icon"]) {
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-info-card a,
.contact-info-card a:visited {
  color: var(--white) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.7;
  transition: color 0.2s;
}
.contact-info-card a:hover { color: var(--accent) !important; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-control,
.form-select {
  border-radius: 8px;
  border-color: var(--border);
  padding: 0.65rem 0.9rem;
  font-size: 0.93rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,124,0,.15);
}
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer { font-size: 0.9rem; }
.footer-brand { display: flex; align-items: center; }
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a,
.footer-contact a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--accent); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
  color: rgba(255,255,255,.65);
}

/* ════════════════════════════════════════
   HONEYPOT ANTI-BOT
════════════════════════════════════════ */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ════════════════════════════════════════
   RESPONSIVE TWEAKS
════════════════════════════════════════ */
@media (max-width: 575.98px) {
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .contact-form-card { padding: 1.5rem; }
  .about-image-grid { margin-top: 2rem; }
}

/* ════════════════════════════════════════
   WHATSAPP FAB
════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1050;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.55);
  color: var(--white);
}
@media (max-width: 575.98px) {
  .whatsapp-fab { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; font-size: 1.5rem; }
}
.whatsapp-fab::after {
  content: 'Chamar no WhatsApp';
  position: absolute;
  right: calc(100% + 0.6rem);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-fab:hover::after {
  opacity: 1;
}
@media (max-width: 767.98px) {
  .whatsapp-fab::after { display: none; }
}

/* ════════════════════════════════════════
   NÚMEROS / PROVA SOCIAL
════════════════════════════════════════ */
.section-numeros {
  background: var(--primary);
  padding: 3.5rem 0;
}
.numero-item {
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,.1);
}
.numero-item:last-child { border-right: none; }
.numero-valor {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.numero-plus {
  color: var(--accent);
  font-size: 0.7em;
  vertical-align: super;
}
.numero-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
@media (max-width: 767.98px) {
  .numero-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .numero-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  .numero-item:last-child, .numero-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

/* ════════════════════════════════════════
   DEPOIMENTOS
════════════════════════════════════════ */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.testimonial-stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 2px; }
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   NAV LINK ATIVO
════════════════════════════════════════ */
#mainNav .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}
