/*
Theme Name: COM Training
Theme URI: https://comtraining.com.br
Description: Tema customizado COM Training - Dark, minimalista, fitness.
Author: MG Studio
Version: 1.0
Text Domain: comtraining
*/

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #fff;
  text-decoration: none;
}

/* ═══════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════ */
@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(-2%, -1%); }
}

@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* ═══════════════════════════════════════
   HERO (shared by both pages)
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 40px 20px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('bg_landing.jpg') center/cover no-repeat;
  z-index: 0;
  filter: brightness(0.5);
  animation: kenBurns 25s ease-in-out infinite alternate;
}

.hero > *:not(.hero-bg) {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════
   LOGO
   ═══════════════════════════════════════ */
.logo {
  display: block;
  margin-bottom: 36px;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.logo img {
  width: 200px;
  height: auto;
}

/* logo-img used in front-page.php (not wrapped in .logo) */
.logo-img {
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* ═══════════════════════════════════════
   HEADLINE
   ═══════════════════════════════════════ */
.headline {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* ═══════════════════════════════════════
   PAGE TITLE (trabalhe conosco)
   ═══════════════════════════════════════ */
.page-title {
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* ═══════════════════════════════════════
   FORM
   ═══════════════════════════════════════ */
.form {
  display: flex;
  flex-direction: column;
  width: 360px;
  max-width: 100%;
  gap: 14px;
  margin-bottom: 16px;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"] {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  background: rgba(56, 56, 56, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #494949;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: background 0.3s, border-color 0.3s;
}

.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form input[type="tel"]:focus {
  border-color: #fff;
}

.form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* ═══════════════════════════════════════
   BUTTON
   ═══════════════════════════════════════ */
.btn-submit {
  display: block;
  width: 360px;
  max-width: 100%;
  height: 50px;
  background: #fff;
  color: #282828;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: background 0.3s, transform 0.2s;
  animation: fadeInUp 1s ease-out 1.1s both;
}

.btn-submit:hover {
  background: #e0e0e0;
  transform: scale(1.02);
}

/* ═══════════════════════════════════════
   CONSENT
   ═══════════════════════════════════════ */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 40px;
  max-width: 360px;
  animation: fadeIn 1s ease-out 1.3s both;
}

.consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #fff;
}

.consent label {
  font-size: 11px;
  color: #fff;
  opacity: 0.8;
  text-align: left;
  line-height: 1.4;
}

/* ═══════════════════════════════════════
   HERO FOOTER
   ═══════════════════════════════════════ */
.hero-footer {
  display: flex;
  justify-content: space-between;
  width: 360px;
  max-width: 100%;
  animation: fadeIn 1s ease-out 1.5s both;
}

.hero-footer-left,
.hero-footer-right {
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 24px;
}

.hero-footer-left {
  text-align: left;
}

.hero-footer-right {
  text-align: right;
}

/* ═══════════════════════════════════════
   BOTTOM BAR
   ═══════════════════════════════════════ */
.bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 30px;
  background: #1e1e1e;
  font-size: 15px;
  font-family: 'Space Mono', monospace;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  animation: fadeIn 1s ease-out 1.7s both;
}

.bottom-bar .trabalhe a,
.bottom-bar .voltar a {
  color: #fff;
  text-decoration: underline;
}

.bottom-bar .insta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}

.bottom-bar .insta svg {
  width: 22px;
  height: 22px;
}

/* ═══════════════════════════════════════
   POSITION SECTION (trabalhe conosco)
   ═══════════════════════════════════════ */
.position-section {
  width: 100%;
  margin-bottom: 0;
}

.position-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-align: left;
}

.position-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.position-grid label {
  cursor: pointer;
}

.position-grid input[type="checkbox"] {
  display: none;
}

.position-chip {
  display: inline-block;
  padding: 10px 18px;
  background: rgba(56, 56, 56, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #494949;
  border-radius: 20px;
  color: #ccc;
  font-size: 13px;
  transition: all 0.3s;
}

.position-grid input[type="checkbox"]:checked + .position-chip {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.position-chip:hover {
  border-color: #888;
}

/* ═══════════════════════════════════════
   UPLOAD AREA
   ═══════════════════════════════════════ */
.upload-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 50px;
  background: rgba(56, 56, 56, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px dashed #494949;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.3s;
  position: relative;
  width: 100%;
}

.upload-area:hover {
  border-color: #888;
}

.upload-area input[type="file"] {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon svg {
  width: 20px;
  height: 20px;
  stroke: #ccc;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 14px;
}

.upload-text .secondary {
  font-size: 12px;
  opacity: 0.5;
}

/* ═══════════════════════════════════════
   SUCCESS MESSAGE
   ═══════════════════════════════════════ */
.success-message {
  display: none;
  text-align: center;
  margin-top: 20px;
}

.success-message.show {
  display: block;
}

.success-message h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.success-message p {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .form,
  .btn-submit,
  .hero-footer,
  .consent {
    width: 100%;
  }

  .hero {
    padding: 30px 16px;
  }

  .hero-footer-left,
  .hero-footer-right {
    font-size: 16px;
    line-height: 20px;
  }

  .bottom-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 12px 20px;
  }

  .logo img {
    width: 160px;
  }
}
