/**
 * Fale conosco — layout moderno
 */

.main--contato {
  padding: 0;
  background: var(--sb-bg);
}

.ct-page {
  scroll-behavior: smooth;
}

.ct-page [id] {
  scroll-margin-top: 110px;
}

/* Hero — mesmo posicionamento da listagem de Notícias (.pub-hero) */
.ct-hero {
  position: relative;
  overflow: hidden;
  margin-top: -29px;
  padding: clamp(3rem, 8vw, 8rem) 0 clamp(2.5rem, 6vw, 8rem);
  color: var(--sb-white);
  background: var(--sb-gray-dark) center / cover no-repeat;
  background-image: linear-gradient(
      105deg,
      rgba(18, 20, 26, 0.92) 0%,
      rgba(60, 60, 60, 0.75) 45%,
      rgba(158, 12, 36, 0.55) 100%
    ),
    var(--ct-hero-img);
}

.ct-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 45%);
  pointer-events: none;
}

.ct-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ct-hero-inner {
  position: relative;
  z-index: 1;
}

.ct-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.75rem;
}

.ct-hero-title {
  font-family: var(--ffc);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.ct-hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.25rem;
  max-width: 36em;
}

.ct-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ct-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}

.ct-chip:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Corpo */
.ct-body {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.ct-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: stretch;
}

.ct-panel--main {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ct-panel--main .ct-form {
  flex: 0 0 auto;
}

.ct-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ct-panel {
  background: var(--sb-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sb-border);
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
}

.ct-panel--accent {
  border-color: rgba(200, 16, 46, 0.15);
  background: linear-gradient(180deg, #fff 0%, var(--sb-red-light) 120%);
}

.ct-panel--map {
  padding: 0;
  overflow: hidden;
}

.ct-panel--map .ct-panel-head {
  padding: 1.25rem 1.5rem 0;
}

.ct-panel-head {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ct-panel-head h2 {
  margin: 0 0 0.2rem;
  font-family: var(--ffc);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sb-gray-dark);
}

.ct-panel-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sb-gray);
  line-height: 1.45;
}

.ct-panel-head a {
  color: var(--sb-red);
  font-weight: 600;
}

.ct-panel-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sb-red-light);
  color: var(--sb-red);
  border-radius: 10px;
  font-size: 1.35rem;
}

/* Formulários */
.ct-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.ct-form-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.ct-field--wide {
  grid-column: span 2;
}

.ct-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sb-gray);
  margin-bottom: 0.35rem;
}

.ct-label em {
  color: var(--sb-red);
  font-style: normal;
}

.ct-field {
  display: block;
  margin-bottom: 0.85rem;
}

.ct-form-grid .ct-field {
  margin-bottom: 0;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--sb-border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: var(--sb-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.ct-field textarea {
  resize: vertical;
  min-height: 110px;
}

.ct-field--file input[type="file"] {
  padding: 0.5rem;
  font-size: 0.85rem;
}

.ct-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--sb-gray);
  margin-bottom: 1rem;
  cursor: pointer;
}

.ct-check input {
  margin-top: 0.15rem;
  accent-color: var(--sb-red);
}

.ct-check a {
  color: var(--sb-red);
}

.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ct-btn--primary {
  background: var(--sb-red);
  color: #fff;
  border-color: var(--sb-red);
}

.ct-btn--primary:hover {
  background: var(--sb-red-dark);
  border-color: var(--sb-red-dark);
}

.ct-btn--outline {
  background: transparent;
  color: var(--sb-red);
  border-color: var(--sb-red);
  width: 100%;
}

.ct-btn--outline:hover {
  background: var(--sb-red-light);
}

.ct-btn--block {
  width: 100%;
}

.ct-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ct-feedback {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}

.ct-feedback.is-ok {
  background: #ecfdf5;
  color: #065f46;
}

.ct-feedback.is-err {
  background: #fef2f2;
  color: #991b1b;
}

/* Equipe comercial */
.ct-team {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ct-person {
  padding: 1rem;
  background: var(--sb-gray-light);
  border-radius: 10px;
  border-left: 3px solid var(--sb-red);
}

.ct-person h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 700;
}

.ct-person-role {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--sb-gray);
}

.ct-person-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ct-person-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--sb-gray-dark);
  text-decoration: none;
}

.ct-person-links a:hover {
  color: var(--sb-red);
}

.ct-person-links .ct-wa:hover {
  color: #128c7e;
}

/* RH card */
.ct-panel--rh {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--sb-gray-dark);
  color: #fff;
  border: none;
}

.ct-rh-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ct-rh-inner > i {
  font-size: 2rem;
  opacity: 0.9;
  color: var(--sb-red);
  flex-shrink: 0;
}

.ct-panel--rh h2 {
  margin: 0 0 0.25rem;
  font-family: var(--ffc);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.ct-panel--rh p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.45;
}

.ct-panel--rh .ct-btn--primary {
  width: 100%;
}

.ct-map-block {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin-top: 25px;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sb-border);
}

.ct-map-head {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex: 0 0 auto;
}

.ct-map-head h2 {
  margin: 0 0 0.2rem;
  font-family: var(--ffc);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sb-gray-dark);
}

.ct-map-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--sb-gray);
  line-height: 1.45;
}

.ct-map-wrap {
  flex: 1 1 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--sb-border);
  line-height: 0;
  min-height: 430px;
}

.ct-map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

/* Fieldset modal */
.ct-fieldset {
  border: 1px solid var(--sb-border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.ct-fieldset legend {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sb-red);
  padding: 0 0.35rem;
}

/* Modal */
.ct-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.ct-modal[hidden] {
  display: none;
}

.ct-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 26, 0.65);
  backdrop-filter: blur(4px);
}

.ct-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  margin: auto 0;
}

.ct-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--sb-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.ct-modal-header h2 {
  margin: 0;
  font-family: var(--ffc);
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--sb-red);
}

.ct-modal-close {
  background: var(--sb-gray-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.ct-modal-body {
  padding: 1.25rem;
}

.ct-modal-lead {
  margin: 0 0 1rem;
  color: var(--sb-gray);
  font-size: 0.9rem;
}

body.ct-modal-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .ct-grid {
    grid-template-columns: 1fr;
  }

  .ct-aside {
    order: -1;
  }
}

@media (max-width: 600px) {
  .ct-form-grid,
  .ct-form-grid--3 {
    grid-template-columns: 1fr;
  }

  .ct-form input,
  .ct-form select,
  .ct-form textarea {
    font-size: 16px;
    min-height: 44px;
  }

  .ct-form button[type='submit'],
  .ct-form .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .ct-field--wide {
    grid-column: span 1;
  }

  .ct-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ct-chip {
    justify-content: center;
  }
}
