/* =========================================================
   CONTACT — page-specific styles
   ========================================================= */

/* =========================================================
   Scroll snap + scroll behavior
   ========================================================= */

html {
  overscroll-behavior-y: none;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  overscroll-behavior-y: none;
  background: #e3e3e3;

  --brand-color: #e2360e;
  --nav-color: #726e75;
  --nav-hover-color: #e2360e;
  --nav-active-color: #e2360e;
}

/* =========================================================
   Snap layout
   ========================================================= */

.contact-page {
  max-width: none;
  margin: 0;
  padding: 0;
}

.contact-page .snap-section {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding-top: var(--header-h);

  display: flex;
  align-items: flex-start;
}

.contact-page .snap-section--auto {
  min-height: auto;
  padding-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.contact-page .footer-section {
  display: block;
  align-items: initial;
}

/* =========================================================
   Contact screen layout
   ========================================================= */

.contact-inner {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
}

.contact-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* =========================================================
   Left column — text & links
   ========================================================= */

.contact-title {
  margin: 0;
  color: #121113;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.contact-text {
  color: #726e75;
  line-height: 1.2;
}

.contact-links {
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}

.contact-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.contact-label {
  font-weight: 600;
  color: #121113;
}

.contact-email-link {
  color: #e2360e;
  font-weight: 600;
  text-decoration: none;
}

.contact-email-link:hover {
  text-decoration: underline;
}

/* =========================================================
   Mobile — centered copy
   ========================================================= */

@media (max-width: 899px) {
  .contact-title,
  .contact-text,
  .contact-line {
    text-align: center;
  }

  .contact-line {
    justify-content: center;
  }

  .contact-text {
    font-size: 14px;
  }
}

/* =========================================================
   Form
   ========================================================= */

.contact-form {
  border: 2px solid rgba(18, 17, 19, 0.12);
  background: rgba(227, 227, 227, 0.55);
  padding: 10px;
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 4px;
}

.label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #726e75;
}

.input,
.textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 12px;
  border: 2px solid rgba(18, 17, 19, 0.12);
  background: rgba(227, 227, 227, 0.35);
  color: #121113;
  font-size: 12px;
  outline: none;
}

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

.input:focus,
.textarea:focus {
  border-color: rgba(18, 17, 19, 0.35);
}

.contact-status {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  min-height: 16px; /* reserva espaço mesmo vazio */
  color: rgba(18, 17, 19, 0.7);
}

.contact-status.is-success {
  color: #121113;
}

.contact-status.is-error {
  color: #e2360e;
}

/* Button */

.contact-send {
  width: 100%;
  background: #121113;
  color: #e3e3e3;
  border-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .contact-send:hover {
    background: #e2360e;
    color: #e3e3e3;
  }
}

.contact-send:active,
.contact-send:focus-visible {
  background: #e3e3e3;
  color: #e2360e;
  border-color: #e2360e;
}

.contact-note {
  margin: 0;
  font-size: 12px;
  color: rgba(18, 17, 19, 0.6);
}

/* =========================================================
   Desktop — two columns
   ========================================================= */

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
  }

  .contact-right {
    justify-self: end;
    width: 100%;
    max-width: 520px;
  }

  .contact-left {
    justify-self: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
  }

  .contact-title,
  .contact-text,
  .contact-line {
    text-align: left;
  }

  .contact-inner {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    padding-inline: 20px;
  }
}

/* =========================================================
   Microinteractions — Contact (play once)
   ========================================================= */

@keyframes contactEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-left .contact-title,
.contact-left .contact-text,
.contact-left .contact-line,
.contact-right .contact-form {
  opacity: 1;
  transform: none;
}

body.contact-s1-active .contact-left .contact-title,
body.contact-s1-active .contact-left .contact-text,
body.contact-s1-active .contact-left .contact-line,
body.contact-s1-active .contact-right .contact-form {
  opacity: 0;
  transform: translateY(10px);
  animation: contactEnter 1200ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

body.contact-s1-active .contact-left .contact-title {
  animation-delay: 120ms;
}

body.contact-s1-active .contact-left .contact-text {
  animation-delay: 320ms;
}

body.contact-s1-active .contact-left .contact-line {
  animation-delay: 520ms;
}

body.contact-s1-active .contact-right .contact-form {
  animation-delay: 720ms;
}

/* Prevent flash before IO triggers */
@media (max-width: 899px) {
  body:not(.contact-s1-active) .contact-left .contact-title,
  body:not(.contact-s1-active) .contact-left .contact-text,
  body:not(.contact-s1-active) .contact-left .contact-line,
  body:not(.contact-s1-active) .contact-right .contact-form {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.contact-s1-active .contact-left .contact-title,
  body.contact-s1-active .contact-left .contact-text,
  body.contact-s1-active .contact-left .contact-line,
  body.contact-s1-active .contact-right .contact-form {
    animation: none;
    opacity: 1;
    transform: none;
  }

  @media (max-width: 899px) {
    body:not(.contact-s1-active) .contact-left .contact-title,
    body:not(.contact-s1-active) .contact-left .contact-text,
    body:not(.contact-s1-active) .contact-left .contact-line,
    body:not(.contact-s1-active) .contact-right .contact-form {
      opacity: 1;
      transform: none;
    }
  }
}
