/* =========================================================
   SERVIÇOS GERAIS - JACY CORDEIRO
   Tom sobre tom azul | cards, modais, contato e mapa
   ========================================================= */
:root {
  --svc-light-bg: #eaf6ff;
  --svc-light-bg-2: #dbeeff;
  --svc-light-card: #ffffff;
  --svc-dark-1: #020918;
  --svc-dark-2: #08234a;
  --svc-dark-3: #0d3b78;
  --svc-blue: #1d70d6;
  --svc-blue-2: #38bdf8;
  --svc-blue-3: #93d5ff;
  --svc-text: #061529;
  --svc-muted: #38536f;
  --svc-white: #ffffff;
  --svc-soft-white: rgba(255, 255, 255, 0.82);
  --svc-border-light: rgba(29, 112, 214, 0.18);
  --svc-border-dark: rgba(147, 213, 255, 0.22);
  --svc-shadow-light: 0 18px 45px rgba(11, 42, 85, 0.14);
  --svc-shadow-dark: 0 20px 55px rgba(0, 0, 0, 0.26);
  --svc-radius-xl: 30px;
  --svc-radius-lg: 22px;
  --svc-radius-md: 16px;
  --svc-transition: all 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

.servico-page {
  background: var(--svc-light-bg);
  color: var(--svc-text);
  overflow-x: hidden;
  font-family: 'Montserrat', 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.servico-page *,
.servico-page *::before,
.servico-page *::after {
  box-sizing: border-box;
}

.servico-section {
  position: relative;
  padding: 88px 0;
  overflow: hidden;
}

.servico-section-light {
  background:
    radial-gradient(circle at 8% 12%, rgba(56, 189, 248, 0.18), transparent 34%),
    linear-gradient(180deg, var(--svc-light-bg), var(--svc-light-bg-2));
  color: var(--svc-text);
}

.servico-section-dark {
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.20), transparent 38%),
    radial-gradient(circle at 95% 100%, rgba(29, 112, 214, 0.34), transparent 42%),
    linear-gradient(135deg, var(--svc-dark-1), var(--svc-dark-2) 55%, var(--svc-dark-3));
  color: var(--svc-white);
}

.servico-page .container {
  position: relative;
  z-index: 2;
}

.servico-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.5;
  pointer-events: none;
}

.servico-bg-shape-one {
  width: 380px;
  height: 380px;
  background: rgba(56, 189, 248, 0.24);
  top: -140px;
  right: -100px;
}

.servico-bg-shape-two {
  width: 260px;
  height: 260px;
  background: rgba(29, 112, 214, 0.16);
  left: -70px;
  bottom: 30px;
}

.servico-hero-section {
  padding-top: 108px;
}

.servico-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
}

.servico-kicker,
.servico-section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(29, 112, 214, 0.10);
  border: 1px solid rgba(29, 112, 214, 0.20);
  color: #1054a4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.servico-section-dark .servico-section-label,
.servico-heading-light .servico-section-label {
  background: rgba(147, 213, 255, 0.12);
  border-color: rgba(147, 213, 255, 0.28);
  color: #bde8ff;
}

.servico-hero-title {
  margin: 0 0 22px;
  color: var(--svc-text);
  font-size: clamp(34px, 4.2vw, 62px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.servico-hero-text {
  max-width: 710px;
  margin: 0;
  color: var(--svc-muted);
  font-size: 17px;
  line-height: 1.75;
}

.servico-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.servico-btn,
.servico-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  transition: var(--svc-transition);
  cursor: pointer;
  white-space: normal;
  text-align: center;
}

.servico-btn-primary,
.servico-btn-primary:visited {
  background: linear-gradient(135deg, #0d66c2, #2196f3);
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(29, 112, 214, 0.30);
}

.servico-btn-primary:hover,
.servico-btn-primary:focus {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(29, 112, 214, 0.42);
}

.servico-btn-outline,
.servico-btn-outline:visited {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(29, 112, 214, 0.22);
  color: #0c315d !important;
}

.servico-btn-outline:hover,
.servico-btn-outline:focus {
  background: #ffffff;
  color: #0c315d !important;
  transform: translateY(-2px);
}

.servico-btn-light,
.servico-btn-light:visited {
  background: rgba(255, 255, 255, 0.96);
  color: #0b2a55 !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.servico-btn-light:hover,
.servico-btn-light:focus {
  background: #dff3ff;
  color: #0b2a55 !important;
  transform: translateY(-2px);
}

.servico-btn-full {
  width: 100%;
}

.servico-hero-panel {
  border-radius: var(--svc-radius-xl);
  background: rgba(255, 255, 255, 0.83);
  border: 1px solid rgba(29, 112, 214, 0.18);
  box-shadow: var(--svc-shadow-light);
  padding: 24px;
  min-width: 0;
}

.servico-panel-top {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.servico-panel-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #8bd5ff;
}

.servico-dashboard-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #071f44, #0d4d9a);
  color: #ffffff;
  margin-bottom: 18px;
}

.servico-dashboard-card-main strong,
.servico-dashboard-card-main small {
  display: block;
  overflow-wrap: anywhere;
}

.servico-dashboard-card-main strong {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 5px;
}

.servico-dashboard-card-main small {
  color: rgba(255, 255, 255, 0.75);
}

.servico-dashboard-card-main i {
  font-size: 34px;
  color: #bde8ff;
}

.servico-panel-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 410px;
  overflow-y: auto;
  padding-right: 4px;
}

.servico-panel-service-card,
.servico-panel-service-card:visited {
  min-width: 0;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 15px;
  border: 1px solid rgba(29, 112, 214, 0.15);
  background: rgba(255, 255, 255, 0.70);
  color: #0c315d !important;
  text-decoration: none !important;
  transition: var(--svc-transition);
  text-align: center;
}

.servico-panel-service-card i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #dff3ff;
  color: #0d66c2;
  font-size: 15px;
  flex: 0 0 auto;
}

