/* ============================================
   CONTATO — Forja Marketing
   Premium Contact Page
   ============================================ */

/* Active nav */
.ct-link--active { color: var(--accent) !important; }
.ct-link--active::after { width: 100% !important; }

/* =============================================
   HERO
   ============================================= */
.ct-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 2;
}

.ct-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 60%, rgba(140, 106, 59, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.ct-hero__inner {
  padding-top: 160px;
  padding-bottom: 100px;
}

.ct-hero__content {
  max-width: 700px;
  margin: 0 auto;
}

.ct-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  animation: fadeInUp 0.9s var(--ease) 0.2s both;
}

.ct-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--text-primary);
  margin-bottom: 36px;
  animation: fadeInUp 0.9s var(--ease) 0.4s both;
}

.ct-hero__subtitle {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  animation: fadeInUp 0.9s var(--ease) 0.6s both;
}

.ct-hero__line {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto;
  animation: fadeInUp 0.9s var(--ease) 0.8s both;
  box-shadow: 0 0 16px rgba(140, 106, 59, 0.3);
}

/* =============================================
   SECTION COMMON
   ============================================= */
.ct-section {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 2;
}

.ct-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.ct-section--dark { background: var(--black); }
.ct-section--surface { background: var(--black-soft); }
.ct-section--cta { background: var(--black); text-align: center; overflow: hidden; }

.ct-section__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.ct-section__number {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--accent);
  opacity: 0.5;
}

.ct-section__label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =============================================
   INSTITUCIONAL
   ============================================= */
.ct-institucional {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.ct-institucional__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.ct-institucional__right p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.9;
  margin-bottom: 24px;
  font-weight: 300;
}

.ct-institucional__right p:last-child { margin-bottom: 0; }

/* =============================================
   MAIN LAYOUT: INFO + FORM
   ============================================= */
.ct-main {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: stretch;
}

/* =============================================
   INFO CARDS
   ============================================= */
.ct-info {
  display: flex;
  flex-direction: column;
}

.ct-info__cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
  flex: 1;
}

.ct-info__card {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.4s ease;
}

.ct-info__card:first-child { padding-top: 0; }
.ct-info__card:last-child { border-bottom: none; }

.ct-info__card:hover {
  border-color: rgba(140, 106, 59, 0.2);
}

.ct-info__icon {
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.6;
}

.ct-info__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ct-info__value {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

a.ct-info__value:hover {
  color: var(--accent);
}

.ct-info__whatsapp {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* =============================================
   FORM
   ============================================= */
.ct-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.ct-form__field {
  margin-bottom: 20px;
}

.ct-form__row .ct-form__field {
  margin-bottom: 0;
}

.ct-form__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.ct-form__input,
.ct-form__select,
.ct-form__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--black);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 14px 18px;
  outline: none;
  transition: all 0.3s ease;
  -webkit-appearance: none;
}

.ct-form__input::placeholder,
.ct-form__textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.ct-form__input:hover,
.ct-form__select:hover,
.ct-form__textarea:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.ct-form__input:focus,
.ct-form__select:focus,
.ct-form__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(140, 106, 59, 0.1);
}

/* Error state */
.ct-form__input--error,
.ct-form__input--error:hover,
.ct-form__input--error:focus {
  border-color: #8B3A3A;
  box-shadow: 0 0 0 3px rgba(139, 58, 58, 0.1);
}

.ct-form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* Select */
.ct-form__select-wrap {
  position: relative;
}

.ct-form__select {
  cursor: pointer;
  padding-right: 44px;
}

.ct-form__select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.ct-form-wrap {
  display: flex;
  flex-direction: column;
}

.ct-form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Submit */
.ct-form__submit {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  position: relative;
}

.ct-form__submit-loading {
  display: none;
  animation: spin 1s linear infinite;
}

.ct-form__submit.is-loading .ct-form__submit-text,
.ct-form__submit.is-loading .ct-form__submit-arrow {
  opacity: 0;
}

.ct-form__submit.is-loading .ct-form__submit-loading {
  display: block;
  position: absolute;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Feedback */
.ct-form__feedback {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

.ct-form__feedback.is-visible {
  display: flex;
}

.ct-form__feedback--success {
  background: rgba(95, 111, 100, 0.12);
  border: 1px solid rgba(95, 111, 100, 0.3);
  color: #7A9B85;
}

.ct-form__feedback--success svg { color: #7A9B85; flex-shrink: 0; }

.ct-form__feedback--error {
  background: rgba(139, 58, 58, 0.1);
  border: 1px solid rgba(139, 58, 58, 0.3);
  color: #C47272;
}

.ct-form__feedback--error svg { color: #C47272; flex-shrink: 0; }

/* =============================================
   CTA
   ============================================= */
.ct-cta__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 50% 80%, rgba(140, 106, 59, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.ct-cta {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.ct-cta__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.ct-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.ct-cta__subtitle {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 48px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .ct-institucional {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ct-main {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .ct-info__whatsapp {
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .ct-hero {
    min-height: 70vh;
  }

  .ct-hero__title {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .ct-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ct-form__row .ct-form__field {
    margin-bottom: 20px;
  }

  .ct-info__whatsapp {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .ct-info__card { padding: 24px 0; }
}
