/* ============================================================
   ARE Trüst — Page polish: Contacto Estratégico
   Additive refinements layered AFTER aretrust-polish.css.
   Scope: the contact FORM (labels, inputs, textarea, submit) and
   the email / phone / location info rows. Token colors + easings.
   Never touches display / position / grid-template / flex-direction
   of Webflow elements, nor any input attribute / name / structure.
   ============================================================ */

:root {
  --ar-emerald:        #015d3a;
  --ar-emerald-deep:   #012e1d;
  --ar-emerald-bright: #0a7a4d;
  --ar-forest:         #172d1b;
  --ar-mint:           #e7f2ee;
  --ar-gold:           #c9a44c;

  --ar-ease:      cubic-bezier(.22, 1, .36, 1);
  --ar-ease-soft: cubic-bezier(.4, 0, .2, 1);
  --ar-ease-io:   cubic-bezier(.65, 0, .35, 1);
}

/* ============================================================
   1. Heading rhythm — a quiet gold hairline under the H1
   ============================================================ */
.contact-hero-section .container > .heading-h2 {
  position: relative;
  padding-bottom: 1.1rem;
  letter-spacing: -.012em;
}
.contact-hero-section .container > .heading-h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--ar-gold), rgba(201, 164, 76, 0));
  border-radius: 2px;
}

/* ============================================================
   2. Field labels — elevated, considered, emerald on focus-within
   ============================================================ */
.field-label {
  font-size: .78rem !important;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4a4a4a;
  margin-bottom: .65rem !important;
  transition: color .35s var(--ar-ease);
}
/* When the user is in the field, the label warms to emerald. */
._100-width:focus-within > .field-label {
  color: var(--ar-emerald);
}

/* ============================================================
   3. Inputs & textarea — refined resting state + beautiful focus
   Base sets border 1px stroke-grey, radius 8px, min-height 3rem,
   padding .5/.75rem. We keep the radius/structure and refine the
   resting border, padding comfort, and placeholder voice. The
   shared layer already supplies the emerald glow on :focus — we
   deepen it with a soft lift and a calmer resting field.
   ============================================================ */
.contact-form-grid .text-field {
  border-color: rgba(23, 45, 27, .16) !important;
  background-color: #fcfdfc !important;
  padding: .7rem .95rem !important;
  color: #2a2a2a !important;
  transition:
    border-color .4s var(--ar-ease),
    box-shadow .4s var(--ar-ease),
    background-color .4s var(--ar-ease) !important;
}
.contact-form-grid .text-field::placeholder {
  color: #9aa49d;
  opacity: 1;
}
.contact-form-grid .text-field:hover {
  border-color: rgba(1, 93, 58, .34) !important;
  background-color: #fff !important;
}
/* Focus — complements the shared emerald glow with a refined,
   slightly larger halo and a clean white field. */
.contact-form-grid .text-field:focus {
  border-color: var(--ar-emerald) !important;
  background-color: #fff !important;
  box-shadow:
    0 0 0 3px rgba(1, 93, 58, .12),
    0 8px 22px -16px rgba(1, 93, 58, .5) !important;
}

/* The message textarea — comfortable line height + sensible floor */
.contact-form-grid .text-field-area {
  min-height: 9rem;
  line-height: 1.6em;
  resize: vertical;
}

/* ============================================================
   4. Submit button — "Enviar Mensaje" made premium
   Base: black bg, 1.5px grey border, radius 4px. We shift it to
   the brand emerald with a refined hover lift and a gold whisper
   on press, so the primary action feels trustworthy, not generic.
   ============================================================ */
.contact-form-grid .button-primary {
  background-color: var(--ar-emerald) !important;
  border-color: var(--ar-emerald) !important;
  color: #fff !important;
  letter-spacing: .015em;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  transition:
    background-color .5s var(--ar-ease),
    border-color .5s var(--ar-ease),
    color .5s var(--ar-ease),
    transform .5s var(--ar-ease),
    box-shadow .5s var(--ar-ease) !important;
}
.contact-form-grid .button-primary:hover {
  background-color: var(--ar-emerald-deep) !important;
  border-color: var(--ar-emerald-deep) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -14px rgba(1, 93, 58, .55);
}
.contact-form-grid .button-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px -10px rgba(1, 93, 58, .5);
}

/* ============================================================
   5. Intro copy + side column rhythm
   ============================================================ */
.contact-side-container .paragraph-18 {
  color: #3a3a3a;
}

/* ============================================================
   6. Contact info rows — refined icon alignment + hover
   The email / phone / location rows: icon sits in a quiet mint
   chip aligned to the link baseline; the whole row warms on hover.
   We don't change the flex layout — only spacing, color, motion.
   ============================================================ */
.contact-list-item {
  border-radius: .6rem;
  transition: background-color .4s var(--ar-ease);
}
.contact-list-item:hover {
  background-color: rgba(231, 242, 238, .55);
}

.contact-list-icon-wrapper {
  align-self: center !important;
  color: var(--ar-emerald) !important;
  transition: transform .45s var(--ar-ease), color .4s var(--ar-ease);
}
.contact-list-item:hover .contact-list-icon-wrapper {
  transform: translateX(2px);
  color: var(--ar-emerald-bright) !important;
}

.contact-links {
  color: var(--ar-forest) !important;
  position: relative;
  transition: color .35s var(--ar-ease) !important;
}
/* Refined underline that grows from the left on hover (links only) */
a.contact-links::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--ar-emerald);
  opacity: .6;
  transition: width .5s var(--ar-ease);
}
.contact-list-item:hover a.contact-links {
  color: var(--ar-emerald) !important;
}
.contact-list-item:hover a.contact-links::after {
  width: 100%;
}

/* ============================================================
   7. Form done / fail messages — on-brand voice
   ============================================================ */
.contact-form-block .w-form-done {
  border-left: 3px solid var(--ar-emerald);
  background-color: rgba(231, 242, 238, .6);
}
.contact-form-block .w-form-done .paragraph-18 {
  color: var(--ar-emerald-deep);
}

/* ============================================================
   8. Respect reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .field-label,
  .contact-form-grid .text-field,
  .contact-form-grid .button-primary,
  .contact-list-item,
  .contact-list-icon-wrapper,
  .contact-links,
  a.contact-links::after {
    transition: none !important;
  }
  .contact-form-grid .button-primary:hover,
  .contact-list-item:hover .contact-list-icon-wrapper {
    transform: none !important;
  }
}