.servico-panel-service-card span {
  display: block;
  max-width: 100%;
  color: #0c315d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.servico-panel-service-card:hover,
.servico-panel-service-card:focus {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(11, 42, 85, 0.12);
}

.servico-section-heading {
  max-width: 860px;
  margin: 0 auto 46px;
  text-align: center;
}

.servico-section-heading h3 {
  margin: 0 0 14px;
  color: var(--svc-text);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.17;
  letter-spacing: -0.035em;
}

.servico-section-heading p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--svc-muted);
  font-size: 16px;
  line-height: 1.75;
}

.servico-heading-light h3,
.servico-section-dark .servico-section-heading h3,
.servico-section-dark .servico-section-heading p {
  color: #ffffff;
}

.servico-section-dark .servico-section-heading p,
.servico-heading-light p {
  color: rgba(255, 255, 255, 0.80);
}

.servico-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.servico-card-grid-large {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.servico-card {
  width: 100%;
  min-width: 0;
  min-height: 198px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--svc-border-dark);
  background: rgba(255, 255, 255, 0.075);
  color: #ffffff;
  text-align: left;
  box-shadow: var(--svc-shadow-dark);
  transition: var(--svc-transition);
  cursor: pointer;
  overflow: hidden;
}

.servico-card-light {
  background: #ffffff;
  color: var(--svc-text);
  border-color: var(--svc-border-light);
  box-shadow: var(--svc-shadow-light);
}

.servico-card:hover,
.servico-card:focus {
  transform: translateY(-6px);
  border-color: rgba(147, 213, 255, 0.55);
  outline: none;
}

.servico-card-light:hover,
.servico-card-light:focus {
  border-color: rgba(29, 112, 214, 0.36);
}

.servico-card-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #dff3ff;
  color: #0a5db7;
  font-size: 24px;
  transition: var(--svc-transition);
}

.servico-card:hover .servico-card-icon,
.servico-card:focus .servico-card-icon {
  transform: scale(1.06);
}

.servico-card strong,
.servico-card small {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.servico-card strong {
  color: inherit;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
}

.servico-card small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.servico-card-light small {
  color: var(--svc-muted);
}

.servico-authority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.servico-authority-card {
  min-width: 0;
  height: 100%;
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--svc-border-light);
  box-shadow: var(--svc-shadow-light);
}

.servico-authority-card i {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #dff3ff;
  color: #0a5db7;
  font-size: 24px;
  margin-bottom: 18px;
}

.servico-authority-card h4,
.servico-authority-card p {
  overflow-wrap: anywhere;
}

.servico-authority-card h4 {
  color: var(--svc-text);
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 10px;
}

.servico-authority-card p {
  color: var(--svc-muted);
  line-height: 1.7;
  margin: 0;
}

.servico-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 28px;
  align-items: stretch;
}

.servico-form-card,
.servico-location-card {
  min-width: 0;
  padding: 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.095);
  border: 1px solid rgba(147, 213, 255, 0.22);
  box-shadow: var(--svc-shadow-dark);
}

.servico-form-card .form-control {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(147, 213, 255, 0.34);
  background: rgba(255, 255, 255, 0.96);
  color: #061529 !important;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.servico-form-card textarea.form-control {
  min-height: 132px;
  resize: vertical;
}

.servico-form-card .form-control::placeholder {
  color: #5c708a !important;
  opacity: 1;
}

.servico-form-card .form-control:focus {
  border-color: #60c5ff;
  background: #ffffff;
  color: #061529 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 197, 255, 0.18);
}

