/* ==========================================================================
   Grupo Seattle — Home (static)
   Extracted from Figma: node 3:91 "Webscraping Implementation"
   File key: 6VPXCvSCkG7RHeEn0W347y
   ========================================================================== */

:root {
  --color-bg-top: #efefef;
  --color-bg-bottom: #6e6357;
  --color-card-bg: #a1998a;
  --color-orange: #f58244;
  --color-orange-header-btn: #f68345;
  --color-header-label: #666666;
  --color-input-border: #d1c4b4;
  --color-input-placeholder: rgba(17, 17, 17, 0.5);
  --color-label: rgba(255, 255, 255, 0.9);
  --color-file-btn-bg: #f3ede6;
  --color-file-btn-text: #6b5744;
  --color-file-name-text: #9ca3af;
  --color-button-text: #333333;

  --font-heading: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --content-max: 1060px;

  /* Motion tokens.
     Note: get_motion_context (Figma MCP) returned no keyframe/timeline
     animation data for node 3:91 or any of its descendants — this design
     file has no Smart Animate / authored motion to translate 1:1. The
     transitions/animations below are a restrained, standard entrance +
     micro-interaction treatment applied on top of the static design,
     not values sourced from Figma. See handoff notes for details. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 150ms;
  --motion-base: 550ms;
  --motion-slow: 800ms;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: #111;
  background: var(--color-bg-bottom);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: linear-gradient(
    180deg,
    var(--color-bg-top) 0%,
    var(--color-bg-top) 65%,
    var(--color-bg-bottom) 65%,
    var(--color-bg-bottom) 100%
  );
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------------------------------- */
/* Decorative background shapes                                          */
/* ---------------------------------------------------------------------- */

.shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.shape--left-tall {
  left: 0;
  top: -80px;
  width: 160px;
  height: 320px;
  background: #c8a87a;
  opacity: 0.55;
  border-radius: 0 160px 160px 0;
  animation: float-y 9s var(--ease-out) infinite;
}

.shape--left-short {
  left: 0;
  top: 181px;
  width: 90px;
  height: 160px;
  background: #d4b896;
  opacity: 0.45;
  border-radius: 0 80px 80px 0;
  animation: float-y 7.5s var(--ease-out) infinite;
  animation-delay: -2s;
}

.shape--right-top {
  right: -4px;
  top: 119px;
  width: 107px;
  height: 200px;
  background: var(--color-orange);
  opacity: 0.6;
  border-radius: 100px 0 0 100px;
  animation: float-y 8.5s var(--ease-out) infinite reverse;
}

.shape--right-bottom {
  right: -6px;
  top: 767px;
  width: 143px;
  height: 273px;
  background: var(--color-orange);
  opacity: 0.5;
  border-radius: 136px 0 0 136px;
  animation: float-y 10s var(--ease-out) infinite reverse;
  animation-delay: -3s;
}

.shape--card-blob {
  left: 60px;
  bottom: -1px;
  width: 260px;
  height: 129px;
  background: #c8a87a;
  opacity: 0.45;
  border-radius: 130px 130px 0 0;
  animation: float-y 11s var(--ease-out) infinite;
  animation-delay: -5s;
}

/* Ambient background motion — slow, subtle, purely decorative.
   Not sourced from Figma (see :root comment); disabled entirely
   under prefers-reduced-motion below. */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------------------------------------------------------------------- */
/* Header                                                                 */
/* ---------------------------------------------------------------------- */

.header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 20px 32px;
  flex-wrap: wrap;
  animation: fade-in var(--motion-base) var(--ease-out) both;
}

.header__label {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  line-height: 19.5px;
  color: var(--color-header-label);
  white-space: nowrap;
}

.header__link {
  display: inline-block;
  background: var(--color-orange-header-btn);
  color: var(--color-button-text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.32px;
  line-height: 24px;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 7px rgba(245, 130, 68, 0.45);
  white-space: nowrap;
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.header__link:hover,
.header__link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(245, 130, 68, 0.55);
}

.header__link:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 4px rgba(245, 130, 68, 0.45);
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                   */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding: 8px 24px 96px;
}

.hero__logo {
  width: 100%;
  max-width: 339px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 8px;
  animation: fade-slide-up var(--motion-slow) var(--ease-out) 80ms both;
}

.hero__logo-mark {
  width: 54px;
  height: auto;
  flex-shrink: 0;
}

.hero__logo-wordmark {
  width: 263px;
  height: auto;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------- */
/* Card                                                                   */
/* ---------------------------------------------------------------------- */

.card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: var(--content-max);
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-wrap: wrap;
  animation: fade-slide-up var(--motion-slow) var(--ease-out) 180ms both;
}

.card__intro,
.card__form-wrap {
  position: relative;
  z-index: 1;
  flex: 1 1 320px;
  padding: 44px 40px;
}

.card__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.card__heading {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #ffffff;
  max-width: 450px;
  animation: fade-slide-up var(--motion-base) var(--ease-out) 320ms both;
}

.card__paragraph {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: #ffffff;
  animation: fade-slide-up var(--motion-base) var(--ease-out) 400ms both;
}

/* Shared entrance keyframes for hero content. Not sourced from Figma
   (no motion data was returned for this file — see :root comment);
   a deliberately restrained fade + 24px rise, staggered per element. */
