:root {
  --green: #31f85d;
  --orange: #ff6a00;
  --brown: #6b4226;
  --text: #222;
  --muted: #666;
  --border: #ccc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  background: #fff;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ================= HEADER DESKTOP ================= */

header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 25px 60px;
  background: url('fundo-tecnologico.jpg') center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}

header h1 {
  font-size: 1.8rem;
  cursor: pointer;
  position: relative;
  margin-top: 280px;
  transition: 0.2s;
}

header h1:hover {
  color: var(--brown);
  transform: scale(1.05);
}

header .br { color: var(--green); font-weight: 700; }
header .b  { color: var(--orange); font-weight: 700; }
header .rest { color: #000; font-weight: 700; }

.menu button {
  background: none;
  border: none;
  color: #000;
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(0,0,0,0.2);
  position: relative;
  margin-top: 280px;
}

.menu button:hover {
  color: var(--brown);
  transform: scale(1.05);
}

/* ================= HEADER MOBILE ================= */

.header-buttons-mobile {
  display: none;
}

/* ================= MAIN ================= */

main {
  flex: 1;
  width: 100%;
  overflow: hidden;
}

/* ================= SLIDES DESKTOP ================= */

.slides {
  width: calc(100% - 80px);
  height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px auto 0;
  border-radius: 20px;
}

.slide {
  display: none;
  width: 100%;
  max-width: 1100px;
  background: #fff;
  border-radius: 20px;
  padding: 40px 50px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  justify-content: space-between;
  align-items: center;
}

.slide.active { display: flex; }

.slide video {
  width: 45%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
}

.slide-text {
  width: 50%;
  padding: 0 60px;
}

.slide-text h2 { font-size: 1.8rem; margin-bottom: 15px; }
.slide-text p  { font-size: 1rem; line-height: 1.6; }

/* ================= BOTÕES SLIDE (DESKTOP) ================= */

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.nav-btn.prev { left: 50px; }
.nav-btn.next { right: 50px; }

/* ================= LOGIN DESKTOP ================= */

.login-abaixo {
  display: flex;
  gap: 40px;
  width: calc(100% - 100px);
  margin: 40px auto 80px;
}

.login-box {
  width: 280px;
  padding: 25px;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.08);
  text-align: center;
}

.login-text {
  max-width: 500px;
  font-size: 1rem;
  line-height: 1.6;
}

/* ================= MOBILE / TABLET ================= */

@media (max-width: 768px) {

  header {
    display: none;
  }

  /* HEADER MOBILE */
  .header-buttons-mobile {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    min-height: 200px;
    padding: 20px 20px 0;
    background-image: url('fundo-tecnologico.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 80%;
    border-bottom: 1px solid var(--border);
  }

  .header-buttons-mobile h1 {
    font-size: 1.4rem;
  }

  .header-buttons-mobile .br {
    color: var(--green);
    font-weight: 700;
  }

  .header-buttons-mobile .b {
    color: var(--orange);
    font-weight: 700;
  }

  .header-buttons-mobile .rest {
    color: #000;
    font-weight: 700;
  }

  /* BOTÃO BRBOT AGRO — AUMENTADO */
  .header-buttons-mobile button {
    background: none;
    border: none;
    outline: none;
    box-shadow: none;

    font-size: 1.2rem;   /* AUMENTA O TEXTO */
    padding: 6px 6px;   /* AUMENTA A ÁREA CLICÁVEL */
    font-weight: 700;
  }

  .header-buttons-mobile button:focus {
    outline: none;
  }

  /* SLIDES MOBILE */
  .slides {
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
  }

  .slide {
    flex-direction: column;
    padding: 20px;
    box-shadow: none;
  }

  .slide video {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .slide-text {
    width: 100%;
    padding: 0;
    text-align: left;
  }

  /* BOTÕES SLIDE (MOBILE) */
  .nav-btn {
    top: 40%;
    transform: translateY(-50%);
  }

  .nav-btn.prev {
    left: 12px;
  }

  .nav-btn.next {
    right: 12px;
  }

  /* LOGIN MOBILE */
  .login-abaixo {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0 20px;
  }

  .login-box {
    width: 100%;
    max-width: 340px;
  }

  .login-text {
    text-align: left;
  }

  .login-text p {
    text-align: left;
  }
}