.servico-form-card .validation {
  color: #fecaca;
  font-size: 12px;
  margin-top: 4px;
}

.servico-form-card .jc-form-privacy {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(29, 112, 214, 0.22) !important;
  color: #061529 !important;
  border-radius: 14px !important;
}

.servico-form-card .jc-form-privacy label,
.servico-form-card .jc-form-privacy a {
  color: #061529 !important;
}

.servico-form-card .jc-form-privacy a {
  font-weight: 900;
  text-decoration: underline;
}

.servico-location-header {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
}

.servico-location-header > i {
  width: 58px;
  height: 58px;
  min-width: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #dff3ff;
  color: #0a5db7;
  font-size: 24px;
}

.servico-location-header strong,
.servico-location-header span {
  display: block;
  overflow-wrap: anywhere;
}

.servico-location-header strong {
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.servico-location-header span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.servico-map-frame {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(147, 213, 255, 0.24);
  background: #dff3ff;
}

.servico-map-frame iframe {
  display: block;
  width: 100%;
}

.servico-location-info {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.servico-location-info p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.servico-location-info i {
  color: #bde8ff;
  margin-top: 3px;
}

.servico-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.servico-modal.is-open {
  display: flex;
}

.servico-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 8, 20, 0.78);
  backdrop-filter: blur(7px);
}

.servico-modal-dialog {
  position: relative;
  width: min(100%, 680px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 34px;
  border-radius: 26px;
  background: #ffffff;
  color: var(--svc-text);
  border: 1px solid rgba(147, 213, 255, 0.24);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: var(--svc-transition);
}

.servico-modal.is-open .servico-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.servico-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #eaf6ff;
  color: #0c315d;
  cursor: pointer;
}

.servico-modal-icon {
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #0d66c2, #2196f3);
  color: #ffffff;
  font-size: 28px;
  margin-bottom: 18px;
}

.servico-modal h3 {
  margin: 0 46px 12px 0;
  color: var(--svc-text);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.servico-modal p {
  color: var(--svc-muted);
  line-height: 1.75;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}

.servico-modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 9px;
}

.servico-modal-list li {
  position: relative;
  padding-left: 28px;
  color: #18385c;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.servico-modal-list li::before {
  content: "\f058";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  top: 0;
  color: #0d66c2;
}

body.servico-modal-open {
  overflow: hidden;
}

#bottom-widget,
footer {
  background: linear-gradient(135deg, var(--svc-dark-1), var(--svc-dark-2) 55%, var(--svc-dark-3)) !important;
  color: #ffffff !important;
}

#bottom-widget h1,
#bottom-widget h2,
#bottom-widget h3,
#bottom-widget h4,
#bottom-widget h5,
#bottom-widget h6,
#bottom-widget p,
#bottom-widget a,
footer p,
footer a,
footer li {
  color: #ffffff !important;
}

.social-network .fa-circle.fa-stack-2x {
  color: rgba(234, 246, 255, 0.95) !important;
}

.social-network .fa-stack-1x.fa-inverse {
  color: #0d3b78 !important;
}

.social-network a:hover .fa-circle.fa-stack-2x {
  color: #38bdf8 !important;
}

.social-network a:hover .fa-stack-1x.fa-inverse {
  color: #ffffff !important;
}

@media (max-width: 1199px) {
  .servico-card-grid-large {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .servico-panel-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .servico-section {
    padding: 68px 0;
  }

  .servico-hero-grid,
  .servico-contact-grid {
    grid-template-columns: 1fr;
  }

  .servico-hero-copy {
    text-align: center;
  }

  .servico-hero-text {
    margin: 0 auto;
  }

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

  .servico-card-grid,
  .servico-card-grid-large,
  .servico-authority-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .servico-section {
    padding: 56px 0;
  }

  .servico-hero-section {
    padding-top: 78px;
  }

  .servico-hero-title {
    font-size: 32px;
  }

  .servico-hero-text,
  .servico-section-heading p {
    font-size: 15px;
  }

  .servico-hero-actions,
  .servico-btn {
    width: 100%;
  }

  .servico-hero-panel,
  .servico-form-card,
  .servico-location-card {
    padding: 18px;
    border-radius: 22px;
  }

  .servico-panel-service-grid,
  .servico-card-grid,
  .servico-card-grid-large,
  .servico-authority-grid {
    grid-template-columns: 1fr;
  }

  .servico-panel-service-grid {
    max-height: none;
    overflow: visible;
  }

  .servico-card {
    min-height: auto;
    padding: 20px;
  }

  .servico-contact-grid {
    gap: 18px;
  }

  .servico-modal-dialog {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .servico-modal h3 {
    font-size: 24px;
  }
}
