/* =========================================================
   REFRI ICE — sections.css
   Empresas, cobertura, diferenciais, FAQ, CTA e páginas internas
   ========================================================= */

/* ---------- Faixa para empresas ---------- */
.business {
  position: relative;
  overflow: hidden;
}

.business::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -180px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 170, 235, 0.22), transparent 68%);
  pointer-events: none;
}

.business h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  margin-bottom: 18px;
}

.business__lead {
  font-size: 1.08rem;
  margin-bottom: 28px;
}

.business .check-list {
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 34px;
}

.checklist-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: var(--text);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
}

.checklist-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.checklist-card__head strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}

.checklist-card__head span {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--success);
  white-space: nowrap;
}

.checklist-card__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}

.checklist-card__row:last-of-type {
  border-bottom: 0;
}

.checklist-card__row i {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--sky-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.checklist-card__row span {
  flex: 1;
  color: var(--ink);
  font-weight: 500;
}

.checklist-card__row small {
  color: var(--muted);
  font-size: 0.84rem;
}

.checklist-card__foot {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.checklist-card__foot b {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--navy-900);
  color: var(--white);
}

/* ---------- Área de cobertura ---------- */
.cities {
  margin: 4px 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.cities summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
}

.cities summary::-webkit-details-marker {
  display: none;
}

.cities summary svg {
  width: 18px;
  height: 18px;
  color: var(--sky-600);
}

.cities summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.cities[open] summary::after {
  transform: rotate(45deg);
}

.cities__list {
  columns: 3;
  column-gap: 20px;
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--text);
}

.cities__list li {
  padding: 3px 0;
  break-inside: avoid;
}

@media (max-width: 600px) {
  .cities__list {
    columns: 2;
  }
}

.coverage-map {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 10px;
}

.coverage-map__canvas {
  position: relative;
  z-index: 0;
  height: 460px;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  background: var(--sky-100);
  font-family: var(--font-body);
}

/* Deixa o mapa mais neutro para as marcações da marca se destacarem */
.coverage-map__canvas .leaflet-tile-pane {
  filter: saturate(0.4) brightness(1.03);
}

.coverage-map__fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.coverage-map__fallback a {
  color: var(--sky-600);
  font-weight: 600;
}

.coverage-map__note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 4px;
  font-size: 0.86rem;
  color: var(--muted);
}

.coverage-map__note svg {
  width: 16px;
  height: 16px;
  color: var(--sky-600);
}

.coverage-map .leaflet-control-zoom {
  border: 0;
  box-shadow: var(--shadow-sm);
}

.coverage-map .leaflet-control-zoom a {
  color: var(--navy-900);
}

.coverage-map .leaflet-control-attribution {
  font-size: 0.7rem;
}

/* Marcador de região */
.map-pin {
  position: relative;
}

.map-pin__dot,
.map-pin__pulse {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
}

.map-pin__dot {
  background: var(--navy-900);
  border: 3px solid var(--sky-500);
  box-shadow: 0 2px 6px rgba(6, 24, 78, 0.4);
}

.map-pin__pulse {
  background: rgba(40, 170, 235, 0.45);
  animation: map-pulse 2.4s ease-out infinite;
}

@keyframes map-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3); opacity: 0; }
}

/* Etiqueta com o nome da região */
.leaflet-tooltip.map-label {
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px -4px rgba(6, 24, 78, 0.5);
}

.leaflet-tooltip.map-label--top::before {
  border-top-color: var(--navy-900);
}

.leaflet-tooltip.map-label--bottom::before {
  border-bottom-color: var(--navy-900);
}

.leaflet-tooltip.map-label--left::before {
  border-left-color: var(--navy-900);
}

.leaflet-tooltip.map-label--right::before {
  border-right-color: var(--navy-900);
}

@media (max-width: 600px) {
  .coverage-map__canvas {
    height: 320px;
  }

  .leaflet-tooltip.map-label {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
}

/* ---------- Diferenciais ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  display: flex;
  gap: 18px;
  padding: 28px 26px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
}

.feature__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--sky-100);
  color: var(--navy-900);
}

.feature__icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Perguntas frequentes ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq details[open] {
  border-color: var(--sky-300);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ice-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306184e' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--sky-100);
}

.faq details p {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* ---------- CTA final ---------- */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 56px 60px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(40, 170, 235, 0.35), transparent 70%),
    linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  isolation: isolate;
}