@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------------------------------------------------------------------- */
/* Form                                                                   */
/* ---------------------------------------------------------------------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form__row {
  display: grid;
  gap: 10px;
}

.form__row--name-age {
  grid-template-columns: 1fr 90px;
}

.form__row--phone-email {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  padding-bottom: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.44px;
  text-transform: uppercase;
  color: var(--color-label);
}

.required {
  color: var(--color-orange);
}

.field input[type="text"],
.field input[type="number"],
.field input[type="tel"],
.field input[type="email"] {
  width: 100%;
  height: 41.5px;
  padding: 10px 13px;
  background: #ffffff;
  border: 1px solid var(--color-input-border);
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #111;
}

.field input::placeholder {
  color: var(--color-input-placeholder);
}

.field input:focus,
.file-field:focus-within {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 68, 0.25);
}

.field input[type="text"]:focus,
.field input[type="number"]:focus,
.field input[type="tel"]:focus,
.field input[type="email"]:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 68, 0.25);
}

.field--age input {
  text-align: left;
}

.field__hint {
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

/* File input styled to match Figma (custom button look) */
.file-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 41.5px;
  padding: 6px 13px;
  background: #ffffff;
  border: 1px solid var(--color-input-border);
  border-radius: 7px;
}

.file-field input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-field::before {
  content: "Escolher arquivos";
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-file-btn-text);
  background: var(--color-file-btn-bg);
  border: 1px solid var(--color-input-border);
  border-radius: 5px;
  padding: 4px 10px;
}

.file-field__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-file-name-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-field__name[data-filled="true"] {
  color: var(--color-file-btn-text);
}

/* Honeypot: hidden from sighted users AND screen readers, but present
   in the DOM/tab-flow for naive bots that fill every input */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  left: -9999px;
}

.field--submit {
  padding-top: 4px;
}

.btn-submit {
  position: relative;
  width: 100%;
  height: 45.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-orange);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.04px;
  text-transform: uppercase;
  color: var(--color-button-text);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-submit:hover,
.btn-submit:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
}

.btn-submit__spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(51, 51, 51, 0.35);
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-submit[data-loading="true"] .btn-submit__spinner {
  display: inline-block;
}

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

.form__feedback {
  margin: 4px 0 0;
  min-height: 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.form__feedback[data-state="success"] {
  color: #d9f2d9;
}

.form__feedback[data-state="error"] {
  color: #ffd7cf;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 2;
  padding: 20px 24px 28px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                             */
/* ---------------------------------------------------------------------- */

@media (max-width: 900px) {
  .card__intro,
  .card__form-wrap {
    flex: 1 1 100%;
    padding: 36px 28px;
  }

  .card__heading {
    max-width: none;
  }

  .hero {
    gap: 40px;
  }

  .shape--right-bottom {
    top: 900px;
  }
}

@media (max-width: 640px) {
  .header {
    justify-content: center;
    padding: 16px 20px;
  }

  .hero {
    padding: 8px 16px 72px;
  }

  .card {
    border-radius: 16px;
  }

  .card__intro,
  .card__form-wrap {
    padding: 28px 20px;
  }

  .form__row--name-age,
  .form__row--phone-email {
    grid-template-columns: 1fr;
  }

  .field--age input {
    width: 100%;
  }

  .shape--left-tall {
    width: 90px;
    height: 200px;
    top: -60px;
  }

  .shape--left-short {
    width: 54px;
    height: 100px;
    top: 140px;
  }

  .shape--right-top {
    width: 64px;
    height: 130px;
    top: 90px;
  }

  .shape--right-bottom {
    width: 86px;
    height: 180px;
  }

  .shape--card-blob {
    width: 160px;
    height: 80px;
    border-radius: 80px 80px 0 0;
  }
}

@media (max-width: 400px) {
  .shape--left-tall,
  .shape--left-short,
  .shape--right-top,
  .shape--right-bottom {
    opacity: 0.3;
  }
}

/* ---------------------------------------------------------------------- */
/* Reduced motion                                                         */
/* ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  /* Ambient decorative blobs: fully disabled, no reason to keep them
     moving for users who asked the OS to minimize motion. */
  .shape--left-tall,
  .shape--left-short,
  .shape--right-top,
  .shape--right-bottom,
  .shape--card-blob {
    animation: none;
  }

  /* Entrance animations (fade-in / fade-slide-up) all use fill-mode
     "both" starting from opacity:0 — simply removing the animation
     would leave the content invisible, so each element's final state
     is set explicitly instead. */
  .header,
  .hero__logo,
  .card,
  .card__heading,
  .card__paragraph {
    animation: none;
    opacity: 1;
    transform: none;
  }

  /* Hover micro-interactions: keep the visual feedback (color/shadow/
     filter still change) but drop the movement itself. */
  .header__link:hover,
  .header__link:focus-visible,
  .header__link:active,
  .btn-submit:hover,
  .btn-submit:focus-visible {
    transform: none;
  }

  /* The submit spinner communicates real loading state, not decoration,
     so it stays — just slowed down to feel less like continuous motion. */
  .btn-submit__spinner {
    animation-duration: 1.6s;
  }

  .card {
    transition: none;
  }
}