.cta-band__mark {
  position: absolute;
  right: 26%;
  bottom: -60px;
  width: 220px;
  opacity: 0.07;
  z-index: -1;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.cta-band p {
  font-size: 1.05rem;
}

.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.cta-band__alt {
  font-size: 0.9rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.cta-band__alt a {
  color: var(--white);
  font-weight: 600;
}

/* ---------- Cabeçalho das páginas internas ---------- */
.page-hero {
  position: relative;
  padding-block: 64px 72px;
  background:
    radial-gradient(800px 420px at 90% 0%, rgba(40, 170, 235, 0.16), transparent 65%),
    var(--ice-50);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero__mark {
  position: absolute;
  right: 6%;
  top: 50%;
  width: 230px;
  transform: translateY(-50%);
  opacity: 0.1;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--sky-600);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.6;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  max-width: 760px;
  margin-bottom: 18px;
}

.page-hero p {
  font-size: 1.15rem;
  max-width: 620px;
}

.page-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

/* ---------- Detalhe de serviço (servicos.html) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.service-detail__intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.service-detail__art {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--sky-100), var(--ice-50));
  padding: 26px;
  margin-bottom: 28px;
}

.section--ice .service-detail__art {
  background: linear-gradient(160deg, var(--white), var(--sky-100));
}

.service-detail__art svg {
  width: 100%;
  height: auto;
  max-height: 150px;
}

.service-detail__photo {
  margin: 0 0 28px;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sky-100);
}

.service-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail h2 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}

.service-detail__intro > p {
  font-size: 1.08rem;
  margin-bottom: 24px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.fact {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

.fact small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.fact strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.2;
}

.detail-list {
  display: grid;
  gap: 14px;
}

.detail-item {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
}

.detail-item__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--sky-500);
}

.detail-item__icon svg {
  width: 22px;
  height: 22px;
}

.detail-item h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.detail-item p {
  color: var(--muted);
  font-size: 0.97rem;
}

.note {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--sky-100);
  color: var(--navy-900);
  font-size: 0.95rem;
}

.note svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--sky-600);
}

.note a {
  font-weight: 600;
  color: var(--sky-600);
  white-space: nowrap;
}

.note a:hover {
  text-decoration: underline;
}

/* ---------- Sobre ---------- */
.story p + p {
  margin-top: 16px;
}

.story p {
  font-size: 1.06rem;
}

.story__lead {
  font-size: 1.3rem !important;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--ice-50);
  border: 1px solid var(--line);
}

.stat--navy {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.stat--navy strong {
  color: var(--sky-500);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(143, 211, 246, 0.25);
}

.timeline li {
  position: relative;
  padding-top: 38px;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 3px solid var(--sky-500);
}

.timeline strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 8px;
}

.timeline p {
  font-size: 0.96rem;
}

.company-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.company-card div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.company-card div:last-child {
  border-right: 0;
}

.company-card small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.company-card strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Contato ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.form-card h2 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.form-card__intro {
  color: var(--muted);
  margin-bottom: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 16px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.field label span,
.field legend span {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362728a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
  padding-right: 42px;
}

.field textarea {
  resize: vertical;
  min-height: 116px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(40, 170, 235, 0.16);
}

.field.is-invalid input,
.field.is-invalid select {
  border-color: var(--danger);
}

.field__hint {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}

.field__hint:empty {
  display: none;
}

.field__hint.is-ok {
  color: var(--success);
  font-weight: 600;
}

.field__hint.is-warn {
  color: var(--danger);
  font-weight: 600;
}

fieldset.field {
  border: 0;
}

.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-group label {
  margin: 0;
  cursor: pointer;
}

.option-group input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.option-group span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}

.option-group input:checked + span {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}

.option-group input:focus-visible + span {
  outline: 3px solid var(--sky-500);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.form-actions small {
  flex: 1;
  min-width: 220px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-status {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  font-size: 0.97rem;
}

.form-status strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.form-status .btn {
  margin-top: 14px;
}

.form-status--ok {
  background: #ecfdf3;
  border: 1px solid #bbf0cf;
}

.form-status--error {
  background: #fff6ed;
  border: 1px solid #fed7aa;
}

.contact-aside {
  display: grid;
  gap: 20px;
}

.contact-area {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.contact-area svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--sky-600);
}

.channel-card {
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 30px;
}

.channel-card h2 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.channel {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.channel__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(40, 170, 235, 0.16);
  color: var(--sky-500);
}

.channel__icon svg {
  width: 20px;
  height: 20px;
}

.channel small {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.channel strong,
.channel a {
  color: var(--white);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.channel a:hover {
  color: var(--sky-300);
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .company-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .company-card div:nth-child(2) {
    border-right: 0;
  }

  .company-card div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 960px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .service-detail__intro {
    position: static;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 44px 36px;
  }

  .cta-band__actions {
    align-items: flex-start;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
  }

  .timeline::before {
    display: none;
  }

  .page-hero__mark {
    display: none;
  }
}

@media (max-width: 600px) {
  .feature-grid,
  .form-grid,
  .facts,
  .stats,
  .timeline,
  .company-card {
    grid-template-columns: 1fr;
  }

  .company-card div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .company-card div:last-child {
    border-bottom: 0;
  }

  .feature {
    padding: 22px 20px;
  }

  .faq summary {
    font-size: 1.02rem;
    padding: 18px 18px;
  }

  .faq details p {
    padding: 0 18px 18px;
  }

  .cta-band {
    padding: 36px 22px;
  }

  .cta-band__actions,
  .cta-band__actions .btn {
    width: 100%;
  }

  .form-card {
    padding: 26px 20px;
  }

  .checklist-card {
    padding: 22px 18px;
  }

  .detail-item {
    padding: 20px 18px;
  }

  .page-hero {
    padding-block: 44px 52px;
  }
}
